register.vue 31 KB

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