register.vue 33 KB

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