register.vue 32 KB

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