register-member.vue 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979
  1. <template>
  2. <view class="register">
  3. <view class="register-main" v-if="isRegisterStep">
  4. <view class="main-form-item">
  5. <view class="form-label">联系人</view>
  6. <input class="form-input" type="text" name="input" v-model="params.linkMan" placeholder="请输入联系姓名" maxlength="6"/>
  7. </view>
  8. <view class="main-form-item">
  9. <view class="form-label">手机号</view>
  10. <input class="form-input phone" type="text" v-model="params.bindMobile" placeholder="请输入联系人手机号" maxlength="11"/>
  11. <view class="form-btn" @click.stop="CheckMobile()">检测</view>
  12. </view>
  13. <view class="main-form-item">
  14. <view class="form-label">邮箱</view>
  15. <input class="form-input" type="text" name="input" v-model="params.contractEmail" placeholder="请输入机构邮箱地址" maxlength="30"/>
  16. </view>
  17. <view class="main-form-item">
  18. <view class="form-label">机构名称</view>
  19. <input class="form-input" type="text" name="input" v-model="params.name" placeholder="请输入机构名称" maxlength="30"/>
  20. </view>
  21. <view class="main-form-item">
  22. <view class="form-label">机构简称</view>
  23. <input class="form-input" type="text" name="input" v-model="params.shortName" placeholder="请输入机构简称" maxlength="10"/>
  24. </view>
  25. <view class="main-form-item" @click="showMulLinkageThreePicker">
  26. <view class="form-label">机构地址</view>
  27. <view class="form-input"
  28. :class="params.address === '请选择机构所在地区' ? 'none' : ''">
  29. {{params.address}}
  30. </view>
  31. <view class="iconfont icon-xiayibu"></view>
  32. </view>
  33. <view class="main-form-item textarea">
  34. <view class="textarea show" v-if="isShowInput" @click="showTextareaFocus">{{params.addressDetail ? params.addressDetail :'详细地址:如道路、门牌号、小区等'}}</view>
  35. <textarea v-else
  36. class="textarea"
  37. type="text"
  38. v-model="params.addressDetail"
  39. placeholder="详细地址:如道路、门牌号、小区等"
  40. placeholder-class="placeholder"
  41. maxlength="35"
  42. @input="onTextareaInput"
  43. @blur="hideTextareaFocus"
  44. :class="isShowInput ? '':''"
  45. />
  46. </view>
  47. <view class="main-form-item">
  48. <view class="form-label lang">营业执照编号</view>
  49. <input class="form-input lang" type="text" name="input" v-model="params.socialCreditCode" placeholder="请输入社会信用统一代码" maxlength="18"/>
  50. </view>
  51. <view class="main-form-item file">
  52. <view class="main-form-upload">
  53. <view class="label">营业执照</view>
  54. <view class="upload-picture">
  55. <view class="upload-none" v-if="params.businessLicense === ''" @click="UploadPicture(1)">
  56. <text class="iconfont icon-jiahao"></text><text class="upload-text">营业执照</text>
  57. </view>
  58. <view class="upload-image" v-else>
  59. <image :src="params.businessLicense" mode="" @click="ShowPreviewImage(1)"></image>
  60. <view class="upload-del" @click="DeletePicture(1)">
  61. <text class='iconfont icon-shanchu1'></text>
  62. </view>
  63. </view>
  64. </view>
  65. </view>
  66. <view class="main-form-upload">
  67. <view class="label">门头照</view>
  68. <view class="upload-picture">
  69. <view class="upload-none" v-if="params.shopPhoto === ''" @click="UploadPicture(2)">
  70. <text class="iconfont icon-jiahao"></text><text class="upload-text">门头照</text>
  71. </view>
  72. <view class="upload-image" v-else>
  73. <image :src="params.shopPhoto" mode="" @click="ShowPreviewImage(2)"></image>
  74. <view class="upload-del" @click="DeletePicture(2)">
  75. <text class='iconfont icon-shanchu1'></text>
  76. </view>
  77. </view>
  78. </view>
  79. </view>
  80. </view>
  81. <view class="main-form-item picker">
  82. <view class="form-label">机构类型</view>
  83. <radio-group @change="bindPickerChange">
  84. <label class="label-radio" v-for="(item, index) in radioGroup1" :key="item.value">
  85. <radio class="row-radio" :value="item.value" :checked="index === current" color='#E15616'/>
  86. <view class="row-text">{{item.name}}</view>
  87. </label>
  88. </radio-group>
  89. </view>
  90. <view class="main-form-item picker" v-if="params.firstClubType == 1">
  91. <view class="picker-radio">
  92. <view class="secondTyperadio" v-for="(item,index) in beautyList" :key="item.value" @click="radioChange(item)" :class="item.value==params.secondClubType?'active':''">
  93. <view class="secondRadio" >{{item.name}}</view>
  94. </view>
  95. </view>
  96. </view>
  97. <view class="main-form-item file" v-if="params.firstClubType == 1">
  98. <view class="main-form-upload">
  99. <view class="label">资质</view>
  100. <view class="upload-picture">
  101. <view class="upload-none" v-if="params.medicalPracticeLicense === ''" @click="UploadPicture(3)">
  102. <text class="iconfont icon-jiahao"></text><text class="upload-text">医疗执业许可证</text>
  103. </view>
  104. <view class="upload-image" v-else>
  105. <image :src="params.medicalPracticeLicense" mode="" @click="ShowPreviewImage(3)"></image>
  106. <view class="upload-del" @click="DeletePicture(3)">
  107. <text class='iconfont icon-shanchu1'></text>
  108. </view>
  109. </view>
  110. </view>
  111. </view>
  112. </view>
  113. <view class="main-form-item none" v-if="isDepartment">
  114. <view class="form-label none">科室</view>
  115. <textarea class="textarea-ke" placeholder="请填写经营的科室,至少三个,用逗号隔开" placeholder-style="placeholder" v-model="params.department" maxlength="16"></textarea>
  116. </view>
  117. <view class="main-form-item none" v-if="params.firstClubType == 1">
  118. <view class="form-label none">主营内容</view>
  119. <view class="form-checkbox-group">
  120. <checkbox-group @change="ChooseMaleLike" >
  121. <label class="item" v-for="(item, index) in mentuzCampList" :key="index" :class="{on: item.checked}">
  122. <checkbox class="item-checkbox" :value="item.value" color="#E15616" style="transform:scale(0.7)" :checked="item.checked"></checkbox>
  123. <text class="item-text">{{item.name}}</text>
  124. </label>
  125. </checkbox-group>
  126. </view>
  127. <view class="form-checkbox-input">
  128. <input class="checkbox-input" type="text" v-model="customItemValue" placeholder="请输入其他自定义品项目" maxlength="5"/>
  129. <view class="checkbox-btn" @click.stop="addCustomItem">确认添加</view>
  130. </view>
  131. </view>
  132. <view class="main-form-item none" v-if="params.firstClubType == 2">
  133. <view class="form-label none">主营内容</view>
  134. <view class="form-checkbox-group">
  135. <checkbox-group @change="ChooseMaleLike">
  136. <label class="item" v-for="(item, index) in medicaCampList" :key="index" :class="{on: item.checked}">
  137. <checkbox class="item-checkbox" :value="item.value" color="#E15616" style="transform:scale(0.7)" :checked="item.checked"></checkbox>
  138. <text class="item-text">{{item.name}}</text>
  139. </label>
  140. </checkbox-group>
  141. </view>
  142. <view class="form-checkbox-input">
  143. <input class="checkbox-input" type="text" v-model="customItemValue" placeholder="请输入其他自定义品项目" maxlength="5"/>
  144. <view class="checkbox-btn" @click.stop="addCustomItem">确认添加</view>
  145. </view>
  146. </view>
  147. <view class="register-fiexd clearfix" :style="{paddingBottom:isIphoneX ? '68rpx':''}">
  148. <view class="register-agree">
  149. <view class="agree-text" @tap.stop="agreeCheck()">
  150. <button class="checkbox iconfont" :class="[isCheck ?'icon-gouxuan':'icon-weigouxuan']"></button>
  151. 我已阅读并同意
  152. <text @click.stop="this.$api.navigateTo('/pages/service/organagree')">《机构协议》</text>
  153. <text @click.stop="this.$api.navigateTo('/pages/service/useragree')">《用户协议》</text>及
  154. <text @click.stop="this.$api.navigateTo('/pages/service/privacyagree')">《隐私权政策》</text>
  155. </view>
  156. </view>
  157. <view class="register-row">
  158. <view class="register-btn sub" @click.stop="SubmitRegister">确定</view>
  159. </view>
  160. </view>
  161. </view>
  162. <view class="register-main" v-else>
  163. <view class="main-form-item">
  164. <view class="form-label">联系人</view>
  165. <view class="form-text"> {{ clubInfo.linkMan }} </view>
  166. </view>
  167. <view class="main-form-item">
  168. <view class="form-label">手机号</view>
  169. <view class="form-text">{{ clubInfo.contractMobile }}</view>
  170. </view>
  171. <view class="main-form-item">
  172. <view class="form-label">邮箱</view>
  173. <view class="form-text">{{ clubInfo.contractEmail }}</view>
  174. </view>
  175. <view class="main-form-item">
  176. <view class="form-label">机构名称</view>
  177. <view class="form-text">{{ clubInfo.name }}</view>
  178. </view>
  179. <view class="main-form-item">
  180. <view class="form-label">机构简称</view>
  181. <view class="form-text">{{ clubInfo.shortName }}</view>
  182. </view>
  183. <view class="main-form-item">
  184. <view class="form-label">机构地址</view>
  185. <view class="form-input">{{ clubInfo.provincialAddress }}</view>
  186. </view>
  187. <view class="main-form-item">
  188. <view class="form-textarea">{{ clubInfo.address }}</view>
  189. </view>
  190. <view class="main-form-item">
  191. <view class="form-label lang">营业执照编号</view>
  192. <view class="form-input lang">{{ clubInfo.socialCreditCode }}</view>
  193. </view>
  194. <view class="main-form-item file">
  195. <view class="main-form-upload">
  196. <view class="label">营业执照</view>
  197. <view class="upload-picture">
  198. <view class="upload-image"><image :src="clubInfo.businessLicense" mode="" @click="ShowPreviewImage(1)"></image></view>
  199. </view>
  200. </view>
  201. <view class="main-form-upload">
  202. <view class="label">门头照</view>
  203. <view class="upload-picture">
  204. <view class="upload-image"><image :src="clubInfo.shopPhoto" mode="" @click="ShowPreviewImage(2)"></image></view>
  205. </view>
  206. </view>
  207. </view>
  208. <view class="main-form-item">
  209. <view class="form-label">机构类型</view>
  210. <view class="form-text">
  211. {{ clubInfo.firstClubType | FirstFormat }}
  212. -
  213. {{ clubInfo.secondClubType | TwoFormat }}
  214. </view>
  215. </view>
  216. <view class="main-form-item file" v-if="clubInfo.firstClubType == 1">
  217. <view class="main-form-upload">
  218. <view class="label">资质</view>
  219. <view class="upload-picture">
  220. <view class="upload-image"><image :src="clubInfo.medicalPracticeLicense" mode="" @click="ShowPreviewImage(2)"></image></view>
  221. </view>
  222. </view>
  223. </view>
  224. <view class="main-form-item" v-if="clubInfo.secondClubType == 2">
  225. <view class="form-label">科室</view>
  226. <view class="form-text">{{ clubInfo.department }}</view>
  227. </view>
  228. <view class="main-form-item none">
  229. <view class="form-label none">主营内容</view>
  230. <view class="form-checkbox-group">
  231. <view class="form-table-item" v-for="(item, index) in medicaCampList" :key="index">
  232. {{ item.name }}
  233. </view>
  234. </view>
  235. </view>
  236. <view class="register-fiexd clearfix" :style="{paddingBottom:isIphoneX ? '68rpx':''}">
  237. <view class="register-row">
  238. <button open-type="share" class="register-btn sub" @tap="ShareRegister">分享</button>
  239. </view>
  240. </view>
  241. </view>
  242. <city-Picker :themeColor="themeColor"
  243. ref="CityPicker"
  244. :pickerValueDefault="cityPickerValueDefault"
  245. @onCancel="onCancel"
  246. @onConfirm="onConfirm">
  247. </city-Picker>
  248. </view>
  249. </template>
  250. <script>
  251. import { beautyList,mentuzCampNullList,medicaCampNullList } from '@/common/json/data.json.js' //本地数据
  252. import { uploadFileImage } from "@/api/utils.js"
  253. export default{
  254. data() {
  255. return{
  256. isRegisterStep:false,
  257. isIphoneX:this.$store.state.isIphone,
  258. isCheck:false,
  259. clubUserId:0,
  260. isShowInput:true,
  261. isDepartment:false,
  262. textareaFocus:false,
  263. beautyList:beautyList,
  264. mentuzCampList:mentuzCampNullList,
  265. medicaCampList:medicaCampNullList,
  266. params:{
  267. userId:0,
  268. name:'',
  269. shortName:'',
  270. linkMan:'',
  271. bindMobile:'',
  272. contractEmail:'',
  273. socialCreditCode:'',
  274. isAgreed:0,
  275. address:'请选择机构所在地区',
  276. townId:'', //区ID
  277. cityId:'', //区ID
  278. provinceId:'', //区ID
  279. addressDetail: '', //地址
  280. businessLicense:'', //营业执照
  281. shopPhoto:'', //门头照
  282. medicalPracticeLicense:'',//资质
  283. firstClubType:1, //1医美;2生美
  284. secondClubType:1, //1诊所;2门诊;3医院
  285. department:'',//科室
  286. mainProduct:'',
  287. },
  288. clubInfo:{
  289. linkMan:'',
  290. bindMobile:'',
  291. userId:0
  292. },
  293. radioGroup1:[
  294. {name:'医美',value:1},
  295. {name:'生美',value:2}
  296. ],
  297. current:0,
  298. customItemValue:'', //自定义项目
  299. }
  300. },
  301. filters: {
  302. FirstFormat:function(type) {//处理金额
  303. let name='';
  304. switch(type){
  305. case 1: name = '医美'; break;
  306. case 2: name = '生美'; break;
  307. }
  308. return name;
  309. },
  310. TwoFormat:function(type) {//处理金额
  311. let text='';
  312. switch(type){
  313. case 1: text = '诊所'; break;
  314. case 2: text = '门诊'; break;
  315. case 3: text = '医院'; break;
  316. }
  317. return text;
  318. },
  319. },
  320. onLoad(option) {
  321. this.$api.getStorage().then((resolve) =>{
  322. this.params.userId = resolve.userId ? resolve.userId : 0
  323. })
  324. },
  325. computed: {
  326. },
  327. methods:{
  328. CheckMobile(){//检测手机是否能注册
  329. if( this.params.bindMobile == ''){
  330. this.$util.msg('请输入手机号',2000);
  331. return
  332. }
  333. if(!this.$reg.isMobile(this.params.bindMobile)){
  334. this.$util.msg('请输入正确的手机号',2000);
  335. return
  336. }
  337. this.SellerService.SellerClubCheck({bindMobile:this.params.bindMobile})
  338. .then(response =>{
  339. this.$util.msg(response.data,2000);
  340. })
  341. .catch(error =>{
  342. this.$util.msg(error.msg,2000);
  343. })
  344. },
  345. SubmitRegister(){//提交注册
  346. if( this.params.linkMan == ''){
  347. this.$util.msg('请输入联系人姓名',2000);
  348. return
  349. }
  350. if( this.params.bindMobile == ''){
  351. this.$util.msg('请输入联系人手机号',2000);
  352. return
  353. }
  354. if(!this.$reg.isMobile(this.params.bindMobile)){
  355. this.$util.msg('手机格式不正确',2000);
  356. return
  357. }
  358. if( this.params.contractEmail == ''){
  359. this.$util.msg('请输入邮箱地址',2000);
  360. return
  361. }
  362. if(!this.$reg.isEmail(this.params.contractEmail)){
  363. this.$util.msg('请输入正确的邮箱地址',2000);
  364. return
  365. }
  366. if( this.params.name == ''){
  367. this.$util.msg('请输入机构名称',2000);
  368. return
  369. }
  370. if( this.params.townId == ''){
  371. this.$util.msg('请选择机构地址',2000);
  372. return
  373. }
  374. if( this.params.addressDetail == ''){
  375. this.$util.msg('请填写机构详细地址',2000);
  376. return
  377. }
  378. if( this.params.businessLicense == ''){
  379. this.$util.msg('请上传您的营业执照',2000);
  380. return
  381. }
  382. if(this.params.firstClubType!=0){
  383. console.log(this.params.mainProduct)
  384. if(this.params.mainProduct == ''){
  385. this.$util.msg('请选择住机构主营内容',2000);
  386. return
  387. }
  388. }
  389. if(this.params.isAgreed == 0){
  390. this.$util.msg('请勾选同意协议',2000);
  391. return
  392. }
  393. this.SellerService.SellerClubRegister(this.params).then(response =>{
  394. this.$util.msg('提交成功',2000);
  395. this.clubInfo.userId = response.data.userId
  396. setTimeout(()=>{
  397. this.isRegisterStep = false
  398. this.GetClubUserInfo(response.data.userId)
  399. },2000)
  400. }).catch(error =>{
  401. this.$util.msg(error.msg,2000);
  402. })
  403. },
  404. GetClubUserInfo(userId){
  405. this.UserService.OrganizationUpdateModifyInfo({userId:11162})
  406. .then(response =>{
  407. this.clubInfo = response.data.club
  408. })
  409. .catch(error =>{
  410. this.$util.msg(error.msg,2000)
  411. })
  412. },
  413. ShareRegister(res){
  414. if (res.from === 'button') { // 来自页面内转发按钮
  415. }
  416. return {
  417. title: '您已注册采美365网,请点击登录',
  418. path: `/pages/login/binding?userId=${this.clubInfo.userId}`,
  419. imageUrl:'https://static.caimei365.com/app/img/icon/icon-addShare@3x.png'
  420. }
  421. },
  422. agreeCheck() {//勾选协议
  423. this.isCheck = !this.isCheck
  424. if(this.isCheck){
  425. this.params.isAgreed = 1
  426. }else{
  427. this.params.isAgreed = 0
  428. }
  429. },
  430. showMulLinkageThreePicker() {//三级地址联动
  431. this.isShowInput = true
  432. this.$refs.CityPicker.show()
  433. },
  434. showTextareaFocus(){//文本框获取焦点
  435. this.isShowInput = false
  436. this.textareaFocus = true
  437. },
  438. hideTextareaFocus(){//文本框失去焦点
  439. this.isShowInput = true
  440. this.textareaFocus = false
  441. },
  442. onTextareaInput(e){//地址详细信息
  443. this.params.addressDetail = e.detail.value;
  444. },
  445. onConfirm(e) {//获取选择的地址信息
  446. console.log('地址',e);
  447. this.params.address = e.name;
  448. this.params.townId = e.townCode;
  449. this.params.cityId = e.cityCode;
  450. this.params.provinceId = e.provinceCode;
  451. },
  452. UploadPicture(NUM) {//图片上传
  453. uploadFileImage().then(res =>{
  454. switch(NUM){
  455. case 1:
  456. this.params.businessLicense = JSON.parse(res.data).data
  457. break;
  458. case 2:
  459. this.params.shopPhoto = JSON.parse(res.data).data
  460. break;
  461. case 3:
  462. this.params.medicalPracticeLicense = JSON.parse(res.data).data
  463. break;
  464. }
  465. })
  466. },
  467. DeletePicture(NUM){//删除照片
  468. switch(NUM){
  469. case 1:
  470. this.$util.modal('','确定删除营业执照图片吗?','确定','取消',true,() =>{
  471. this.params.businessLicense = ''
  472. })
  473. break;
  474. case 2:
  475. this.$util.modal('','确定删除门头照图片吗?','确定','取消',true,() =>{
  476. this.params.shopPhoto = ''
  477. })
  478. break;
  479. case 3:
  480. this.$util.modal('','确定删除资质图片吗?','确定','取消',true,() =>{
  481. this.params.medicalPracticeLicense = ''
  482. })
  483. break;
  484. }
  485. },
  486. ShowPreviewImage(NUM) {//预览照片
  487. switch(NUM){
  488. case 1:
  489. this.myPreviewImageFn(this.businessLicense)
  490. break;
  491. case 2:
  492. this.myPreviewImageFn(this.shopPhoto)
  493. break;
  494. case 3:
  495. this.myPreviewImageFn(this.medicalPracticeLicense)
  496. break;
  497. }
  498. },
  499. myPreviewImageFn(url){//预览证件照
  500. this.isPreviewImage = true
  501. let mentuzArray = []
  502. mentuzArray.push(url)
  503. uni.previewImage({
  504. urls: mentuzArray,
  505. current: 0
  506. });
  507. },
  508. bindPickerChange(e) {//选择机构类型
  509. this.params.firstClubType = Number(e.target.value);
  510. },
  511. radioChange(item) {//选择
  512. this.params.secondClubType = item.value;
  513. if( this.params.secondClubType == 2 || this.params.secondClubType == 3){
  514. this.isDepartment = true
  515. }else{
  516. this.isDepartment = false
  517. }
  518. for (let i = 0; i < this.beautyList.length; i++) {
  519. if (this.beautyList[i].value === this.params.secondClubType) {
  520. break;
  521. }
  522. }
  523. },
  524. ChooseMaleLike(e){
  525. switch(this.params.firstClubType){
  526. case 1:
  527. this.params.mainProduct = this.CheckLikes(e,this.mentuzCampList)
  528. console.log(this.params.mainProduct)
  529. break;
  530. case 2:
  531. this.params.mainProduct = this.CheckLikes(e,this.medicaCampList)
  532. console.log(this.params.mainProduct)
  533. break;
  534. }
  535. },
  536. CheckLikes(e,list){
  537. let values = e.detail.value
  538. let arr = []
  539. list.forEach(item => {
  540. if(values.indexOf(item.value) >= 0){
  541. this.$set(item,'checked',true)
  542. arr.push(item.name)
  543. }else{
  544. this.$set(item,'checked',false)
  545. }
  546. })
  547. return arr.join('/')
  548. },
  549. addCustomItem(){
  550. if(this.customItemValue==''){
  551. this.$util.msg('请输入自定义主营内容',2000);
  552. }else{
  553. if(this.params.firstClubType == 1){
  554. let item = {value:`${this.mentuzCampList.length+1}`,name:this.customItemValue,checked:true}
  555. if(this.CheckedArray(this.customItemValue,this.mentuzCampList)){
  556. this.$util.msg('主营内容已存在!',2000)
  557. }else{
  558. this.mentuzCampList.push(item)
  559. }
  560. }else{
  561. let item = {value:`${this.medicaCampList.length+1}`,name:this.customItemValue,checked:true}
  562. if(this.CheckedArray(this.customItemValue,this.medicaCampList)){
  563. this.$util.msg('主营内容已存在!',2000)
  564. }else{
  565. this.medicaCampList.push(item)
  566. }
  567. }
  568. }
  569. },
  570. CheckedArray(content,arr){//判断主营内容是否已存在
  571. console.log(content,arr)
  572. for(var i in arr){
  573. if(arr[i].name == content){
  574. return true;
  575. }
  576. }
  577. return false;
  578. },
  579. },
  580. onShareAppMessage(res){//分享转发
  581. if (res.from === 'button') { // 来自页面内转发按钮
  582. }
  583. return {
  584. title: '您已注册采美365网,请点击登录',
  585. path: `/pages/login/binding?userId=${this.clubInfo.userId}`,
  586. imageUrl:'https://static.caimei365.com/app/img/icon/icon-addShare@3x.png'
  587. }
  588. },
  589. onShow() {
  590. this.GetClubUserInfo()
  591. }
  592. }
  593. </script>
  594. <style lang="scss">
  595. page{
  596. height: auto;
  597. }
  598. .register{
  599. width: 100%;
  600. position: relative;
  601. box-sizing: border-box;
  602. padding-bottom: 332rpx;
  603. .register-main{
  604. width: 100%;
  605. height: auto;
  606. box-sizing: border-box;
  607. padding: 0 24rpx;
  608. margin-top: 24rpx;
  609. .main-form-item{
  610. width: 100%;
  611. height: 88rpx;
  612. box-sizing: border-box;
  613. padding: 13rpx 0;
  614. border-bottom: 1px solid #e1e1e1;
  615. margin-top: 10rpx;
  616. position: relative;
  617. &.none{
  618. border-bottom: none;
  619. height: auto;
  620. }
  621. &.file{
  622. height: 273rpx;
  623. border-bottom: none;
  624. .main-form-upload{
  625. width: 50%;
  626. height: 100%;
  627. float: left;
  628. .label{
  629. width: 100%;
  630. float: left;
  631. height: 56rpx;
  632. line-height: 56rpx;
  633. font-size: $font-size-28;
  634. text-align: left;
  635. color: #999999;
  636. }
  637. .upload-picture{
  638. width: 100%;
  639. height: 180rpx;
  640. float: left;
  641. margin-top: 17rpx;
  642. .upload-none{
  643. width: 200rpx;
  644. height: 180rpx;
  645. border-radius: 6rpx;
  646. border:1px solid #e1e1e1;
  647. box-sizing: border-box;
  648. padding-top: 64rpx;
  649. .icon-jiahao{
  650. display: inline-block;
  651. width: 100%;
  652. text-align: center;
  653. line-height: 48rpx;
  654. font-size: 40rpx;
  655. color: #b2b2b2;
  656. }
  657. .upload-text{
  658. display: inline-block;
  659. width: 100%;
  660. text-align: center;
  661. line-height: 40rpx;
  662. font-size: $font-size-24;
  663. color: #b2b2b2;
  664. }
  665. }
  666. .upload-image{
  667. width: 200rpx;
  668. height: 180rpx;
  669. border-radius: 6rpx;
  670. border:1px solid #e1e1e1;
  671. box-sizing: border-box;
  672. position: relative;
  673. image{
  674. width: 200rpx;
  675. height: 180rpx;
  676. display: block;
  677. }
  678. .upload-del{
  679. width: 40rpx;
  680. height: 40rpx;
  681. position: absolute;
  682. top: -20rpx;
  683. right: -20rpx;
  684. line-height: 40rpx;
  685. text-align: center;
  686. .iconfont{
  687. font-size: $font-size-32;
  688. color: #999999;
  689. }
  690. }
  691. }
  692. }
  693. }
  694. }
  695. &.picker{
  696. border-bottom: none;
  697. .label-radio{
  698. margin-left: 30rpx;
  699. font-size: $font-size-28;
  700. float: left;
  701. }
  702. .row-radio{
  703. float: left;
  704. transform: scale(0.7);
  705. }
  706. .row-text{
  707. text-align: center;
  708. float: left;
  709. font-size: $font-size-28;
  710. }
  711. .picker-radio{
  712. box-sizing: border-box;
  713. padding-left: 180rpx;
  714. .secondTyperadio{
  715. border: 2rpx solid #e1e1e1;
  716. display: inline-block;
  717. font-size: 26rpx;
  718. color: #999999;
  719. padding: 0 24rpx;
  720. border-radius: 22rpx;
  721. line-height: 42rpx;
  722. margin-right: 56rpx;
  723. float: left;
  724. &.active{
  725. border: 2rpx solid #ffe6dc;
  726. color: $color-system;
  727. }
  728. }
  729. }
  730. }
  731. &.textarea{
  732. height: 142rpx;
  733. .textarea{
  734. width: 100%;
  735. height: 142rpx;
  736. box-sizing: border-box;
  737. font-size: $font-size-28;
  738. color: $text-color;
  739. z-index: 1;
  740. }
  741. .textarea.hide{
  742. opacity: 0;
  743. }
  744. .textarea.show{
  745. color: #999999;
  746. }
  747. }
  748. .textarea-ke{
  749. width: 100%;
  750. height: 160rpx;
  751. border-radius: 6rpx;
  752. border: 1px solid #e1e1e1;
  753. font-size: $font-size-28;
  754. box-sizing: border-box;
  755. padding: 15rpx 20rpx;
  756. }
  757. .form-textarea{
  758. font-size: $font-size-28;
  759. color: #333333;
  760. }
  761. .form-label{
  762. width: 148rpx;
  763. float: left;
  764. height: 100%;
  765. line-height: 56rpx;
  766. font-size: $font-size-28;
  767. text-align: left;
  768. color: #999999;
  769. &.lang{
  770. width: 188rpx;
  771. }
  772. &.none{
  773. width: 100%;
  774. }
  775. }
  776. .form-input{
  777. width: 554rpx;
  778. height: 56rpx;
  779. line-height: 56rpx;
  780. font-size: $font-size-28;
  781. text-align: left;
  782. color: #333333;
  783. float: left;
  784. &.lang{
  785. width: 514rpx;
  786. }
  787. &.phone{
  788. width: 418rpx;
  789. }
  790. }
  791. .form-text{
  792. width: 554rpx;
  793. height: 56rpx;
  794. line-height: 56rpx;
  795. font-size: $font-size-28;
  796. text-align: left;
  797. color: #333333;
  798. float: left;
  799. }
  800. .form-btn{
  801. width: 136rpx;
  802. height: 56rpx;
  803. background: $btn-confirm;
  804. color: #FFFFFF;
  805. font-size: $font-size-28;
  806. text-align: center;
  807. border-radius: 28rpx;
  808. line-height: 56rpx;
  809. float: left;
  810. }
  811. .icon-xiayibu{
  812. width: 80rpx;
  813. height: 80rpx;
  814. position: absolute;
  815. right: 0;
  816. top: 0;
  817. line-height: 80rpx;
  818. text-align: center;
  819. color: #b2b2b2;
  820. }
  821. .form-checkbox-group {
  822. width: 100%;
  823. display: flex;
  824. flex-flow: row wrap;
  825. justify-content: space-between;
  826. align-items: center;
  827. &.btn{
  828. margin: 0 auto;
  829. margin-left: 116rpx;
  830. }
  831. .row-input{
  832. display: flex;
  833. width: 220rpx;
  834. height: 40rpx;
  835. padding: 24rpx;
  836. text-align: left;
  837. border-radius: 10rpx;
  838. font-size: $font-size-28;
  839. color: $text-color;
  840. }
  841. .confirm-btn{
  842. width: 160rpx;
  843. height: 64rpx;
  844. border-radius: 45rpx;
  845. line-height: 64rpx;
  846. text-align: center;
  847. background:#ffe6dc;
  848. color: $color-system;
  849. &.other{
  850. width: 213rpx;
  851. }
  852. }
  853. .item {
  854. height: 60rpx;
  855. font-size:$font-size-28;
  856. line-height: 60rpx;
  857. border-radius:10rpx;
  858. margin-right: 20rpx;
  859. margin-bottom: 10rpx;
  860. box-sizing: border-box;
  861. float: left;
  862. }
  863. .item-text{
  864. display: inline-block;
  865. font-size: 26rpx;
  866. color: #999999;
  867. border-radius: 28rpx;
  868. line-height: 50rpx;
  869. }
  870. .on {
  871. .item-text{
  872. border-color: $color-system;
  873. color:$color-system;
  874. }
  875. }
  876. .form-table-item{
  877. height: 48rpx;
  878. padding: 0 32rpx;
  879. border: 1px solid #b2b2b2;
  880. text-align: center;
  881. font-size: $font-size-28;
  882. color: #333333;
  883. float: left;
  884. line-height: 48rpx;
  885. border-radius: 26rpx;
  886. margin-right: 12rpx;
  887. margin-top: 20rpx;
  888. }
  889. }
  890. .form-checkbox-input{
  891. width: 100%;
  892. height: 64rpx;
  893. margin-top: 20rpx;
  894. .checkbox-input{
  895. width: 518rpx;
  896. height: 64rpx;
  897. box-sizing: border-box;
  898. text-align: left;
  899. font-size: $font-size-26;
  900. color: #333333;
  901. line-height: 64rpx;
  902. float: left;
  903. border: 1px solid #e1e1e1;
  904. border-radius: 32rpx;
  905. padding: 0 20rpx;
  906. }
  907. .checkbox-btn{
  908. width: 160rpx;
  909. height: 64rpx;
  910. border-radius: 32rpx;
  911. background-color: #ffe6dc;
  912. line-height: 64rpx;
  913. text-align: center;
  914. color: #e15616;
  915. font-size: $font-size-28;
  916. float: right;
  917. }
  918. }
  919. }
  920. .register-fiexd{
  921. width: 100%;
  922. height: auto;
  923. padding: 20rpx 0;
  924. position: fixed;
  925. bottom: 0;
  926. left: 0;
  927. z-index: 888;
  928. background: #FFFFFF;
  929. .register-agree{
  930. display: flex;
  931. flex-direction: column;
  932. align-items: center;
  933. margin:0 0 32rpx 0;
  934. .agree-text{
  935. .checkbox{
  936. float: left;
  937. margin: 4rpx 6rpx 0 0;
  938. color: #999999;
  939. font-size: $font-size-32;
  940. &.icon-gouxuan{
  941. color: $color-system;
  942. }
  943. }
  944. font-size: 20rpx;
  945. line-height: 44rpx;
  946. color: #999999;
  947. text{
  948. color:#0091FF;
  949. }
  950. }
  951. }
  952. }
  953. .register-btn{
  954. width: 702rpx;
  955. height: 88rpx;
  956. border-radius: 44rpx;
  957. font-size: $font-size-28;
  958. line-height: 88rpx;
  959. color: #FFFFFF;
  960. margin: 0 auto;
  961. text-align: center;
  962. background: $btn-confirm;
  963. margin-top: 96rpx;
  964. &.none{
  965. background: #FFFFFF;
  966. color: $text-color;
  967. margin-top: 0;
  968. }
  969. &.sub{
  970. margin-top: 0;
  971. }
  972. }
  973. }
  974. }
  975. </style>