register.vue 19 KB

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