register.vue 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899
  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: '', // 协销分享的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. console.log('spId', uni.getStorageSync('spId'))
  250. if (uni.getStorageSync('spId') * 1 > 0) {
  251. self.params.spId = uni.getStorageSync('spId') * 1
  252. }
  253. console.log('params', self.params)
  254. self.UserRegisterClub(self.params)
  255. // 友盟自定义事件
  256. if (process.env.NODE_ENV != 'development') {
  257. self.$uma.trackEvent('Um_Event_ConfirmRegister', {
  258. Um_Key_PageName: '注册机构',
  259. Um_Key_PageCategory: '注册机构页面'
  260. })
  261. }
  262. },
  263. fail() {
  264. self.$util.msg('授权失败', 2000)
  265. }
  266. })
  267. },
  268. UserRegisterClub(params) {
  269. this.UserService.UserRegisterClub(params)
  270. .then(response => {
  271. wxLogin.wxLoginAuthorize()
  272. setTimeout(() => {
  273. this.$api.switchTabTo('/pages/tabBar/user/user')
  274. }, 2000)
  275. })
  276. .catch(error => {
  277. this.$util.msg(error.msg, 2000)
  278. })
  279. },
  280. storeUpdataeStatus(data) {
  281. uni.setStorageSync('token', data.token)
  282. this.$store.commit('updateStatus', data)
  283. this.login(data)
  284. },
  285. getMobileCodeFn() {
  286. if (this.params.bindMobile == '') {
  287. this.$util.msg('请输入手机号', 2000)
  288. return
  289. }
  290. if (!this.$reg.isMobile(this.params.bindMobile)) {
  291. this.$util.msg('请输入正确的手机号', 2000)
  292. return
  293. }
  294. let params = {
  295. mobile: this.params.bindMobile,
  296. isCheckCaptcha: 1,
  297. activateCodeType: 2,
  298. platformType: 2
  299. }
  300. this.isMobileDisabled = true
  301. this.PublicService.GetRegisterMobileCode(params)
  302. .then(response => {
  303. this.$util.msg('验证短信已发送', 2000)
  304. const TIME_COUNT = 60
  305. if (!this.mobilTime) {
  306. this.mobilCount = TIME_COUNT
  307. this.isMobileDisabled = true
  308. this.mobilTime = setInterval(() => {
  309. if (this.mobilCount > 1 && this.mobilCount <= TIME_COUNT) {
  310. this.mobilCount--
  311. this.mobileCodeText = this.mobilCount + 's重新发送'
  312. } else {
  313. this.isMobileDisabled = false
  314. clearInterval(this.mobilTime)
  315. this.mobilTime = null
  316. this.mobileCodeText = '获取验证码'
  317. }
  318. }, 1000)
  319. }
  320. })
  321. .catch(error => {
  322. this.$util.msg(error.msg, 2000)
  323. this.isMobileDisabled = false
  324. })
  325. },
  326. agreeCheck() {
  327. this.isCheck = !this.isCheck
  328. if (this.isCheck) {
  329. this.params.isAgreed = 1
  330. } else {
  331. this.params.isAgreed = 0
  332. }
  333. },
  334. async InitAuthorize() {
  335. //是否已授权 0:为取消授权 1:为已授权 2:为未操作
  336. wxLogin.wxLoginQuick()
  337. }
  338. },
  339. onShow() {
  340. this.InitAuthorize()
  341. }
  342. }
  343. </script>
  344. <style lang="scss">
  345. .register {
  346. width: 100%;
  347. height: 100%;
  348. box-sizing: border-box;
  349. background-size: contain;
  350. .register-main {
  351. width: 100%;
  352. height: auto;
  353. position: relative;
  354. .register-consult {
  355. width: 110rpx;
  356. height: 68rpx;
  357. background: linear-gradient(223deg, rgba(225, 86, 21, 0.6) 0%, rgba(225, 86, 10, 0.3) 100%);
  358. border-radius: 34rpx 0 0 34rpx;
  359. position: absolute;
  360. right: 0;
  361. bottom: 120rpx;
  362. text-align: left;
  363. line-height: 68rpx;
  364. padding-left: 20rpx;
  365. .icon-kefunv {
  366. font-size: 48rpx;
  367. color: #31313b;
  368. float: left;
  369. }
  370. .text {
  371. font-size: $font-size-24;
  372. display: block;
  373. float: left;
  374. width: 60rpx;
  375. line-height: 30rpx;
  376. color: #ffffff;
  377. margin-top: 6rpx;
  378. }
  379. }
  380. .register-agree {
  381. display: flex;
  382. flex-direction: column;
  383. align-items: center;
  384. margin: 100rpx 0 20rpx 0;
  385. .agree-text {
  386. .checkbox {
  387. float: left;
  388. margin: 4rpx 6rpx 0 0;
  389. color: #999999;
  390. font-size: $font-size-34;
  391. &.icon-gouxuan {
  392. color: $color-system;
  393. }
  394. }
  395. font-size: $font-size-22;
  396. line-height: 44rpx;
  397. color: #999999;
  398. text {
  399. color: #1890f9;
  400. }
  401. }
  402. }
  403. .register-logo {
  404. width: 100%;
  405. display: flex;
  406. flex-direction: column;
  407. align-items: center;
  408. height: 284rpx;
  409. padding: 60rpx 0 40rpx 0;
  410. .logo {
  411. width: 611rpx;
  412. height: 284rpx;
  413. display: block;
  414. }
  415. }
  416. &.detailed {
  417. padding-bottom: 330rpx;
  418. }
  419. .register-row {
  420. width: 100%;
  421. height: auto;
  422. padding: 0 75rpx;
  423. margin-bottom: 30rpx;
  424. box-sizing: border-box;
  425. .tab-label {
  426. color: #666666;
  427. font-size: 28rpx;
  428. }
  429. .tips {
  430. color: #ff5b00;
  431. font-size: 20rpx;
  432. }
  433. .check{
  434. display: flex;
  435. align-item: center;
  436. margin-top: 24rpx;
  437. .radio {
  438. color: #666666;
  439. font-size: 28rpx;
  440. padding-left: 60rpx;
  441. position: relative;
  442. margin-right: 56rpx;
  443. &::before {
  444. content: '';
  445. width: 32rpx;
  446. height: 32rpx;
  447. border: 1px solid #B2B2B2;
  448. border-radius: 50%;
  449. position: absolute;
  450. left: 0;
  451. }
  452. }
  453. .isActive {
  454. &::before {
  455. border: 1px solid #FF5B00;
  456. content: '';
  457. width: 32rpx;
  458. height: 32rpx;
  459. border-radius: 50%;
  460. position: absolute;
  461. left: 0;
  462. }
  463. &::after {
  464. content: '';
  465. width: 16rpx;
  466. height: 16rpx;
  467. border-radius: 50%;
  468. position: absolute;
  469. left: 0;
  470. background-color: #FF5B00;
  471. transform: translate(60%, 60%);
  472. }
  473. }
  474. }
  475. &.none {
  476. margin-bottom: 0;
  477. }
  478. &.login {
  479. display: flex;
  480. }
  481. .register-text {
  482. line-height: 44rpx;
  483. margin-top: 100rpx;
  484. font-size: $font-size-24;
  485. color: #999999;
  486. text-align: justify;
  487. .txt {
  488. margin-right: 15rpx;
  489. }
  490. }
  491. .register-title {
  492. line-height: 44rpx;
  493. font-size: $font-size-24;
  494. color: $text-color;
  495. text-align: left;
  496. &.first {
  497. margin-top: 20rpx;
  498. }
  499. }
  500. .register-tip {
  501. line-height: 64rpx;
  502. font-size: $font-size-24;
  503. color: #cecece;
  504. text-align: left;
  505. }
  506. .register-from {
  507. width: 100%;
  508. height: 80rpx;
  509. background: #ffffff;
  510. position: relative;
  511. border-bottom: 1px solid #e1e1e1;
  512. .label {
  513. text-align: left;
  514. font-size: $font-size-28;
  515. color: #666666;
  516. line-height: 88rpx;
  517. float: left;
  518. }
  519. .row-input {
  520. width: 440rpx;
  521. padding-left: 10rpx;
  522. font-size: $font-size-28;
  523. color: $text-color;
  524. line-height: 80rpx;
  525. float: left;
  526. height: 80rpx;
  527. &.none {
  528. color: #999999;
  529. }
  530. &.picker {
  531. text-align: left;
  532. color: #333333;
  533. }
  534. &.keshi {
  535. width: 550rpx;
  536. }
  537. &.code {
  538. width: 264rpx;
  539. }
  540. }
  541. &.img-btn {
  542. width: 220rpx;
  543. height: 80rpx;
  544. padding: 0;
  545. float: left;
  546. background: #ffffff;
  547. display: block;
  548. .vscodeimg {
  549. width: 150rpx;
  550. height: 80rpx;
  551. float: left;
  552. display: flex;
  553. flex-direction: column;
  554. align-items: center;
  555. border-radius: 14rpx;
  556. image {
  557. width: 150rpx;
  558. height: 80rpx;
  559. border-radius: 14rpx;
  560. }
  561. }
  562. .vscod-refresh {
  563. width: 70rpx;
  564. float: right;
  565. text-align: right;
  566. display: flex;
  567. flex-direction: column;
  568. align-items: center;
  569. line-height: 44rpx;
  570. .icon-shuaxin {
  571. font-size: 48rpx;
  572. color: #333333;
  573. }
  574. .ref-text {
  575. font-size: 24rpx;
  576. color: #333333;
  577. }
  578. }
  579. }
  580. &.imgcode {
  581. width: 410rpx;
  582. float: left;
  583. margin-right: 20rpx;
  584. .row-input {
  585. width: 230rpx;
  586. }
  587. }
  588. .row-btn {
  589. width: 180rpx;
  590. height: 64rpx;
  591. float: left;
  592. background: $btn-confirm;
  593. padding: 0;
  594. border-radius: 32rpx;
  595. .row-input {
  596. width: 180rpx;
  597. height: 64rpx;
  598. line-height: 64rpx;
  599. padding: 0;
  600. color: #ffffff;
  601. background: $btn-confirm;
  602. text-align: center;
  603. border-radius: 32rpx;
  604. &.other {
  605. width: 180rpx;
  606. background: #f7f7f7;
  607. margin-right: 20rpx;
  608. }
  609. &.none {
  610. background: #f7f7f7;
  611. }
  612. }
  613. &.disabled {
  614. background: #f7f7f7;
  615. .row-input {
  616. background: #f7f7f7;
  617. color: #999999;
  618. font-size: 24rpx;
  619. }
  620. }
  621. }
  622. &.picker {
  623. padding: 0 24rpx;
  624. width: 654rpx;
  625. height: 88rpx;
  626. line-height: 88rpx;
  627. .label {
  628. line-height: 88rpx;
  629. }
  630. .row-input {
  631. width: 470rpx;
  632. height: 88rpx;
  633. line-height: 88rpx;
  634. padding-left: 30rpx;
  635. }
  636. }
  637. &.radio {
  638. padding: 0 24rpx;
  639. width: 654rpx;
  640. height: 288rpx;
  641. .row-input {
  642. width: 100%;
  643. height: 88rpx;
  644. line-height: 88rpx;
  645. padding-left: 0;
  646. }
  647. .row-radio {
  648. float: left;
  649. transform: scale(0.8);
  650. }
  651. .row-text {
  652. width: 100rpx;
  653. text-align: center;
  654. float: left;
  655. }
  656. }
  657. &.group {
  658. padding: 0 24rpx;
  659. width: 654rpx;
  660. height: auto;
  661. background: #ffffff;
  662. margin-top: 30rpx;
  663. .label {
  664. line-height: 76rpx;
  665. }
  666. .row-input {
  667. width: 100%;
  668. height: 88rpx;
  669. line-height: 88rpx;
  670. padding-left: 0;
  671. }
  672. .row-radio {
  673. float: left;
  674. }
  675. .row-text {
  676. width: 100rpx;
  677. text-align: center;
  678. float: left;
  679. }
  680. }
  681. &.btn {
  682. margin-top: 0;
  683. }
  684. .content-class {
  685. margin: 20rpx auto;
  686. display: flex;
  687. flex-flow: row wrap;
  688. justify-content: space-between;
  689. align-items: center;
  690. &.btn {
  691. margin: 0 auto;
  692. margin-left: 116rpx;
  693. }
  694. .row-input {
  695. display: flex;
  696. width: 220rpx;
  697. height: 40rpx;
  698. padding: 24rpx;
  699. text-align: left;
  700. border-radius: 10rpx;
  701. font-size: $font-size-28;
  702. color: $text-color;
  703. }
  704. .confirm-btn {
  705. width: 200rpx;
  706. height: 88rpx;
  707. border-radius: 10rpx;
  708. line-height: 88rpx;
  709. text-align: center;
  710. &.other {
  711. width: 213rpx;
  712. }
  713. &.none {
  714. color: #ffffff;
  715. background: $btn-confirm;
  716. }
  717. &.disabled {
  718. color: #999999;
  719. }
  720. }
  721. .item {
  722. width: 155rpx;
  723. height: 60rpx;
  724. font-size: $font-size-28;
  725. line-height: 60rpx;
  726. border-radius: 10rpx;
  727. margin: 10rpx;
  728. text-align: center;
  729. box-sizing: border-box;
  730. border: 1rpx solid #efefef;
  731. float: left;
  732. checkbox {
  733. display: none;
  734. }
  735. }
  736. .on {
  737. border-color: $color-system;
  738. color: $color-system;
  739. }
  740. }
  741. }
  742. .row-login {
  743. flex: 1;
  744. font-size: $font-size-28;
  745. color: $text-color;
  746. text-align: left;
  747. }
  748. .row-logincode {
  749. flex: 1;
  750. font-size: $font-size-28;
  751. color: $text-color;
  752. text-align: right;
  753. }
  754. .icon-xiayibu {
  755. width: 88rpx;
  756. height: 88rpx;
  757. position: absolute;
  758. right: 0;
  759. top: 0;
  760. line-height: 88rpx;
  761. text-align: center;
  762. }
  763. &.text-textarea {
  764. background: #ffffff;
  765. .textarea {
  766. width: 654rpx;
  767. height: 180rpx;
  768. background: #f7f7f7;
  769. padding: 24rpx;
  770. font-size: $font-size-28;
  771. color: $text-color;
  772. z-index: 1;
  773. border-radius: 14rpx;
  774. }
  775. .textarea.hide {
  776. opacity: 0;
  777. }
  778. .textarea.show {
  779. color: #999999;
  780. }
  781. }
  782. }
  783. .register-picture {
  784. height: 102rpx;
  785. margin: 30rpx 0;
  786. width: 42%;
  787. float: left;
  788. &.zz {
  789. width: 100%;
  790. }
  791. .label {
  792. float: left;
  793. font-size: $font-size-28;
  794. color: $text-color;
  795. line-height: 102rpx;
  796. width: 150rpx;
  797. text-align: right;
  798. &.zz {
  799. width: 230rpx;
  800. }
  801. }
  802. .upload-picture {
  803. float: left;
  804. height: 100rpx;
  805. .upload-none {
  806. width: 100rpx;
  807. height: 100rpx;
  808. text-align: center;
  809. line-height: 100rpx;
  810. color: #999999;
  811. border: 1px solid #999999;
  812. border-radius: 10rpx;
  813. margin: 0 20rpx;
  814. .iconfont {
  815. font-size: $font-size-28;
  816. }
  817. }
  818. .upload-image {
  819. width: 100rpx;
  820. height: 100rpx;
  821. border-radius: 10rpx;
  822. margin: 0 20rpx;
  823. position: relative;
  824. image {
  825. width: 100rpx;
  826. height: 100rpx;
  827. border-radius: 10rpx;
  828. }
  829. .upload-del {
  830. width: 40rpx;
  831. height: 40rpx;
  832. position: absolute;
  833. top: -20rpx;
  834. right: -20rpx;
  835. line-height: 40rpx;
  836. text-align: center;
  837. .iconfont {
  838. font-size: $font-size-32;
  839. color: #999999;
  840. }
  841. }
  842. }
  843. }
  844. }
  845. .register-input {
  846. width: 654rpx;
  847. height: 40rpx;
  848. padding: 24rpx;
  849. margin: 0 auto;
  850. margin-bottom: 60rpx;
  851. background: #f7f7f7;
  852. border-radius: 14rpx;
  853. .input {
  854. width: 100%;
  855. height: 100%;
  856. background: #f7f7f7;
  857. font-size: $font-size-28;
  858. line-height: 40rpx;
  859. color: #333333;
  860. border-radius: 14rpx;
  861. }
  862. }
  863. .register-fiexd {
  864. width: 100%;
  865. height: auto;
  866. position: fixed;
  867. bottom: 0;
  868. left: 0;
  869. z-index: 999;
  870. background: #ffffff;
  871. }
  872. .register-btn {
  873. width: 100%;
  874. height: 88rpx;
  875. border-radius: 44rpx;
  876. font-size: $font-size-28;
  877. line-height: 88rpx;
  878. color: #ffffff;
  879. margin: 0 auto;
  880. text-align: center;
  881. background: $btn-confirm;
  882. margin-top: 96rpx;
  883. &.none {
  884. border: 1px solid $color-system;
  885. background: #ffffff;
  886. color: $color-system;
  887. margin-top: 0;
  888. }
  889. &.sub {
  890. margin-top: 0;
  891. }
  892. }
  893. }
  894. }
  895. </style>