register.vue 32 KB

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