index.vue 21 KB

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