register.vue 31 KB

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