apply-supplier.vue 30 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106
  1. <template>
  2. <view class="container register" :style="{paddingTop:CustomBar+'px'}">
  3. <cu-custom :navbar-data='nvabarData' @navigateBack="hanldNavigateBack"></cu-custom>
  4. <view class="register-main clearfix" v-if="auditStatus == 92">
  5. <view class="register-row none clearfix">
  6. <view class="error-title">审核未通过原因:</view>
  7. <view class="error-main">
  8. <text class="error-item" v-for="(item, index) in errorList" :key="index">
  9. {{ item }}
  10. </text>
  11. </view>
  12. </view>
  13. </view>
  14. <view class="register-main detailed clearfix">
  15. <view class="register-title">基本信息</view>
  16. <view class="register-row clearfix">
  17. <view class="register-from">
  18. <view class="label">公司名称:</view>
  19. <input class="row-input" type="text" name="input" v-model="shopInfo.name" placeholder="请输入您的公司名称" maxlength="30"/>
  20. </view>
  21. </view>
  22. <view class="register-row clearfix">
  23. <view class="register-from">
  24. <view class="label">联系人:</view>
  25. <input class="row-input" type="text" name="input" v-model="shopInfo.linkMan" placeholder="请输入联系人姓名" maxlength="6"/>
  26. </view>
  27. </view>
  28. <view class="register-row none clearfix">
  29. <view class="register-from">
  30. <view class="label">邮箱:</view>
  31. <input class="row-input" type="text" name="input" v-model="shopInfo.email" placeholder="请输入邮箱地址" maxlength="30"/>
  32. </view>
  33. </view>
  34. <view class="register-row text clearfix">
  35. <text>邮箱可用作登录账号,请使用公司邮箱或法人邮箱</text>
  36. </view>
  37. <view class="register-title">详细信息</view>
  38. <view class="register-row clearfix">
  39. <view class="register-from">
  40. <view class="label">公司简称:</view>
  41. <input class="row-input" type="text" v-model="shopInfo.shortName" placeholder="请输入您的公司简称" maxlength="10"/>
  42. </view>
  43. </view>
  44. <view class="register-row clearfix">
  45. <view class="register-from" @click="showMulLinkageThreePicker">
  46. <view class="label">联系地址:</view>
  47. <text class="row-input" :class="addressText === '请选择公司所在地区' ? 'none' : ''">
  48. {{ addressText }}
  49. </text>
  50. <text class="iconfont icon-xiayibu"></text>
  51. </view>
  52. </view>
  53. <view class="register-row text-textarea clearfix">
  54. <view class="textarea show" v-if="isShowInput" @click="showTextareaFocus">{{shopInfo.address ? shopInfo.address :'详细地址:如道路、门牌号、小区等'}}</view>
  55. <textarea v-else
  56. class="textarea"
  57. type="text"
  58. v-model="shopInfo.address"
  59. placeholder="详细地址:如道路、门牌号、小区等"
  60. placeholder-class="placeholder"
  61. maxlength="40"
  62. @input="onTextareaInput"
  63. :focus="textareaFocus"
  64. @blur="hideTextareaFocus"
  65. :class="isShowInput ? '':''"
  66. />
  67. </view>
  68. <view class="register-row clearfix">
  69. <view class="register-from">
  70. <view class="label">营业执照编号:</view>
  71. <input class="row-input" type="text" v-model="shopInfo.socialCreditCode" placeholder="请填写社会统一信用代码" maxlength="18"/>
  72. </view>
  73. </view>
  74. <view class="register-row clearfix">
  75. <view class="register-picture">
  76. <view class="label">营业执照:</view>
  77. <view class="upload-picture">
  78. <view class="upload-none" v-if="shopInfo.businessLicense === ''" @click="chooseBusinessImage"><text class="iconfont icon-jiahao"></text></view>
  79. <view class="upload-image" v-else>
  80. <image :src="shopInfo.businessLicense" mode="" @click="viewBusinessImage"></image>
  81. <view class="upload-del" @click="delBusinessImage">
  82. <text class='iconfont icon-shanchu1'></text>
  83. </view>
  84. </view>
  85. </view>
  86. </view>
  87. </view>
  88. <view class="register-row clearfix">
  89. <view class="register-from picker">
  90. <view class="label">公司类型:</view>
  91. <view class="row-input picker" @click="bindPickerChange">{{ organizationTypeText }}</view>
  92. <text class="iconfont icon-xiayibu"></text>
  93. </view>
  94. </view>
  95. <view class="register-row none clearfix" v-if="shopInfo.firstShopType == 1">
  96. <view class="register-from radio">
  97. <view class="label">医疗类型:</view>
  98. </view>
  99. </view>
  100. <view class="register-row clearfix" v-if="shopInfo.firstShopType == 1">
  101. <view class="register-from radio">
  102. <radio-group @change="radioChange">
  103. <label class="row-input" v-for="(item, index) in supplierList" :key="item.value">
  104. <radio class="row-radio" :value="item.value" :checked="item.value === shopInfo.secondShopType" color="#E15616"/>
  105. <view class="row-text">{{item.name}}</view>
  106. </label>
  107. </radio-group>
  108. </view>
  109. </view>
  110. <view class="register-row clearfix" v-if="threeParmas.secondShopType == 3">
  111. <view class="register-picture zz">
  112. <view class="label zz">医疗执业许可证</view>
  113. <view class="upload-picture">
  114. <view class="upload-none" v-if="threeParmas.medicalPracticeLicense === ''" @click="chooseMedicalImage">
  115. <text class="iconfont icon-jiahao"></text>
  116. </view>
  117. <view class="upload-image" v-else>
  118. <image :src="threeParmas.medicalPracticeLicense" mode="" @click="viewMedicalImage"></image>
  119. <view class="upload-del" @click="delMedicalImage">
  120. <text class='iconfont icon-shanchu1'></text>
  121. </view>
  122. </view>
  123. </view>
  124. </view>
  125. </view>
  126. <view class="register-row clearfix">
  127. <view class="register-from group">
  128. <view class="label">主营内容:</view>
  129. <view class="content-class">
  130. <checkbox-group @change="chooseMaleLike" >
  131. <label class="item" v-for="(item, index) in supplierMedicaCampList" :key="index" :class="{on: item.checked}">
  132. <checkbox :value="item.value"></checkbox>
  133. <text class="item-text">{{item.name}}</text>
  134. </label>
  135. </checkbox-group>
  136. </view>
  137. </view>
  138. <view class="register-from group btn">
  139. <view class="content-class btn">
  140. <view class="item" @click="showAustomItem">
  141. <text class="item-text">其他</text>
  142. </view>
  143. </view>
  144. </view>
  145. <view class="register-from group btn" v-show="isShowAustomItem">
  146. <view class="content-class btn">
  147. <input class="row-input other" type="text" v-model="customItemValue" placeholder="请输入自定义项目" @blur="onBlurInput" maxlength="5"/>
  148. <button type="default"
  149. class="confirm-btn"
  150. :class="[isDisabled === true ? 'disabled' : 'none']"
  151. :disabled="isDisabled"
  152. @click.stop="addCustomItem"
  153. >确认添加</button>
  154. </view>
  155. </view>
  156. </view>
  157. <view class="register-row clearfix">
  158. <view class="register-from">
  159. <view class="label">网站地址:</view>
  160. <input class="row-input" type="text" v-model="shopInfo.website" placeholder="请输入公司网站地址" maxlength="100"/>
  161. </view>
  162. </view>
  163. <view class="register-row clearfix">
  164. <view class="register-from">
  165. <view class="label">微信公众号:</view>
  166. <input class="row-input" type="text" v-model="shopInfo.wxOfficialAccount" placeholder="请输入公司微信公众号" maxlength="20"/>
  167. </view>
  168. </view>
  169. <view class="register-row clearfix">
  170. <view class="register-from">
  171. <view class="label">微信小程序:</view>
  172. <input class="row-input" type="text" v-model="shopInfo.wxApplets" placeholder="请输入公司微信小程序名称" maxlength="20"/>
  173. </view>
  174. </view>
  175. <view class="register-row text-textarea clearfix">
  176. <view class="label">公司主打系列商品说明:</view>
  177. <textarea v-model="shopInfo.mainProductDesc"
  178. class="textarea"
  179. maxlength="5000"
  180. placeholder="请输入公司主打系列商品说明"
  181. placeholder-class="placeholder"
  182. name="textarea"
  183. />
  184. </view>
  185. <view class="register-row text-textarea clearfix">
  186. <view class="label">公司介绍:</view>
  187. <textarea v-model="shopInfo.shopDesc"
  188. class="textarea"
  189. maxlength="5000"
  190. placeholder="请输入公司介绍"
  191. placeholder-class="placeholder"
  192. name="textarea"
  193. />
  194. </view>
  195. <view class="register-main clearfix">
  196. <view class="register-agree">
  197. <view class="agree-text" @tap.stop="agreeCheck()">
  198. <button class="checkbox iconfont" :class="[isCheck?'icon-gouxuan':'icon-weigouxuan']"></button>
  199. 我已阅读并同意
  200. <text @click.stop="this.$api.navigateTo('/pages/service/service?id=1035&title=供应商协议')">《供应商协议》</text>
  201. <text @click.stop="this.$api.navigateTo('/pages/service/service?id=1023&title=用户协议')">《用户协议》</text>及
  202. <text @click.stop="this.$api.navigateTo('/pages/service/service?id=1013&title=隐私权政策')">《隐私权政策》</text>
  203. </view>
  204. </view>
  205. <view class="register-row ">
  206. <view class="register-btn sub" @click.stop="SupplierRegisteredThree">提交审核</view>
  207. </view>
  208. </view>
  209. </view>
  210. <mpvue-city-picker :themeColor="themeColor"
  211. ref="mpvueCityPicker"
  212. :pickerValueDefault="cityPickerValueDefault"
  213. @onCancel="onCancel"
  214. @onConfirm="onConfirm">
  215. </mpvue-city-picker>
  216. </view>
  217. </template>
  218. <script>
  219. import { mapMutations } from 'vuex';
  220. import mpvueCityPicker from '@/components/mpvue-citypicker/mpvueCityPicker.vue'
  221. import { supplierList,supplierMedicaCampNullList } from '@/common/json/data.json.js' //本地数据
  222. import { uploadFileImage } from "@/services/public.js"
  223. export default{
  224. components:{
  225. mpvueCityPicker
  226. },
  227. data() {
  228. return{
  229. nvabarData: {//顶部自定义导航
  230. showCapsule: 1, // 是否显示左上角图标 1表示显示 0表示不显示,
  231. showSearch: 0,
  232. title: '修改申请资料', // 导航栏 中间的标题
  233. haveBack:true,
  234. textLeft:this.$store.state.isIphone
  235. },
  236. isIphoneX:this.$store.state.isIphoneX,
  237. CustomBar:this.CustomBar,// 顶部导航栏高度
  238. errorList:[],
  239. tabCurrentIndex:3,
  240. auditStatus:'', //审核状态
  241. isPreviewImage:false, //预览图片开关
  242. shopInfo:{
  243. userId:'', //用户ID
  244. shopId:'', //供应商ID
  245. linkMan:'', //联系人
  246. name:'', //公司名称
  247. email:"", //法人邮箱地址
  248. provinceId :'', //省ID
  249. cityId : '', //市ID
  250. townId : '', //区ID
  251. address:'', //公司详细地址
  252. shortName:'', //公司简称
  253. socialCreditCode:'', //统一社会信用代码
  254. businessLicense:'',//营业执照图片
  255. firstShopType: 0, //公司类型
  256. secondShopType: 0,
  257. mainProduct:'', //公司主营内容
  258. isAgreed:1, //勾选协议状态
  259. website:'',//网站地址
  260. wxOfficialAccount:'',//微信公众号
  261. wxApplets:'',//微信小程序
  262. mainProductDesc:'',//公司主打商品说明
  263. medicalPracticeLicense:'',
  264. shopDesc:'',//公司介绍
  265. },
  266. addressText:'请选择公司所在地区',
  267. isDisabled:true,
  268. isShowInput:true,
  269. textareaFocus:false,
  270. organizationTypeText:'请选择公司类型',
  271. supplierList:supplierList,//医疗类型
  272. medicaCampList:supplierMedicaCampNullList,//主营内容
  273. supplierMedicaCampList:[],
  274. typtIndex:0,
  275. organizationType:0,
  276. current:0,
  277. isShowAustomItem:false, //是否显示其他添加
  278. customItemValue:'', //自定义项目
  279. isMainproCheck:false,
  280. isSupplierAlert:true,
  281. isCheck:true
  282. }
  283. },
  284. onLoad() {
  285. this.GetSupplierInfo()
  286. },
  287. methods:{
  288. hanldNavigateBack(){
  289. this.$util.modal('','资料尚未提交审核,确定放弃修改吗?','确定','取消',true,() =>{
  290. uni.navigateBack({
  291. delta: 1
  292. });
  293. })
  294. },
  295. GetSupplierInfo(){
  296. this.$api.getStorage().then((resolve) =>{
  297. this.shopInfo.userId = resolve.userId ? resolve.userId : 0
  298. this.UserService.SupplierShopInfo({userId:this.shopInfo.userId}).then(response =>{
  299. let responseData = response.data
  300. let supplierShop = responseData.shop
  301. let supplierUser = responseData.user
  302. this.auditStatus = supplierShop.status
  303. if(supplierUser.auditNoteList!=null){
  304. this.errorList = supplierUser.auditNoteList
  305. }
  306. this.shopInfo.shopId = supplierUser.shopId
  307. this.shopInfo.name = this.$reg.checkData(supplierShop.name)
  308. this.shopInfo.linkMan = this.$reg.checkData(supplierShop.linkMan)
  309. this.shopInfo.email = this.$reg.checkData(supplierUser.email)
  310. this.shopInfo.shortName = this.$reg.checkData(supplierShop.shortName)
  311. this.addressText = supplierShop.provincialAddress ? supplierShop.provincialAddress : '请选择公司所在地区'
  312. this.shopInfo.website = supplierShop.website
  313. this.shopInfo.wxOfficialAccount = supplierShop.wxOfficialAccount
  314. this.shopInfo.wxApplets = supplierShop.wxApplets
  315. this.shopInfo.mainProductDesc = supplierShop.mainProductDesc
  316. this.shopInfo.shopDesc = supplierShop.shopDesc
  317. this.shopInfo.address = supplierShop.address
  318. this.shopInfo.provinceId = supplierShop.provinceId
  319. this.shopInfo.cityId = supplierShop.cityId
  320. this.shopInfo.townId = supplierShop.townId
  321. this.shopInfo.socialCreditCode = this.$reg.checkData(supplierShop.socialCreditCode)
  322. this.shopInfo.businessLicense = this.$reg.checkData(supplierShop.businessLicense)
  323. this.shopInfo.medicalPracticeLicense = this.$reg.checkData(supplierShop.medicalPracticeLicense)
  324. this.shopInfo.firstShopType = supplierShop.firstShopType
  325. this.shopInfo.secondShopType = this.$reg.checkData(supplierShop.secondShopType)
  326. //机构类型&&主营项目
  327. switch(this.shopInfo.firstShopType){
  328. case 1:
  329. this.organizationTypeText = '医疗'
  330. this.shopInfo.firstShopType = 1
  331. break;
  332. case 2:
  333. this.organizationTypeText = '非医疗'
  334. this.shopInfo.firstShopType = 2
  335. break;
  336. case null:
  337. this.organizationTypeText = '请选择公司类型'
  338. this.shopInfo.firstShopType = 0
  339. break;
  340. }
  341. if(supplierShop.mainProduct){
  342. this.supplierMedicaCampList = this.setNewMainpro(supplierShop.mainProduct)
  343. console.log(this.supplierMedicaCampList)
  344. this.shopInfo.mainProduct = supplierShop.mainProduct;
  345. }else{
  346. this.supplierMedicaCampList = this.medicaCampList
  347. console.log(this.supplierMedicaCampList)
  348. }
  349. }).catch(error =>{
  350. this.$util.msg(error.msg,2000)
  351. })
  352. })
  353. },
  354. SupplierRegisteredThree(){//提交审核
  355. if(!this.isMainproCheck){
  356. let mainproList = []
  357. this.supplierMedicaCampList.forEach(item =>{
  358. mainproList.push(item.name)
  359. })
  360. this.shopInfo.mainpro = mainproList.join('/')
  361. }
  362. if( this.shopInfo.name == ''){
  363. this.$util.msg('请输入您的公司名称',2000);
  364. return
  365. }
  366. if( this.shopInfo.linkMan == ''){
  367. this.$util.msg('请输入联系人名称',2000);
  368. return
  369. }
  370. if( this.shopInfo.email == ''){
  371. this.$util.msg('请输入邮箱地址',2000);
  372. return
  373. }
  374. if(!this.$reg.isEmail(this.shopInfo.email)){
  375. this.$util.msg('请输入正确的邮箱地址',2000);
  376. return
  377. }
  378. if( this.shopInfo.townId == ''){
  379. this.$util.msg('请选择公司地址',2000);
  380. return
  381. }
  382. if( this.shopInfo.address == ''){
  383. this.$util.msg('请填写公司详细地址',2000);
  384. return
  385. }
  386. if( this.shopInfo.socialCreditCode == ''){
  387. this.$util.msg('请填写统一社会信用代码',2000);
  388. return
  389. }
  390. if( !this.shopInfo.businessLicense){
  391. this.$util.msg('请上传您的营业执照',2000);
  392. return
  393. }
  394. if(this.shopInfo.firstShopType == 0){
  395. this.$util.msg('请选择公司类型',2000);
  396. return
  397. }
  398. if(this.shopInfo.secondShopType == 3){
  399. if(this.shopInfo.medicalPracticeLicense == ''){
  400. this.$util.msg('请上传医疗许可证书',2000);
  401. return
  402. }
  403. }
  404. if(this.shopInfo.mainProduct == ''){
  405. this.$util.msg('请选择主营内容',2000);
  406. return
  407. }
  408. if(this.shopInfo.website){
  409. if(!this.$reg.isWebsite(this.shopInfo.website)){
  410. this.$util.msg('请输入正确的网站地址',2000);
  411. return
  412. }
  413. }
  414. if(this.shopInfo.isAgreed == 0){
  415. this.$util.msg('请勾选同意协议',2000);
  416. return
  417. }
  418. this.UserService.SupplierUpdateCompanyInfo(this.shopInfo).then(response =>{
  419. this.$util.modal('','您的资料已提交成功,系统将在1-2个工作日内进行审核~','知道了','',false,() =>{
  420. this.$api.switchTabTo('/pages/tabBar/home/index')
  421. })
  422. }).catch(error =>{
  423. this.$util.msg(error.msg,2000);
  424. })
  425. },
  426. chooseBusinessImage() {//营业执照图片上传
  427. uploadFileImage().then(res =>{
  428. this.shopInfo.businessLicense = JSON.parse(res.data).data
  429. })
  430. },
  431. viewBusinessImage(e) {
  432. this.myPreviewImageFn(this.businessLicense)
  433. },
  434. myPreviewImageFn(url){
  435. this.isPreviewImage = true
  436. let mentuzArray = []
  437. mentuzArray.push(url)
  438. uni.previewImage({
  439. urls: mentuzArray,
  440. current: 0
  441. });
  442. },
  443. delBusinessImage(){
  444. this.$util.modal('','确定删除营业执照图片吗?','确定','取消',true,() =>{
  445. this.shopInfo.businessLicense = ''
  446. })
  447. },
  448. radioChange(e) {
  449. this.shopInfo.secondShopType = e.target.value;
  450. console.log(this.shopInfo.secondShopType)
  451. },
  452. chooseMaleLike(e){
  453. this.isMainproCheck = true
  454. this.shopInfo.mainProduct = this.checkLikes(e,this.supplierMedicaCampList)
  455. },
  456. bindPickerChange(e) {
  457. let self = this
  458. uni.showActionSheet({
  459. title:'标题',
  460. itemList: ['医疗', '非医疗'],
  461. success: (e) => {
  462. self.shopInfo.firstShopType = e.tapIndex+1
  463. console.log(self.shopInfo.firstShopType)
  464. switch(e.tapIndex){
  465. case 0:
  466. this.organizationTypeText = '医疗'
  467. break;
  468. case 1:
  469. this.organizationTypeText = '非医疗'
  470. break;
  471. }
  472. }
  473. })
  474. },
  475. showMulLinkageThreePicker() {// 三级联动选择
  476. this.isShowInput = true
  477. this.$refs.mpvueCityPicker.show()
  478. },
  479. showAustomItem() {
  480. this.isShowAustomItem = !this.isShowAustomItem
  481. },
  482. showTextareaFocus(){//文本框获取焦点
  483. this.isShowInput = false
  484. this.textareaFocus = true
  485. },
  486. hideTextareaFocus(){//文本框失去焦点
  487. this.isShowInput = true
  488. this.textareaFocus = false
  489. },
  490. onConfirm(e) {
  491. this.addressText = e.name;
  492. this.shopInfo.townId = e.townCode;
  493. this.shopInfo.cityId = e.cityCode;
  494. this.shopInfo.provinceId = e.provinceCode;
  495. console.log(this.shopInfo)
  496. },
  497. onTextareaInput(e){
  498. this.shopInfo.address = e.detail.value;
  499. },
  500. onBlurInput(e){//
  501. if(e.detail.value ===''){
  502. this.isDisabled = true
  503. }else{
  504. this.isDisabled = false
  505. }
  506. },
  507. agreeCheck() {
  508. this.isCheck = !this.isCheck
  509. if(this.isCheck){
  510. this.shopInfo.isAgreed = 1
  511. }else{
  512. this.shopInfo.isAgreed = 0
  513. }
  514. },
  515. checkLikes(e,list){
  516. let values = e.detail.value
  517. let arr = []
  518. list.forEach(item => {
  519. if(values.indexOf(item.value) >= 0){
  520. this.$set(item,'checked',true)
  521. arr.push(item.name)
  522. }else{
  523. this.$set(item,'checked',false)
  524. }
  525. })
  526. return arr.join('/')
  527. },
  528. setNewMainpro(arr){//回显处理主营内容
  529. let _ARRAY = []
  530. arr.split('/').forEach((item,index) =>{
  531. let _OBJ = {value:(index+1).toString(),name:item,checked:true}
  532. _ARRAY.push(_OBJ)
  533. })
  534. return _ARRAY
  535. },
  536. addCustomItem(){
  537. if(this.customItemValue==''){
  538. this.$util.msg('请输入自定义主营内容',2000);
  539. }else{
  540. let item = {value:`${this.supplierMedicaCampList.length+1}`,name:this.customItemValue,checked:true}
  541. if(this.checkedArray(this.customItemValue,this.supplierMedicaCampList)){
  542. this.$util.msg('主营内容已存在!',2000)
  543. }else{
  544. this.supplierMedicaCampList.push(item)
  545. }
  546. }
  547. },
  548. checkedArray(content,arr){//判断主营内容是否已存在
  549. for(var i in arr){
  550. if(arr[i].name == content){
  551. return true;
  552. }
  553. }
  554. return false;
  555. },
  556. },
  557. onShow() {
  558. if(this.isPreviewImage){
  559. this.isPreviewImage = false
  560. return
  561. }
  562. }
  563. }
  564. </script>
  565. <style lang="scss">
  566. .placeholder{color:#b2b2b2 ;}
  567. .register{
  568. width: 100%;
  569. height: 100%;
  570. box-sizing: border-box;
  571. .register-main{
  572. width: 100%;
  573. height: auto;
  574. position: relative;
  575. .register-title{
  576. width: 100%;
  577. height: 80rpx;
  578. line-height: 80rpx;
  579. background-color: #F7F7F7;
  580. font-size: $font-size-34;
  581. color: $text-color;
  582. text-align: left;
  583. font-weight: bold;
  584. box-sizing: border-box;
  585. padding: 0 24rpx;
  586. margin-bottom: 20rpx;
  587. }
  588. .register-consult{
  589. width: 110rpx;
  590. height: 68rpx;
  591. background:linear-gradient(223deg,rgba(225,86,21,0.6) 0%,rgba(225,86,10,0.3) 100%);
  592. border-radius: 34rpx 0 0 34rpx;
  593. position: absolute;
  594. right: 0;
  595. bottom: 120rpx;
  596. text-align: left;
  597. line-height: 68rpx;
  598. padding-left: 20rpx;
  599. .icon-kefunv{
  600. font-size: 48rpx;
  601. color: #31313B;
  602. float: left;
  603. }
  604. .text{
  605. font-size: $font-size-24;
  606. display: block;
  607. float: left;
  608. width: 60rpx;
  609. line-height: 30rpx;
  610. color: #FFFFFF;
  611. margin-top: 6rpx;
  612. }
  613. }
  614. .register-agree{
  615. display: flex;
  616. flex-direction: column;
  617. align-items: center;
  618. margin: 100rpx 0 20rpx 0;
  619. .agree-text{
  620. .checkbox{
  621. float: left;
  622. margin: 4rpx 6rpx 0 0;
  623. color: #999999;
  624. font-size: $font-size-34;
  625. &.icon-gouxuan{
  626. color: $color-system;
  627. }
  628. }
  629. font-size: $font-size-22;
  630. line-height: 44rpx;
  631. color: #999999;
  632. text{
  633. color:#1890f9;
  634. }
  635. }
  636. }
  637. .register-logo{
  638. width: 100%;
  639. display: flex;
  640. flex-direction: column;
  641. align-items: center;
  642. height: 189rpx;
  643. padding:60rpx 0 40rpx 0;
  644. .logo{
  645. width:467rpx;
  646. height: 189rpx;
  647. display: block;
  648. }
  649. }
  650. &.detailed{
  651. padding-bottom: 330rpx;
  652. }
  653. .register-row{
  654. width: 100%;
  655. height: auto;
  656. padding: 0 24rpx;
  657. margin-bottom: 20rpx;
  658. box-sizing: border-box;
  659. &.text{
  660. font-size: $font-size-20;
  661. line-height: 40rpx;
  662. color: #fea785;
  663. }
  664. &.none{
  665. margin-bottom: 0;
  666. }
  667. .error-title{
  668. line-height: 60rpx;
  669. font-size: $font-size-28;
  670. color: $text-color;
  671. text-align: left;
  672. padding-top: 20rpx;
  673. }
  674. .error-main{
  675. padding: 10rpx 0;
  676. .error-item{
  677. padding:0 20rpx;
  678. margin:10rpx;
  679. background: #F53636;
  680. height: 52rpx;
  681. line-height: 52rpx;
  682. border-radius: 26rpx;
  683. font-size: $font-size-26;
  684. color: #FFFFFF;
  685. text-align: center;
  686. display: inline-block;
  687. }
  688. }
  689. &.login{
  690. display: flex;
  691. }
  692. .register-text{
  693. line-height: 44rpx;
  694. margin-top: 100rpx;
  695. font-size: $font-size-24;
  696. color: #999999;
  697. text-align: justify;
  698. .txt{
  699. margin-right: 15rpx;
  700. }
  701. }
  702. .register-tip{
  703. line-height: 64rpx;
  704. font-size: $font-size-24;
  705. color: #CECECE;
  706. text-align: left;
  707. }
  708. .register-from{
  709. width: 100%;
  710. height: 80rpx;
  711. background: #FFFFFF;
  712. position: relative;
  713. border-bottom: 1px solid #e1e1e1;
  714. .label{
  715. text-align: left;
  716. font-size: $font-size-28;
  717. color:#666666;
  718. line-height: 80rpx;
  719. float: left;
  720. }
  721. .row-input{
  722. width: 500rpx;
  723. padding-left:10rpx;
  724. font-size: $font-size-28;
  725. color: $text-color;
  726. line-height: 80rpx;
  727. float: left;
  728. height: 80rpx;
  729. &.none{
  730. color: #999999;
  731. }
  732. &.picker{
  733. text-align: left;
  734. color: #333333;
  735. }
  736. &.keshi{
  737. width: 550rpx;
  738. }
  739. &.code{
  740. width: 350rpx;
  741. }
  742. &.imgCode{
  743. width: 390rpx;
  744. }
  745. }
  746. .vscodeimg{
  747. width: 160rpx;
  748. height: 80;
  749. float: left;
  750. display: flex;
  751. flex-direction: column;
  752. align-items: center;
  753. border-radius: 6rpx;
  754. margin: 0 10rpx;
  755. image{
  756. width: 150rpx;
  757. height: 68rpx;
  758. border-radius: 6rpx;
  759. }
  760. }
  761. .vscod-refresh{
  762. width: 120rpx;
  763. float: right;
  764. line-height: 80rpx;
  765. .ref-text{
  766. float: left;
  767. font-size: 26rpx;
  768. color: #999999;
  769. }
  770. .icon-shuaxin{
  771. float: left;
  772. font-size: 36rpx;
  773. color: #999999;
  774. margin-right: 10rpx;
  775. }
  776. }
  777. &.imgcode{
  778. width: 410rpx;
  779. float: left;
  780. margin-right: 20rpx;
  781. .row-input{
  782. width: 230rpx;
  783. }
  784. }
  785. .row-btn{
  786. width: 180rpx;
  787. height:64rpx;
  788. float: left;
  789. background: $btn-confirm;
  790. padding: 0;
  791. border-radius: 32rpx;
  792. .row-input{
  793. width: 180rpx;
  794. height: 64rpx;
  795. line-height: 64rpx;
  796. padding: 0;
  797. color: #FFFFFF;
  798. background: $btn-confirm;
  799. text-align: center;
  800. border-radius: 32rpx;
  801. font-size: $font-size-24;
  802. &.other{
  803. width: 180rpx;
  804. background: #F7F7F7;
  805. margin-right: 20rpx;
  806. }
  807. &.none{
  808. background: #F7F7F7;
  809. }
  810. }
  811. &.disabled{
  812. background: #F7F7F7;
  813. .row-input{
  814. background: #F7F7F7;
  815. color: #999999;
  816. }
  817. }
  818. }
  819. &.picker{
  820. width: 100%;
  821. height: 80rpx;
  822. line-height: 80rpx;
  823. .label{
  824. line-height: 80rpx;
  825. }
  826. .row-input{
  827. width: 470rpx;
  828. height: 80rpx;
  829. line-height: 80rpx;
  830. padding-left: 30rpx;
  831. }
  832. }
  833. &.radio{
  834. width: 100%;
  835. border-bottom: none;
  836. .row-input{
  837. width: 25%;
  838. height: 80rpx;
  839. line-height: 80rpx;
  840. padding-left: 0;
  841. }
  842. .row-radio{
  843. float: left;
  844. transform: scale(0.8);
  845. }
  846. .row-text{
  847. text-align: center;
  848. float: left;
  849. font-size: $font-size-24;
  850. }
  851. }
  852. &.group{
  853. width: 100%;
  854. height: auto;
  855. background: #FFFFFF;
  856. margin-top: 30rpx;
  857. border-bottom: none;
  858. .label{
  859. line-height: 76rpx;
  860. }
  861. .row-input{
  862. width: 100%;
  863. height: 80rpx;
  864. line-height: 80rpx;
  865. padding-left: 0;
  866. }
  867. .row-radio{
  868. float: left;
  869. }
  870. .row-text{
  871. width: 100rpx;
  872. text-align: center;
  873. float: left;
  874. }
  875. }
  876. &.btn{
  877. margin-top: 0;
  878. }
  879. .content-class {
  880. margin: 20rpx auto;
  881. display: flex;
  882. flex-flow: row wrap;
  883. justify-content: space-between;
  884. align-items: center;
  885. &.btn{
  886. margin: 0 auto;
  887. margin-left: 116rpx;
  888. }
  889. .row-input{
  890. display: flex;
  891. width: 330rpx;
  892. box-sizing: border-box;
  893. height: 64rpx;
  894. padding:0 24rpx;
  895. text-align: left;
  896. border-radius: 32rpx;
  897. font-size: $font-size-28;
  898. color: $text-color;
  899. border: 1px solid #B2B2B2;
  900. line-height: 64rpx;
  901. }
  902. .confirm-btn{
  903. width: 200rpx;
  904. height: 64rpx;
  905. border-radius: 32rpx;
  906. line-height: 64rpx;
  907. text-align: center;
  908. &.other{
  909. width: 213rpx;
  910. }
  911. &.none{
  912. color: $color-system;
  913. background: #ffe6dc;
  914. }
  915. &.disabled{
  916. color: #999999;
  917. }
  918. }
  919. .item {
  920. width: 155rpx;
  921. height: 60rpx;
  922. font-size:$font-size-28;
  923. line-height: 60rpx;
  924. border-radius:30rpx;
  925. margin: 10rpx;
  926. text-align: center;
  927. box-sizing: border-box;
  928. border: 1rpx solid #EFEFEF;
  929. float: left;
  930. checkbox {
  931. display: none;
  932. }
  933. }
  934. .on {
  935. border-color: $color-system;
  936. color:$color-system;
  937. }
  938. }
  939. }
  940. .row-login{
  941. flex: 1;
  942. font-size: $font-size-28;
  943. color: $text-color;
  944. text-align: left;
  945. }
  946. .row-logincode{
  947. flex: 1;
  948. font-size: $font-size-28;
  949. color: $text-color;
  950. text-align: right;
  951. }
  952. .icon-xiayibu{
  953. width: 80rpx;
  954. height: 80rpx;
  955. position: absolute;
  956. right: 0;
  957. top: 0;
  958. line-height: 80rpx;
  959. text-align: center;
  960. }
  961. &.text-textarea{
  962. background: #FFFFFF;
  963. .textarea{
  964. width: 100%;
  965. min-height: 280rpx;
  966. padding: 24rpx 0;
  967. box-sizing: border-box;
  968. font-size: $font-size-28;
  969. color: $text-color;
  970. z-index: 1;
  971. border-bottom: 1px solid #e1e1e1;
  972. }
  973. .label{
  974. text-align: left;
  975. font-size: $font-size-28;
  976. color:#666666;
  977. line-height: 48rpx;
  978. float: left;
  979. }
  980. .textarea.hide{
  981. opacity: 0;
  982. }
  983. .textarea.show{
  984. color: #999999;
  985. }
  986. }
  987. }
  988. .register-picture{
  989. height: 180rpx;
  990. margin: 30rpx 0;
  991. float: left;
  992. &.zz{
  993. width: 100%;
  994. }
  995. .label{
  996. float: left;
  997. font-size: $font-size-28;
  998. color: #666666;
  999. line-height: 180rpx;
  1000. width: 150rpx;
  1001. text-align: left;
  1002. &.zz{
  1003. width: 200rpx;
  1004. }
  1005. }
  1006. .upload-picture{
  1007. float: left;
  1008. height: 180rpx;
  1009. .upload-none{
  1010. width: 180rpx;
  1011. height: 180rpx;
  1012. text-align: center;
  1013. line-height: 180rpx;
  1014. color: #999999;
  1015. border: 1px solid #999999;
  1016. border-radius: 10rpx;
  1017. margin: 0 20rpx;
  1018. .iconfont{
  1019. font-size: 60rpx;
  1020. }
  1021. }
  1022. .upload-image{
  1023. width: 180rpx;
  1024. height: 180rpx;
  1025. border-radius: 6rpx;
  1026. margin: 0 20rpx;
  1027. position: relative;
  1028. image{
  1029. width: 180rpx;
  1030. height: 180rpx;
  1031. border-radius: 6rpx;
  1032. }
  1033. .upload-del{
  1034. width: 40rpx;
  1035. height: 40rpx;
  1036. position: absolute;
  1037. top: -20rpx;
  1038. right: -20rpx;
  1039. line-height: 40rpx;
  1040. text-align: center;
  1041. .iconfont{
  1042. font-size: $font-size-32;
  1043. color: #999999;
  1044. }
  1045. }
  1046. }
  1047. }
  1048. }
  1049. .register-input{
  1050. width: 654rpx;
  1051. height: 40rpx;
  1052. padding: 24rpx;
  1053. margin: 0 auto;
  1054. margin-bottom: 60rpx;
  1055. background: #F7F7F7;
  1056. border-radius: 14rpx;
  1057. .input{
  1058. width: 100%;
  1059. height: 100%;
  1060. background: #F7F7F7;
  1061. font-size: $font-size-28;
  1062. line-height: 40rpx;
  1063. color: #333333;
  1064. border-radius: 14rpx;
  1065. }
  1066. }
  1067. .register-fiexd{
  1068. width: 100%;
  1069. height: auto;
  1070. position: fixed;
  1071. bottom: 0;
  1072. left: 0;
  1073. z-index: 999;
  1074. background: #FFFFFF;
  1075. }
  1076. .register-btn{
  1077. width: 600rpx;
  1078. height: 88rpx;
  1079. border-radius: 44rpx;
  1080. font-size: $font-size-28;
  1081. line-height: 88rpx;
  1082. color: #FFFFFF;
  1083. margin: 0 auto;
  1084. text-align: center;
  1085. background: $btn-confirm;
  1086. margin-top: 96rpx;
  1087. &.prev{
  1088. background:#ffe6dc;
  1089. color: $color-system;
  1090. margin-top: 20rpx;
  1091. }
  1092. &.none{
  1093. border: 1px solid $color-system;
  1094. background: #FFFFFF;
  1095. color:$color-system;
  1096. margin-top: 0;
  1097. }
  1098. &.sub{
  1099. margin-top: 0;
  1100. }
  1101. }
  1102. }
  1103. }
  1104. </style>