register.vue 33 KB

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