apply.vue 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044
  1. <template>
  2. <view class="container register">
  3. <view class="register-error clearfix">
  4. <view class="error-top animation" @click="showOpenError" :class="{'error-top--none': isOpenError}" >
  5. <view class="name">审核未通过原因:</view>
  6. <view class="icon">{{isOpenError ? '' : '查看详情'}}<text class="iconfont icon-xiangxiajiantou" :class="{'icon-xiangxiajiantou-active':isOpenError}"></text></view>
  7. </view>
  8. <view class="error-main animation" :class="{'error-main--hide':!isOpenError}"
  9. :style="{'transform':isOpenError?'translateY(0)':'translateY(-50%)','-webkit-transform':isOpenError?'translateY(0)':'translateY(-50%)'}">
  10. <view class="error-main-list">
  11. <view class="item" v-for="(item, index) in errorList" :key="index">
  12. <text class="num">{{index+1}}.</text>
  13. <text>{{item.text}}</text>
  14. </view>
  15. </view>
  16. </view>
  17. </view>
  18. <view class="register-main first clearfix">
  19. <view class="register-row">
  20. <view class="register-title">基本信息</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" v-model="clubName" placeholder="请输入您的机构名称" maxlength="30"/>
  26. </view>
  27. </view>
  28. <view class="register-row clearfix">
  29. <view class="register-from">
  30. <view class="label">联系人:</view>
  31. <input class="row-input" type="text" v-model="clubContact" placeholder="请输入联系姓名" maxlength="6"/>
  32. </view>
  33. </view>
  34. <view class="register-row clearfix">
  35. <view class="register-from">
  36. <view class="label">手机号:</view>
  37. <input class="row-input" type="number" v-model="registerEmail" placeholder="请输入手机号" maxlength="11"/>
  38. <view class="row-btn" @click="showCheckPhone">{{isShowCheckPhone?'取消修改':'修改手机号'}}</view>
  39. </view>
  40. </view>
  41. <view class="register-row clearfix" v-show="isShowCheckPhone">
  42. <view class="register-from code">
  43. <input class="row-input" type="text" v-model="regEmailCode" placeholder="请输入上述手机号的验证码" maxlength="6"/>
  44. </view>
  45. <view class="register-from btn" :class="[isDisabled === true ? 'disabled' : 'none']">
  46. <button class="row-input" type="button" @click.stop="getEmailCode" :disabled="isDisabled">获取验证码</button>
  47. </view>
  48. </view>
  49. <view class="register-row clearfix" v-show="isShowCheckPhone">
  50. <view class="register-from">
  51. <input class="row-input" type="number" v-model="registerEmail" placeholder="请输入新手机号" maxlength="11"/>
  52. </view>
  53. </view>
  54. <view class="register-row clearfix" v-show="isShowCheckPhone">
  55. <view class="register-from code">
  56. <input class="row-input" type="text" v-model="regEmailCode" placeholder="请输入新手机号的验证码" maxlength="6"/>
  57. </view>
  58. <view class="register-from btn" :class="[isDisabled === true ? 'disabled' : 'none']">
  59. <button class="row-input" type="button" @click.stop="getEmailCode" :disabled="isDisabled">获取验证码</button>
  60. </view>
  61. </view>
  62. </view>
  63. <view class="register-main clearfix" >
  64. <view class="register-row">
  65. <view class="register-title">详细信息<text class="txt">(请尽量填写,有利于快速审核通过)</text></view>
  66. </view>
  67. </view>
  68. <view class="register-main detailed clearfix">
  69. <view class="register-row clearfix">
  70. <view class="register-from">
  71. <view class="label">机构简称:</view>
  72. <input class="row-input" type="text" v-model="clubContact" placeholder="请输入您的机构简称" maxlength="16"/>
  73. </view>
  74. </view>
  75. <view class="register-row clearfix">
  76. <view class="register-from" @click="showMulLinkageThreePicker">
  77. <view class="label">机构地址:</view>
  78. <text class="row-input" :class="addressData.address === '请选择机构所在地区' ? 'none' : ''">
  79. {{addressData.address}}
  80. </text>
  81. <text class="iconfont icon-xiayibu"></text>
  82. </view>
  83. </view>
  84. <view class="register-row text-textarea clearfix">
  85. <view class="textarea show" v-if="isShowInput">{{addressData.addressDetail ? addressData.addressDetail :'详细地址:如道路、门牌号、小区等'}}</view>
  86. <textarea v-else
  87. class="textarea"
  88. type="text"
  89. v-model="addressData.addressDetail"
  90. placeholder="详细地址:如道路、门牌号、小区等"
  91. placeholder-class="placeholder"
  92. maxlength="50"
  93. @input="onTextareaInput"
  94. :class="isShowInput ? '':''"
  95. />
  96. </view>
  97. <view class="register-row clearfix">
  98. <view class="register-from">
  99. <view class="label">营业执照编号:</view>
  100. <input class="row-input" type="text" v-model="clubContact" placeholder="请填写社会统一信用代码" maxlength="16"/>
  101. </view>
  102. </view>
  103. <view class="register-row clearfix">
  104. <view class="register-picture">
  105. <view class="label">营业执照:</view>
  106. <view class="upload-picture">
  107. <view class="upload-none" v-if="uploadBusinessImage === ''" @click="chooseBusinessImage"><text class="iconfont icon-jiahao"></text></view>
  108. <view class="upload-image" v-else>
  109. <image :src="uploadBusinessImage" mode="" @click="viewBusinessImage"></image>
  110. <view class="upload-del" @click="delBusinessImage">
  111. <text class='iconfont icon-shanchu1'></text>
  112. </view>
  113. </view>
  114. </view>
  115. </view>
  116. </view>
  117. <view class="register-row clearfix">
  118. <view class="register-picture">
  119. <view class="label">门头照:</view>
  120. <view class="upload-picture">
  121. <view class="upload-none" v-if="uploadMentuzImage === ''" @click="chooseMentuzImage"><text class="iconfont icon-jiahao"></text></view>
  122. <view class="upload-image" v-else>
  123. <image :src="uploadMentuzImage" mode="" @click="viewMentuzImage"></image>
  124. <view class="upload-del" @click="delMentuzImage">
  125. <text class='iconfont icon-shanchu1'></text>
  126. </view>
  127. </view>
  128. </view>
  129. </view>
  130. </view>
  131. <view class="register-row clearfix">
  132. <view class="register-from picker">
  133. <view class="label">机构类型:</view>
  134. <picker @change="bindPickerChange" :value="index" :range="organizationTypeList" range-key="name">
  135. <view class="row-input" :class="[isOrganizationType == 0 ? 'none' : '']">{{organizationTypeList[typtIndex].name}}</view>
  136. </picker>
  137. <text class="iconfont icon-xiayibu"></text>
  138. </view>
  139. </view>
  140. <view class="register-row clearfix" v-if="isOrganizationType == 1">
  141. <view class="register-from radio">
  142. <radio-group @change="radioChange">
  143. <label class="row-input" v-for="(item, index) in beautyList" :key="item.value">
  144. <radio class="row-radio" :value="item.value" :checked="index === current" color="#E15616"/>
  145. <view class="row-text">{{item.name}}</view>
  146. </label>
  147. </radio-group>
  148. </view>
  149. </view>
  150. <view class="register-row clearfix" v-show="isDepartment">
  151. <view class="register-from">
  152. <view class="label">科室:</view>
  153. <input class="row-input keshi" type="text" v-model="clubContact" placeholder="请填写经营的科室,至少三个,用逗号隔开" maxlength="16"/>
  154. </view>
  155. </view>
  156. <view class="register-row clearfix" v-if="isOrganizationType == 1">
  157. <view class="register-picture">
  158. <view class="label zz">医疗执业许可证:</view>
  159. <view class="upload-picture">
  160. <view class="upload-none" v-if="uploadMedicalImage === ''" @click="chooseMedicalImage"><text class="iconfont icon-jiahao"></text></view>
  161. <view class="upload-image" v-else>
  162. <image :src="uploadMedicalImage" mode="" @click="viewMedicalImage"></image>
  163. <view class="upload-del" @click="delMedicalImage">
  164. <text class='iconfont icon-shanchu1'></text>
  165. </view>
  166. </view>
  167. </view>
  168. </view>
  169. </view>
  170. <view class="register-row clearfix" v-if="isOrganizationType == 1">
  171. <view class="register-from group">
  172. <view class="label">主营内容:</view>
  173. <checkbox-group class="content-class" @change="chooseMaleLike" >
  174. <label class="item" v-for="(item, index) in mentuzCampList" :key="index" :class="{on: item.checked}">
  175. <checkbox :value="item.value"></checkbox>
  176. <text class="item-text">{{item.name}}</text>
  177. </label>
  178. </checkbox-group>
  179. </view>
  180. <view class="register-from group btn">
  181. <view class="content-class btn">
  182. <view class="item" @click="showAustomItem">
  183. <text class="item-text">其他</text>
  184. </view>
  185. </view>
  186. </view>
  187. <view class="register-from group btn" v-show="isShowAustomItem">
  188. <view class="content-class btn">
  189. <input class="row-input" type="text" v-model="customItemValue" placeholder="请输入自定义项目" @blur="onBlurInput" maxlength="5"/>
  190. <button type="default"
  191. class="confirm-btn"
  192. :class="[isDisabled === true ? 'disabled' : 'none']"
  193. :disabled="isDisabled"
  194. @click.stop="addCustomItem"
  195. >确认添加</button>
  196. </view>
  197. </view>
  198. </view>
  199. <view class="register-row clearfix" v-if="isOrganizationType == 2">
  200. <view class="register-from group">
  201. <view class="label">主营内容:</view>
  202. <checkbox-group class="content-class" @change="chooseMaleLikes">
  203. <label class="item" v-for="(item, index) in medicaCampList" :key="index" :class="{on: item.checked}">
  204. <checkbox :value="item.value"></checkbox>
  205. <text class="item-text">{{item.name}}</text>
  206. </label>
  207. </checkbox-group>
  208. </view>
  209. <view class="register-from group btn">
  210. <view class="content-class btn">
  211. <view class="item" @click="showAustomItem">
  212. <text class="item-text">其他</text>
  213. </view>
  214. </view>
  215. </view>
  216. <view class="register-from group btn" v-show="isShowAustomItem">
  217. <view class="content-class btn">
  218. <input class="row-input" type="text" v-model="customItemValue" placeholder="请输入自定义项目" @blur="onBlurInput" maxlength="5"/>
  219. <button type="default"
  220. class="confirm-btn"
  221. :class="[isDisabled === true ? 'disabled' : 'none']"
  222. :disabled="isDisabled"
  223. @click.stop="addCustomItem"
  224. >确认添加</button>
  225. </view>
  226. </view>
  227. </view>
  228. <view class="register-fiexd clearfix">
  229. <view class="register-agree">
  230. <view class="agree-text" @tap.stop="agreeCheck()">
  231. <button class="checkbox iconfont" :class="[isCheck?'icon-gouxuan':'icon-weigouxuan']"></button>
  232. 我已阅读并同意<text>《机构协议》</text><text>《用户协议》</text>及<text>《隐私权政策》</text>
  233. </view>
  234. </view>
  235. <view class="register-row ">
  236. <view class="register-btn sub">提交审核</view>
  237. </view>
  238. </view>
  239. <mpvue-city-picker :themeColor="themeColor"
  240. ref="mpvueCityPicker"
  241. :pickerValueDefault="cityPickerValueDefault"
  242. @onCancel="onCancel"
  243. @onConfirm="onConfirm">
  244. </mpvue-city-picker>
  245. </view>
  246. </view>
  247. </template>
  248. <script>
  249. import { mapMutations } from 'vuex';
  250. import mpvueCityPicker from '@/components/mpvue-citypicker/mpvueCityPicker.vue'
  251. import uniTag from '@/components/uni-tag/uni-tag.vue';
  252. import authorize from '@/common/config/authorize.js'
  253. import configUrl from '@/common/config/config.js'
  254. var self;
  255. export default{
  256. components:{
  257. uniTag,
  258. mpvueCityPicker
  259. },
  260. data() {
  261. return{
  262. isOpenError:false,
  263. errorList:[
  264. {text:'图片模糊'},
  265. {text:'营业执照错误'},
  266. {text:'手机号码错误图片模糊图片模糊图片模糊图片模糊图片模糊图片模糊图片模糊图片模糊图片模糊图片模糊图片模糊'}
  267. ],
  268. isDisabled:false,
  269. isShowInput:false,
  270. isCheck:true, //勾选协议
  271. uploadBusinessImage:'',
  272. uploadMentuzImage:'https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1431188283,1203112303&fm=26&gp=0.jpg',
  273. uploadMedicalImage:'https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1431188283,1203112303&fm=26&gp=0.jpg',
  274. isOrganizationType:0,
  275. organizationTypeList:[
  276. {name:'请选择机构类型',value:0},
  277. {name:'医美',value:1},
  278. {name:'生美',value:2}
  279. ],
  280. beautyList:[{value:'1',name:'诊所'},{value:'2',name:'门诊'},{value:'3',name:'医院'}],
  281. mentuzCampList:[{value:'1',name:'整形'},{value:'2',name:'轻医美'},{value:'3',name:'皮肤科'}],
  282. medicaCampList:[
  283. {value:'1',name:'美容'},
  284. {value:'2',name:'美体'},
  285. {value:'3',name:'美发'},
  286. {value:'4',name:'皮肤管理'},
  287. {value:'5',name:'光电'},
  288. {value:'6',name:'综合类'},
  289. {value:'7',name:'中医养生'},
  290. {value:'8',name:'spa'}
  291. ],
  292. typtIndex:0,
  293. organizationType:0,
  294. current:0,
  295. isShowCheckPhone:false,
  296. isDepartment:false, //是否显示科室
  297. isShowAustomItem:false, //是否显示其他添加
  298. customItemValue:'', //自定义项目
  299. invitationCode:'', //获取用户登录的邀请码
  300. isToast:false, //控制显示未输入邀请码提示
  301. isUserInfo:false, //控制显示授权弹窗
  302. nickName:'', //存储用户名
  303. userInfo:'', //存储微信用户授权信息
  304. isSuccess:false,
  305. toestText:'',
  306. telPhone:'',
  307. registerType:'', //跳转类型
  308. alertText:'',
  309. listType: '',
  310. listVal: '',
  311. detilType:'',
  312. id:'',//商品ID
  313. addressData:{
  314. addressID:'',
  315. address:'请选择机构所在地区',
  316. userID: '', //用户id ,只在新增收货地址时传
  317. shouHuoRen: '', //收货人
  318. mobile:'', //收货人手机
  319. townID:'', //区ID
  320. addressDetail: '', //地址
  321. defaultFlag:0, //是否默认收货地址(0 不是默认,1 默认)
  322. },
  323. }
  324. },
  325. onLoad(option) {
  326. console.log(option)
  327. self = this;
  328. self.registerType = option.type;
  329. self.id = option.id
  330. if(option.listType) {
  331. self.listType = option.listType;
  332. self.listVal = option.listVal;
  333. }
  334. },
  335. methods:{
  336. ...mapMutations(['register']),
  337. goregister() {
  338. self.$api.get('/register/isEnabled',{userOrganizeID:self.userOrganizeID,invitationCode:self.invitationCode}, res => {
  339. if (res.code == "1") {
  340. //查看此微信用户是否已经授权过
  341. authorize.getSetting().then(res =>{
  342. // console.log('是否已授权',res);//0:为取消授权 1:为已授权 2:为未操作
  343. if(res == 2){
  344. self.isUserInfo = true
  345. }else{
  346. self.isUserInfo = false
  347. self.wxGetUserInfo()
  348. }
  349. })
  350. }else if(res.code =='0'){
  351. self.toestText ='请输入邀请码';
  352. self.alertText ='邀请码';
  353. self.telPhone = res.msg;
  354. self.isToast = true;
  355. }else if(res.code =='-2'){
  356. self.toestText ='邀请码已失效';
  357. self.alertText ='新邀请码';
  358. self.telPhone = res.msg;
  359. self.isToast = true;
  360. }else if(res.code =='-3'){
  361. self.toestText ='邀请码已被使用';
  362. self.alertText ='新邀请码';
  363. self.telPhone = res.msg;
  364. self.isToast = true;
  365. }else{
  366. uni.showToast({icon:'none', title: res.msg, duration: 3000});
  367. self.isUserInfo = false
  368. }
  369. })
  370. },
  371. showOpenError(){
  372. this.isOpenError = !this.isOpenError
  373. },
  374. // 三级联动选择
  375. showMulLinkageThreePicker() {
  376. this.isShowInput = true
  377. this.$refs.mpvueCityPicker.show()
  378. },
  379. onConfirm(e) {
  380. // console.log('地址',e);
  381. this.addressData.address = e.name;
  382. this.addressData.townID = e.cityCode;
  383. },
  384. bindPickerChange(e) {
  385. console.log('picker发送选择改变,携带值为:' + e.target.value)
  386. this.current=0
  387. this.isDepartment = false
  388. this.typtIndex = e.target.value
  389. this.isOrganizationType = e.target.value
  390. },
  391. radioChange(e) {
  392. let _value = e.target.value
  393. if( _value == '2' || _value == '3'){
  394. this.isDepartment = true
  395. }else{
  396. this.isDepartment = false
  397. }
  398. for (let i = 0; i < this.beautyList.length; i++) {
  399. if (this.beautyList[i].value === _value) {
  400. this.current = i;
  401. break;
  402. }
  403. }
  404. },
  405. chooseMaleLike(e){
  406. let items = this.mentuzCampList
  407. let values = e.detail.value
  408. for (var i = 0, lenI = items.length; i < lenI; ++i) {
  409. const item = items[i]
  410. if(values.indexOf(item.value) >= 0){
  411. this.$set(item,'checked',true)
  412. }else{
  413. this.$set(item,'checked',false)
  414. }
  415. }
  416. },
  417. chooseMaleLikes(e){
  418. let items = this.medicaCampList
  419. let values = e.detail.value
  420. for (var i = 0, lenI = items.length; i < lenI; ++i) {
  421. const item = items[i]
  422. if(values.indexOf(item.value) >= 0){
  423. this.$set(item,'checked',true)
  424. }else{
  425. this.$set(item,'checked',false)
  426. }
  427. }
  428. },
  429. onTextareaInput(e){
  430. this.addressData.addressDetail = e.detail.value;
  431. // console.log(this.addressData.addressDetail)
  432. },
  433. chooseBusinessImage() {
  434. let self = this;
  435. uni.chooseImage({
  436. count: 1, //默认1
  437. sizeType: ['compressed'], //可以指定是原图还是压缩图,默认二者都有
  438. sourceType: ['album','camera'], //从相册选择
  439. success: (res) => {
  440. const tempFilePaths = res.tempFilePaths;
  441. const uploadTask = uni.uploadFile({
  442. url : 'https://mall-b.caimei365.com/formData/MultiPictareaddData',
  443. filePath: tempFilePaths[0],
  444. name: 'file',
  445. formData: {
  446. 'user': 'test'
  447. },
  448. success: function (data) {
  449. console.log(data.data);
  450. self.uploadBusinessImage = res.tempFilePaths
  451. },
  452. error : function(e){
  453. console.log(e);
  454. }
  455. })
  456. },
  457. })
  458. },
  459. chooseMentuzImage() {
  460. let self = this;
  461. uni.chooseImage({
  462. count: 1, //默认1
  463. sizeType: ['compressed'], //可以指定是原图还是压缩图,默认二者都有
  464. sourceType: ['album','camera'], //从相册选择
  465. success: (res) => {
  466. const tempFilePaths = res.tempFilePaths;
  467. const uploadTask = uni.uploadFile({
  468. url : 'https://mall-b.caimei365.com/formData/MultiPictareaddData',
  469. filePath: tempFilePaths[0],
  470. name: 'file',
  471. formData: {
  472. 'user': 'test'
  473. },
  474. success: function (res) {
  475. console.log(res.data);
  476. self.uploadMentuzImage = res.data
  477. },
  478. error : function(e){
  479. console.log(e);
  480. }
  481. })
  482. }
  483. });
  484. },
  485. chooseMedicalImage() {
  486. let self = this;
  487. uni.chooseImage({
  488. count: 1, //默认1
  489. sizeType: ['compressed'], //可以指定是原图还是压缩图,默认二者都有
  490. sourceType: ['album','camera'], //从相册选择
  491. success: (res) => {
  492. const tempFilePaths = res.tempFilePaths;
  493. const uploadTask = uni.uploadFile({
  494. url : 'https://mall-b.caimei365.com/formData/MultiPictareaddData',
  495. filePath: tempFilePaths[0],
  496. name: 'file',
  497. formData: {
  498. 'user': 'test'
  499. },
  500. success: function (res) {
  501. console.log(res.data);
  502. self.uploadMedicalImage = res.data
  503. },
  504. error : function(e){
  505. console.log(e);
  506. }
  507. })
  508. }
  509. });
  510. },
  511. viewMentuzImage(e) {
  512. let self = this
  513. uni.previewImage({
  514. urls: self.uploadMentuzImage,
  515. current: e.currentTarget.dataset.url
  516. });
  517. },
  518. viewBusinessImage(e) {
  519. let self = this
  520. uni.previewImage({
  521. urls: self.uploadBusinessImage,
  522. current: e.currentTarget.dataset.url
  523. });
  524. },
  525. viewMedicalImage(e) {
  526. let self = this
  527. uni.previewImage({
  528. urls: self.uploadMedicalImage,
  529. current: e.currentTarget.dataset.url
  530. });
  531. },
  532. delBusinessImage(){
  533. this.uploadBusinessImage = ''
  534. },
  535. delMentuzImage(){
  536. this.uploadMentuzImage = ''
  537. },
  538. delMedicalImage(){
  539. this.uploadMedicalImage = ''
  540. },
  541. agreeCheck() {
  542. this.isCheck = !this.isCheck
  543. },
  544. onBlurInput(e){//
  545. if(e.detail.value ===''){
  546. this.isDisabled = true
  547. }else{
  548. this.isDisabled = false
  549. }
  550. },
  551. getEmailCode(){
  552. this.isDisabled = true
  553. },
  554. showAustomItem() {
  555. this.isShowAustomItem = !this.isShowAustomItem
  556. },
  557. addCustomItem(){
  558. if(this.isOrganizationType == 1){
  559. let item = {value:`${this.mentuzCampList.length+1}`,name:this.customItemValue}
  560. this.mentuzCampList.push(item)
  561. }else{
  562. let item = {value:`${this.medicaCampList.length+1}`,name:this.customItemValue}
  563. this.medicaCampList.push(item)
  564. }
  565. },
  566. showCheckPhone(){
  567. this.isShowCheckPhone = !this.isShowCheckPhone
  568. }
  569. }
  570. }
  571. </script>
  572. <style lang="scss">
  573. .register{
  574. width: 100%;
  575. height: auto;
  576. border-top: 1px solid #F7F7F7;
  577. .model-warp.none{
  578. display: none;
  579. }
  580. .model-warp.show{
  581. display: block;
  582. }
  583. .register-error{
  584. width: 100%;
  585. height: auto;
  586. position: fixed;
  587. top: 0;
  588. left: 0;
  589. z-index: 999;
  590. .error-top{
  591. width: 702rpx;
  592. padding: 0 24rpx;
  593. height: 90rpx;
  594. line-height: 90rpx;
  595. background: #FF0000;
  596. &.error-top--none{
  597. background:#FFFFFF;
  598. .name{
  599. color: #333333;
  600. }
  601. .icon{
  602. color: #333333;
  603. }
  604. }
  605. .name{
  606. font-size: $font-size-32;
  607. color: #FFFFFF;
  608. float: left;
  609. }
  610. .icon{
  611. float: right;
  612. font-size: $font-size-32;
  613. color: #FFFFFF;
  614. }
  615. .icon-xiangxiajiantou{
  616. transform: rotate(0deg);
  617. transform-origin: center center;
  618. float: right;
  619. font-size: $font-size-32;
  620. color: #FFFFFF;
  621. /* transition: transform 0.3s ease;*/
  622. transition-property: transform;
  623. transition-duration: 0.3s;
  624. transition-timing-function: ease;
  625. margin-left: 10rpx;
  626. }
  627. .icon-xiangxiajiantou-active{
  628. transform: rotate(180deg);
  629. color: #333333;
  630. }
  631. }
  632. .animation{
  633. /* transition: transform 0.3s ease;*/
  634. transition-property: transform;
  635. transition-duration: 0.2s;
  636. transition-timing-function: ease;
  637. }
  638. .error-main{
  639. width: 702rpx;
  640. height: auto;
  641. padding: 24rpx;
  642. border-top: 1px solid #F7F7F7;
  643. overflow: hidden;
  644. background: #FFFFFF;
  645. .error-main-list{
  646. width:100% ;
  647. height: auto;
  648. background: #FFFFFF;
  649. .item{
  650. height: auto;
  651. line-height: 60rpx;
  652. font-size: $font-size-28;
  653. color: #FF0000;
  654. .num{
  655. margin-right: 10rpx;
  656. }
  657. }
  658. }
  659. }
  660. .error-main--hide {
  661. padding: 0 0;
  662. height: 0px;
  663. line-height: 0px;
  664. }
  665. }
  666. .register-main{
  667. width: 100%;
  668. height: auto;
  669. &.detailed{
  670. padding-bottom: 300rpx;
  671. }
  672. &.first{
  673. padding-top: 110rpx;
  674. }
  675. .register-tips{
  676. display: flex;
  677. flex-direction: column;
  678. align-items: center;
  679. line-height: 44rpx;
  680. font-size: $font-size-24;
  681. color: #FF0000;
  682. margin-bottom: 40rpx;
  683. .iconfont{
  684. font-size: $font-size-24;
  685. }
  686. }
  687. .register-row{
  688. width: 702rpx;
  689. height: auto;
  690. padding: 0 24rpx;
  691. margin-bottom: 20rpx;
  692. .register-title{
  693. line-height: 60rpx;
  694. font-size: $font-size-32;
  695. color: $text-color;
  696. text-align: left;
  697. padding-left: 20rpx;
  698. .txt{
  699. font-size: $font-size-26;
  700. }
  701. }
  702. .row-btn{
  703. position: absolute;
  704. right: 24rpx;
  705. top: 0;
  706. line-height: 88rpx;
  707. text-align: center;
  708. font-size: $font-size-28;
  709. color: $color-system;
  710. }
  711. .register-from{
  712. width: 654rpx;
  713. height: 40rpx;
  714. padding: 24rpx;
  715. background: $sub-bg-color;
  716. border-radius: 14rpx;
  717. position: relative;
  718. .label{
  719. text-align: left;
  720. font-size: $font-size-28;
  721. color: #666666;
  722. line-height: 40rpx;
  723. float: left;
  724. }
  725. .row-input{
  726. width: 440rpx;
  727. padding-left:10rpx;
  728. font-size: $font-size-28;
  729. color: $text-color;
  730. line-height: 40rpx;
  731. float: left;
  732. height: 40rpx;
  733. &.none{
  734. color: #999999;
  735. }
  736. &.keshi{
  737. width: 550rpx;
  738. }
  739. }
  740. &.code{
  741. width: 410rpx;
  742. float: left;
  743. margin-right: 20rpx;
  744. .row-input{
  745. width: 390rpx;
  746. }
  747. }
  748. &.btn{
  749. width: 176rpx;
  750. float: left;
  751. .row-input{
  752. width: 176rpx;
  753. padding: 0;
  754. background: #F7F7F7;
  755. text-align: center;
  756. }
  757. &.none{
  758. background: $btn-confirm;
  759. .row-input{
  760. color: #FFFFFF;
  761. background: $btn-confirm;
  762. }
  763. }
  764. &.disabled{
  765. .row-input{
  766. color: #999999;
  767. }
  768. }
  769. }
  770. &.picker{
  771. padding: 0 24rpx;
  772. width: 654rpx;
  773. height: 88rpx;
  774. line-height: 88rpx;
  775. .label{
  776. line-height: 88rpx;
  777. }
  778. .row-input{
  779. width: 470rpx;
  780. height: 88rpx;
  781. line-height: 88rpx;
  782. padding-left: 30rpx;
  783. }
  784. }
  785. &.radio{
  786. padding: 0 24rpx;
  787. width: 654rpx;
  788. height: 288rpx;
  789. .row-input{
  790. width: 100%;
  791. height: 88rpx;
  792. line-height: 88rpx;
  793. padding-left: 0;
  794. }
  795. .row-radio{
  796. float: left;
  797. }
  798. .row-text{
  799. width: 100rpx;
  800. text-align: center;
  801. float: left;
  802. }
  803. }
  804. &.group{
  805. padding: 0 24rpx;
  806. width: 654rpx;
  807. height: auto;
  808. background: #FFFFFF;
  809. margin-top: 30rpx;
  810. .row-input{
  811. width: 100%;
  812. height: 88rpx;
  813. line-height: 88rpx;
  814. padding-left: 0;
  815. }
  816. .row-radio{
  817. float: left;
  818. }
  819. .row-text{
  820. width: 100rpx;
  821. text-align: center;
  822. float: left;
  823. }
  824. }
  825. &.btn{
  826. margin-top: 0;
  827. }
  828. .content-class {
  829. width: 520rpx;
  830. margin: 20rpx auto;
  831. display: flex;
  832. flex-flow: row wrap;
  833. justify-content: space-between;
  834. &.btn{
  835. margin: 0 auto;
  836. margin-left: 126rpx;
  837. }
  838. .row-input{
  839. display: flex;
  840. width: 220rpx;
  841. height: 40rpx;
  842. padding: 24rpx;
  843. text-align: left;
  844. border-radius: 10rpx;
  845. font-size: $font-size-28;
  846. color: $text-color;
  847. }
  848. .confirm-btn{
  849. width: 200rpx;
  850. height: 88rpx;
  851. border-radius: 10rpx;
  852. line-height: 88rpx;
  853. text-align: center;
  854. &.none{
  855. color: #FFFFFF;
  856. background: $btn-confirm;
  857. }
  858. &.disabled{
  859. color: #999999;
  860. }
  861. }
  862. .item {
  863. width: 156rpx;
  864. height: 60rpx;
  865. font-size:$font-size-28;
  866. line-height: 60rpx;
  867. border-radius:10rpx;
  868. margin-bottom: 20rpx;
  869. text-align: center;
  870. box-sizing: border-box;
  871. border: 1rpx solid #EFEFEF;
  872. checkbox {
  873. display: none;
  874. }
  875. }
  876. .on {
  877. border-color: $color-system;
  878. color:$color-system;
  879. }
  880. }
  881. }
  882. .icon-xiayibu{
  883. width: 88rpx;
  884. height: 88rpx;
  885. position: absolute;
  886. right: 0;
  887. top: 0;
  888. line-height: 88rpx;
  889. text-align: center;
  890. }
  891. &.text-textarea{
  892. background: #FFFFFF;
  893. .textarea{
  894. width: 654rpx;
  895. height: 180rpx;
  896. background: #F7F7F7;
  897. padding: 24rpx;
  898. font-size: $font-size-28;
  899. color: $text-color;
  900. z-index: 1;
  901. border-radius: 14rpx;
  902. }
  903. .textarea.hide{
  904. opacity: 0;
  905. }
  906. .textarea.show{
  907. color: #999999;
  908. }
  909. }
  910. }
  911. .register-picture{
  912. height: 102rpx;
  913. margin: 40rpx 0 0 0;
  914. .label{
  915. float: left;
  916. font-size: $font-size-28;
  917. color: $text-color;
  918. line-height: 102rpx;
  919. width: 150rpx;
  920. text-align: right;
  921. &.zz{
  922. width: 230rpx;
  923. }
  924. }
  925. .upload-picture{
  926. float: left;
  927. height: 100rpx;
  928. .upload-none{
  929. width: 100rpx;
  930. height: 100rpx;
  931. text-align: center;
  932. line-height: 100rpx;
  933. color: #999999;
  934. border: 1px solid #999999;
  935. border-radius: 10rpx;
  936. margin: 0 20rpx;
  937. .iconfont{
  938. font-size: $font-size-28;
  939. }
  940. }
  941. .upload-image{
  942. width: 100rpx;
  943. height: 100rpx;
  944. border-radius: 10rpx;
  945. margin: 0 20rpx;
  946. position: relative;
  947. image{
  948. width: 100rpx;
  949. height: 100rpx;
  950. border-radius: 10rpx;
  951. }
  952. .upload-del{
  953. width: 40rpx;
  954. height: 40rpx;
  955. position: absolute;
  956. top: -20rpx;
  957. right: -20rpx;
  958. line-height: 40rpx;
  959. text-align: center;
  960. .iconfont{
  961. font-size: $font-size-32;
  962. color: #999999;
  963. }
  964. }
  965. }
  966. }
  967. }
  968. .register-input{
  969. width: 654rpx;
  970. height: 40rpx;
  971. padding: 24rpx;
  972. margin: 0 auto;
  973. margin-bottom: 60rpx;
  974. background: #F7F7F7;
  975. border-radius: 14rpx;
  976. .input{
  977. width: 100%;
  978. height: 100%;
  979. background: #F7F7F7;
  980. font-size: $font-size-28;
  981. line-height: 40rpx;
  982. color: #333333;
  983. border-radius: 14rpx;
  984. }
  985. }
  986. .register-fiexd{
  987. width: 100%;
  988. height: auto;
  989. padding: 20rpx 0;
  990. position: fixed;
  991. bottom: 0;
  992. left: 0;
  993. z-index: 99;
  994. background: #FFFFFF;
  995. .register-agree{
  996. display: flex;
  997. flex-direction: column;
  998. align-items: center;
  999. margin: 32rpx 0;
  1000. .agree-text{
  1001. .checkbox{
  1002. float: left;
  1003. margin: 4rpx 6rpx 0 0;
  1004. color: #999999;
  1005. font-size: $font-size-32;
  1006. &.icon-gouxuan{
  1007. color: $color-system;
  1008. }
  1009. }
  1010. font-size: 20rpx;
  1011. line-height: 44rpx;
  1012. color: #999999;
  1013. text{
  1014. color:#0091FF;
  1015. }
  1016. }
  1017. }
  1018. }
  1019. .register-btn{
  1020. width: 702rpx;
  1021. height: 88rpx;
  1022. border-radius: 14rpx;
  1023. font-size: $font-size-28;
  1024. line-height: 88rpx;
  1025. color: #FFFFFF;
  1026. margin: 0 auto;
  1027. text-align: center;
  1028. background: $btn-confirm;
  1029. margin-top: 96rpx;
  1030. &.none{
  1031. background: #FFFFFF;
  1032. color: $text-color;
  1033. margin-top: 0;
  1034. }
  1035. &.sub{
  1036. margin-top: 0;
  1037. }
  1038. }
  1039. }
  1040. }
  1041. </style>