register.vue 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894
  1. <template>
  2. <view class="container register" :style="{ paddingTop: CustomBar + 'px' }">
  3. <cu-custom :navbar-data="nvabarData" @navigateBack="hanldNavigateBack"></cu-custom>
  4. <view class="register-main clearfix">
  5. <view class="register-logo">
  6. <image class="logo" src="https://static.caimei365.com/app/img/icon/logo@2x.png" mode=""></image>
  7. </view>
  8. <view class="register-row clearfix">
  9. <view class="register-from">
  10. <view class="label">联系人:</view>
  11. <input
  12. class="row-input"
  13. type="text"
  14. name="input"
  15. v-model="params.userName"
  16. placeholder="请输入机构联系人姓名"
  17. maxlength="6"
  18. />
  19. </view>
  20. </view>
  21. <view class="register-row clearfix">
  22. <view class="register-from">
  23. <view class="label">手机号:</view>
  24. <input
  25. class="row-input"
  26. type="number"
  27. name="input"
  28. v-model="params.bindMobile"
  29. placeholder="请输入联系人常用手机号"
  30. maxlength="11"
  31. />
  32. </view>
  33. </view>
  34. <view class="register-row clearfix">
  35. <view class="register-from">
  36. <view class="label">短信验证码:</view>
  37. <input
  38. class="row-input code"
  39. type="text"
  40. v-model="params.smsCode"
  41. placeholder="请输入短信验证码"
  42. maxlength="6"
  43. />
  44. <view class="row-btn" :class="[isMobileDisabled ? 'disabled' : '']">
  45. <button
  46. class="row-input"
  47. type="button"
  48. @click.stop="getMobileCodeFn"
  49. :disabled="isMobileDisabled"
  50. >
  51. {{ mobileCodeText }}
  52. </button>
  53. </view>
  54. </view>
  55. </view>
  56. <view class="register-row clearfix">
  57. <view class="register-from">
  58. <view class="label">登录密码:</view>
  59. <input
  60. class="row-input"
  61. type="password"
  62. name="input"
  63. v-model="params.password"
  64. placeholder="密码必须为8-16位字母数字组合"
  65. maxlength="16"
  66. />
  67. </view>
  68. </view>
  69. <view class="register-row clearfix">
  70. <view class="register-from">
  71. <view class="label">确认密码:</view>
  72. <input
  73. class="row-input"
  74. type="password"
  75. name="input"
  76. v-model="params.passWordConfirm"
  77. placeholder="请确认密码"
  78. maxlength="16"
  79. />
  80. </view>
  81. </view>
  82. <view class="register-row clearfix">
  83. <view class="tab-label">是否需要为你匹配专属客户经理:</view>
  84. <view class="tips">建议选择“需要”,采美专业的客户经理会为您提供更多支持,帮助您 轻松采购!</view>
  85. <view class="check">
  86. <view
  87. class="radio"
  88. :class="item.id === params.isSp ? 'isActive' : ''"
  89. @click="params.isSp = item.id"
  90. v-for="(item, index) in checkRadio"
  91. :key="item.id"
  92. >
  93. {{ item.label }}
  94. </view>
  95. </view>
  96. </view>
  97. <view class="register-main clearfix">
  98. <view class="register-agree">
  99. <view class="agree-text" @tap.stop="agreeCheck()">
  100. <button
  101. class="checkbox iconfont"
  102. :class="[isCheck ? 'icon-gouxuan' : 'icon-weigouxuan']"
  103. ></button>
  104. 我已阅读并同意
  105. <text @click.stop="this.$api.navigateTo('/pages/service/service?id=1036&title=机构协议')">
  106. 《机构协议》
  107. </text>
  108. <text @click.stop="this.$api.navigateTo('/pages/service/service?id=1023&title=用户协议')">
  109. 《用户协议》
  110. </text>
  111. <text @click.stop="this.$api.navigateTo('/pages/service/service?id=1013&title=隐私权政策')">
  112. 《隐私权政策》
  113. </text>
  114. </view>
  115. </view>
  116. <view class="register-row ">
  117. <view class="register-btn sub" @click.stop="registerStepsfirst">注册</view>
  118. </view>
  119. </view>
  120. </view>
  121. </view>
  122. </template>
  123. <script>
  124. import { mapState, mapMutations } from 'vuex'
  125. import authorize from '@/common/config/authorize.js'
  126. import wxLogin from '@/common/config/wxLogin.js'
  127. import mpvueCityPicker from '@/components/mpvue-citypicker/mpvueCityPicker.vue'
  128. import { beautyList, mentuzCampNullList, medicaCampNullList } from '@/common/json/data.json.js' //本地数据
  129. import { uploadFileImage } from '@/services/public.js'
  130. export default {
  131. components: {
  132. mpvueCityPicker
  133. },
  134. data() {
  135. return {
  136. nvabarData: {
  137. //顶部自定义导航
  138. showCapsule: 1, // 是否显示左上角图标 1表示显示 0表示不显示,
  139. showSearch: 0,
  140. title: '机构注册', // 导航栏 中间的标题
  141. haveBack: true,
  142. textLeft: this.$store.state.isIphone
  143. },
  144. checkRadio: [
  145. // 是否需要分配客户经理
  146. {
  147. id: 1,
  148. label: '需要'
  149. },
  150. {
  151. id: 0,
  152. label: '不需要'
  153. }
  154. ],
  155. CustomBar: this.CustomBar, // 顶部导航栏高度
  156. isMobileDisabled: false, //手机验证码按钮控制
  157. mobilCount: '', //倒计时
  158. mobileCodeText: '获取验证码',
  159. mobilTime: null,
  160. params: {
  161. userName: '',
  162. bindMobile: '',
  163. isAgreed: 0,
  164. password: '',
  165. passWordConfirm: '',
  166. smsCode: '',
  167. avatarUrl: '',
  168. nickName: '',
  169. source: 1,
  170. unionId: '',
  171. isSp: 1,
  172. spId: uni.getStorageSync('sellerUserId') || '', // 协销分享的id
  173. },
  174. imageCode: '', //图形验证码
  175. imageCodeUrl: '', //图形验证码图片
  176. imageCodetoken: '', //图形验证校验
  177. isCheck: false, //是否勾选协议
  178. userID: '', //机构userID
  179. clubID: '' //机构ID
  180. }
  181. },
  182. onLoad(option) {},
  183. computed: {
  184. ...mapState(['isWxAuthorize'])
  185. },
  186. methods: {
  187. ...mapMutations(['login', 'wxLogin']),
  188. hanldNavigateBack() {
  189. this.$util.modal('', '注册尚未完成,确定放弃注册吗?', '确定', '取消', true, () => {
  190. uni.navigateBack({
  191. delta: 1
  192. })
  193. })
  194. },
  195. registerStepsfirst() {
  196. if (this.params.userName == '') {
  197. this.$util.msg('请输入联系人名称', 2000)
  198. return
  199. }
  200. if (this.params.bindMobile == '') {
  201. this.$util.msg('请输入手机号', 2000)
  202. return
  203. }
  204. if (!this.$reg.isMobile(this.params.bindMobile)) {
  205. this.$util.msg('手机格式不正确', 2000)
  206. return
  207. }
  208. if (this.params.smsCode == '') {
  209. this.$util.msg('请输入手机验证码', 2000)
  210. return
  211. }
  212. if (!this.$reg.isMobileCode(this.params.smsCode)) {
  213. this.$util.msg('验证码格式不正确', 2000)
  214. return
  215. }
  216. if (this.params.password == '') {
  217. this.$util.msg('请输入密码', 2000)
  218. return
  219. }
  220. if (!this.$reg.checkPwd(this.params.password)) {
  221. this.$util.msg('密码必须为8-16位字母数字的组合', 2000)
  222. return
  223. }
  224. if (this.params.passWordConfirm == '') {
  225. this.$util.msg('请再次确认密码', 2000)
  226. return
  227. }
  228. if (this.params.passWordConfirm !== this.params.password) {
  229. this.$util.msg('两次输入的密码不一致', 2000)
  230. return
  231. }
  232. if (this.params.isAgreed == 0) {
  233. this.$util.msg('请勾选同意协议', 2000)
  234. return
  235. }
  236. this.params.unionId = uni.getStorageSync('unionId')
  237. this.GetUserProfile()
  238. },
  239. GetUserProfile() {
  240. //获取用户微信个人信息
  241. const self = this
  242. wx.getUserProfile({
  243. desc: '采美采购商城小程序获取您的信息', // 声明获取用户个人信息后的用途,后续会展示在弹窗中,请谨慎填写
  244. success(res) {
  245. console.log('微信获取用户信息新API', res)
  246. self.wxLogin(res.userInfo)
  247. self.params.nickName = res.userInfo.nickName
  248. self.params.avatarUrl = res.userInfo.avatarUrl
  249. self.UserRegisterClub(self.params)
  250. // 友盟自定义事件
  251. if (process.env.NODE_ENV != 'development') {
  252. self.$uma.trackEvent('Um_Event_ConfirmRegister', {
  253. Um_Key_PageName: '注册机构',
  254. Um_Key_PageCategory: '注册机构页面'
  255. })
  256. }
  257. },
  258. fail() {
  259. self.$util.msg('授权失败', 2000)
  260. }
  261. })
  262. },
  263. UserRegisterClub(params) {
  264. this.UserService.UserRegisterClub(params)
  265. .then(response => {
  266. wxLogin.wxLoginAuthorize()
  267. setTimeout(() => {
  268. this.$api.switchTabTo('/pages/tabBar/user/user')
  269. }, 2000)
  270. })
  271. .catch(error => {
  272. this.$util.msg(error.msg, 2000)
  273. })
  274. },
  275. storeUpdataeStatus(data) {
  276. uni.setStorageSync('token', data.token)
  277. this.$store.commit('updateStatus', data)
  278. this.login(data)
  279. },
  280. getMobileCodeFn() {
  281. if (this.params.bindMobile == '') {
  282. this.$util.msg('请输入手机号', 2000)
  283. return
  284. }
  285. if (!this.$reg.isMobile(this.params.bindMobile)) {
  286. this.$util.msg('请输入正确的手机号', 2000)
  287. return
  288. }
  289. let params = {
  290. mobile: this.params.bindMobile,
  291. isCheckCaptcha: 1,
  292. activateCodeType: 2,
  293. platformType: 2
  294. }
  295. this.isMobileDisabled = true
  296. this.PublicService.GetRegisterMobileCode(params)
  297. .then(response => {
  298. this.$util.msg('验证短信已发送', 2000)
  299. const TIME_COUNT = 60
  300. if (!this.mobilTime) {
  301. this.mobilCount = TIME_COUNT
  302. this.isMobileDisabled = true
  303. this.mobilTime = setInterval(() => {
  304. if (this.mobilCount > 1 && this.mobilCount <= TIME_COUNT) {
  305. this.mobilCount--
  306. this.mobileCodeText = this.mobilCount + 's重新发送'
  307. } else {
  308. this.isMobileDisabled = false
  309. clearInterval(this.mobilTime)
  310. this.mobilTime = null
  311. this.mobileCodeText = '获取验证码'
  312. }
  313. }, 1000)
  314. }
  315. })
  316. .catch(error => {
  317. this.$util.msg(error.msg, 2000)
  318. this.isMobileDisabled = false
  319. })
  320. },
  321. agreeCheck() {
  322. this.isCheck = !this.isCheck
  323. if (this.isCheck) {
  324. this.params.isAgreed = 1
  325. } else {
  326. this.params.isAgreed = 0
  327. }
  328. },
  329. async InitAuthorize() {
  330. //是否已授权 0:为取消授权 1:为已授权 2:为未操作
  331. wxLogin.wxLoginQuick()
  332. }
  333. },
  334. onShow() {
  335. this.InitAuthorize()
  336. }
  337. }
  338. </script>
  339. <style lang="scss">
  340. .register {
  341. width: 100%;
  342. height: 100%;
  343. box-sizing: border-box;
  344. background-size: contain;
  345. .register-main {
  346. width: 100%;
  347. height: auto;
  348. position: relative;
  349. .register-consult {
  350. width: 110rpx;
  351. height: 68rpx;
  352. background: linear-gradient(223deg, rgba(225, 86, 21, 0.6) 0%, rgba(225, 86, 10, 0.3) 100%);
  353. border-radius: 34rpx 0 0 34rpx;
  354. position: absolute;
  355. right: 0;
  356. bottom: 120rpx;
  357. text-align: left;
  358. line-height: 68rpx;
  359. padding-left: 20rpx;
  360. .icon-kefunv {
  361. font-size: 48rpx;
  362. color: #31313b;
  363. float: left;
  364. }
  365. .text {
  366. font-size: $font-size-24;
  367. display: block;
  368. float: left;
  369. width: 60rpx;
  370. line-height: 30rpx;
  371. color: #ffffff;
  372. margin-top: 6rpx;
  373. }
  374. }
  375. .register-agree {
  376. display: flex;
  377. flex-direction: column;
  378. align-items: center;
  379. margin: 100rpx 0 20rpx 0;
  380. .agree-text {
  381. .checkbox {
  382. float: left;
  383. margin: 4rpx 6rpx 0 0;
  384. color: #999999;
  385. font-size: $font-size-34;
  386. &.icon-gouxuan {
  387. color: $color-system;
  388. }
  389. }
  390. font-size: $font-size-22;
  391. line-height: 44rpx;
  392. color: #999999;
  393. text {
  394. color: #1890f9;
  395. }
  396. }
  397. }
  398. .register-logo {
  399. width: 100%;
  400. display: flex;
  401. flex-direction: column;
  402. align-items: center;
  403. height: 284rpx;
  404. padding: 60rpx 0 40rpx 0;
  405. .logo {
  406. width: 611rpx;
  407. height: 284rpx;
  408. display: block;
  409. }
  410. }
  411. &.detailed {
  412. padding-bottom: 330rpx;
  413. }
  414. .register-row {
  415. width: 100%;
  416. height: auto;
  417. padding: 0 75rpx;
  418. margin-bottom: 30rpx;
  419. box-sizing: border-box;
  420. .tab-label {
  421. color: #666666;
  422. font-size: 28rpx;
  423. }
  424. .tips {
  425. color: #ff5b00;
  426. font-size: 20rpx;
  427. }
  428. .check{
  429. display: flex;
  430. align-item: center;
  431. margin-top: 24rpx;
  432. .radio {
  433. color: #666666;
  434. font-size: 28rpx;
  435. padding-left: 60rpx;
  436. position: relative;
  437. margin-right: 56rpx;
  438. &::before {
  439. content: '';
  440. width: 32rpx;
  441. height: 32rpx;
  442. border: 1px solid #B2B2B2;
  443. border-radius: 50%;
  444. position: absolute;
  445. left: 0;
  446. }
  447. }
  448. .isActive {
  449. &::before {
  450. border: 1px solid #FF5B00;
  451. content: '';
  452. width: 32rpx;
  453. height: 32rpx;
  454. border-radius: 50%;
  455. position: absolute;
  456. left: 0;
  457. }
  458. &::after {
  459. content: '';
  460. width: 16rpx;
  461. height: 16rpx;
  462. border-radius: 50%;
  463. position: absolute;
  464. left: 0;
  465. background-color: #FF5B00;
  466. transform: translate(60%, 60%);
  467. }
  468. }
  469. }
  470. &.none {
  471. margin-bottom: 0;
  472. }
  473. &.login {
  474. display: flex;
  475. }
  476. .register-text {
  477. line-height: 44rpx;
  478. margin-top: 100rpx;
  479. font-size: $font-size-24;
  480. color: #999999;
  481. text-align: justify;
  482. .txt {
  483. margin-right: 15rpx;
  484. }
  485. }
  486. .register-title {
  487. line-height: 44rpx;
  488. font-size: $font-size-24;
  489. color: $text-color;
  490. text-align: left;
  491. &.first {
  492. margin-top: 20rpx;
  493. }
  494. }
  495. .register-tip {
  496. line-height: 64rpx;
  497. font-size: $font-size-24;
  498. color: #cecece;
  499. text-align: left;
  500. }
  501. .register-from {
  502. width: 100%;
  503. height: 80rpx;
  504. background: #ffffff;
  505. position: relative;
  506. border-bottom: 1px solid #e1e1e1;
  507. .label {
  508. text-align: left;
  509. font-size: $font-size-28;
  510. color: #666666;
  511. line-height: 88rpx;
  512. float: left;
  513. }
  514. .row-input {
  515. width: 440rpx;
  516. padding-left: 10rpx;
  517. font-size: $font-size-28;
  518. color: $text-color;
  519. line-height: 80rpx;
  520. float: left;
  521. height: 80rpx;
  522. &.none {
  523. color: #999999;
  524. }
  525. &.picker {
  526. text-align: left;
  527. color: #333333;
  528. }
  529. &.keshi {
  530. width: 550rpx;
  531. }
  532. &.code {
  533. width: 264rpx;
  534. }
  535. }
  536. &.img-btn {
  537. width: 220rpx;
  538. height: 80rpx;
  539. padding: 0;
  540. float: left;
  541. background: #ffffff;
  542. display: block;
  543. .vscodeimg {
  544. width: 150rpx;
  545. height: 80rpx;
  546. float: left;
  547. display: flex;
  548. flex-direction: column;
  549. align-items: center;
  550. border-radius: 14rpx;
  551. image {
  552. width: 150rpx;
  553. height: 80rpx;
  554. border-radius: 14rpx;
  555. }
  556. }
  557. .vscod-refresh {
  558. width: 70rpx;
  559. float: right;
  560. text-align: right;
  561. display: flex;
  562. flex-direction: column;
  563. align-items: center;
  564. line-height: 44rpx;
  565. .icon-shuaxin {
  566. font-size: 48rpx;
  567. color: #333333;
  568. }
  569. .ref-text {
  570. font-size: 24rpx;
  571. color: #333333;
  572. }
  573. }
  574. }
  575. &.imgcode {
  576. width: 410rpx;
  577. float: left;
  578. margin-right: 20rpx;
  579. .row-input {
  580. width: 230rpx;
  581. }
  582. }
  583. .row-btn {
  584. width: 180rpx;
  585. height: 64rpx;
  586. float: left;
  587. background: $btn-confirm;
  588. padding: 0;
  589. border-radius: 32rpx;
  590. .row-input {
  591. width: 180rpx;
  592. height: 64rpx;
  593. line-height: 64rpx;
  594. padding: 0;
  595. color: #ffffff;
  596. background: $btn-confirm;
  597. text-align: center;
  598. border-radius: 32rpx;
  599. &.other {
  600. width: 180rpx;
  601. background: #f7f7f7;
  602. margin-right: 20rpx;
  603. }
  604. &.none {
  605. background: #f7f7f7;
  606. }
  607. }
  608. &.disabled {
  609. background: #f7f7f7;
  610. .row-input {
  611. background: #f7f7f7;
  612. color: #999999;
  613. font-size: 24rpx;
  614. }
  615. }
  616. }
  617. &.picker {
  618. padding: 0 24rpx;
  619. width: 654rpx;
  620. height: 88rpx;
  621. line-height: 88rpx;
  622. .label {
  623. line-height: 88rpx;
  624. }
  625. .row-input {
  626. width: 470rpx;
  627. height: 88rpx;
  628. line-height: 88rpx;
  629. padding-left: 30rpx;
  630. }
  631. }
  632. &.radio {
  633. padding: 0 24rpx;
  634. width: 654rpx;
  635. height: 288rpx;
  636. .row-input {
  637. width: 100%;
  638. height: 88rpx;
  639. line-height: 88rpx;
  640. padding-left: 0;
  641. }
  642. .row-radio {
  643. float: left;
  644. transform: scale(0.8);
  645. }
  646. .row-text {
  647. width: 100rpx;
  648. text-align: center;
  649. float: left;
  650. }
  651. }
  652. &.group {
  653. padding: 0 24rpx;
  654. width: 654rpx;
  655. height: auto;
  656. background: #ffffff;
  657. margin-top: 30rpx;
  658. .label {
  659. line-height: 76rpx;
  660. }
  661. .row-input {
  662. width: 100%;
  663. height: 88rpx;
  664. line-height: 88rpx;
  665. padding-left: 0;
  666. }
  667. .row-radio {
  668. float: left;
  669. }
  670. .row-text {
  671. width: 100rpx;
  672. text-align: center;
  673. float: left;
  674. }
  675. }
  676. &.btn {
  677. margin-top: 0;
  678. }
  679. .content-class {
  680. margin: 20rpx auto;
  681. display: flex;
  682. flex-flow: row wrap;
  683. justify-content: space-between;
  684. align-items: center;
  685. &.btn {
  686. margin: 0 auto;
  687. margin-left: 116rpx;
  688. }
  689. .row-input {
  690. display: flex;
  691. width: 220rpx;
  692. height: 40rpx;
  693. padding: 24rpx;
  694. text-align: left;
  695. border-radius: 10rpx;
  696. font-size: $font-size-28;
  697. color: $text-color;
  698. }
  699. .confirm-btn {
  700. width: 200rpx;
  701. height: 88rpx;
  702. border-radius: 10rpx;
  703. line-height: 88rpx;
  704. text-align: center;
  705. &.other {
  706. width: 213rpx;
  707. }
  708. &.none {
  709. color: #ffffff;
  710. background: $btn-confirm;
  711. }
  712. &.disabled {
  713. color: #999999;
  714. }
  715. }
  716. .item {
  717. width: 155rpx;
  718. height: 60rpx;
  719. font-size: $font-size-28;
  720. line-height: 60rpx;
  721. border-radius: 10rpx;
  722. margin: 10rpx;
  723. text-align: center;
  724. box-sizing: border-box;
  725. border: 1rpx solid #efefef;
  726. float: left;
  727. checkbox {
  728. display: none;
  729. }
  730. }
  731. .on {
  732. border-color: $color-system;
  733. color: $color-system;
  734. }
  735. }
  736. }
  737. .row-login {
  738. flex: 1;
  739. font-size: $font-size-28;
  740. color: $text-color;
  741. text-align: left;
  742. }
  743. .row-logincode {
  744. flex: 1;
  745. font-size: $font-size-28;
  746. color: $text-color;
  747. text-align: right;
  748. }
  749. .icon-xiayibu {
  750. width: 88rpx;
  751. height: 88rpx;
  752. position: absolute;
  753. right: 0;
  754. top: 0;
  755. line-height: 88rpx;
  756. text-align: center;
  757. }
  758. &.text-textarea {
  759. background: #ffffff;
  760. .textarea {
  761. width: 654rpx;
  762. height: 180rpx;
  763. background: #f7f7f7;
  764. padding: 24rpx;
  765. font-size: $font-size-28;
  766. color: $text-color;
  767. z-index: 1;
  768. border-radius: 14rpx;
  769. }
  770. .textarea.hide {
  771. opacity: 0;
  772. }
  773. .textarea.show {
  774. color: #999999;
  775. }
  776. }
  777. }
  778. .register-picture {
  779. height: 102rpx;
  780. margin: 30rpx 0;
  781. width: 42%;
  782. float: left;
  783. &.zz {
  784. width: 100%;
  785. }
  786. .label {
  787. float: left;
  788. font-size: $font-size-28;
  789. color: $text-color;
  790. line-height: 102rpx;
  791. width: 150rpx;
  792. text-align: right;
  793. &.zz {
  794. width: 230rpx;
  795. }
  796. }
  797. .upload-picture {
  798. float: left;
  799. height: 100rpx;
  800. .upload-none {
  801. width: 100rpx;
  802. height: 100rpx;
  803. text-align: center;
  804. line-height: 100rpx;
  805. color: #999999;
  806. border: 1px solid #999999;
  807. border-radius: 10rpx;
  808. margin: 0 20rpx;
  809. .iconfont {
  810. font-size: $font-size-28;
  811. }
  812. }
  813. .upload-image {
  814. width: 100rpx;
  815. height: 100rpx;
  816. border-radius: 10rpx;
  817. margin: 0 20rpx;
  818. position: relative;
  819. image {
  820. width: 100rpx;
  821. height: 100rpx;
  822. border-radius: 10rpx;
  823. }
  824. .upload-del {
  825. width: 40rpx;
  826. height: 40rpx;
  827. position: absolute;
  828. top: -20rpx;
  829. right: -20rpx;
  830. line-height: 40rpx;
  831. text-align: center;
  832. .iconfont {
  833. font-size: $font-size-32;
  834. color: #999999;
  835. }
  836. }
  837. }
  838. }
  839. }
  840. .register-input {
  841. width: 654rpx;
  842. height: 40rpx;
  843. padding: 24rpx;
  844. margin: 0 auto;
  845. margin-bottom: 60rpx;
  846. background: #f7f7f7;
  847. border-radius: 14rpx;
  848. .input {
  849. width: 100%;
  850. height: 100%;
  851. background: #f7f7f7;
  852. font-size: $font-size-28;
  853. line-height: 40rpx;
  854. color: #333333;
  855. border-radius: 14rpx;
  856. }
  857. }
  858. .register-fiexd {
  859. width: 100%;
  860. height: auto;
  861. position: fixed;
  862. bottom: 0;
  863. left: 0;
  864. z-index: 999;
  865. background: #ffffff;
  866. }
  867. .register-btn {
  868. width: 100%;
  869. height: 88rpx;
  870. border-radius: 44rpx;
  871. font-size: $font-size-28;
  872. line-height: 88rpx;
  873. color: #ffffff;
  874. margin: 0 auto;
  875. text-align: center;
  876. background: $btn-confirm;
  877. margin-top: 96rpx;
  878. &.none {
  879. border: 1px solid $color-system;
  880. background: #ffffff;
  881. color: $color-system;
  882. margin-top: 0;
  883. }
  884. &.sub {
  885. margin-top: 0;
  886. }
  887. }
  888. }
  889. }
  890. </style>