information.vue 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920
  1. <template name='information'>
  2. <view class="container">
  3. <view class="wrap-info">
  4. <view class="row">
  5. <view class="info-title">基本信息</view>
  6. </view>
  7. <view class="info-from">
  8. <view class="label">公司名称</view>
  9. <input class="row-input" type="text" v-model="params.name" placeholder="请与营业执照的注册名称保持一致" maxlength="30"/>
  10. </view>
  11. <view class="info-from">
  12. <view class="label">公司简称</view>
  13. <input class="row-input" type="text" v-model="params.sname"placeholder="请输入公司简称" maxlength="10"/>
  14. </view>
  15. <view class="info-from">
  16. <view class="label">公司地址</view>
  17. <view class="row-input" @click="showMulLinkageThreePicker">
  18. <text :class="addressData.address === '请选择公司所在地区' ? 'none' : ''">
  19. {{addressData.address}}
  20. </text>
  21. <text class="iconfont icon-xiayibu"></text>
  22. </view>
  23. </view>
  24. <textarea value="" v-model="addressData.addressDetail" placeholder="请填写详细地址,如街道/小区/门牌等" maxlength="50" class="address-details"/>
  25. <view class="info-from">
  26. <view class="label">联系人</view>
  27. <input class="row-input" v-model="params.linkMan" type="text" placeholder="请输入联系人姓名" maxlength="6"/>
  28. </view>
  29. <view class="info-from">
  30. <view class="label">邮箱</view>
  31. <input class="row-input" v-model="params.email" type="text" placeholder="请输入邮箱地址 " maxlength="6"/>
  32. </view>
  33. <text class="info-email">邮箱可用作登录账号,请使用公司邮箱或法人邮箱</text>
  34. <view class="info-from">
  35. <view class="label">固定电话</view>
  36. <input class="row-input" v-model="params.contractPhone" type="text" placeholder="请在号码前加区 " maxlength="11"/>
  37. </view>
  38. <view class="info-from">
  39. <view class="label">传真</view>
  40. <input class="row-input" v-model="params.fax" type="text" placeholder="请输入公司传真号 " />
  41. </view>
  42. <view class="info-from">
  43. <view class="label">法人代表</view>
  44. <input class="row-input" v-model="params.legalPerson" type="text" placeholder="请输入公司法人代表姓名 " maxlength="6"/>
  45. </view>
  46. <view class="info-from">
  47. <view class="label">注册资本</view>
  48. <input class="row-input" v-model="params.registeredCapital" type="text" placeholder="请填写公司注册资本 " />
  49. </view>
  50. <view class="info-from">
  51. <view class="label">公司性质</view>
  52. <input class="row-input" v-model="params.nature" type="text" placeholder="请填写公司性质 " />
  53. </view>
  54. <view class="info-from">
  55. <view class="label">年营业额</view>
  56. <input class="row-input" v-model="params.turnover" type="text" placeholder="请输入公司年营业额 " />
  57. </view>
  58. </view>
  59. <view class="wrap-content">
  60. <view class="row">
  61. <view class="info-title">经营信息</view>
  62. </view>
  63. <view class="info-from" style="border: 0;">
  64. <view class="label">公司类型</view>
  65. <view class="row-input ShopTyperadio">
  66. <radio-group @change="radioChange">
  67. <label class="radio" v-for="(item, index) in typename" :key="item.value">
  68. <radio :value="item.value" color='#E15616'/>{{item.name}}
  69. </label>
  70. </radio-group>
  71. </view>
  72. </view>
  73. <view class="secondTyperadio" v-if="isfirstShow" >
  74. <view class="radio" v-for="(item,index) in secondtype" :key="index" @click="secondypeRidio(item)" :class="secontype==item.value?'active':''">
  75. <view class="secondRadio">{{item.name}}</view>
  76. </view>
  77. </view>
  78. <view class="zizhi" v-if="issecondshow">
  79. <view class="info2-title zizhi-title">资质</view>
  80. <view class="uploadImage">
  81. <view class="form-upload-image" v-if="params.medicalPracticeLicenseImg1!=''">
  82. <image class="upload-img" :src="params.medicalPracticeLicenseImg1" alt="" ></image>
  83. <view class="iconfont icon-shanchu1" @click="deleteMedicalImage()"></view>
  84. </view>
  85. <view class="formLine-file" @click="uploadzizhiImageFn" v-else>
  86. <view class="file-zizhi"></view>
  87. </view>
  88. <view class="form-upload-tips">
  89. <text class="iconfont icon-wenhao"></text>
  90. <view class="wen-tips">点击图片可放大图片</view>
  91. </view>
  92. </view>
  93. </view>
  94. <view class="business">
  95. <view class="info2-title business-title">主营内容</view>
  96. <view class="business-info">
  97. <checkbox-group class="row-group">
  98. <label class="diyBox second" v-for="(item, index) in mentuzCampNullList" :key="item.value">
  99. <checkbox :value="item.value" :class="{on: item.checked}" v-model="shopMainPros" ></checkbox>
  100. <view class="row-text">{{item.name}}</view>
  101. </label>
  102. </checkbox-group>
  103. <view class="addbusiness">
  104. <input class="row-input other" type="text" placeholder="请输入自定义项目" v-model="mainProEdit" maxlength="5"/>
  105. <button type="default" class="button" @click.stop="mainProAdd">确认添加</button>
  106. </view>
  107. </view>
  108. </view>
  109. <view class="business">
  110. <view class="info2-title business-title">经营范围</view>
  111. <view class="business-info">
  112. <checkbox-group class="row-group">
  113. <label class="row-input" v-for="(item, index) in Scopelist" :key="item.value">
  114. <checkbox :value="item.value" :class="{on: item.checked}" v-model="shopScope"></checkbox>
  115. <view class="row-text">{{item.name}}</view>
  116. </label>
  117. </checkbox-group>
  118. <view class="addbusiness">
  119. <input class="row-input other" type="text" placeholder="请输入自定义经营范围" v-model="shopScopeEdit" maxlength="5"/>
  120. <button type="default" class="button" @click.stop="shopScopeAdd">确认添加</button>
  121. </view>
  122. </view>
  123. </view>
  124. <view class="info">
  125. <view class="info2-title">公司介绍</view>
  126. <textarea v-model="params.info" maxlength="2000" placeholder="公司简介会在公司介绍页面展示,有助于机构更好的了解您, 建议从个人规模、代理产品、机构服务、荣誉资质这4方面进行介绍" name="textarea"/>
  127. </view>
  128. <view class="info">
  129. <view class="info2-title">主打系列商品说明</view>
  130. <textarea placeholder="请输入主打系列商品说明" v-model="params.productDesc" maxlength="500" name="textarea"/>
  131. </view>
  132. </view>
  133. <view class="wrap-image">
  134. <view class="row">
  135. <view class="info-title">资质证明</view>
  136. </view>
  137. <view class="info-from">
  138. <view class="label Code">营业执照编号</view>
  139. <input class="row-input Code" v-model.trim="params.socialCreditCode" type="text" placeholder="请输入公司营业执照编号" maxlength="18"/>
  140. </view>
  141. <view class="zizhi">
  142. <view class="info2-title zizhi-title">营业执照图片</view>
  143. <view class="uploadImage">
  144. <view class="form-upload-image" v-if="params.businessLicenseImage!=''">
  145. <image class="upload-img" :src="params.businessLicenseImage" @click="showViewerImageFn()" ></image>
  146. <view class="iconfont icon-shanchu1" @click="deleteBusinessImage()"></view>
  147. </view>
  148. <view class="formLine-file" @click="uploadBusinessLicenseImageFn" v-else>
  149. <view class="file-biss iconImage"></view>
  150. </view>
  151. </view>
  152. </view>
  153. <view class="zizhi">
  154. <view class="info2-title zizhi-title">公司LOGO</view>
  155. <view class="uploadImage">
  156. <view class="form-upload-image" v-if="params.logo!=''">
  157. <image class="upload-img" :src="params.logo" alt="" @click="showViewerImageFn1()"></image>
  158. <view class="iconfont icon-shanchu1" @click="deletelogoImage()"></view>
  159. </view>
  160. <view class="formLine-file" @click="uploadlogoImageFn" v-else>
  161. <view class="file-logo iconImage"></view>
  162. </view>
  163. </view>
  164. </view>
  165. <view class="zizhi">
  166. <view class="info2-title zizhi-title">生产许可证</view>
  167. <view class="uploadImage">
  168. <view class="form-upload-image" v-if="params.productionLicence!=''">
  169. <image class="upload-img" :src="params.productionLicence" alt="" @click="showViewerImageFn2()"></image>
  170. <view class="iconfont icon-shanchu1" @click="deleteproducImage()"></view>
  171. </view>
  172. <view class="formLine-file" @click="uploadproductionLicenceImageFn" v-else>
  173. <view class="file-produce iconImage"></view>
  174. </view>
  175. </view>
  176. </view>
  177. <view class="zizhi">
  178. <view class="info2-title zizhi-title">卫生许可证</view>
  179. <view class="uploadImage">
  180. <view class="form-upload-image" v-if="params.hygienicLicense!=''">
  181. <image class="upload-img" :src="params.hygienicLicense" alt="" @click="showViewerImageFn3()"></image>
  182. <view class="iconfont icon-shanchu1" @click="deletehygienicImage()"></view>
  183. </view>
  184. <view class="formLine-file" @click="uploadhygienicLicenseImageFn" v-else>
  185. <view class="file-health iconImage"></view>
  186. </view>
  187. </view>
  188. </view>
  189. <view class="zizhi">
  190. <view class="info2-title zizhi-title">税务许可证</view>
  191. <view class="uploadImage">
  192. <view class="form-upload-image" v-if="params.taxLicense!=''">
  193. <image class="upload-img" :src="params.taxLicense" alt="" @click="showViewerImageFn4()"></image>
  194. <view class="iconfont icon-shanchu1" @click="deletaxImage()"></view>
  195. </view>
  196. <view class="formLine-file" @click="uploadtaxLicenseImageFn" v-else>
  197. <view class="file-tax iconImage"></view>
  198. </view>
  199. </view>
  200. </view>
  201. <view class="zizhi">
  202. <view class="info2-title zizhi-title hoor">荣誉证书</view>
  203. <view class="uploadImage list-image">
  204. <view class="formLine-file" @click="uploadHonorImageFn" v-if="HonorImagesList.length<5" >
  205. <view class="file-tax iconImage"></view>
  206. </view>
  207. <view class="form-upload-image" v-for="(item, index) in HonorImagesList" :key="index">
  208. <image class="upload-img" :src="item" alt="" @click="showViewerImageFn5()"></image>
  209. <view class="iconfont icon-shanchu1" @click="removeGoodsImagesFn(HonorImagesList)"></view>
  210. </view>
  211. </view>
  212. </view>
  213. <view class="zizhi">
  214. <view class="info2-title zizhi-title hoor">产品证书</view>
  215. <view class="uploadImage list-image">
  216. <view class="formLine-file" @click="uploadproductImageFn" v-if="productImagesList.length<5" >
  217. <view class="file-tax iconImage"></view>
  218. </view>
  219. <view class="form-upload-image" v-for="(item, index) in productImagesList" :key="index">
  220. <image class="upload-img" :src="item" alt="" @click="showViewerImageFn6()"></image>
  221. <view class="iconfont icon-shanchu1" @click="removeproductImagesFn(index)"></view>
  222. </view>
  223. </view>
  224. </view>
  225. </view>
  226. <view class="wrap-Btn">
  227. <button type="default" class="confirmBbtn" @click="shopSubmit">确定</button>
  228. </view>
  229. <mpvue-city-picker :themeColor="themeColor"
  230. ref="mpvueCityPicker"
  231. :pickerValueDefault="cityPickerValueDefault"
  232. @onCancel="onCancel"
  233. @onConfirm="onConfirm">
  234. </mpvue-city-picker>
  235. </view>
  236. </template>
  237. <script>
  238. import mpvueCityPicker from '@/components/mpvue-citypicker/mpvueCityPicker.vue'
  239. import { uploadFileImage } from "@/api/utils.js"
  240. import { mapState,mapMutations } from 'vuex';
  241. export default{
  242. name:'information',
  243. components:{
  244. mpvueCityPicker,
  245. },
  246. data(){
  247. return{
  248. isShowInput:false,
  249. firsttype:0,
  250. secontype:0,
  251. isfirstShow:false,
  252. issecondshow:false,
  253. addressData:{
  254. address:'请选择公司所在地区',
  255. townID:'', //区ID
  256. cityID:'', //区ID
  257. provinceID:'', //区ID
  258. addressDetail: '', //地址
  259. },
  260. typename:[
  261. {name:'医疗',value:'1'},
  262. {name:'非医疗',value:'2'}
  263. ],
  264. secondtype:[
  265. {name:'一类器械',value:'1'},
  266. {name:'二类器械',value:'2'},
  267. {name:'三类器械',value:'3'},
  268. {name:'其它',value:'4'}
  269. ],
  270. mentuzCampNullList:[
  271. {value:'1',name:'产品'},
  272. {value:'2',name:'仪器'},
  273. {value:'3',name:'服务'}
  274. ],
  275. Scopelist:[
  276. {value:'1',name:'仪器护理类'},
  277. {value:'2',name:'护肤品类'},
  278. {value:'3',name:'纹绣类'},
  279. {value:'4',name:'美体内衣'},
  280. {value:'5',name:'整形耗材'},
  281. {value:'6',name:'国际品牌'},
  282. {value:'7',name:'美胸类'},
  283. {value:'8',name:'健康保健类'},
  284. {value:'9',name:'面膜类'},
  285. {value:'10',name:'抗衰老'},
  286. {value:'11',name:'生殖保养'},
  287. {value:'12',name:'健康养生'},
  288. {value:'13',name:'纤体减肥'}
  289. ],
  290. params:{
  291. userID:'',
  292. shopID:'',
  293. townID:'',
  294. provinceID: '',//省id
  295. cityID: '',
  296. address:'',
  297. name:'',//公司名称
  298. sname:'',//公司简称
  299. linkMan:'',//联系人
  300. email:'',//
  301. contractPhone:'',//固定电话
  302. fax:'',//传真
  303. legalPerson:'',//法人代表
  304. registeredCapital:'',//注册资本
  305. nature:'',//公司性质
  306. turnover:'',//年营业额
  307. firstShopType:'',//公司类型 1医疗 2非医疗
  308. secondShopType:'',//医疗下的二级分类
  309. medicalPracticeLicenseImg1:'',//资质
  310. mainpro:'',//主营产品
  311. businessScope:'',//经营内容
  312. info:'',//公司介绍
  313. productDesc:'',//主打说明
  314. medicalPracticeLicenseImg1:'',//三级器械/医疗执照
  315. socialCreditCode:'',//营业执照编号
  316. businessLicenseImage:'',//营业执照
  317. logo:'',//公司logo
  318. productionLicence:'',//生产
  319. hygienicLicense:'',//卫生
  320. taxLicense:'',//税务
  321. certificateHonor:'',//荣誉
  322. productCertification:'',//产品
  323. },
  324. shopMainPros:[],
  325. shopScope:[],
  326. mainProEdit: '',
  327. shopScopeEdit:'',
  328. HonorImagesList:[],
  329. productImagesList:[],
  330. isPreviewImage:false, //预览图片开关
  331. }
  332. },
  333. onLoad(option) {
  334. this.shopInfo();
  335. },
  336. methods:{
  337. shopInfo(){
  338. this.$api.getStorage().then((resolve) =>{
  339. this.params.userID = resolve.userID;
  340. this.SupplierApi.shopInfo({userID:this.params.userID}).then(response =>{
  341. if(res.code==0){
  342. console.log(response)
  343. let shop = response.data.shop;
  344. let user = response.data.user;
  345. _this.params.name = shop.name;
  346. _this.params.sname = shop.sname;
  347. _this.params.linkMan = shop.linkMan;
  348. _this.params.email = user.email;
  349. _this.params.address = shop.provincialAddress;
  350. _this.params.provinceID = shop.provinceID;
  351. _this.params.cityID = shop.cityID;
  352. _this.params.townID = shop.townID;
  353. _this.params.contractPhone = shop.contractPhone;
  354. _this.params.fax = shop.fax;
  355. _this.params.legalPerson = shop.legalPerson;
  356. _this.params.registeredCapital = shop.registeredCapital;
  357. _this.params.nature = shop.nature;
  358. _this.params.turnover = shop.turnover;
  359. _this.shopMainPros = _this.setNewMainpro(shop.mainpro);
  360. _this.shopScope = _this.setNewScope(shop.businessScope);
  361. _this.params.firstShopType = shop.firstShopType;
  362. _this.params.secondShopType = shop.secondShopType;
  363. _this.params.medicalPracticeLicenseImg1 = shop.medicalPracticeLicenseImg1;
  364. _this.params.info = shop.info;
  365. _this.params.productDesc = shop.productDesc;
  366. _this.params.socialCreditCode = shop.socialCreditCode;
  367. _this.params.businessLicenseImage = shop.businessLicenseImage;
  368. _this.params.logo = shop.logo;
  369. _this.params.productionLicence = shop.productionLicence;
  370. _this.params.hygienicLicense = shop.hygienicLicense;
  371. _this.params.taxLicense = shop.taxLicense;
  372. _this.params.certificateHonor = shop.hygienicLicense;
  373. _this.HonorImagesList = res.data.certificateHonor;
  374. _this.productImagesList = res.data.productCertification;
  375. }
  376. })
  377. })
  378. },
  379. shopSubmit(){//提交修改
  380. console.log(this.params);
  381. this.ShopService.modifiedData(params).then(res=>{
  382. console.log(res)
  383. if(res.code === 0){
  384. this.$util.msg('修改成功',2000,true,'success')
  385. setTimeout(()=>{
  386. uni.navigateBack();
  387. },2000)
  388. } else {
  389. this.$util.msg(res.msg,2000);
  390. this.loginLoading = false;
  391. }
  392. })
  393. },
  394. mainProAdd(){//添加主营内容
  395. if (this.mainProEdit.length>0) {
  396. var obj = {name:this.mainProEdit};
  397. if(this.checkedArray(this.mainProEdit,this.mentuzCampNullList)){
  398. this.$util.msg('主营内容已存在!',2000)
  399. }else {
  400. this.mentuzCampNullList.push(obj);
  401. }
  402. }
  403. },
  404. shopScopeAdd(){ //经营内容
  405. if (this.shopScopeEdit.length>0) {
  406. var obj = {name:this.shopScopeEdit};
  407. if(this.checkedArray(this.shopScopeEdit,this.Scopelist)){
  408. this.$util.msg('主营内容已存在!',2000)
  409. }else {
  410. this.Scopelist.push(obj);
  411. }
  412. }
  413. },
  414. checkedArray(content,arr){//判断主营内容是否已存在
  415. for(var i in arr){
  416. if(arr[i].name == content){
  417. return true;
  418. }
  419. }
  420. return false;
  421. },
  422. setNewMainpro(arr){//回显处理主营内容
  423. var newArr = [];
  424. console.log(arr)
  425. arr.split('/').forEach(function(item){
  426. newArr.push(item);
  427. });
  428. return newArr
  429. },
  430. setNewScope(arr) {//回显处理主营内容
  431. var newArr = [];
  432. console.log(arr)
  433. if(arr!=null){
  434. arr.split('/').forEach(function(item){
  435. newArr.push(item);
  436. });
  437. return newArr
  438. }else {
  439. return newArr
  440. }
  441. },
  442. radioChange(e){
  443. this.params.firstShopType = e.target.value;
  444. if (e.target.value==1){
  445. this.isfirstShow = true;
  446. }else {
  447. this.isfirstShow = false;
  448. }
  449. console.log(e.target.value)
  450. },
  451. showViewerImageFn6(e) {//预览产品
  452. this.myPreviewImageFnlist(this.productImagesList)
  453. },
  454. showViewerImageFn5(e) {//预览荣誉
  455. this.myPreviewImageFnlist(this.HonorImagesList)
  456. },
  457. showViewerImageFn4(e) {//预览税务
  458. this.myPreviewImageFn(this.params.taxLicense)
  459. },
  460. showViewerImageFn3(e) {//预览卫生
  461. this.myPreviewImageFn(this.params.hygienicLicense)
  462. },
  463. showViewerImageFn2(e) {//预览生产
  464. this.myPreviewImageFn(this.params.productionLicence)
  465. },
  466. showViewerImageFn1(e) {//预览logo
  467. this.myPreviewImageFn(this.params.logo)
  468. },
  469. showViewerImageFn(e) {//预览营业执照
  470. this.myPreviewImageFn(this.params.businessLicenseImage)
  471. },
  472. myPreviewImageFnlist(arr){//多张预览
  473. this.isPreviewImage = true;
  474. uni.previewImage({
  475. urls: arr,
  476. current: 0
  477. })
  478. },
  479. myPreviewImageFn(url){//单张预览
  480. this.isPreviewImage = true
  481. let mentuzArray = []
  482. mentuzArray.push(url)
  483. uni.previewImage({
  484. urls: mentuzArray,
  485. current: 0
  486. });
  487. },
  488. uploadproductImageFn(event){//产品证书
  489. uploadFileImage().then(res =>{
  490. this.productImagesList.push(JSON.parse(res.data).data);
  491. this.params.productCertification =this.productImagesList.toString()+',';
  492. })
  493. },
  494. uploadHonorImageFn(event){//荣誉证书上传
  495. uploadFileImage().then(res =>{
  496. this.HonorImagesList.push(JSON.parse(res.data).data);
  497. this.params.certificateHonor =this.HonorImagesList.toString()+',';
  498. })
  499. },
  500. uploadlogoImageFn(event){//上传公司logo
  501. uploadFileImage().then(res =>{
  502. this.params.logo = JSON.parse(res.data).data;
  503. })
  504. },
  505. uploadproductionLicenceImageFn(event){//上传生产
  506. uploadFileImage().then(res =>{
  507. this.params.productionLicence = JSON.parse(res.data).data;
  508. })
  509. },
  510. uploadhygienicLicenseImageFn(event){//上传卫生
  511. uploadFileImage().then(res =>{
  512. this.params.hygienicLicense = JSON.parse(res.data).data;
  513. })
  514. },
  515. uploadtaxLicenseImageFn(event){//上传税务
  516. uploadFileImage().then(res =>{
  517. this.params.taxLicense = JSON.parse(res.data).data;
  518. })
  519. },
  520. uploadBusinessLicenseImageFn(event){//上传营业执照图片
  521. uploadFileImage().then(res =>{
  522. this.params.businessLicenseImage = JSON.parse(res.data).data;
  523. })
  524. },
  525. uploadzizhiImageFn(event){//上传医疗图片
  526. uploadFileImage().then(res =>{
  527. this.params.medicalPracticeLicenseImg1 = JSON.parse(res.data).data;
  528. })
  529. },
  530. removeGoodsImagesFn(index){//删除荣誉图片
  531. this.HonorImagesList.splice(index,1);
  532. this.params.certificateHonor = this.HonorImagesList.toString()+',';
  533. },
  534. removeproductImagesFn(index){//删除产品图片
  535. this.productImagesList.splice(index,1);
  536. this.params.productCertification = this.productImagesList.toString()+',';
  537. },
  538. deletaxImage(){//删除卫生
  539. this.params.taxLicense = '';
  540. },
  541. deletehygienicImage(){//删除卫生
  542. this.params.hygienicLicense = '';
  543. },
  544. deleteproducImage(){//删除生产
  545. this.params.productionLicence = '';
  546. },
  547. deletelogoImage(){//删除logo图片
  548. this.params.logo = '';
  549. },
  550. deleteBusinessImage(){//删除营业执照图片
  551. this.params.businessLicenseImage = '';
  552. },
  553. deleteMedicalImage(){//删除商品图片
  554. this.medicalPracticeLicenseImg1 = '';
  555. },
  556. secondypeRidio(item){
  557. this.params.secondShopType = item.value;
  558. if (item.value==3){
  559. this.issecondshow = true;
  560. }else {
  561. this.issecondshow = false;
  562. }
  563. },
  564. showMulLinkageThreePicker() {//三级地址联动
  565. this.isShowInput = true
  566. this.$refs.mpvueCityPicker.show()
  567. },
  568. onConfirm(e) {//获取选择的地址信息
  569. console.log('地址',e);
  570. this.addressData.address = e.name;
  571. this.addressData.townID = e.townCode;
  572. this.addressData.cityID = e.cityCode;
  573. this.addressData.provinceID = e.provinceCode;
  574. this.params.townID = this.addressData.townID;
  575. this.params.provinceID = this.addressData.provinceID;
  576. this.params.cityID = this.addressData.cityID;
  577. this.secondParams.address = this.addressData.address;
  578. },
  579. onConfirmbrand(e){
  580. this.brandname = e.name;
  581. },
  582. }
  583. }
  584. </script>
  585. <style lang="scss">
  586. .row{
  587. line-height: 80rpx;
  588. background: #f7f7f7;
  589. padding: 0 24rpx;
  590. .info-title{
  591. font-size: $font-size-30;
  592. color: $text-color;
  593. font-weight: bold;
  594. }
  595. }
  596. .info-from{
  597. width: 702rpx;
  598. height: 90rpx;
  599. line-height: 90rpx;
  600. border-bottom: 2rpx solid #e1e1e1;
  601. margin: auto;
  602. position: relative;
  603. .label{
  604. width: 112rpx;
  605. text-align: left;
  606. font-size: $font-size-28;
  607. color: #666666;
  608. line-height: 90rpx;
  609. float: left;
  610. &.Code{
  611. width: 170rpx;
  612. }
  613. }
  614. .row-input{
  615. width: 520rpx;
  616. padding-left:10rpx;
  617. font-size: $font-size-28;
  618. color: $text-color;
  619. line-height: 90rpx;
  620. float: left;
  621. height: 90rpx;
  622. margin-left: 50rpx;
  623. &.Code{
  624. width: 470rpx;
  625. }
  626. .icon-xiayibu{
  627. position: absolute;
  628. right: 0;
  629. color: #b2b2b2;
  630. }
  631. .none{
  632. color: #b2b2b2;
  633. }
  634. }
  635. }
  636. .address-details{
  637. height: 146rpx;
  638. border-bottom: 2rpx solid #e1e1e1;
  639. width: 702rpx;
  640. margin: auto;
  641. font-size: $font-size-28;
  642. padding-top: 20rpx;
  643. }
  644. input[type="text"]::placeholder,textarea::placeholder {color: #b2b2b2;font-size: $font-size-28;}
  645. .info-email{
  646. color: #fea785;
  647. font-size: $font-size-20;
  648. padding-left: 24rpx ;
  649. }
  650. .ShopTyperadio{
  651. overflow: hidden;
  652. height: auto;
  653. border: 0;
  654. .radio{
  655. float: left;
  656. margin-right: 77rpx;
  657. .iconfont{
  658. margin-right: 10rpx;
  659. font-size: $font-size-36;
  660. }
  661. .icon-weixuanze{
  662. color: #b2b2b2;
  663. }
  664. .icon-yixuanze{
  665. color: $color-system;
  666. }
  667. }
  668. }
  669. .active{
  670. color: $color-system;
  671. }
  672. .secondTyperadio{
  673. overflow: hidden;
  674. height: auto;
  675. padding: 0 24rpx;
  676. margin-bottom: 20rpx;
  677. color: #999999;
  678. .radio{
  679. float: left;
  680. margin-right: 20rpx;
  681. .secondRadio{
  682. border: 2rpx solid #e1e1e1;
  683. padding: 0 30rpx;
  684. text-align: center;
  685. line-height: 42rpx;
  686. font-size: $font-size-26;
  687. border-radius: 21rpx;
  688. }
  689. }
  690. }
  691. .zizhi{
  692. .uploadImage{
  693. padding: 0 24rpx;
  694. &.list-image{
  695. overflow: hidden;
  696. display: flex;
  697. overflow-x: auto;
  698. padding-top: 20rpx;
  699. .formLine-file{
  700. float: left;
  701. }
  702. .form-upload-image{
  703. float: left;
  704. -webkit-flex-shrink: 0;
  705. flex-shrink: 0;
  706. position: relative;
  707. display: inline-block;
  708. margin: 0 15rpx;
  709. }
  710. }
  711. .form-upload-image{
  712. width: 256rpx;
  713. height:180rpx;
  714. position: relative;
  715. .upload-img{
  716. width: 100%;
  717. height: 100%;
  718. }
  719. .icon-shanchu1{
  720. position: absolute;
  721. top: -20rpx;
  722. right:-15rpx;
  723. color: #f94b4b;
  724. font-size: $font-size-36;
  725. }
  726. }
  727. .formLine-file{
  728. width: 270rpx;
  729. height: 200rpx;
  730. display: inline-block;
  731. .file-zizhi{
  732. background: url('https://admin-b.caimei365.com/userfiles/1/images/photo/2020/11/icon-zizhi.png') no-repeat;
  733. width: 270rpx;
  734. height: 200rpx;
  735. }
  736. .iconImage{
  737. width: 256rpx;
  738. height:180rpx;
  739. &.file-biss{
  740. background: url('https://admin-b.caimei365.com/userfiles/1/images/photo/2020/11/icon-business(1).png') no-repeat;
  741. }
  742. &.file-logo{
  743. background: url('https://admin-b.caimei365.com/userfiles/1/images/photo/2020/11/icon-logo.png') no-repeat;
  744. }
  745. &.file-produce{
  746. background: url('https://admin-b.caimei365.com/userfiles/1/images/photo/2020/11/icon-produce.png') no-repeat;
  747. }
  748. &.file-health{
  749. background: url('https://admin-b.caimei365.com/userfiles/1/images/photo/2020/11/icon-health.png') no-repeat;
  750. }
  751. &.file-tax{
  752. background: url('https://admin-b.caimei365.com/userfiles/1/images/photo/2020/11/icon-tax.png') no-repeat;
  753. }
  754. &.file-honor{
  755. background: url('https://admin-b.caimei365.com/userfiles/1/images/photo/2020/11/icon-honor.png') no-repeat;
  756. }
  757. &.file-product{
  758. background: url('https://admin-b.caimei365.com/userfiles/1/images/photo/2020/11/icon-product.png') no-repeat;
  759. }
  760. }
  761. }
  762. .form-upload-tips{
  763. display: inline-block;
  764. vertical-align: top;
  765. position: relative;
  766. .icon-wenhao{
  767. font-size: 41rpx;
  768. color:#1890f9 ;
  769. }
  770. .wen-tips{
  771. width: 360rpx;
  772. height: 64rpx;
  773. line-height: 64rpx;
  774. text-align: center;
  775. color: #FFF;
  776. font-size: 28rpx;
  777. background-color: #1890f9;
  778. position: absolute;
  779. bottom: -80rpx;
  780. left: -4rpx;
  781. border-radius: 2rpx;
  782. display: none ;
  783. }
  784. .wen-tips:before {
  785. content: '';
  786. width: 0px;
  787. height: 0px;
  788. border-width: 20rpx;
  789. border-style: solid;
  790. border-color: transparent transparent #1890f9 transparent;
  791. position: absolute;
  792. top: -35rpx;
  793. left: 10rpx;
  794. }
  795. .form-upload-tips:hover .wen-tips{display: block;}
  796. }
  797. }
  798. }
  799. .business{overflow: hidden;}
  800. .business-info{
  801. float: left;
  802. margin-left: 60rpx;
  803. width: 550rpx;
  804. }
  805. .info2-title{
  806. padding: 0 0 24rpx 24rpx;
  807. font-size: $font-size-28;
  808. color: #666666;
  809. &.zizhi-title{
  810. padding: 24rpx;
  811. &.hoor{padding: 24rpx 24rpx 0 24rpx;}
  812. }
  813. &.business-title{
  814. float: left;
  815. }
  816. }
  817. .addbusiness{
  818. margin: 20rpx 0;
  819. .other{
  820. width: 350rpx;
  821. height: 64rpx;
  822. border: 2rpx solid #b2b2b2;
  823. border-radius: 45rpx;
  824. text-align: center;
  825. line-height: 64rpx;
  826. padding-left: 10rpx;
  827. font-size: 28rpx;
  828. display: inline-block;
  829. }
  830. .button{
  831. width: 160rpx;
  832. height: 64rpx;
  833. text-align: center;
  834. line-height: 64rpx;
  835. display: inline-block;
  836. color: $color-system;
  837. background:#ffe6dc ;
  838. margin-left: 15rpx;
  839. border-radius: 45rpx;
  840. }
  841. }
  842. .row-group{
  843. .row-text{
  844. display: inline-block;
  845. font-size: 28rpx;
  846. color: #333333;
  847. }
  848. .row-input{
  849. width: 50%;
  850. display: inline-block;
  851. margin-bottom: 10rpx;
  852. }
  853. .diyBox{
  854. margin-bottom: 5px;
  855. width: 33%;
  856. display: inline-block;
  857. }
  858. }
  859. radio .wx-radio-input{
  860. border-radius: 50%;
  861. width: 36rpx;
  862. height: 36rpx;
  863. }
  864. checkbox .wx-checkbox-input{
  865. border-radius: 50%;
  866. width: 36rpx;
  867. height: 36rpx;
  868. }
  869. /* 选中后的 背景样式 */
  870. checkbox .wx-checkbox-input.wx-checkbox-input-checked{
  871. background: #E15616;
  872. }
  873. checkbox .wx-checkbox-input.wx-checkbox-input-checked::before{
  874. border-radius: 50%;
  875. border: 2rpx solid #e15616;
  876. width: 36rpx;
  877. height: 36rpx;
  878. line-height: 36rpx;
  879. text-align: center;
  880. font-size:24rpx;
  881. color:#fff;
  882. background: transparent;
  883. transform:translate(-50%, -50%) scale(1);
  884. -webkit-transform:translate(-50%, -50%) scale(1);
  885. }
  886. .info{
  887. margin: 20rpx 0;
  888. textarea{
  889. width: 680rpx;
  890. height: 200rpx;
  891. border: 2rpx solid #b2b2b2;
  892. border-radius: 6rpx;
  893. font-size: $font-size-28;
  894. padding: 10rpx;
  895. margin: auto;
  896. line-height: 48rpx;
  897. }
  898. }
  899. .wrap-Btn{
  900. margin:100rpx auto;
  901. .confirmBbtn{
  902. width: 600rpx;
  903. height: 90rpx;
  904. line-height: 90rpx;
  905. text-align: center;
  906. color: #fff;
  907. background:$btn-confirm;
  908. border-radius: 45rpx;
  909. }
  910. }
  911. </style>