index.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845
  1. <template>
  2. <view class="login-wrapper" :style="colorStyle">
  3. <view class="shading">
  4. <image :src="logoUrl" />
  5. </view>
  6. <view class="whiteBg" v-if="formItem === 1">
  7. <view class="list" v-if="current !== 1">
  8. <form @submit.prevent="submit">
  9. <view class="item">
  10. <view class="acea-row row-middle">
  11. <image src="../static/phone_1.png" style="width: 24rpx; height: 34rpx"></image>
  12. <input type="text" :placeholder="$t(`输入手机号码`)" v-model="account" maxlength="11" required />
  13. </view>
  14. </view>
  15. <view class="item">
  16. <view class="acea-row row-middle">
  17. <image src="../static/code_1.png" style="width: 28rpx; height: 32rpx"></image>
  18. <input type="password" :placeholder="$t(`填写登录密码`)" v-model="password" required />
  19. </view>
  20. </view>
  21. </form>
  22. <!-- <navigator class="forgetPwd" hover-class="none" url="/pages/users/retrievePassword/index">
  23. <span class="iconfont icon-wenti"></span>忘记密码
  24. </navigator> -->
  25. </view>
  26. <view class="list" v-if="current !== 0 || appLoginStatus || appleLoginStatus">
  27. <view class="item">
  28. <view class="acea-row row-middle">
  29. <image src="../static/phone_1.png" style="width: 24rpx; height: 34rpx"></image>
  30. <input type="text" :placeholder="$t(`输入手机号码`)" v-model="account" :maxlength="11" />
  31. </view>
  32. </view>
  33. <view class="item">
  34. <view class="acea-row row-middle">
  35. <image src="../static/code_2.png" style="width: 28rpx; height: 32rpx"></image>
  36. <input type="text" :placeholder="$t(`填写验证码`)" :maxlength="6" class="codeIput" v-model="captcha" />
  37. <button class="code" :disabled="disabled" :class="disabled === true ? 'on' : ''" @click="code">
  38. {{ text }}
  39. </button>
  40. </view>
  41. </view>
  42. <!-- <view class="item" v-if="isShowCode">
  43. <view class="acea-row row-middle">
  44. <image src="../static/code_2.png" style="width: 28rpx; height: 32rpx;"></image>
  45. <input type="text" :placeholder="$t(`填写验证码`)" class="codeIput" v-model="codeVal" />
  46. <view class="code" @click="again"><img :src="codeUrl" /></view>
  47. </view>
  48. </view> -->
  49. </view>
  50. <view class="logon" @click="loginMobile" v-if="current !== 0">{{ $t(`登录`) }}</view>
  51. <view class="logon" @click="submit" v-if="current === 0">{{ $t(`登录`) }}</view>
  52. <!-- #ifndef APP-PLUS -->
  53. <view class="tips">
  54. <view v-if="current == 0" @click="current = 1">{{ $t(`快速登录`) }}</view>
  55. <view v-if="current == 1" @click="current = 0">{{ $t(`账号登录`) }}</view>
  56. </view>
  57. <!-- #endif -->
  58. <!-- #ifdef APP-PLUS -->
  59. <view class="appLogin" v-if="!appLoginStatus && !appleLoginStatus">
  60. <view class="hds">
  61. <span class="line"></span>
  62. <p>{{ $t(`其他方式登录`) }}</p>
  63. <span class="line"></span>
  64. </view>
  65. <view class="btn-wrapper">
  66. <view class="btn wx" @click="wxLogin">
  67. <span class="iconfont icon-s-weixindenglu1"></span>
  68. </view>
  69. <view class="btn mima" v-if="current == 1" @click="current = 0">
  70. <span class="iconfont icon-s-mimadenglu1"></span>
  71. </view>
  72. <view class="btn yanzheng" v-if="current == 0" @click="current = 1">
  73. <span class="iconfont icon-s-yanzhengmadenglu1"></span>
  74. </view>
  75. <view class="apple-btn" @click="appleLogin" v-if="appleShow">
  76. <view class="iconfont icon-s-pingguo"></view>
  77. </view>
  78. </view>
  79. </view>
  80. <!-- #endif -->
  81. <view class="protocol">
  82. <checkbox-group @change="ChangeIsDefault">
  83. <checkbox :class="inAnimation ? 'trembling' : ''" @animationend="inAnimation = false" :checked="protocol ? true : false" />
  84. {{ $t(`已阅读并同意`) }}
  85. <text class="main-color" @click="privacy(4)">{{ $t(`《用户协议》`) }}</text>
  86. {{ $t(`与`) }}
  87. <text class="main-color" @click="privacy(3)">{{ $t(`《隐私协议》`) }}</text>
  88. </checkbox-group>
  89. </view>
  90. </view>
  91. <view class="bottom">
  92. <view class="ver" v-if="copyRight">{{ copyRight }}</view>
  93. <!-- <view v-else class="ver">-->
  94. <!-- <a href="https://www.crmeb.com">Copyright ©2024 CRMEB. All Rights</a>-->
  95. <!-- </view>-->
  96. </view>
  97. <Verify @success="success" :captchaType="captchaType" :imgSize="{ width: '330px', height: '155px' }" ref="verify"></Verify>
  98. </view>
  99. </template>
  100. <script>
  101. import dayjs from '@/plugin/dayjs/dayjs.min.js';
  102. import sendVerifyCode from '@/mixins/SendVerifyCode';
  103. import { loginH5, loginMobile, registerVerify, register, getCodeApi, getUserInfo, appleLogin } from '@/api/user';
  104. import attrs, { required, alpha_num, chs_phone } from '@/utils/validate';
  105. import { getLogo } from '@/api/public';
  106. // import cookie from "@/utils/store/cookie";
  107. import { VUE_APP_API_URL } from '@/utils';
  108. // #ifdef APP-PLUS
  109. import { wechatAppAuth } from '@/api/api.js';
  110. // #endif
  111. const BACK_URL = 'login_back_url';
  112. import colors from '@/mixins/color.js';
  113. import Verify from '../components/verify/index.vue';
  114. export default {
  115. name: 'Login',
  116. components: {
  117. Verify
  118. },
  119. mixins: [sendVerifyCode, colors],
  120. data: function () {
  121. return {
  122. copyRight: '',
  123. inAnimation: false,
  124. protocol: false,
  125. navList: [this.$t(`快速登录`), this.$t(`账号登录`)],
  126. current: 1,
  127. account: '',
  128. password: '',
  129. captcha: '',
  130. formItem: 1,
  131. type: 'login',
  132. logoUrl: '',
  133. keyCode: '',
  134. codeUrl: '',
  135. codeVal: '',
  136. isShowCode: false,
  137. appLoginStatus: false, // 微信登录强制绑定手机号码状态
  138. appUserInfo: null, // 微信登录保存的用户信息
  139. appleLoginStatus: false, // 苹果登录强制绑定手机号码状态
  140. appleUserInfo: null,
  141. appleShow: false, // 苹果登录版本必须要求ios13以上的
  142. keyLock: true,
  143. captchaType: 'clickWord',
  144. };
  145. },
  146. watch: {
  147. formItem: function (nval, oVal) {
  148. if (nval == 1) {
  149. this.type = 'login';
  150. } else {
  151. this.type = 'register';
  152. }
  153. }
  154. },
  155. onLoad() {
  156. let self = this;
  157. uni.getSystemInfo({
  158. success: (res) => {
  159. if (res.platform.toLowerCase() == 'ios' && this.getSystem(res.system)) {
  160. self.appleShow = true;
  161. }
  162. }
  163. });
  164. if (uni.getStorageSync('copyRight').copyrightContext) {
  165. this.copyRight = uni.getStorageSync('copyRight').copyrightContext;
  166. }
  167. },
  168. mounted() {
  169. // this.getCode();
  170. this.getLogoImage();
  171. },
  172. methods: {
  173. ChangeIsDefault(e) {
  174. this.$set(this, 'protocol', !this.protocol);
  175. },
  176. privacy(type) {
  177. uni.navigateTo({
  178. url: '/pages/users/privacy/index?type=' + type
  179. });
  180. },
  181. // IOS 版本号判断
  182. getSystem(system) {
  183. let str;
  184. system.toLowerCase().indexOf('ios') === -1 ? (str = system) : (str = system.split(' ')[1]);
  185. if (str.indexOf('.')) return str.split('.')[0] >= 13;
  186. return str >= 13;
  187. },
  188. // 苹果登录
  189. appleLogin() {
  190. let self = this;
  191. this.account = '';
  192. this.captcha = '';
  193. if (!self.protocol) {
  194. this.inAnimation = true;
  195. return self.$util.Tips({
  196. title: '请先阅读并同意协议'
  197. });
  198. }
  199. uni.showLoading({
  200. title: this.$t(`登录中`)
  201. });
  202. uni.login({
  203. provider: 'apple',
  204. timeout: 10000,
  205. success(loginRes) {
  206. uni.getUserInfo({
  207. provider: 'apple',
  208. success: function (infoRes) {
  209. self.appleUserInfo = infoRes.userInfo;
  210. self.appleLoginApi();
  211. },
  212. fail() {
  213. uni.showToast({
  214. title: self.$t(`获取用户信息失败`),
  215. icon: 'none',
  216. duration: 2000
  217. });
  218. },
  219. complete() {
  220. uni.hideLoading();
  221. }
  222. });
  223. },
  224. fail(error) {
  225. console.log(error);
  226. }
  227. });
  228. },
  229. // 苹果登录Api
  230. appleLoginApi() {
  231. let self = this;
  232. appleLogin({
  233. openId: self.appleUserInfo.openId,
  234. email: self.appleUserInfo.email || '',
  235. phone: this.account,
  236. captcha: this.captcha
  237. })
  238. .then(({ data }) => {
  239. if (data.isbind) {
  240. uni.showModal({
  241. title: self.$t(`提示`),
  242. content: self.$t(`请绑定手机号后,继续操作`),
  243. showCancel: false,
  244. success: function (res) {
  245. if (res.confirm) {
  246. self.current = 1;
  247. self.appleLoginStatus = true;
  248. }
  249. }
  250. });
  251. } else {
  252. self.$store.commit('LOGIN', {
  253. token: data.token,
  254. time: data.expires_time - self.$Cache.time()
  255. });
  256. let backUrl = self.$Cache.get(BACK_URL) || '/pages/index/index';
  257. self.$Cache.clear(BACK_URL);
  258. self.$store.commit('SETUID', data.userInfo.uid);
  259. uni.reLaunch({
  260. url: backUrl
  261. });
  262. }
  263. })
  264. .catch((error) => {
  265. uni.showModal({
  266. title: self.$t(`提示`),
  267. content: self.$t(`错误信息`) + `${error}`,
  268. success: function (res) {
  269. if (res.confirm) {
  270. console.log(self.$t(`用户点击确定`));
  271. } else if (res.cancel) {
  272. console.log(self.$t(`用户点击取消`));
  273. }
  274. }
  275. });
  276. });
  277. },
  278. // App微信登录
  279. wxLogin() {
  280. let self = this;
  281. this.account = '';
  282. this.captcha = '';
  283. if (!self.protocol) {
  284. this.inAnimation = true;
  285. return self.$util.Tips({
  286. title: '请先阅读并同意协议'
  287. });
  288. }
  289. uni.showLoading({
  290. title: self.$t(`登录中`)
  291. });
  292. uni.login({
  293. provider: 'weixin',
  294. success: function (loginRes) {
  295. // 获取用户信息
  296. uni.getUserInfo({
  297. provider: 'weixin',
  298. success: function (infoRes) {
  299. self.appUserInfo = infoRes.userInfo;
  300. self.wxLoginApi();
  301. },
  302. fail() {
  303. uni.showToast({
  304. title: self.$t(`获取用户信息失败`),
  305. icon: 'none',
  306. duration: 2000
  307. });
  308. },
  309. complete() {
  310. uni.hideLoading();
  311. }
  312. });
  313. },
  314. fail() {
  315. uni.showToast({
  316. title: self.$t(`登录失败`),
  317. icon: 'none',
  318. duration: 2000
  319. });
  320. }
  321. });
  322. },
  323. wxLoginApi() {
  324. let self = this;
  325. wechatAppAuth({
  326. userInfo: self.appUserInfo,
  327. phone: this.account,
  328. code: this.captcha
  329. })
  330. .then(({ data }) => {
  331. if (data.isbind) {
  332. uni.showModal({
  333. title: self.$t(`提示`),
  334. content: self.$t(`请绑定手机号后,继续操作`),
  335. showCancel: false,
  336. success: function (res) {
  337. if (res.confirm) {
  338. self.current = 1;
  339. self.appLoginStatus = true;
  340. }
  341. }
  342. });
  343. } else {
  344. self.$store.commit('LOGIN', {
  345. token: data.token,
  346. time: data.expires_time - self.$Cache.time()
  347. });
  348. let backUrl = self.$Cache.get(BACK_URL) || '/pages/index/index';
  349. self.$Cache.clear(BACK_URL);
  350. self.$store.commit('SETUID', data.userInfo.uid);
  351. uni.reLaunch({
  352. url: backUrl
  353. });
  354. }
  355. })
  356. .catch((error) => {
  357. uni.showModal({
  358. title: self.$t(`提示`),
  359. content: self.$t(`错误信息`) + `${error}`,
  360. success: function (res) {
  361. if (res.confirm) {
  362. console.log(self.$t(`用户点击确定`));
  363. } else if (res.cancel) {
  364. console.log(self.$t(`用户点击取消`));
  365. }
  366. }
  367. });
  368. });
  369. },
  370. again() {
  371. this.codeUrl = VUE_APP_API_URL + '/sms_captcha?' + 'key=' + this.keyCode + Date.parse(new Date());
  372. },
  373. success(data) {
  374. this.$refs.verify.hide();
  375. getCodeApi()
  376. .then((res) => {
  377. this.keyCode = res.data.key;
  378. this.getCode(data);
  379. })
  380. .catch((res) => {
  381. this.$util.Tips({
  382. title: res
  383. });
  384. });
  385. },
  386. code() {
  387. let that = this;
  388. if (!that.protocol) {
  389. this.inAnimation = true;
  390. return that.$util.Tips({
  391. title: '请先阅读并同意协议'
  392. });
  393. }
  394. if (!that.account)
  395. return that.$util.Tips({
  396. title: that.$t(`请填写手机号码`)
  397. });
  398. if (!/^1(3|4|5|7|8|9|6)\d{9}$/i.test(that.account))
  399. return that.$util.Tips({
  400. title: that.$t(`请输入正确的手机号码`)
  401. });
  402. this.$refs.verify.show();
  403. },
  404. async getLogoImage() {
  405. let that = this;
  406. getLogo(2).then((res) => {
  407. that.logoUrl = res.data.logo_url;
  408. });
  409. },
  410. async loginMobile() {
  411. let that = this;
  412. if (!that.protocol) {
  413. this.inAnimation = true;
  414. return that.$util.Tips({
  415. title: '请先阅读并同意协议'
  416. });
  417. }
  418. if (!that.account)
  419. return that.$util.Tips({
  420. title: that.$t(`请填写手机号码`)
  421. });
  422. if (!/^1(3|4|5|7|8|9|6)\d{9}$/i.test(that.account))
  423. return that.$util.Tips({
  424. title: that.$t(`请输入正确的手机号码`)
  425. });
  426. if (!that.captcha)
  427. return that.$util.Tips({
  428. title: that.$t(`请填写验证码`)
  429. });
  430. if (!/^[\w\d]+$/i.test(that.captcha))
  431. return that.$util.Tips({
  432. title: that.$t(`请输入正确的验证码`)
  433. });
  434. if (that.appLoginStatus) {
  435. that.wxLoginApi();
  436. } else if (that.appleLoginStatus) {
  437. that.appleLoginApi();
  438. } else {
  439. if (this.keyLock) {
  440. this.keyLock = !this.keyLock;
  441. } else {
  442. return that.$util.Tips({
  443. title: that.$t(`请勿重复点击`)
  444. });
  445. }
  446. loginMobile({
  447. phone: that.account,
  448. captcha: that.captcha,
  449. spread: that.$Cache.get('spread'),
  450. agent_id: that.$Cache.get('agent_id') || 0
  451. })
  452. .then((res) => {
  453. let data = res.data;
  454. that.$store.commit('LOGIN', {
  455. token: data.token,
  456. time: data.expires_time - this.$Cache.time()
  457. });
  458. let backUrl = that.$Cache.get(BACK_URL) || '/pages/index/index';
  459. that.$Cache.clear(BACK_URL);
  460. getUserInfo().then((res) => {
  461. this.keyLock = true;
  462. that.$store.commit('SETUID', res.data.uid);
  463. if (backUrl.indexOf('/pages/users/login/index') !== -1) {
  464. backUrl = '/pages/index/index';
  465. }
  466. uni.reLaunch({
  467. url: backUrl
  468. });
  469. });
  470. })
  471. .catch((res) => {
  472. this.keyLock = true;
  473. that.$util.Tips({
  474. title: res
  475. });
  476. });
  477. }
  478. },
  479. async register() {
  480. let that = this;
  481. if (!that.protocol) {
  482. this.inAnimation = true;
  483. return that.$util.Tips({
  484. title: '请先阅读并同意协议'
  485. });
  486. }
  487. if (!that.account)
  488. return that.$util.Tips({
  489. title: that.$t(`请填写手机号码`)
  490. });
  491. if (!/^1(3|4|5|7|8|9|6)\d{9}$/i.test(that.account))
  492. return that.$util.Tips({
  493. title: that.$t(`请输入正确的手机号码`)
  494. });
  495. if (!that.captcha)
  496. return that.$util.Tips({
  497. title: that.$t(`请填写验证码`)
  498. });
  499. if (!/^[\w\d]+$/i.test(that.captcha))
  500. return that.$util.Tips({
  501. title: that.$t(`请输入正确的验证码`)
  502. });
  503. if (!that.password)
  504. return that.$util.Tips({
  505. title: that.$t(`请填写密码`)
  506. });
  507. if (/^([0-9]|[a-z]|[A-Z]){0,6}$/i.test(that.password))
  508. return that.$util.Tips({
  509. title: that.$t(`您输入的密码过于简单`)
  510. });
  511. register({
  512. account: that.account,
  513. captcha: that.captcha,
  514. password: that.password,
  515. spread: that.$Cache.get('spread')
  516. })
  517. .then((res) => {
  518. that.$util.Tips({
  519. title: res
  520. });
  521. that.formItem = 1;
  522. })
  523. .catch((res) => {
  524. that.$util.Tips({
  525. title: res
  526. });
  527. });
  528. },
  529. async getCode(data) {
  530. let that = this;
  531. if (!that.protocol) {
  532. this.inAnimation = true;
  533. return that.$util.Tips({
  534. title: '请先阅读并同意协议'
  535. });
  536. }
  537. if (!that.account)
  538. return that.$util.Tips({
  539. title: that.$t(`请填写手机号码`)
  540. });
  541. if (!/^1(3|4|5|7|8|9|6)\d{9}$/i.test(that.account))
  542. return that.$util.Tips({
  543. title: that.$t(`请输入正确的手机号码`)
  544. });
  545. if (that.formItem == 2) that.type = 'register';
  546. await registerVerify({
  547. phone: that.account,
  548. type: that.type,
  549. key: that.keyCode,
  550. captchaType: this.captchaType,
  551. captchaVerification: data.captchaVerification
  552. })
  553. .then((res) => {
  554. this.sendCode();
  555. that.$util.Tips({
  556. title: res.msg
  557. });
  558. })
  559. .catch((res) => {
  560. that.$util.Tips({
  561. title: res
  562. });
  563. });
  564. },
  565. navTap: function (index) {
  566. this.current = index;
  567. },
  568. async submit() {
  569. let that = this;
  570. if (!that.protocol) {
  571. this.inAnimation = true;
  572. return that.$util.Tips({
  573. title: '请先阅读并同意协议'
  574. });
  575. }
  576. if (!that.account)
  577. return that.$util.Tips({
  578. title: that.$t(`请填写账号`)
  579. });
  580. if (!/^[\w\d]{5,16}$/i.test(that.account))
  581. return that.$util.Tips({
  582. title: that.$t(`请输入正确的账号`)
  583. });
  584. if (!that.password)
  585. return that.$util.Tips({
  586. title: that.$t(`请填写密码`)
  587. });
  588. if (this.keyLock) {
  589. this.keyLock = !this.keyLock;
  590. } else {
  591. return that.$util.Tips({
  592. title: that.$t(`请勿重复点击`)
  593. });
  594. }
  595. loginH5({
  596. account: that.account,
  597. password: that.password,
  598. spread: that.$Cache.get('spread'),
  599. agent_id: that.$Cache.get('agent_id') || 0
  600. })
  601. .then(({ data }) => {
  602. that.$store.commit('LOGIN', {
  603. token: data.token,
  604. time: data.expires_time - this.$Cache.time()
  605. });
  606. let backUrl = that.$Cache.get(BACK_URL) || '/pages/index/index';
  607. that.$Cache.clear(BACK_URL);
  608. getUserInfo()
  609. .then((res) => {
  610. this.keyLock = true;
  611. that.$store.commit('SETUID', res.data.uid);
  612. uni.reLaunch({
  613. url: backUrl
  614. });
  615. })
  616. .catch((error) => {
  617. this.keyLock = true;
  618. });
  619. })
  620. .catch((e) => {
  621. this.keyLock = true;
  622. that.$util.Tips({
  623. title: e
  624. });
  625. });
  626. }
  627. }
  628. };
  629. </script>
  630. <style>
  631. page {
  632. background: #fff;
  633. }
  634. </style>
  635. <style lang="scss">
  636. .appLogin {
  637. margin-top: 60rpx;
  638. .hds {
  639. display: flex;
  640. justify-content: center;
  641. align-items: center;
  642. font-size: 24rpx;
  643. color: #b4b4b4;
  644. .line {
  645. width: 68rpx;
  646. height: 1rpx;
  647. background: #cccccc;
  648. }
  649. p {
  650. margin: 0 20rpx;
  651. }
  652. }
  653. .btn-wrapper {
  654. display: flex;
  655. align-items: center;
  656. justify-content: center;
  657. margin-top: 30rpx;
  658. .btn {
  659. display: flex;
  660. align-items: center;
  661. justify-content: center;
  662. width: 68rpx;
  663. height: 68rpx;
  664. border-radius: 50%;
  665. }
  666. .apple-btn {
  667. display: flex;
  668. align-items: center;
  669. justify-content: center;
  670. width: 68rpx;
  671. height: 68rpx;
  672. border-radius: 50%;
  673. background: #000;
  674. .icon-s-pingguo {
  675. color: #fff;
  676. font-size: 44rpx;
  677. }
  678. }
  679. .iconfont {
  680. font-size: 40rpx;
  681. color: #fff;
  682. }
  683. .wx {
  684. margin-right: 30rpx;
  685. background-color: #61c64f;
  686. }
  687. .mima {
  688. margin-right: 30rpx;
  689. background-color: #28b3e9;
  690. }
  691. .yanzheng {
  692. margin-right: 30rpx;
  693. background-color: #f89c23;
  694. }
  695. }
  696. }
  697. .code img {
  698. width: 100%;
  699. height: 100%;
  700. }
  701. .acea-row.row-middle {
  702. input {
  703. margin-left: 20rpx;
  704. display: block;
  705. }
  706. }
  707. .login-wrapper {
  708. padding: 30rpx;
  709. .shading {
  710. display: flex;
  711. align-items: center;
  712. justify-content: center;
  713. width: 100%;
  714. /* #ifdef APP-VUE */
  715. margin-top: 50rpx;
  716. /* #endif */
  717. /* #ifndef APP-VUE */
  718. margin-top: 200rpx;
  719. /* #endif */
  720. image {
  721. width: 240rpx;
  722. height: 240rpx;
  723. }
  724. }
  725. .whiteBg {
  726. margin-top: 100rpx;
  727. .list {
  728. border-radius: 16rpx;
  729. overflow: hidden;
  730. .item {
  731. border-bottom: 1px solid #f0f0f0;
  732. background: #fff;
  733. .row-middle {
  734. position: relative;
  735. padding: 16rpx 45rpx;
  736. input {
  737. flex: 1;
  738. font-size: 28rpx;
  739. height: 80rpx;
  740. }
  741. .code {
  742. position: absolute;
  743. right: 30rpx;
  744. top: 50%;
  745. color: var(--view-theme);
  746. font-size: 26rpx;
  747. transform: translateY(-50%);
  748. }
  749. }
  750. }
  751. }
  752. .logon {
  753. display: flex;
  754. align-items: center;
  755. justify-content: center;
  756. width: 100%;
  757. height: 86rpx;
  758. margin-top: 80rpx;
  759. background-color: var(--view-theme);
  760. border-radius: 120rpx;
  761. color: #ffffff;
  762. font-size: 30rpx;
  763. }
  764. .tips {
  765. margin: 30rpx;
  766. text-align: center;
  767. color: #999;
  768. }
  769. }
  770. }
  771. .protocol {
  772. margin-top: 40rpx;
  773. color: #999999;
  774. font-size: 24rpx;
  775. text-align: center;
  776. bottom: 20rpx;
  777. }
  778. /* #ifdef H5 */
  779. @media (min-aspect-ratio: 13/20) {
  780. .bottom {
  781. display: none !important;
  782. }
  783. }
  784. /* #endif */
  785. .bottom {
  786. position: fixed;
  787. bottom: 30rpx;
  788. left: 0;
  789. display: flex;
  790. width: 100%;
  791. justify-content: center;
  792. color: #999999;
  793. .ver {
  794. font-size: 20rpx;
  795. }
  796. .ver-msg {
  797. margin-left: 10rpx;
  798. }
  799. a {
  800. color: #999999;
  801. margin-left: 10rpx;
  802. text-decoration: none;
  803. }
  804. }
  805. .trembling {
  806. animation: shake 0.6s;
  807. }
  808. .main-color {
  809. color: var(--view-theme);
  810. }
  811. </style>