login.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832
  1. <template>
  2. <view class="container">
  3. <!-- #ifdef MP-WEIXIN -->
  4. <image class="bg" src="https://ysrw-1395926010.cos.ap-chengdu.myqcloud.com/image/bg_login.png" mode="widthFix"></image>
  5. <view class="force-login-wrap">
  6. <view :style="{height:menuButtonInfo.height,marginTop:menuButtonInfo.top}" class="backImg">
  7. <image @tap="goBack()" src="https://ysrw-1395926010.cos.ap-chengdu.myqcloud.com/image/back_white.png"></image>
  8. </view>
  9. <view class="top-title">
  10. <view class="title-text">欢迎登录<text class="blue">一咻学术</text></view>
  11. <view class="login-notice">新用户首次登录即视为注册</view>
  12. </view>
  13. <view class="force-login__content">
  14. <view class="logintype">
  15. <view :class="current==0 ? 'logintype-item active':'logintype-item'" @click="changeType(0)">验证码登录
  16. </view>
  17. <view class="line"></view>
  18. <view :class="current==1 ? 'logintype-item active':'logintype-item'" @click="changeType(1)">密码登录
  19. </view>
  20. </view>
  21. <view class="input-form">
  22. <view class="input-item">
  23. <input v-if="current == 0" class="input-field" type="number" v-model="phone" placeholder="请输入手机号" maxlength="11" />
  24. <input v-else class="input-field" v-model="account" placeholder="请输入账号" />
  25. </view>
  26. <view class="input-item code-input-item">
  27. <input v-if="current == 0" class="input-field code-input" type="number" v-model="verifyCode"
  28. placeholder="请输入验证码" maxlength="6" />
  29. <view v-else class="mima">
  30. <input class="input-field code-input" type="text" :password="showPassword"
  31. v-model="password" placeholder="请输入密码" />
  32. <image @click="closePwd"
  33. :src="showPassword?'https://ysrw-1395926010.cos.ap-chengdu.myqcloud.com/image/icon_invisible.png':'https://ysrw-1395926010.cos.ap-chengdu.myqcloud.com/image/icon_visible.png'"
  34. mode="aspectFill"></image>
  35. </view>
  36. <view v-if="current == 0" class="get-code-btn" @click="getVerifyCode">
  37. {{ codeText }}
  38. </view>
  39. </view>
  40. </view>
  41. <view class="forgot" v-if="current==1" @click="toForgetPassword">忘记密码?</view>
  42. <view class="encoding">企业编码:-</view>
  43. <view class="login-btn-wrap">
  44. <!-- <button class="login-btn" @click="handleLogin">{{ current == 0 ? '登录/注册用户' : '登录' }}</button> -->
  45. <button class="login-btn" @click="handleLogin">登录</button>
  46. </view>
  47. <view class="tips">
  48. <checkbox :checked="isAgreement" @click="handleAgreement()" />
  49. <view class="tips-text" @click="handleAgreement()">已阅读并接受</view>
  50. <view class="btn" @click.stop="navTo('/pages_user/userAgreement')">《用户注册协议》</view>
  51. <view class="btn" @click.stop="navTo('/pages_user/privacyPolicy')">《隐私保护政策》</view>
  52. </view>
  53. </view>
  54. </view>
  55. <!-- #endif -->
  56. </view>
  57. </template>
  58. <script>
  59. import {
  60. sendSmsCode,//发送短信验证码
  61. smsLogin, // 校验短信验证码
  62. login, // 密码登录
  63. } from '@/api/user'
  64. // import {
  65. // loginByMiniApp,
  66. // getUserInfo,
  67. // loginByMp
  68. // } from '@/api/user'
  69. export default {
  70. data() {
  71. return {
  72. account:null,
  73. code: null, // 微信登录code
  74. isAgreement: false,
  75. current: 0, // 0-验证码登录 1-密码登录
  76. menuButtonInfo: {},
  77. phone: '', // 手机号
  78. verifyCode: '', // 验证码
  79. password: '', // 密码
  80. codeText: '获取验证码', // 验证码按钮文字
  81. countdown: 0, // 倒计时
  82. countdownTimer: null, // 倒计时定时器
  83. showPassword: true // 是否显示密码
  84. }
  85. },
  86. computed: {},
  87. onLoad(option) {
  88. this.getMenuButtonInfo()
  89. // #ifdef MP-WEIXIN
  90. uni.$on('refreshLogin', () => {
  91. uni.navigateBack({
  92. delta: 1
  93. })
  94. })
  95. //选获取CODE,防止后请求的时候腾讯服务端未同步报错
  96. this.getCode();
  97. // #endif
  98. // #ifdef H5
  99. if (this.checkWeixin()) {
  100. this.getWxCode()
  101. } else {
  102. uni.showToast({
  103. icon: 'none',
  104. title: "请在微信中打开",
  105. });
  106. //跳转到手机号密码登录
  107. }
  108. // #endif
  109. },
  110. onUnload() {
  111. // 清除倒计时
  112. if (this.countdownTimer) {
  113. clearInterval(this.countdownTimer);
  114. this.countdownTimer = null;
  115. }
  116. },
  117. mounted() {
  118. },
  119. methods: {
  120. navTo(path) {
  121. console.log("地址",path)
  122. uni.navigateTo({
  123. url: path
  124. })
  125. },
  126. closePwd() {
  127. this.showPassword = !this.showPassword
  128. },
  129. // 获取胶囊按钮布局参数
  130. getMenuButtonInfo() {
  131. // 微信小程序API(Uniapp可直接用uni.getMenuButtonBoundingClientRect)
  132. const menuBtn = uni.getMenuButtonBoundingClientRect();
  133. if (menuBtn) {
  134. this.menuButtonInfo = {
  135. top: menuBtn.top + 'px', // 胶囊顶部距离
  136. height: menuBtn.height + 'px', // 胶囊高度
  137. centerY: (menuBtn.top + menuBtn.height / 2) + 'px', // 胶囊垂直居中Y坐标
  138. right: menuBtn.right + 'px' // 胶囊右侧距离
  139. };
  140. }
  141. },
  142. changeType(index) {
  143. this.current = index;
  144. // 切换时清空输入
  145. if (index == 0) {
  146. this.password = '';
  147. } else {
  148. this.verifyCode = '';
  149. }
  150. },
  151. // 返回主页
  152. goBack() {
  153. uni.navigateBack({
  154. delta: 1
  155. })
  156. },
  157. // 获取验证码
  158. getVerifyCode() {
  159. if (this.countdown > 0) {
  160. return;
  161. }
  162. if (!this.phone) {
  163. uni.showToast({
  164. icon: 'none',
  165. title: "请输入手机号",
  166. });
  167. return;
  168. }
  169. if (!/^1[3-9]\d{9}$/.test(this.phone)) {
  170. uni.showToast({
  171. icon: 'none',
  172. title: "请输入正确的手机号",
  173. });
  174. return;
  175. }
  176. // 调用发送验证码API
  177. uni.showLoading({
  178. title: "发送中..."
  179. });
  180. let params = {
  181. phone: this.phone,
  182. type: '0',
  183. }
  184. sendSmsCode(params)
  185. .then(res => {
  186. uni.hideLoading();
  187. if (res.code == 200) {
  188. uni.showToast({
  189. icon: 'success',
  190. title: "验证码已发送",
  191. });
  192. // 开始倒计时
  193. this.countdown = 60;
  194. this.countdownTimer = setInterval(() => {
  195. this.countdown--;
  196. this.codeText = this.countdown + '秒重新获取';
  197. if (this.countdown <= 0) {
  198. clearInterval(this.countdownTimer);
  199. this.countdownTimer = null;
  200. this.codeText = '获取验证码';
  201. }
  202. }, 1000);
  203. } else {
  204. uni.showToast({
  205. icon: 'none',
  206. title: res.message || "发送验证码失败",
  207. });
  208. }
  209. })
  210. .catch(err => {
  211. uni.hideLoading();
  212. });
  213. },
  214. // 登录
  215. handleLogin() {
  216. if (!this.isAgreement) {
  217. uni.showToast({
  218. icon: 'none',
  219. title: "请先同意协议后再登录",
  220. });
  221. return;
  222. }
  223. if (this.current == 0) {
  224. // 验证码登录
  225. if (!this.phone) {
  226. uni.showToast({
  227. icon: 'none',
  228. title: "请输入手机号",
  229. });
  230. return;
  231. }
  232. if (!/^1[3-9]\d{9}$/.test(this.phone)) {
  233. uni.showToast({
  234. icon: 'none',
  235. title: "请输入正确的手机号",
  236. });
  237. return;
  238. }
  239. if (!this.verifyCode) {
  240. uni.showToast({
  241. icon: 'none',
  242. title: "请输入验证码",
  243. });
  244. return;
  245. }
  246. this.loginByCode();
  247. } else {
  248. // 密码登录
  249. if (!this.account) {
  250. uni.showToast({
  251. icon: 'none',
  252. title: "请输入账号",
  253. });
  254. return;
  255. }
  256. if (!this.password) {
  257. uni.showToast({
  258. icon: 'none',
  259. title: "请输入密码",
  260. });
  261. return;
  262. }
  263. this.loginByPassword();
  264. }
  265. },
  266. // 验证码登录
  267. loginByCode() {
  268. uni.showLoading({
  269. title: "登录中..."
  270. });
  271. // 调用验证码登录接口
  272. const data = {
  273. phone: this.phone,
  274. code: this.verifyCode
  275. };
  276. smsLogin(data)
  277. .then(res => {
  278. uni.hideLoading();
  279. if (res.code == 200) {
  280. uni.showToast({
  281. icon: 'success',
  282. title: "登录成功",
  283. });
  284. uni.setStorageSync('AppToken', res.data.token);
  285. uni.setStorageSync('userInfo', res.data.user);
  286. uni.$emit('refreshLogin');
  287. uni.navigateBack({
  288. delta: 1
  289. });
  290. } else {
  291. uni.showToast({
  292. icon: 'none',
  293. title: res.msg || "登录失败",
  294. });
  295. }
  296. })
  297. .catch(err => {
  298. uni.hideLoading();
  299. });
  300. },
  301. // 密码登录
  302. loginByPassword() {
  303. uni.showLoading({
  304. title: "登录中..."
  305. });
  306. const data={
  307. account: this.account,
  308. password: this.password
  309. }
  310. // 调用密码登录接口
  311. login(data)
  312. .then(res => {
  313. uni.hideLoading();
  314. if (res.code == 200) {
  315. uni.showToast({
  316. icon: 'success',
  317. title: "登录成功",
  318. });
  319. uni.setStorageSync('AppToken', res.data.token);
  320. uni.setStorageSync('userInfo', res.data.user);
  321. uni.$emit('refreshLogin');
  322. uni.navigateBack({
  323. delta: 1
  324. });
  325. } else {
  326. uni.showToast({
  327. icon: 'none',
  328. title: res.msg || "登录失败",
  329. });
  330. }
  331. })
  332. .catch(err => {
  333. console.log(err)
  334. uni.hideLoading();
  335. });
  336. },
  337. checkWeixin() {
  338. var ua = window.navigator.userAgent.toLowerCase();
  339. if (ua.match(/micromessenger/i) == 'micromessenger') {
  340. return true;
  341. } else {
  342. return false;
  343. }
  344. },
  345. //URL地址是否存在CODE
  346. getUrlCode(name) {
  347. return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.href) ||
  348. [, ''
  349. ])[1]
  350. .replace(/\+/g, '%20')) || null
  351. },
  352. //获取微信CODE
  353. getWxCode() {
  354. //在微信公众号请求用户网页授权之前,开发者需要先到公众平台官网中的“开发 - 接口权限 - 网页服务 - 网页帐号 - 网页授权获取用户基本信息”的配置选项中,修改授权回调域名。请注意,这里填写的是域名(是一个字符串),而不是URL,因此请勿加 http:// 等协议头;
  355. //http://shequ.natapp1.cc/#/pages/index/index?deviceId=8
  356. var appId = "wx40593595e62f61ad";
  357. var url = "http://h5.yjf.runtzh.com";
  358. window.location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=' + appId +
  359. '&redirect_uri=' + encodeURIComponent(url + "/#/pages/auth/wxLogin") +
  360. '&response_type=code&scope=snsapi_userinfo&state=JeffreySu-954&connect_redirect=1#wechat_redirect';
  361. //console.log('https://open.weixin.qq.com/connect/oauth2/authorize?appid='+appId+'&redirect_uri=' +encodeURIComponent("http://shequ.natapp1.cc/#/pages/index/index?deviceId="+this.deviceId) +'&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect')
  362. // redirect_uri是授权成功后,跳转的url地址,微信会帮我们跳转到该链接,并且通过?的形式拼接code
  363. },
  364. handleAgreement() {
  365. this.isAgreement = !this.isAgreement;
  366. },
  367. openH5(url) {
  368. var requestPath = uni.getStorageSync('requestPath');
  369. uni.setStorageSync('url', requestPath + url);
  370. uni.navigateTo({
  371. url: '../home/web'
  372. })
  373. },
  374. toForgetPassword(){
  375. uni.navigateTo({
  376. url: '/pages/auth/forgetPassword'
  377. })
  378. },
  379. getCode() {
  380. var that = this;
  381. this.utils.getProvider()
  382. .then(provider => {
  383. console.log('当前的环境商', provider)
  384. if (!provider) {
  385. reject()
  386. }
  387. // uni登录
  388. uni.login({
  389. provider: provider,
  390. success: async loginRes => {
  391. that.code = loginRes.code
  392. }
  393. })
  394. })
  395. .catch(err => {
  396. })
  397. },
  398. // 微信用户手机号登录
  399. phoneLogin(e) {
  400. var that = this;
  401. if (!this.isAgreement) {
  402. uni.showToast({
  403. icon: 'none',
  404. title: "请先同意协议后再登录",
  405. });
  406. return false;
  407. }
  408. uni.showLoading({
  409. title: "处理中..."
  410. })
  411. console.log(e, "e")
  412. if (e.mp.detail.errMsg == 'getPhoneNumber:ok') {
  413. this.utils.getProvider()
  414. .then(provider => {
  415. console.log('当前的环境商', provider)
  416. if (!provider) {
  417. reject()
  418. }
  419. // uni登录
  420. uni.login({
  421. provider: provider,
  422. success: async loginRes => {
  423. console.log(loginRes)
  424. let code = loginRes.code // 获取开发code
  425. var userCode = uni.getStorageSync('userCode');
  426. loginByMiniApp({
  427. encryptedData: e.mp.detail.encryptedData,
  428. iv: e.mp.detail.iv,
  429. code: code,
  430. userCode: userCode
  431. })
  432. .then(res => {
  433. if (res.code == 200) {
  434. uni.hideLoading();
  435. uni.showToast({
  436. icon: 'none',
  437. title: "登录成功",
  438. });
  439. uni.setStorageSync('AppToken', res.token);
  440. uni.setStorageSync('userInfo', res.user);
  441. uni.hideLoading()
  442. //that.getUserInfo()
  443. uni.$emit('refreshLogin');
  444. uni.navigateBack({
  445. delta: 1
  446. })
  447. } else {
  448. uni.hideLoading();
  449. uni.showToast({
  450. icon: 'none',
  451. title: "授权登录失败,请重新登录",
  452. });
  453. }
  454. })
  455. .catch(error => {
  456. console.log(error)
  457. uni.hideLoading();
  458. })
  459. }
  460. })
  461. })
  462. .catch(err => {
  463. uni.showToast({
  464. icon: 'none',
  465. title: err,
  466. });
  467. })
  468. } else {
  469. uni.showToast({
  470. title: '已拒绝授权',
  471. icon: 'none',
  472. duration: 2000,
  473. })
  474. }
  475. },
  476. back() {
  477. uni.switchTab({
  478. url: '/pages/home/index'
  479. });
  480. // uni.navigateBack()
  481. }
  482. }
  483. }
  484. </script>
  485. <style lang="scss">
  486. .container {
  487. flex: 1;
  488. padding: 0 24rpx;
  489. display: flex;
  490. flex-direction: column;
  491. justify-content: flex-start;
  492. position: relative;
  493. .bg {
  494. width: 100%;
  495. position: absolute;
  496. top: 0;
  497. left: 0;
  498. }
  499. .backImg {
  500. display: flex;
  501. align-items: center;
  502. image {
  503. width: 40rpx;
  504. height: 40rpx;
  505. }
  506. margin-left: 32rpx;
  507. // position: absolute;
  508. // left: 30rpx;
  509. // z-index: 100;
  510. }
  511. }
  512. .force-login-wrap {
  513. width: 100%;
  514. height: 100vh;
  515. position: relative;
  516. .top-title {
  517. padding: 0 32rpx;
  518. text-align: left;
  519. margin-top: 20rpx;
  520. .title-text {
  521. font-weight: 600;
  522. font-size: 48rpx;
  523. color: #333333;
  524. margin-bottom: 20rpx;
  525. .blue {
  526. color: #157CF8;
  527. }
  528. }
  529. .login-notice {
  530. font-weight: 400;
  531. font-size: 32rpx;
  532. color: #666666;
  533. line-height: 40rpx;
  534. }
  535. }
  536. .force-login__content {
  537. margin-top: 54rpx;
  538. padding: 0 32rpx;
  539. position: relative;
  540. .bg-type {
  541. width: 100%;
  542. position: absolute;
  543. top: 0;
  544. left: 0;
  545. }
  546. .logintype {
  547. display: flex;
  548. align-items: center;
  549. margin-bottom: 66rpx;
  550. border-bottom: 2rpx solid #f0f0f0;
  551. .line {
  552. margin: 0 32rpx;
  553. width: 2rpx;
  554. height: 32rpx;
  555. background: #D7E1F0;
  556. border-radius: 0rpx 0rpx 0rpx 0rpx;
  557. }
  558. .logintype-item {
  559. // flex: 1;
  560. text-align: center;
  561. padding-top: 36rpx;
  562. padding-bottom: 48rpx;
  563. font-family: PingFang SC, PingFang SC;
  564. font-weight: 400;
  565. font-size: 32rpx;
  566. color: #666666;
  567. position: relative;
  568. &.active {
  569. font-size: 36rpx;
  570. color: #333333;
  571. font-weight: 600;
  572. &::after {
  573. content: '';
  574. position: absolute;
  575. bottom: 30rpx;
  576. left: 50%;
  577. transform: translateX(-50%);
  578. width: 52rpx;
  579. height: 6rpx;
  580. background: #157CF8;
  581. border-radius: 42rpx;
  582. }
  583. }
  584. }
  585. }
  586. .input-form {
  587. margin-bottom: 60rpx;
  588. .input-item {
  589. background: #FFFFFF;
  590. border-radius: 16rpx;
  591. padding: 30rpx 40rpx;
  592. margin-bottom: 48rpx;
  593. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.04);
  594. &::last-child {
  595. margin-bottom: 0
  596. }
  597. .input-field {
  598. width: 100%;
  599. font-size: 30rpx;
  600. font-family: PingFang SC;
  601. color: #333333;
  602. &::placeholder {
  603. color: #CCCCCC;
  604. }
  605. }
  606. .mima {
  607. width: 100%;
  608. display: flex;
  609. align-items: center;
  610. justify-content: space-between;
  611. image {
  612. width: 32rpx;
  613. height: 32rpx;
  614. }
  615. }
  616. &.code-input-item {
  617. display: flex;
  618. align-items: center;
  619. .code-input {
  620. flex: 1;
  621. }
  622. .get-code-btn {
  623. font-size: 28rpx;
  624. font-family: PingFang SC;
  625. font-weight: 500;
  626. color: #157CF8;
  627. padding-left: 20rpx;
  628. white-space: nowrap;
  629. }
  630. }
  631. }
  632. }
  633. .forgot {
  634. font-weight: 400;
  635. font-size: 24rpx;
  636. color: #388BFF;
  637. line-height: 40rpx;
  638. display: flex;
  639. justify-content: flex-end;
  640. margin: -40rpx 0 24rpx;
  641. }
  642. .encoding {
  643. width: 100%;
  644. height: 104rpx;
  645. line-height: 104rpx;
  646. text-align: center;
  647. background: #EDEFF2;
  648. border-radius: 16rpx 16rpx 16rpx 16rpx;
  649. font-size: 32rpx;
  650. color: #999999;
  651. }
  652. .login-btn-wrap {
  653. margin-bottom: 40rpx;
  654. margin-top: 140rpx;
  655. .login-btn {
  656. width: 100%;
  657. height: 88rpx;
  658. background: rgba(56, 139, 255, 1);
  659. border-radius: 44rpx;
  660. font-size: 32rpx;
  661. font-family: PingFang SC;
  662. font-weight: 500;
  663. color: #FFFFFF;
  664. border: none;
  665. display: flex;
  666. align-items: center;
  667. justify-content: center;
  668. &::after {
  669. border: none;
  670. }
  671. }
  672. }
  673. }
  674. }
  675. .tips {
  676. display: flex;
  677. justify-content: center;
  678. align-items: center;
  679. font-size: 24rpx;
  680. color: #666666;
  681. flex-wrap: nowrap;
  682. padding: 0 60rpx;
  683. checkbox {
  684. margin-right: 10rpx;
  685. flex-shrink: 0;
  686. transform: scale(0.8);
  687. }
  688. .tips-text {
  689. margin-right: 4rpx;
  690. white-space: nowrap;
  691. }
  692. .btn {
  693. color: #157CF8;
  694. margin: 0 2rpx;
  695. white-space: nowrap;
  696. }
  697. }
  698. .wx-login {
  699. background: rgba(0, 0, 0, 0.7);
  700. z-index: 99999;
  701. position: fixed;
  702. top: 0;
  703. left: 0;
  704. height: 100%;
  705. width: 100%;
  706. display: flex;
  707. align-items: center;
  708. justify-content: center;
  709. .form {
  710. border-radius: 20rpx;
  711. padding: 60rpx 30rpx;
  712. width: 500upx;
  713. height: 300upx;
  714. background-color: #fff;
  715. .title {
  716. font-size: 32upx;
  717. font-family: PingFang SC;
  718. font-weight: bold;
  719. }
  720. .desc {
  721. font-size: 28upx;
  722. margin: 60upx 0upx 60upx 0upx;
  723. font-family: PingFang SC;
  724. font-weight: 500;
  725. }
  726. .btn-box {
  727. margin-top: 30rpx;
  728. width: 100%;
  729. display: flex;
  730. align-items: center;
  731. justify-content: center;
  732. .btn {
  733. display: flex;
  734. align-items: center;
  735. justify-content: center;
  736. margin-left: 10upx;
  737. width: 50%;
  738. height: 80rpx;
  739. border-radius: 5rpx;
  740. background-color: #0bb3f2;
  741. font-size: 30rpx;
  742. font-family: PingFang SC;
  743. font-weight: 500;
  744. color: #fff;
  745. position: relative;
  746. }
  747. .btn-close {
  748. margin-right: 10upx;
  749. width: 50%;
  750. height: 80rpx;
  751. border-radius: 5rpx;
  752. border: 2rpx solid #0bb3f2;
  753. background: none;
  754. font-size: 30rpx;
  755. font-family: PingFang SC;
  756. font-weight: 500;
  757. color: #0bb3f2;
  758. }
  759. }
  760. }
  761. }
  762. .auth_btn {
  763. width: 100%;
  764. height: 100%;
  765. top: 0upx;
  766. position: absolute;
  767. opacity: 0.0;
  768. }
  769. </style>