register-member.vue 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989
  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 showMainProductList" :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:true,
  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. showMainProductList:[]
  300. }
  301. },
  302. filters: {
  303. FirstFormat:function(type) {//处理金额
  304. let name='';
  305. switch(type){
  306. case 1: name = '医美'; break;
  307. case 2: name = '生美'; break;
  308. }
  309. return name;
  310. },
  311. TwoFormat:function(type) {//处理金额
  312. let text='';
  313. switch(type){
  314. case 1: text = '诊所'; break;
  315. case 2: text = '门诊'; break;
  316. case 3: text = '医院'; break;
  317. }
  318. return text;
  319. },
  320. },
  321. onLoad(option) {
  322. this.$api.getStorage().then((resolve) =>{
  323. this.params.userId = resolve.userId ? resolve.userId : 0
  324. })
  325. },
  326. computed: {
  327. },
  328. methods:{
  329. CheckMobile(){//检测手机是否能注册
  330. if( this.params.bindMobile == ''){
  331. this.$util.msg('请输入手机号',2000);
  332. return
  333. }
  334. if(!this.$reg.isMobile(this.params.bindMobile)){
  335. this.$util.msg('请输入正确的手机号',2000);
  336. return
  337. }
  338. this.SellerService.SellerClubCheck({bindMobile:this.params.bindMobile})
  339. .then(response =>{
  340. this.$util.msg(response.data,2000);
  341. })
  342. .catch(error =>{
  343. this.$util.msg(error.msg,2000);
  344. })
  345. },
  346. SubmitRegister(){//提交注册
  347. if( this.params.linkMan == ''){
  348. this.$util.msg('请输入联系人姓名',2000);
  349. return
  350. }
  351. if( this.params.bindMobile == ''){
  352. this.$util.msg('请输入联系人手机号',2000);
  353. return
  354. }
  355. if(!this.$reg.isMobile(this.params.bindMobile)){
  356. this.$util.msg('手机格式不正确',2000);
  357. return
  358. }
  359. if( this.params.contractEmail == ''){
  360. this.$util.msg('请输入邮箱地址',2000);
  361. return
  362. }
  363. if(!this.$reg.isEmail(this.params.contractEmail)){
  364. this.$util.msg('请输入正确的邮箱地址',2000);
  365. return
  366. }
  367. if( this.params.name == ''){
  368. this.$util.msg('请输入机构名称',2000);
  369. return
  370. }
  371. if( this.params.townId == ''){
  372. this.$util.msg('请选择机构地址',2000);
  373. return
  374. }
  375. if( this.params.addressDetail == ''){
  376. this.$util.msg('请填写机构详细地址',2000);
  377. return
  378. }
  379. if( this.params.businessLicense == ''){
  380. this.$util.msg('请上传您的营业执照',2000);
  381. return
  382. }
  383. if(this.params.firstClubType!=0){
  384. console.log(this.params.mainProduct)
  385. if(this.params.mainProduct == ''){
  386. this.$util.msg('请选择住机构主营内容',2000);
  387. return
  388. }
  389. }
  390. if(this.params.isAgreed == 0){
  391. this.$util.msg('请勾选同意协议',2000);
  392. return
  393. }
  394. this.SellerService.SellerClubRegister(this.params).then(response =>{
  395. this.$util.msg('提交成功',2000);
  396. this.clubInfo.userId = response.data
  397. setTimeout(()=>{
  398. this.isRegisterStep = false
  399. this.GetClubUserInfo(this.clubInfo.userId)
  400. },2000)
  401. }).catch(error =>{
  402. this.$util.msg(error.msg,2000);
  403. })
  404. },
  405. GetClubUserInfo(userId){
  406. this.UserService.OrganizationUpdateModifyInfo({userId:userId})
  407. .then(response =>{
  408. this.clubInfo = response.data.club
  409. this.showMainProductList = this.setNewMainpro(this.clubInfo.mainProduct)
  410. })
  411. .catch(error =>{
  412. this.$util.msg(error.msg,2000)
  413. })
  414. },
  415. ShareRegister(res){
  416. if (res.from === 'button') { // 来自页面内转发按钮
  417. }
  418. return {
  419. title: '您已注册采美365网,请点击登录',
  420. path: `/pages/login/binding?userId=${this.clubInfo.userId}`,
  421. imageUrl:'https://static.caimei365.com/app/img/icon/icon-addShare@3x.png'
  422. }
  423. },
  424. agreeCheck() {//勾选协议
  425. this.isCheck = !this.isCheck
  426. if(this.isCheck){
  427. this.params.isAgreed = 1
  428. }else{
  429. this.params.isAgreed = 0
  430. }
  431. },
  432. showMulLinkageThreePicker() {//三级地址联动
  433. this.isShowInput = true
  434. this.$refs.CityPicker.show()
  435. },
  436. showTextareaFocus(){//文本框获取焦点
  437. this.isShowInput = false
  438. this.textareaFocus = true
  439. },
  440. hideTextareaFocus(){//文本框失去焦点
  441. this.isShowInput = true
  442. this.textareaFocus = false
  443. },
  444. onTextareaInput(e){//地址详细信息
  445. this.params.addressDetail = e.detail.value;
  446. },
  447. onConfirm(e) {//获取选择的地址信息
  448. console.log('地址',e);
  449. this.params.address = e.name;
  450. this.params.townId = e.townCode;
  451. this.params.cityId = e.cityCode;
  452. this.params.provinceId = e.provinceCode;
  453. },
  454. UploadPicture(NUM) {//图片上传
  455. uploadFileImage().then(res =>{
  456. switch(NUM){
  457. case 1:
  458. this.params.businessLicense = JSON.parse(res.data).data
  459. break;
  460. case 2:
  461. this.params.shopPhoto = JSON.parse(res.data).data
  462. break;
  463. case 3:
  464. this.params.medicalPracticeLicense = JSON.parse(res.data).data
  465. break;
  466. }
  467. })
  468. },
  469. DeletePicture(NUM){//删除照片
  470. switch(NUM){
  471. case 1:
  472. this.$util.modal('','确定删除营业执照图片吗?','确定','取消',true,() =>{
  473. this.params.businessLicense = ''
  474. })
  475. break;
  476. case 2:
  477. this.$util.modal('','确定删除门头照图片吗?','确定','取消',true,() =>{
  478. this.params.shopPhoto = ''
  479. })
  480. break;
  481. case 3:
  482. this.$util.modal('','确定删除资质图片吗?','确定','取消',true,() =>{
  483. this.params.medicalPracticeLicense = ''
  484. })
  485. break;
  486. }
  487. },
  488. ShowPreviewImage(NUM) {//预览照片
  489. switch(NUM){
  490. case 1:
  491. this.myPreviewImageFn(this.businessLicense)
  492. break;
  493. case 2:
  494. this.myPreviewImageFn(this.shopPhoto)
  495. break;
  496. case 3:
  497. this.myPreviewImageFn(this.medicalPracticeLicense)
  498. break;
  499. }
  500. },
  501. myPreviewImageFn(url){//预览证件照
  502. this.isPreviewImage = true
  503. let mentuzArray = []
  504. mentuzArray.push(url)
  505. uni.previewImage({
  506. urls: mentuzArray,
  507. current: 0
  508. });
  509. },
  510. setNewMainpro(arr){//回显处理主营内容
  511. let _ARRAY = []
  512. arr.split('/').forEach((item,index) =>{
  513. let _OBJ = {value:(index+1).toString(),name:item,checked:true}
  514. _ARRAY.push(_OBJ)
  515. })
  516. return _ARRAY
  517. },
  518. bindPickerChange(e) {//选择机构类型
  519. this.params.firstClubType = Number(e.target.value);
  520. },
  521. radioChange(item) {//选择
  522. this.params.secondClubType = item.value;
  523. if( this.params.secondClubType == 2 || this.params.secondClubType == 3){
  524. this.isDepartment = true
  525. }else{
  526. this.isDepartment = false
  527. }
  528. for (let i = 0; i < this.beautyList.length; i++) {
  529. if (this.beautyList[i].value === this.params.secondClubType) {
  530. break;
  531. }
  532. }
  533. },
  534. ChooseMaleLike(e){
  535. switch(this.params.firstClubType){
  536. case 1:
  537. this.params.mainProduct = this.CheckLikes(e,this.mentuzCampList)
  538. console.log(this.params.mainProduct)
  539. break;
  540. case 2:
  541. this.params.mainProduct = this.CheckLikes(e,this.medicaCampList)
  542. console.log(this.params.mainProduct)
  543. break;
  544. }
  545. },
  546. CheckLikes(e,list){
  547. let values = e.detail.value
  548. let arr = []
  549. list.forEach(item => {
  550. if(values.indexOf(item.value) >= 0){
  551. this.$set(item,'checked',true)
  552. arr.push(item.name)
  553. }else{
  554. this.$set(item,'checked',false)
  555. }
  556. })
  557. return arr.join('/')
  558. },
  559. addCustomItem(){
  560. if(this.customItemValue==''){
  561. this.$util.msg('请输入自定义主营内容',2000);
  562. }else{
  563. if(this.params.firstClubType == 1){
  564. let item = {value:`${this.mentuzCampList.length+1}`,name:this.customItemValue,checked:true}
  565. if(this.CheckedArray(this.customItemValue,this.mentuzCampList)){
  566. this.$util.msg('主营内容已存在!',2000)
  567. }else{
  568. this.mentuzCampList.push(item)
  569. }
  570. }else{
  571. let item = {value:`${this.medicaCampList.length+1}`,name:this.customItemValue,checked:true}
  572. if(this.CheckedArray(this.customItemValue,this.medicaCampList)){
  573. this.$util.msg('主营内容已存在!',2000)
  574. }else{
  575. this.medicaCampList.push(item)
  576. }
  577. }
  578. }
  579. },
  580. CheckedArray(content,arr){//判断主营内容是否已存在
  581. console.log(content,arr)
  582. for(var i in arr){
  583. if(arr[i].name == content){
  584. return true;
  585. }
  586. }
  587. return false;
  588. },
  589. },
  590. onShareAppMessage(res){//分享转发
  591. if (res.from === 'button') { // 来自页面内转发按钮
  592. }
  593. return {
  594. title: '您已注册采美365网,请点击登录',
  595. path: `/pages/login/binding?userId=${this.clubInfo.userId}`,
  596. imageUrl:'https://static.caimei365.com/app/img/icon/icon-addShare@3x.png'
  597. }
  598. },
  599. onShow() {
  600. }
  601. }
  602. </script>
  603. <style lang="scss">
  604. page{
  605. height: auto;
  606. }
  607. .register{
  608. width: 100%;
  609. position: relative;
  610. box-sizing: border-box;
  611. padding-bottom: 332rpx;
  612. .register-main{
  613. width: 100%;
  614. height: auto;
  615. box-sizing: border-box;
  616. padding: 0 24rpx;
  617. margin-top: 24rpx;
  618. .main-form-item{
  619. width: 100%;
  620. height: 88rpx;
  621. box-sizing: border-box;
  622. padding: 13rpx 0;
  623. border-bottom: 1px solid #e1e1e1;
  624. margin-top: 10rpx;
  625. position: relative;
  626. &.none{
  627. border-bottom: none;
  628. height: auto;
  629. }
  630. &.file{
  631. height: 273rpx;
  632. border-bottom: none;
  633. .main-form-upload{
  634. width: 50%;
  635. height: 100%;
  636. float: left;
  637. .label{
  638. width: 100%;
  639. float: left;
  640. height: 56rpx;
  641. line-height: 56rpx;
  642. font-size: $font-size-28;
  643. text-align: left;
  644. color: #999999;
  645. }
  646. .upload-picture{
  647. width: 100%;
  648. height: 180rpx;
  649. float: left;
  650. margin-top: 17rpx;
  651. .upload-none{
  652. width: 200rpx;
  653. height: 180rpx;
  654. border-radius: 6rpx;
  655. border:1px solid #e1e1e1;
  656. box-sizing: border-box;
  657. padding-top: 64rpx;
  658. .icon-jiahao{
  659. display: inline-block;
  660. width: 100%;
  661. text-align: center;
  662. line-height: 48rpx;
  663. font-size: 40rpx;
  664. color: #b2b2b2;
  665. }
  666. .upload-text{
  667. display: inline-block;
  668. width: 100%;
  669. text-align: center;
  670. line-height: 40rpx;
  671. font-size: $font-size-24;
  672. color: #b2b2b2;
  673. }
  674. }
  675. .upload-image{
  676. width: 200rpx;
  677. height: 180rpx;
  678. border-radius: 6rpx;
  679. border:1px solid #e1e1e1;
  680. box-sizing: border-box;
  681. position: relative;
  682. image{
  683. width: 200rpx;
  684. height: 180rpx;
  685. display: block;
  686. }
  687. .upload-del{
  688. width: 40rpx;
  689. height: 40rpx;
  690. position: absolute;
  691. top: -20rpx;
  692. right: -20rpx;
  693. line-height: 40rpx;
  694. text-align: center;
  695. .iconfont{
  696. font-size: $font-size-32;
  697. color: #999999;
  698. }
  699. }
  700. }
  701. }
  702. }
  703. }
  704. &.picker{
  705. border-bottom: none;
  706. .label-radio{
  707. margin-left: 30rpx;
  708. font-size: $font-size-28;
  709. float: left;
  710. }
  711. .row-radio{
  712. float: left;
  713. transform: scale(0.7);
  714. }
  715. .row-text{
  716. text-align: center;
  717. float: left;
  718. font-size: $font-size-28;
  719. }
  720. .picker-radio{
  721. box-sizing: border-box;
  722. padding-left: 180rpx;
  723. .secondTyperadio{
  724. border: 2rpx solid #e1e1e1;
  725. display: inline-block;
  726. font-size: 26rpx;
  727. color: #999999;
  728. padding: 0 24rpx;
  729. border-radius: 22rpx;
  730. line-height: 42rpx;
  731. margin-right: 56rpx;
  732. float: left;
  733. &.active{
  734. border: 2rpx solid #ffe6dc;
  735. color: $color-system;
  736. }
  737. }
  738. }
  739. }
  740. &.textarea{
  741. height: 142rpx;
  742. .textarea{
  743. width: 100%;
  744. height: 142rpx;
  745. box-sizing: border-box;
  746. font-size: $font-size-28;
  747. color: $text-color;
  748. z-index: 1;
  749. }
  750. .textarea.hide{
  751. opacity: 0;
  752. }
  753. .textarea.show{
  754. color: #999999;
  755. }
  756. }
  757. .textarea-ke{
  758. width: 100%;
  759. height: 160rpx;
  760. border-radius: 6rpx;
  761. border: 1px solid #e1e1e1;
  762. font-size: $font-size-28;
  763. box-sizing: border-box;
  764. padding: 15rpx 20rpx;
  765. }
  766. .form-textarea{
  767. font-size: $font-size-28;
  768. color: #333333;
  769. }
  770. .form-label{
  771. width: 148rpx;
  772. float: left;
  773. height: 100%;
  774. line-height: 56rpx;
  775. font-size: $font-size-28;
  776. text-align: left;
  777. color: #999999;
  778. &.lang{
  779. width: 188rpx;
  780. }
  781. &.none{
  782. width: 100%;
  783. }
  784. }
  785. .form-input{
  786. width: 554rpx;
  787. height: 56rpx;
  788. line-height: 56rpx;
  789. font-size: $font-size-28;
  790. text-align: left;
  791. color: #333333;
  792. float: left;
  793. &.lang{
  794. width: 514rpx;
  795. }
  796. &.phone{
  797. width: 418rpx;
  798. }
  799. }
  800. .form-text{
  801. width: 554rpx;
  802. height: 56rpx;
  803. line-height: 56rpx;
  804. font-size: $font-size-28;
  805. text-align: left;
  806. color: #333333;
  807. float: left;
  808. }
  809. .form-btn{
  810. width: 136rpx;
  811. height: 56rpx;
  812. background: $btn-confirm;
  813. color: #FFFFFF;
  814. font-size: $font-size-28;
  815. text-align: center;
  816. border-radius: 28rpx;
  817. line-height: 56rpx;
  818. float: left;
  819. }
  820. .icon-xiayibu{
  821. width: 80rpx;
  822. height: 80rpx;
  823. position: absolute;
  824. right: 0;
  825. top: 0;
  826. line-height: 80rpx;
  827. text-align: center;
  828. color: #b2b2b2;
  829. }
  830. .form-checkbox-group {
  831. width: 100%;
  832. display: flex;
  833. flex-flow: row wrap;
  834. justify-content: space-between;
  835. align-items: center;
  836. &.btn{
  837. margin: 0 auto;
  838. margin-left: 116rpx;
  839. }
  840. .row-input{
  841. display: flex;
  842. width: 220rpx;
  843. height: 40rpx;
  844. padding: 24rpx;
  845. text-align: left;
  846. border-radius: 10rpx;
  847. font-size: $font-size-28;
  848. color: $text-color;
  849. }
  850. .confirm-btn{
  851. width: 160rpx;
  852. height: 64rpx;
  853. border-radius: 45rpx;
  854. line-height: 64rpx;
  855. text-align: center;
  856. background:#ffe6dc;
  857. color: $color-system;
  858. &.other{
  859. width: 213rpx;
  860. }
  861. }
  862. .item {
  863. height: 60rpx;
  864. font-size:$font-size-28;
  865. line-height: 60rpx;
  866. border-radius:10rpx;
  867. margin-right: 20rpx;
  868. margin-bottom: 10rpx;
  869. box-sizing: border-box;
  870. float: left;
  871. }
  872. .item-text{
  873. display: inline-block;
  874. font-size: 26rpx;
  875. color: #999999;
  876. border-radius: 28rpx;
  877. line-height: 50rpx;
  878. }
  879. .on {
  880. .item-text{
  881. border-color: $color-system;
  882. color:$color-system;
  883. }
  884. }
  885. .form-table-item{
  886. height: 48rpx;
  887. padding: 0 32rpx;
  888. border: 1px solid #b2b2b2;
  889. text-align: center;
  890. font-size: $font-size-28;
  891. color: #333333;
  892. float: left;
  893. line-height: 48rpx;
  894. border-radius: 26rpx;
  895. margin-right: 12rpx;
  896. margin-top: 20rpx;
  897. }
  898. }
  899. .form-checkbox-input{
  900. width: 100%;
  901. height: 64rpx;
  902. margin-top: 20rpx;
  903. .checkbox-input{
  904. width: 518rpx;
  905. height: 64rpx;
  906. box-sizing: border-box;
  907. text-align: left;
  908. font-size: $font-size-26;
  909. color: #333333;
  910. line-height: 64rpx;
  911. float: left;
  912. border: 1px solid #e1e1e1;
  913. border-radius: 32rpx;
  914. padding: 0 20rpx;
  915. }
  916. .checkbox-btn{
  917. width: 160rpx;
  918. height: 64rpx;
  919. border-radius: 32rpx;
  920. background-color: #ffe6dc;
  921. line-height: 64rpx;
  922. text-align: center;
  923. color: #e15616;
  924. font-size: $font-size-28;
  925. float: right;
  926. }
  927. }
  928. }
  929. .register-fiexd{
  930. width: 100%;
  931. height: auto;
  932. padding: 20rpx 0;
  933. position: fixed;
  934. bottom: 0;
  935. left: 0;
  936. z-index: 888;
  937. background: #FFFFFF;
  938. .register-agree{
  939. display: flex;
  940. flex-direction: column;
  941. align-items: center;
  942. margin:0 0 32rpx 0;
  943. .agree-text{
  944. .checkbox{
  945. float: left;
  946. margin: 4rpx 6rpx 0 0;
  947. color: #999999;
  948. font-size: $font-size-32;
  949. &.icon-gouxuan{
  950. color: $color-system;
  951. }
  952. }
  953. font-size: 20rpx;
  954. line-height: 44rpx;
  955. color: #999999;
  956. text{
  957. color:#0091FF;
  958. }
  959. }
  960. }
  961. }
  962. .register-btn{
  963. width: 702rpx;
  964. height: 88rpx;
  965. border-radius: 44rpx;
  966. font-size: $font-size-28;
  967. line-height: 88rpx;
  968. color: #FFFFFF;
  969. margin: 0 auto;
  970. text-align: center;
  971. background: $btn-confirm;
  972. margin-top: 96rpx;
  973. &.none{
  974. background: #FFFFFF;
  975. color: $text-color;
  976. margin-top: 0;
  977. }
  978. &.sub{
  979. margin-top: 0;
  980. }
  981. }
  982. }
  983. }
  984. </style>