register-supplier.vue 29 KB

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