register.vue 26 KB

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