register.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815
  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-main clearfix">
  83. <view class="register-agree">
  84. <view class="agree-text" @tap.stop="agreeCheck()">
  85. <button
  86. class="checkbox iconfont"
  87. :class="[isCheck ? 'icon-gouxuan' : 'icon-weigouxuan']"
  88. ></button>
  89. 我已阅读并同意
  90. <text @click.stop="this.$api.navigateTo('/pages/service/service?id=1036&title=机构协议')"
  91. >《机构协议》</text
  92. >
  93. <text @click.stop="this.$api.navigateTo('/pages/service/service?id=1023&title=用户协议')"
  94. >《用户协议》</text
  95. >及
  96. <text @click.stop="this.$api.navigateTo('/pages/service/service?id=1013&title=隐私权政策')"
  97. >《隐私权政策》</text
  98. >
  99. </view>
  100. </view>
  101. <view class="register-row ">
  102. <view class="register-btn sub" @click.stop="registerStepsfirst">注册</view>
  103. </view>
  104. </view>
  105. </view>
  106. </view>
  107. </template>
  108. <script>
  109. import { mapState, mapMutations } from 'vuex'
  110. import authorize from '@/common/config/authorize.js'
  111. import wxLogin from '@/common/config/wxLogin.js'
  112. import mpvueCityPicker from '@/components/mpvue-citypicker/mpvueCityPicker.vue'
  113. import { beautyList, mentuzCampNullList, medicaCampNullList } from '@/common/json/data.json.js' //本地数据
  114. import { uploadFileImage } from '@/services/public.js'
  115. export default {
  116. components: {
  117. mpvueCityPicker
  118. },
  119. data() {
  120. return {
  121. nvabarData: {
  122. //顶部自定义导航
  123. showCapsule: 1, // 是否显示左上角图标 1表示显示 0表示不显示,
  124. showSearch: 0,
  125. title: '机构注册', // 导航栏 中间的标题
  126. haveBack: true,
  127. textLeft: this.$store.state.isIphone
  128. },
  129. CustomBar: this.CustomBar, // 顶部导航栏高度
  130. isMobileDisabled: false, //手机验证码按钮控制
  131. mobilCount: '', //倒计时
  132. mobileCodeText: '获取验证码',
  133. mobilTime: null,
  134. params: {
  135. userName: '',
  136. bindMobile: '',
  137. isAgreed: 0,
  138. password: '',
  139. passWordConfirm: '',
  140. smsCode: '',
  141. avatarUrl: '',
  142. nickName: '',
  143. source: 1,
  144. unionId: ''
  145. },
  146. imageCode: '', //图形验证码
  147. imageCodeUrl: '', //图形验证码图片
  148. imageCodetoken: '', //图形验证校验
  149. isCheck: false, //是否勾选协议
  150. userID: '', //机构userID
  151. clubID: '' //机构ID
  152. }
  153. },
  154. onLoad(option) {},
  155. computed: {
  156. ...mapState(['isWxAuthorize'])
  157. },
  158. methods: {
  159. ...mapMutations(['login', 'wxLogin']),
  160. hanldNavigateBack() {
  161. this.$util.modal('', '注册尚未完成,确定放弃注册吗?', '确定', '取消', true, () => {
  162. uni.navigateBack({
  163. delta: 1
  164. })
  165. })
  166. },
  167. registerStepsfirst() {
  168. if (this.params.userName == '') {
  169. this.$util.msg('请输入联系人名称', 2000)
  170. return
  171. }
  172. if (this.params.bindMobile == '') {
  173. this.$util.msg('请输入手机号', 2000)
  174. return
  175. }
  176. if (!this.$reg.isMobile(this.params.bindMobile)) {
  177. this.$util.msg('手机格式不正确', 2000)
  178. return
  179. }
  180. if (this.params.smsCode == '') {
  181. this.$util.msg('请输入手机验证码', 2000)
  182. return
  183. }
  184. if (!this.$reg.isMobileCode(this.params.smsCode)) {
  185. this.$util.msg('验证码格式不正确', 2000)
  186. return
  187. }
  188. if (this.params.password == '') {
  189. this.$util.msg('请输入密码', 2000)
  190. return
  191. }
  192. if (!this.$reg.checkPwd(this.params.password)) {
  193. this.$util.msg('密码必须为8-16位字母数字的组合', 2000)
  194. return
  195. }
  196. if (this.params.passWordConfirm == '') {
  197. this.$util.msg('请再次确认密码', 2000)
  198. return
  199. }
  200. if (this.params.passWordConfirm !== this.params.password) {
  201. this.$util.msg('两次输入的密码不一致', 2000)
  202. return
  203. }
  204. if (this.params.isAgreed == 0) {
  205. this.$util.msg('请勾选同意协议', 2000)
  206. return
  207. }
  208. this.params.unionId = uni.getStorageSync('unionId')
  209. this.GetUserProfile()
  210. },
  211. GetUserProfile() {
  212. //获取用户微信个人信息
  213. const self = this
  214. wx.getUserProfile({
  215. desc: '采美采购商城小程序获取您的信息', // 声明获取用户个人信息后的用途,后续会展示在弹窗中,请谨慎填写
  216. success(res) {
  217. console.log('微信获取用户信息新API', res)
  218. self.wxLogin(res.userInfo)
  219. self.params.nickName = res.userInfo.nickName
  220. self.params.avatarUrl = res.userInfo.avatarUrl
  221. self.UserRegisterClub(self.params)
  222. // 友盟自定义事件
  223. if (process.env.NODE_ENV != 'development') {
  224. self.$uma.trackEvent('Um_Event_ConfirmRegister', {
  225. Um_Key_PageName: '注册机构',
  226. Um_Key_PageCategory: '注册机构页面'
  227. })
  228. }
  229. },
  230. fail() {
  231. self.$util.msg('授权失败', 2000)
  232. }
  233. })
  234. },
  235. UserRegisterClub(params) {
  236. this.UserService.UserRegisterClub(params)
  237. .then(response => {
  238. wxLogin.wxLoginAuthorize()
  239. setTimeout(() => {
  240. this.$api.switchTabTo('/pages/tabBar/user/user')
  241. }, 2000)
  242. })
  243. .catch(error => {
  244. this.$util.msg(error.msg, 2000)
  245. })
  246. },
  247. storeUpdataeStatus(data) {
  248. uni.setStorageSync('token', data.token)
  249. this.$store.commit('updateStatus', data)
  250. this.login(data)
  251. },
  252. getMobileCodeFn() {
  253. if (this.params.bindMobile == '') {
  254. this.$util.msg('请输入手机号', 2000)
  255. return
  256. }
  257. if (!this.$reg.isMobile(this.params.bindMobile)) {
  258. this.$util.msg('请输入正确的手机号', 2000)
  259. return
  260. }
  261. let params = {
  262. mobile: this.params.bindMobile,
  263. isCheckCaptcha: 1,
  264. activateCodeType: 2,
  265. platformType: 2
  266. }
  267. this.isMobileDisabled = true
  268. this.PublicService.GetRegisterMobileCode(params)
  269. .then(response => {
  270. this.$util.msg('验证短信已发送', 2000)
  271. const TIME_COUNT = 60
  272. if (!this.mobilTime) {
  273. this.mobilCount = TIME_COUNT
  274. this.isMobileDisabled = true
  275. this.mobilTime = setInterval(() => {
  276. if (this.mobilCount > 1 && this.mobilCount <= TIME_COUNT) {
  277. this.mobilCount--
  278. this.mobileCodeText = this.mobilCount + 's重新发送'
  279. } else {
  280. this.isMobileDisabled = false
  281. clearInterval(this.mobilTime)
  282. this.mobilTime = null
  283. this.mobileCodeText = '获取验证码'
  284. }
  285. }, 1000)
  286. }
  287. })
  288. .catch(error => {
  289. this.$util.msg(error.msg, 2000)
  290. this.isMobileDisabled = false
  291. })
  292. },
  293. agreeCheck() {
  294. this.isCheck = !this.isCheck
  295. if (this.isCheck) {
  296. this.params.isAgreed = 1
  297. } else {
  298. this.params.isAgreed = 0
  299. }
  300. },
  301. async InitAuthorize() {
  302. //是否已授权 0:为取消授权 1:为已授权 2:为未操作
  303. wxLogin.wxLoginQuick()
  304. }
  305. },
  306. onShow() {
  307. this.InitAuthorize()
  308. }
  309. }
  310. </script>
  311. <style lang="scss">
  312. .register {
  313. width: 100%;
  314. height: 100%;
  315. box-sizing: border-box;
  316. background-size: contain;
  317. .register-main {
  318. width: 100%;
  319. height: auto;
  320. position: relative;
  321. .register-consult {
  322. width: 110rpx;
  323. height: 68rpx;
  324. background: linear-gradient(223deg, rgba(225, 86, 21, 0.6) 0%, rgba(225, 86, 10, 0.3) 100%);
  325. border-radius: 34rpx 0 0 34rpx;
  326. position: absolute;
  327. right: 0;
  328. bottom: 120rpx;
  329. text-align: left;
  330. line-height: 68rpx;
  331. padding-left: 20rpx;
  332. .icon-kefunv {
  333. font-size: 48rpx;
  334. color: #31313b;
  335. float: left;
  336. }
  337. .text {
  338. font-size: $font-size-24;
  339. display: block;
  340. float: left;
  341. width: 60rpx;
  342. line-height: 30rpx;
  343. color: #ffffff;
  344. margin-top: 6rpx;
  345. }
  346. }
  347. .register-agree {
  348. display: flex;
  349. flex-direction: column;
  350. align-items: center;
  351. margin: 100rpx 0 20rpx 0;
  352. .agree-text {
  353. .checkbox {
  354. float: left;
  355. margin: 4rpx 6rpx 0 0;
  356. color: #999999;
  357. font-size: $font-size-34;
  358. &.icon-gouxuan {
  359. color: $color-system;
  360. }
  361. }
  362. font-size: $font-size-22;
  363. line-height: 44rpx;
  364. color: #999999;
  365. text {
  366. color: #1890f9;
  367. }
  368. }
  369. }
  370. .register-logo {
  371. width: 100%;
  372. display: flex;
  373. flex-direction: column;
  374. align-items: center;
  375. height: 284rpx;
  376. padding: 60rpx 0 40rpx 0;
  377. .logo {
  378. width: 611rpx;
  379. height: 284rpx;
  380. display: block;
  381. }
  382. }
  383. &.detailed {
  384. padding-bottom: 330rpx;
  385. }
  386. .register-row {
  387. width: 100%;
  388. height: auto;
  389. padding: 0 75rpx;
  390. margin-bottom: 30rpx;
  391. box-sizing: border-box;
  392. &.none {
  393. margin-bottom: 0;
  394. }
  395. &.login {
  396. display: flex;
  397. }
  398. .register-text {
  399. line-height: 44rpx;
  400. margin-top: 100rpx;
  401. font-size: $font-size-24;
  402. color: #999999;
  403. text-align: justify;
  404. .txt {
  405. margin-right: 15rpx;
  406. }
  407. }
  408. .register-title {
  409. line-height: 44rpx;
  410. font-size: $font-size-24;
  411. color: $text-color;
  412. text-align: left;
  413. &.first {
  414. margin-top: 20rpx;
  415. }
  416. }
  417. .register-tip {
  418. line-height: 64rpx;
  419. font-size: $font-size-24;
  420. color: #cecece;
  421. text-align: left;
  422. }
  423. .register-from {
  424. width: 100%;
  425. height: 80rpx;
  426. background: #ffffff;
  427. position: relative;
  428. border-bottom: 1px solid #e1e1e1;
  429. .label {
  430. text-align: left;
  431. font-size: $font-size-28;
  432. color: #666666;
  433. line-height: 88rpx;
  434. float: left;
  435. }
  436. .row-input {
  437. width: 440rpx;
  438. padding-left: 10rpx;
  439. font-size: $font-size-28;
  440. color: $text-color;
  441. line-height: 80rpx;
  442. float: left;
  443. height: 80rpx;
  444. &.none {
  445. color: #999999;
  446. }
  447. &.picker {
  448. text-align: left;
  449. color: #333333;
  450. }
  451. &.keshi {
  452. width: 550rpx;
  453. }
  454. &.code {
  455. width: 264rpx;
  456. }
  457. }
  458. &.img-btn {
  459. width: 220rpx;
  460. height: 80rpx;
  461. padding: 0;
  462. float: left;
  463. background: #ffffff;
  464. display: block;
  465. .vscodeimg {
  466. width: 150rpx;
  467. height: 80rpx;
  468. float: left;
  469. display: flex;
  470. flex-direction: column;
  471. align-items: center;
  472. border-radius: 14rpx;
  473. image {
  474. width: 150rpx;
  475. height: 80rpx;
  476. border-radius: 14rpx;
  477. }
  478. }
  479. .vscod-refresh {
  480. width: 70rpx;
  481. float: right;
  482. text-align: right;
  483. display: flex;
  484. flex-direction: column;
  485. align-items: center;
  486. line-height: 44rpx;
  487. .icon-shuaxin {
  488. font-size: 48rpx;
  489. color: #333333;
  490. }
  491. .ref-text {
  492. font-size: 24rpx;
  493. color: #333333;
  494. }
  495. }
  496. }
  497. &.imgcode {
  498. width: 410rpx;
  499. float: left;
  500. margin-right: 20rpx;
  501. .row-input {
  502. width: 230rpx;
  503. }
  504. }
  505. .row-btn {
  506. width: 180rpx;
  507. height: 64rpx;
  508. float: left;
  509. background: $btn-confirm;
  510. padding: 0;
  511. border-radius: 32rpx;
  512. .row-input {
  513. width: 180rpx;
  514. height: 64rpx;
  515. line-height: 64rpx;
  516. padding: 0;
  517. color: #ffffff;
  518. background: $btn-confirm;
  519. text-align: center;
  520. border-radius: 32rpx;
  521. &.other {
  522. width: 180rpx;
  523. background: #f7f7f7;
  524. margin-right: 20rpx;
  525. }
  526. &.none {
  527. background: #f7f7f7;
  528. }
  529. }
  530. &.disabled {
  531. background: #f7f7f7;
  532. .row-input {
  533. background: #f7f7f7;
  534. color: #999999;
  535. font-size: 24rpx;
  536. }
  537. }
  538. }
  539. &.picker {
  540. padding: 0 24rpx;
  541. width: 654rpx;
  542. height: 88rpx;
  543. line-height: 88rpx;
  544. .label {
  545. line-height: 88rpx;
  546. }
  547. .row-input {
  548. width: 470rpx;
  549. height: 88rpx;
  550. line-height: 88rpx;
  551. padding-left: 30rpx;
  552. }
  553. }
  554. &.radio {
  555. padding: 0 24rpx;
  556. width: 654rpx;
  557. height: 288rpx;
  558. .row-input {
  559. width: 100%;
  560. height: 88rpx;
  561. line-height: 88rpx;
  562. padding-left: 0;
  563. }
  564. .row-radio {
  565. float: left;
  566. transform: scale(0.8);
  567. }
  568. .row-text {
  569. width: 100rpx;
  570. text-align: center;
  571. float: left;
  572. }
  573. }
  574. &.group {
  575. padding: 0 24rpx;
  576. width: 654rpx;
  577. height: auto;
  578. background: #ffffff;
  579. margin-top: 30rpx;
  580. .label {
  581. line-height: 76rpx;
  582. }
  583. .row-input {
  584. width: 100%;
  585. height: 88rpx;
  586. line-height: 88rpx;
  587. padding-left: 0;
  588. }
  589. .row-radio {
  590. float: left;
  591. }
  592. .row-text {
  593. width: 100rpx;
  594. text-align: center;
  595. float: left;
  596. }
  597. }
  598. &.btn {
  599. margin-top: 0;
  600. }
  601. .content-class {
  602. margin: 20rpx auto;
  603. display: flex;
  604. flex-flow: row wrap;
  605. justify-content: space-between;
  606. align-items: center;
  607. &.btn {
  608. margin: 0 auto;
  609. margin-left: 116rpx;
  610. }
  611. .row-input {
  612. display: flex;
  613. width: 220rpx;
  614. height: 40rpx;
  615. padding: 24rpx;
  616. text-align: left;
  617. border-radius: 10rpx;
  618. font-size: $font-size-28;
  619. color: $text-color;
  620. }
  621. .confirm-btn {
  622. width: 200rpx;
  623. height: 88rpx;
  624. border-radius: 10rpx;
  625. line-height: 88rpx;
  626. text-align: center;
  627. &.other {
  628. width: 213rpx;
  629. }
  630. &.none {
  631. color: #ffffff;
  632. background: $btn-confirm;
  633. }
  634. &.disabled {
  635. color: #999999;
  636. }
  637. }
  638. .item {
  639. width: 155rpx;
  640. height: 60rpx;
  641. font-size: $font-size-28;
  642. line-height: 60rpx;
  643. border-radius: 10rpx;
  644. margin: 10rpx;
  645. text-align: center;
  646. box-sizing: border-box;
  647. border: 1rpx solid #efefef;
  648. float: left;
  649. checkbox {
  650. display: none;
  651. }
  652. }
  653. .on {
  654. border-color: $color-system;
  655. color: $color-system;
  656. }
  657. }
  658. }
  659. .row-login {
  660. flex: 1;
  661. font-size: $font-size-28;
  662. color: $text-color;
  663. text-align: left;
  664. }
  665. .row-logincode {
  666. flex: 1;
  667. font-size: $font-size-28;
  668. color: $text-color;
  669. text-align: right;
  670. }
  671. .icon-xiayibu {
  672. width: 88rpx;
  673. height: 88rpx;
  674. position: absolute;
  675. right: 0;
  676. top: 0;
  677. line-height: 88rpx;
  678. text-align: center;
  679. }
  680. &.text-textarea {
  681. background: #ffffff;
  682. .textarea {
  683. width: 654rpx;
  684. height: 180rpx;
  685. background: #f7f7f7;
  686. padding: 24rpx;
  687. font-size: $font-size-28;
  688. color: $text-color;
  689. z-index: 1;
  690. border-radius: 14rpx;
  691. }
  692. .textarea.hide {
  693. opacity: 0;
  694. }
  695. .textarea.show {
  696. color: #999999;
  697. }
  698. }
  699. }
  700. .register-picture {
  701. height: 102rpx;
  702. margin: 30rpx 0;
  703. width: 42%;
  704. float: left;
  705. &.zz {
  706. width: 100%;
  707. }
  708. .label {
  709. float: left;
  710. font-size: $font-size-28;
  711. color: $text-color;
  712. line-height: 102rpx;
  713. width: 150rpx;
  714. text-align: right;
  715. &.zz {
  716. width: 230rpx;
  717. }
  718. }
  719. .upload-picture {
  720. float: left;
  721. height: 100rpx;
  722. .upload-none {
  723. width: 100rpx;
  724. height: 100rpx;
  725. text-align: center;
  726. line-height: 100rpx;
  727. color: #999999;
  728. border: 1px solid #999999;
  729. border-radius: 10rpx;
  730. margin: 0 20rpx;
  731. .iconfont {
  732. font-size: $font-size-28;
  733. }
  734. }
  735. .upload-image {
  736. width: 100rpx;
  737. height: 100rpx;
  738. border-radius: 10rpx;
  739. margin: 0 20rpx;
  740. position: relative;
  741. image {
  742. width: 100rpx;
  743. height: 100rpx;
  744. border-radius: 10rpx;
  745. }
  746. .upload-del {
  747. width: 40rpx;
  748. height: 40rpx;
  749. position: absolute;
  750. top: -20rpx;
  751. right: -20rpx;
  752. line-height: 40rpx;
  753. text-align: center;
  754. .iconfont {
  755. font-size: $font-size-32;
  756. color: #999999;
  757. }
  758. }
  759. }
  760. }
  761. }
  762. .register-input {
  763. width: 654rpx;
  764. height: 40rpx;
  765. padding: 24rpx;
  766. margin: 0 auto;
  767. margin-bottom: 60rpx;
  768. background: #f7f7f7;
  769. border-radius: 14rpx;
  770. .input {
  771. width: 100%;
  772. height: 100%;
  773. background: #f7f7f7;
  774. font-size: $font-size-28;
  775. line-height: 40rpx;
  776. color: #333333;
  777. border-radius: 14rpx;
  778. }
  779. }
  780. .register-fiexd {
  781. width: 100%;
  782. height: auto;
  783. position: fixed;
  784. bottom: 0;
  785. left: 0;
  786. z-index: 999;
  787. background: #ffffff;
  788. }
  789. .register-btn {
  790. width: 100%;
  791. height: 88rpx;
  792. border-radius: 44rpx;
  793. font-size: $font-size-28;
  794. line-height: 88rpx;
  795. color: #ffffff;
  796. margin: 0 auto;
  797. text-align: center;
  798. background: $btn-confirm;
  799. margin-top: 96rpx;
  800. &.none {
  801. border: 1px solid $color-system;
  802. background: #ffffff;
  803. color: $color-system;
  804. margin-top: 0;
  805. }
  806. &.sub {
  807. margin-top: 0;
  808. }
  809. }
  810. }
  811. }
  812. </style>