index.vue 20 KB

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