register.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739
  1. <!-- 注册页面 -->
  2. <template>
  3. <view class="container">
  4. <text class="back-btn iconfont iconziyuan2" @click="navBack"></text>
  5. <!-- 设置白色背景防止软键盘把下部绝对定位元素顶上来盖住输入框等 -->
  6. <view class="wrapper">
  7. <view class="login-title">
  8. {{$L('注册')}}
  9. </view>
  10. <view class="input-content">
  11. <view class="input-item">
  12. <input type="number" :value="mobile" :placeholder="$L('请输入手机号')" maxlength="11" data-key="mobile" @input="inputChange" @focus="setFocus"/>
  13. <text class="clear-account iconfont iconziyuan34" v-show="mobile&&curFocus=='mobile'" @click="clearContent('mobile')"></text>
  14. </view>
  15. <view class="input-item">
  16. <input type="text" :value="imgCode" maxlength="4" :placeholder="$L('请输入图形验证码')" data-key="imgCode" @input="inputChange" @focus="setFocus"/>
  17. <view class="pwd-right">
  18. <text class="clear-pwd iconfont iconziyuan34" v-show="imgCode&&curFocus=='imgCode'" @click="clearContent('imgCode')"></text>
  19. <image @click="getImgCode" :src='showCodeImg' />
  20. </view>
  21. </view>
  22. <view class="input-item">
  23. <input type="number" :value="smsCode" maxlength="6" :placeholder="$L('请输入短信验证码')" data-key="smsCode" @input="inputChange"
  24. @confirm="toRegist" @focus="setFocus"/>
  25. <view class="pwd-right">
  26. <text class="clear-pwd iconfont iconziyuan34" v-show="smsCode&&curFocus=='smsCode'" @click="clearContent('smsCode')"></text>
  27. <view :style="{opacity: countDownM?0.3:1}" class="sms-code-view" @click="getSmsCode">
  28. <text class="sms-code">{{countDownM?`${countDownM}s后重新获取`:'获取验证码'}}</text>
  29. </view>
  30. </view>
  31. </view>
  32. </view>
  33. <button class="confirm-btn" @click="toRegist" :style="{opacity: (!(mobile&&smsCode&&imgCode)||logining)?0.5:1}">{{$L('注册')}}</button>
  34. <view class="login-register">
  35. <text class="mobile-login">{{$L('已有账号')}}~</text>
  36. <text class="register" @click="navTo('/pages/public/login',1)">{{$L('去登陆')}}></text>
  37. </view>
  38. </view>
  39. <view class="other-login">
  40. <!-- #ifdef H5 -->
  41. <view class="title" v-if="isWeiXinH5">
  42. <text >{{$L('其他登录')}}</text>
  43. </view>
  44. <!-- #endif -->
  45. <!-- #ifndef H5 -->
  46. <view class="title">
  47. <text >{{$L('其他登录')}}</text>
  48. </view>
  49. <!-- #endif -->
  50. <view class="login-method">
  51. <!-- #ifdef MP-WEIXIN -->
  52. <button class="wechat-login" v-if="canIUseGetUserProfile" @tap="getUserProfile">
  53. <image class="wechat-icon" :src="imgUrl+'wechat.png'" mode="aspectFill" />
  54. <text>{{$L('微信登录')}}</text>
  55. </button>
  56. <button class="wechat-login" v-if="!canIUseGetUserProfile" open-type="getUserInfo" @getuserinfo="getUser">
  57. <image class="wechat-icon" :src="imgUrl+'wechat.png'" mode="aspectFill" />
  58. <text>{{$L('微信登录')}}</text>
  59. </button>
  60. <!-- #endif -->
  61. <!-- #ifdef H5-->
  62. <view class="wechat-login" @tap="quickLogin" v-if="isWeiXinH5">
  63. <image class="wechat-icon" :src="imgUrl+'wechat.png'" mode="aspectFill" />
  64. <text>{{$L('微信登录')}}</text>
  65. </view>
  66. <!-- #endif -->
  67. <!-- #ifdef APP-PLUS -->
  68. <view class="wechat-login" @tap="quickLogin" v-if="isWxEnable==1">
  69. <image class="wechat-icon" :src="imgUrl+'wechat.png'" mode="aspectFill" />
  70. <text>{{$L('微信登录')}}</text>
  71. </view>
  72. <!-- #endif -->
  73. </view>
  74. </view>
  75. <view class="agreement-part flex_row_center_center">
  76. <image @click="checkAgrement" class="register_icon" :src="show_check_icon" mode="aspectFill" />
  77. {{$L('我已阅读并同意')}}
  78. <text class="agreement" @click="agreement">{{$L('《用户注册协议及隐私政策》')}}</text>
  79. </view>
  80. </view>
  81. </template>
  82. <script>
  83. import {
  84. mapMutations
  85. } from 'vuex';
  86. export default {
  87. data() {
  88. return {
  89. mobile: '',
  90. smsCode: '',
  91. showCodeImg: '',
  92. imgCode: '', //图形验证码
  93. imgCodeKey: '', //图形验证码的key
  94. logining: false,
  95. check_agreement: false,
  96. show_check_icon: getApp().globalData.imgUrl+'register_uncheck.png',
  97. countDownM: 0, //短信验证码倒计时
  98. timeOutId: '', //定时器的返回值
  99. curFocus:'',//当前光标所在的位置
  100. client: 1, //终端类型, 1、H5(微信内部浏览器) 2、H5(微信小程序);3、app
  101. oriUrl:'',//不带code的页面地址
  102. imgUrl: getApp().globalData.imgUrl,
  103. isWeiXinH5:true, //是否为微信浏览器h5
  104. canIUseGetUserProfile: false,//是否可以使用getUserProfile获取用户信息,用于微信小程序
  105. spreaderMemberId:0,
  106. isWxEnable:1,
  107. }
  108. },
  109. onLoad(option) {
  110. this.getImgCode();
  111. this.client = this.$getLoginClient();
  112. //#ifdef MP-WEIXIN
  113. if (uni.getUserProfile) {
  114. this.canIUseGetUserProfile = true;
  115. }
  116. this.spreaderMemberId = option.u?decodeURIComponent(option.u):0
  117. //#endif
  118. //#ifdef H5
  119. let code = this.$getQueryVariable('code');
  120. this.spreaderMemberId = option.u?option.u:0
  121. this.isWeiXinH5 = this.$isWeiXinBrower();
  122. if(code){
  123. let oriUrl = option.ori_url+'pages/public/register';
  124. let tmp_data = '';
  125. for(let i in option){
  126. if(i!='ori_url'){
  127. tmp_data += i+'='+option[i]+'&'
  128. }
  129. }
  130. oriUrl += '?'+tmp_data;
  131. this.oriUrl = oriUrl;
  132. if(this.$isWeiXinBrower()){
  133. //微信浏览器的话要把浏览器地址里面的code去掉
  134. history.replaceState({},'',this.oriUrl);
  135. }
  136. let tar_params = {};
  137. tar_params.source = this.client;
  138. tar_params.code = code;
  139. this.goLogin(tar_params);
  140. }
  141. //#endif
  142. this.getWxAuthority()
  143. },
  144. methods: {
  145. ...mapMutations(['login', 'setUserCenterData']),
  146. getUser(e) {
  147. if (e.detail.errMsg == "getUserInfo:ok") {
  148. let userinfo = e.detail.userInfo;
  149. this.getWxXcxCoce(userinfo);
  150. }
  151. },
  152. //微信小程序根据用户信息获取code
  153. getWxXcxCoce(userinfo) {
  154. uni.setStorageSync('fromurl', '/pages/user/user');
  155. let {client} = this;
  156. let _this = this;
  157. uni.showLoading({
  158. title: '正在请求...',
  159. mask: true
  160. });
  161. uni.login({
  162. success: code => {
  163. let tar_params = {};
  164. tar_params.source = client;
  165. tar_params.code = code.code;
  166. tar_params.userInfo = JSON.stringify(userinfo);
  167. _this.goLogin(tar_params);
  168. }
  169. });
  170. },
  171. getUserProfile(e) {
  172. // 推荐使用wx.getUserProfile获取用户信息,开发者每次通过该接口获取用户个人信息均需用户确认
  173. // 开发者妥善保管用户快速填写的头像昵称,避免重复弹窗
  174. uni.getUserProfile({
  175. desc: '用于完善个人信息', // 声明获取用户个人信息后的用途,后续会展示在弹窗中,请谨慎填写
  176. success: (res) => {
  177. if(res.errMsg == "getUserProfile:ok"){
  178. let userinfo = res.userInfo;
  179. this.getWxXcxCoce(userinfo);
  180. }
  181. }
  182. })
  183. },
  184. //授权登录
  185. quickLogin (){
  186. if (!this.check_agreement) {
  187. this.$api.msg('请同意用户注册协议及隐私政策!');
  188. return false;
  189. }
  190. uni.setStorageSync('fromurl', '/pages/user/user');
  191. let {client} = this;
  192. let _this = this;
  193. //#ifdef APP-PLUS
  194. uni.login({
  195. provider: 'weixin',
  196. success: function (loginRes) {
  197. if(loginRes.errMsg == 'login:ok'){
  198. //授权登录成功
  199. // 获取用户信息
  200. uni.getUserInfo({
  201. provider: 'weixin',
  202. success: function (infoRes) {
  203. let tar_params = {};
  204. tar_params.unionid = loginRes.authResult.unionid;
  205. tar_params.openid = loginRes.authResult.openid;
  206. tar_params.userInfo = JSON.stringify(infoRes.userInfo);
  207. tar_params.source = client;
  208. _this.goLogin(tar_params);
  209. }
  210. });
  211. }
  212. }
  213. });
  214. //#endif
  215. //#ifdef H5
  216. let tar_url = location.href;
  217. tar_url += location.href.indexOf('?')>-1?'&':'?';
  218. tar_url += 'ori_url='+location.href;
  219. let uricode = encodeURIComponent(tar_url)
  220. window.location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=' + getApp().globalData.h5AppId +
  221. '&redirect_uri=' + uricode + '&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect';
  222. //#endif
  223. },
  224. //登录 data为除购物车信息外的接口参数,对象类型
  225. goLogin(data){
  226. let _this = this;
  227. let param = {};
  228. param.url = 'v3/member/front/login/wechat/login';
  229. param.data = {...data};
  230. //如果有缓存的购物车数据,登录需要把数据同步,并清除本地缓存
  231. let local_cart_list = uni.getStorageSync('cart_list')
  232. let cartInfo = []
  233. if (local_cart_list) {
  234. local_cart_list.cartInfoList.map(item => {
  235. if (item.isChecked == 1) {
  236. cartInfo.push({
  237. goodsId: item.goodsId,
  238. productId: item.productId,
  239. buyNum: item.buyNum,
  240. productPrice: item.productPrice,
  241. checked: 1
  242. })
  243. }
  244. })
  245. param.data.cartInfo = JSON.stringify(cartInfo);
  246. }
  247. param.method = 'POST';
  248. this.$request(param).then(res => {
  249. if (res.state == 200) {
  250. uni.removeStorage({
  251. key: 'cart_list'
  252. }); //清除购物车数据
  253. if(res.data.redirect == undefined){
  254. //登录成功 获取个人中心的数据
  255. res.data.loginTime = Date.parse(new Date());//登录时间
  256. _this.login(res.data);
  257. _this.$request({
  258. url: 'v3/member/front/member/memberInfo',
  259. }).then(result => {
  260. _this.setUserCenterData(result.data);
  261. _this.$loginGoPage();
  262. }).catch((e) => {})
  263. }else if(res.data.redirect != undefined){
  264. //用户未注册,需要绑定手机号进行注册
  265. uni.navigateTo({
  266. url: '/pages/public/bindMobile?code='+res.data.bindKey
  267. })
  268. }
  269. } else {
  270. //错误提示
  271. _this.$api.msg(res.msg);
  272. }
  273. uni.hideLoading();
  274. }).catch((e) => {
  275. uni.hideLoading();
  276. })
  277. },
  278. //跳转协议页面
  279. agreement() {
  280. uni.navigateTo({
  281. url: '/pages/privacyPolicy/privacyPolicy'
  282. })
  283. },
  284. //光标聚焦事件
  285. setFocus(e){
  286. this.curFocus = e.currentTarget.dataset.key;
  287. },
  288. //获取图形验证码
  289. getImgCode() {
  290. this.$request({
  291. url: 'v3/captcha/common/getCaptcha'
  292. }).then(res => {
  293. if (res.state == 200) {
  294. this.showCodeImg = 'data:image/png;base64,' + res.data.captcha;
  295. this.imgCodeKey = res.data.key;
  296. } else {
  297. // this.$api.msg(res.data.msg);
  298. }
  299. })
  300. },
  301. //注册协议点击事件
  302. checkAgrement() {
  303. this.check_agreement = !this.check_agreement;
  304. this.show_check_icon = this.check_agreement ? getApp().globalData.imgUrl+'register_checked.png' : getApp().globalData.imgUrl+'register_uncheck.png';
  305. },
  306. inputChange(e) {
  307. const key = e.currentTarget.dataset.key;
  308. this[key] = e.detail.value;
  309. },
  310. navBack() {
  311. uni.navigateBack();
  312. },
  313. toRegist() {
  314. const {
  315. mobile,
  316. smsCode,
  317. imgCode,
  318. imgCodeKey,
  319. logining
  320. } = this;
  321. if (!(mobile && smsCode && imgCode) || logining) {
  322. return;
  323. }
  324. if(mobile.length<11){
  325. this.$api.msg('请填写格式正确的手机号');
  326. return;
  327. }
  328. if (!this.check_agreement) {
  329. this.$api.msg('请同意用户注册协议及隐私政策!');
  330. return false;
  331. }
  332. this.logining = true;
  333. let param = {};
  334. param.url = 'v3/frontLogin/oauth/register';
  335. param.data = {};
  336. param.method = 'POST';
  337. param.data.phone = mobile;
  338. param.data.code = smsCode;
  339. param.data.verifyCode = imgCode;
  340. param.data.verifyKey = imgCodeKey;
  341. if(this.spreaderMemberId){
  342. param.data.spreaderKey = this.spreaderMemberId
  343. }
  344. //如果有缓存的购物车数据,登录需要把数据同步,并清除本地缓存
  345. let local_cart_data = uni.getStorageSync('cart_data'); //这里需要同步获取
  346. if (local_cart_data) {
  347. param.data.cartInfo = JSON.stringify(local_cart_data);
  348. }
  349. param.method = 'POST';
  350. this.$request(param).then(res => {
  351. if (res.state == 200) {
  352. uni.removeStorage({
  353. key: 'cart_data'
  354. }); //清除购物车数据
  355. res.data.loginTime = Date.parse(new Date());//登录时间
  356. this.login(res.data);
  357. //获取个人中心的数据
  358. this.$request({
  359. url: 'v3/member/front/member/memberInfo',
  360. }).then(result => {
  361. this.setUserCenterData(result.data);
  362. const pages = getCurrentPages();
  363. if (pages.length > 1) {
  364. // 直接返回上两级页面,否则会跳到登录页
  365. uni.navigateBack({
  366. delta: 2
  367. });
  368. } else {
  369. uni.switchTab({
  370. url: `/pages/user/user`
  371. });
  372. }
  373. }).catch((e) => {})
  374. } else {
  375. //错误提示
  376. this.$api.msg(res.msg);
  377. // 验证码刷新
  378. this.getImgCode()
  379. }
  380. this.logining = false;
  381. }).catch((e) => {})
  382. },
  383. //清空输入的内容
  384. clearContent(type) {
  385. this[type] = '';
  386. },
  387. //获取短信验证码
  388. getSmsCode() {
  389. if (this.countDownM) {
  390. return;
  391. }
  392. if (!this.$checkMobile(this.mobile)) {
  393. return false
  394. } else if (!this.imgCode) {
  395. this.$api.msg('请输入图形验证码!');
  396. } else {
  397. let param = {};
  398. param.url = 'v3/msg/front/commons/getCaptcha';
  399. param.data = {};
  400. param.data.verifyType = 2;
  401. param.data.mobile = this.mobile;
  402. param.data.verifyCode = this.imgCode;
  403. param.data.verifyKey = this.imgCodeKey;
  404. this.$request(param).then(res => {
  405. if (res.state == 200) {
  406. this.countDownM = 60;
  407. this.countDown();
  408. }else{
  409. this.$api.msg(res.msg)
  410. this.imgCode = '';
  411. this.getImgCode();
  412. }
  413. })
  414. }
  415. },
  416. //跳转事件 type:跳转类型,1为redirectTo 2为navigateTo
  417. navTo(url, type) {
  418. if (type == 1) {
  419. uni.redirectTo({
  420. url
  421. })
  422. } else if (type == 2) {
  423. uni.navigateTo({
  424. url
  425. })
  426. }
  427. },
  428. //倒计时
  429. countDown() {
  430. this.countDownM--;
  431. if (this.countDownM == 0) {
  432. clearTimeout(this.timeOutId);
  433. } else {
  434. this.timeOutId = setTimeout(this.countDown, 1000);
  435. }
  436. },
  437. getWxAuthority(){
  438. this.$request({
  439. url:'v3/system/front/setting/getSettings',
  440. data:{
  441. names:'login_wx_app_is_enable'
  442. }
  443. }).then(res=>{
  444. this.isWxEnable = res.data[0]
  445. })
  446. }
  447. },
  448. }
  449. </script>
  450. <style lang='scss'>
  451. page {
  452. background: #fff;
  453. width: 750rpx;
  454. margin: 0 auto;
  455. }
  456. .container {
  457. position: relative;
  458. width: 750rpx;
  459. height: 100vh;
  460. overflow: hidden;
  461. background: #fff;
  462. }
  463. .wrapper {
  464. position: relative;
  465. z-index: 90;
  466. background: #fff;
  467. padding-bottom: 40upx;
  468. }
  469. .back-btn {
  470. margin-left: 40rpx;
  471. margin-top: 40rpx;
  472. /* #ifndef H5 */
  473. margin-top: 88rpx;
  474. /* #endif */
  475. font-size: 32rpx;
  476. color: $main-font-color;
  477. display: inline-block;
  478. }
  479. .login-title {
  480. position: relative;
  481. margin-top: 90rpx;
  482. margin-bottom: 70rpx;
  483. margin-left: 65rpx;
  484. font-size: 36rpx;
  485. color: #333;
  486. font-weight: bold;
  487. &:after {
  488. position: absolute;
  489. left: 0;
  490. bottom: -10rpx;
  491. content: '';
  492. width: 76rpx;
  493. height: 6rpx;
  494. background: linear-gradient(90deg, rgba(252, 28, 28, 1) 0%, rgba(255, 138, 0, 0) 100%);
  495. }
  496. }
  497. .input-content {
  498. padding: 0 65rpx;
  499. }
  500. .input-item {
  501. display: flex;
  502. flex-direction: column;
  503. align-items: flex-start;
  504. justify-content: center;
  505. height: 80rpx;
  506. margin-bottom: 50upx;
  507. border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  508. position: relative;
  509. input {
  510. color: #2D2D2D;
  511. font-size: 30rpx;
  512. }
  513. .clear-account {
  514. position: absolute;
  515. right: 6rpx;
  516. top: 28rpx;
  517. font-size: 26rpx;
  518. color: #ddd;
  519. }
  520. &:nth-child(2) {
  521. .pwd-right {
  522. position: absolute;
  523. right: 6rpx;
  524. top: 14rpx;
  525. display: flex;
  526. align-items: center;
  527. .clear-pwd {
  528. font-size: 26rpx;
  529. color: #ddd;
  530. }
  531. image {
  532. width: 132rpx;
  533. height: 55rpx;
  534. box-shadow: 0px 5rpx 9rpx 1rpx rgba(102, 102, 102, 0.1);
  535. border-radius: 6rpx;
  536. margin-left: 20rpx;
  537. }
  538. }
  539. }
  540. &:last-child {
  541. margin-bottom: 0;
  542. .pwd-right {
  543. position: absolute;
  544. right: 6rpx;
  545. top: 6rpx;
  546. display: flex;
  547. align-items: center;
  548. .clear-pwd {
  549. font-size: 26rpx;
  550. color: #ddd;
  551. }
  552. .sms-code-view {
  553. border: 1px solid $main-color;
  554. padding: 14rpx;
  555. border-radius: 6rpx;
  556. line-height: 0;
  557. margin-left: 20rpx;
  558. .sms-code {
  559. color: $main-color;
  560. font-size: 24rpx;
  561. line-height: 24rpx;
  562. }
  563. }
  564. }
  565. }
  566. .tit {
  567. height: 50upx;
  568. line-height: 56upx;
  569. font-size: $font-sm+2upx;
  570. color: $font-color-base;
  571. }
  572. input {
  573. height: 60upx;
  574. font-size: $font-base + 2upx;
  575. color: $font-color-dark;
  576. }
  577. }
  578. .confirm-btn {
  579. width: 620rpx;
  580. height: 88rpx;
  581. line-height: 88rpx;
  582. margin-top: 90rpx;
  583. background: linear-gradient(90deg, rgba(252, 31, 29, 1) 0%, rgba(253, 115, 38, 1) 100%);
  584. box-shadow: 0px 3rpx 14rpx 1rpx rgba(253, 38, 29, 0.26);
  585. opacity: 0.7;
  586. border-radius: 44rpx;
  587. color: #fff;
  588. font-size: 36rpx;
  589. }
  590. .other-login {
  591. position: absolute;
  592. left: 0;
  593. bottom: 140rpx;
  594. width: 100%;
  595. display: flex;
  596. flex-direction: column;
  597. .title {
  598. display: flex;
  599. justify-content: center;
  600. align-items: center;
  601. &:before {
  602. content: ' ';
  603. width: 150rpx;
  604. height: 1rpx;
  605. background: #CBCBCB;
  606. }
  607. &:after {
  608. content: ' ';
  609. width: 150rpx;
  610. height: 1rpx;
  611. background: #CBCBCB;
  612. }
  613. text {
  614. color: #999999;
  615. font-size: 26rpx;
  616. margin: 0 20rpx;
  617. }
  618. }
  619. .login-method {
  620. display: flex;
  621. justify-content: center;
  622. margin-top: 20rpx;
  623. .wechat-login {
  624. display: flex;
  625. flex-direction: column;
  626. align-items: center;
  627. width: 100%;
  628. background: transparent;
  629. line-height: auto;
  630. height: auto;
  631. &::after {
  632. border: none;
  633. }
  634. .wechat-icon {
  635. width: 110rpx;
  636. height: 110rpx;
  637. }
  638. text {
  639. color: #666666;
  640. font-size: 26rpx;
  641. }
  642. }
  643. }
  644. }
  645. .agreement-part {
  646. position: absolute;
  647. left: 0;
  648. bottom: 60rpx;
  649. width: 100%;
  650. font-size: 26rpx;
  651. color: #999999;
  652. text-align: center;
  653. .register_icon {
  654. width: 46rpx;
  655. height: 46rpx;
  656. }
  657. .agreement {
  658. color: #FC1E1E;
  659. border-bottom: 1rpx solid #FC1E1E;
  660. }
  661. }
  662. .login-register {
  663. display: flex;
  664. justify-content: center;
  665. margin-top: 33rpx;
  666. .mobile-login {
  667. color: #949494;
  668. font-size: 28rpx;
  669. line-height: 34rpx;
  670. }
  671. .register {
  672. color: #FC1C1C;
  673. font-size: 28rpx;
  674. line-height: 34rpx;
  675. }
  676. }
  677. </style>