login.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776
  1. <template>
  2. <view>
  3. <!-- 状态栏 -->
  4. <uni-status-bar></uni-status-bar>
  5. <!-- 公共组件-每个页面必须引入 -->
  6. <public-module></public-module>
  7. <app-update ref="app_update"></app-update>
  8. <!-- 欢迎语 -->
  9. <view class="w-100 flex-column box-sizing font-weight" style="height: 450rpx;padding:135rpx 60rpx;">
  10. <view class="font-lgr">您好,</view>
  11. <view class="font-lgr">欢迎来到掌柜科技</view>
  12. </view>
  13. <!-- 登录区域Start -->
  14. <view class="mx-3">
  15. <!-- 账号密码登录 false代表账号密码登录 -->
  16. <template v-if="!status">
  17. <view class="mt-1 border-bottom">
  18. <input type="text" v-model="username" class="uni-input common-input" maxlength="17"
  19. placeholder="请输入会员号" />
  20. </view>
  21. <view class="mt-2 position-relative border-bottom">
  22. <input type="text" :password="isHidePassword" v-model="password" class="uni-input common-input"
  23. placeholder="请输入密码" style="padding-right: 200rpx;" maxlength="15" />
  24. <view class=" position-absolute top-0 right-0 d-flex a-center j-center"
  25. style="width: 200rpx;height: 100%;">
  26. <view style="font-size: 40rpx;" class="icon iconfont"
  27. :class="isHidePassword?'icon-buxianshimima1':'icon-xianshimima1'"
  28. @tap="isHidePassword = !isHidePassword"></view>
  29. </view>
  30. </view>
  31. <view class="mt-2 position-relative border-bottom">
  32. <input type="text" v-model="imgcode" class="uni-input common-input" maxlength="5"
  33. placeholder="请输入验证码" style="padding-right: 200rpx;" />
  34. <image style="height: 80%;padding-top: 4rpx;width: 200rpx;" mode="aspectFill"
  35. class="position-absolute top-0 right-0 d-flex a-center j-center text-light-muted"
  36. :src="imgcodesrc" @tap="refreshCaptcha"></image>
  37. </view>
  38. </template>
  39. <!-- 手机验证码登录 true代表手机验证码登录 -->
  40. <template v-else>
  41. <view class="mt-1 position-relative border-bottom">
  42. <view class="position-absolute d-flex a-center j-center left-0 top-0 font-weight"
  43. style="width: 100rpx;height: 100%;">+86</view>
  44. <input type="text" v-model="phone" class="uni-input common-input" style="padding-left: 100rpx;"
  45. placeholder="手机号" />
  46. </view>
  47. <view class="mt-2 position-relative border-bottom">
  48. <input type="text" v-model="checknum" class="uni-input common-input" maxlength="4"
  49. style="padding-right: 240rpx;" placeholder="请输入验证码" />
  50. <view class="position-absolute top-0 right-0 d-flex a-center j-center text-light-muted"
  51. style="width: 240rpx;height: 100%;" @tap="getCheckNum">
  52. <view class="d-flex a-center j-center "
  53. :class="!codetime?'yanzhengmaView1 main-text-color':'yanzhengmaView2'">
  54. {{!codetime?'获取验证码':codetime+' S'+'后重新获取'}}
  55. </view>
  56. </view>
  57. </view>
  58. </template>
  59. <button class="my-3 mt-4 d-flex a-center j-center font-weight main-bg-color" :loading="loading"
  60. :class="{'main-bf-hover-color':disabled}" type="primary" @tap="submit" :disabled="disabled"
  61. style="letter-spacing: 20rpx;">登录</button>
  62. <!-- 登录状态切换 -->
  63. <view class="pt-1 px-3 pb-0 text-light-muted d-flex j-sb">
  64. <view @tap="changeStatus">
  65. {{status?'密码登录':'验证码登录'}}
  66. </view>
  67. <!-- #ifdef H5 -->
  68. <view>
  69. <view @tap="navigate({url:'/pages/register/register'})">用户注册</view>
  70. </view>
  71. <!-- #endif -->
  72. </view>
  73. <!-- #ifdef APP -->
  74. <view class="third_party_login_box">
  75. <view class="third_party_title"><text>第三方登录</text></view>
  76. <view class="third_party_content flex-wrap">
  77. <image src="/static/icon/weixin.png" @click="onWxAppLogin" mode="aspectFit"></image>
  78. <!-- <image src="/static/icon/zhifubao.png" mode="aspectFit"></image> -->
  79. </view>
  80. </view>
  81. <!-- #endif -->
  82. <view class="position-fixed left-0 right-0 d-flex a-center j-center pt-2 text-light-muted"
  83. style="bottom:30rpx">
  84. 登录/<span>注册</span>表示您已同意<view> <text @tap="nav('/pages/login/xieyi')"
  85. class="main-text-color">平台协议</text>及<text class="main-text-color"
  86. @tap="nav('/pages/login/mimi')">隐私协议</text>政策</view>
  87. </view>
  88. </view>
  89. <u-popup v-model="show" border-radius="14" mode="center" width="70%">
  90. <view class="shu1 shili">
  91. <text>温馨提示</text>
  92. <text>是否更新账号密码?</text>
  93. </view>
  94. <view class="heng shili_btn">
  95. <view class="heng1" @click="quxiao">取消</view>
  96. <view class="heng1" @click="queren" style="background-color: orangered;">确认</view>
  97. </view>
  98. </u-popup>
  99. </view>
  100. </template>
  101. <script>
  102. import appUpdate from "@/components/yzhua006-update/app-update.vue"; //app更新组件
  103. import md5 from '@/plugins/md5';
  104. let clear;
  105. import {
  106. mapState,
  107. mapMutations
  108. } from 'vuex';
  109. import socket from '@/config/socket';
  110. import DB from "@/common/sqlite";
  111. export default {
  112. components: {
  113. appUpdate
  114. },
  115. data() {
  116. return {
  117. isLoading: false,
  118. show: false,
  119. contentSlot: true,
  120. status: false, //false代表账号密码登录,true代表手机验证码登录
  121. disabled: true, //登录按钮是否可用
  122. loading: false, //是否显示按钮加载状态
  123. username: "", //登录用户名
  124. password: "", //登录密码
  125. imgcode: "", //图片验证码0
  126. imgcodesrc: "", //验证码图片
  127. isHidePassword: true, //是否隐藏密码
  128. phone: "", //登录手机号
  129. checknum: "", //登录验证码
  130. captchaId: "",
  131. codetime: 0, //验证码获取倒计时
  132. code: "", //用户code
  133. listData: [],
  134. };
  135. },
  136. onReady() {
  137. this.isLoading = true;
  138. },
  139. beforeCreate() {
  140. setTimeout(() => {
  141. this.$refs.app_update.update(); //调用子组件检查更新方法
  142. setTimeout(() => {
  143. if (this.$refs.app_update.popup_show == true && this.$refs.app_update.force == true) {}
  144. }, 100)
  145. }, 500)
  146. },
  147. //第一次加载
  148. async onLoad(e) {
  149. let pageRequest = {
  150. pageNum: 1,
  151. pageSize: 20,
  152. columnFilters: {
  153. apptype: {
  154. name: "apptype",
  155. value: "apk",
  156. }
  157. }
  158. };
  159. let getquote = await this.$http.post('/sysVersion/findPage', pageRequest);
  160. // #ifdef APP-PLUS
  161. this.openSQL();
  162. this.selectTableData();
  163. // this.deleteTableData();
  164. // #endif
  165. },
  166. //页面显示
  167. onShow() {
  168. this.openSQL();
  169. this.selectTableData();
  170. uni.getClipboardData({
  171. success: (res) => {
  172. let id = (res.data.replace(/(^\s*)|(\s*$)/g, "")).toUpperCase();
  173. if ((id.length == 17) && (id.indexOf('99') == 0) && (id.indexOf('D') > 0) && (id.indexOf(
  174. 'M') > 0) && (id !== this.username)) {
  175. uni.showModal({
  176. content: '是否自动填充会员号',
  177. cancelText: '否',
  178. confirmText: '是',
  179. success: (res1) => {
  180. if (res1.confirm) {
  181. this.username = id;
  182. }
  183. }
  184. });
  185. }
  186. }
  187. })
  188. },
  189. watch: {
  190. username(val) {
  191. this.username = this.username.toUpperCase();
  192. this.OnBtnChange();
  193. },
  194. password(val) {
  195. this.OnBtnChange();
  196. },
  197. imgcode(val) {
  198. this.OnBtnChange();
  199. },
  200. phone(val) {
  201. this.OnBtnChange();
  202. },
  203. checknum(val) {
  204. this.OnBtnChange();
  205. }
  206. },
  207. mounted() {
  208. // //取出缓存中的账号、密码
  209. const HBusername = uni.getStorageSync('username');
  210. const HBpassword = uni.getStorageSync('password');
  211. // //有账号、密码就赋值给文本,没有就清空
  212. this.username = HBusername;
  213. this.password = HBpassword;
  214. },
  215. onShow() {
  216. this.refreshCaptcha();
  217. uni.getClipboardData({
  218. success: (res) => {
  219. let id = (res.data.replace(/(^\s*)|(\s*$)/g, "")).toUpperCase();
  220. if ((id.length == 17) && (id.indexOf('99') == 0) && (id.indexOf('D') > 0) && (id.indexOf(
  221. 'M') > 0) && (id !== this.username)) {
  222. uni.showModal({
  223. content: '是否自动填充会员号',
  224. cancelText: '否',
  225. confirmText: '是',
  226. success: (res1) => {
  227. if (res1.confirm) {
  228. this.username = id;
  229. }
  230. }
  231. });
  232. }
  233. }
  234. })
  235. },
  236. onUnload() {
  237. this.closeSQL();
  238. },
  239. computed: {
  240. ...mapState(["userLoginId", "loginStatus"])
  241. },
  242. //方法
  243. methods: {
  244. ...mapMutations(['setUserInfo']),
  245. // 跳转页面
  246. nav(url) {
  247. uni.navigateTo({
  248. url: url
  249. });
  250. },
  251. // 图片验证码
  252. refreshCaptcha() {
  253. let randnum = Math.floor(Math.random() * (1000000 - 1 + 1)) + 1
  254. this.imgcodesrc = this.$base.baseUrl + "/captchaById?t=" + new Date().getTime() + '&captchaId=' + randnum;
  255. this.captchaId = randnum;
  256. },
  257. // 切换登录状态
  258. changeStatus() {
  259. uni.hideKeyboard();
  260. this.initInput();
  261. this.status = !this.status;
  262. this.refreshCaptcha();
  263. },
  264. // 初始化表单
  265. initInput() {
  266. this.username = '';
  267. this.password = '';
  268. this.phone = '';
  269. this.checknum = '';
  270. this.imgcode = "";
  271. },
  272. // 改变按钮状态
  273. OnBtnChange() {
  274. if ((this.username && this.password && this.imgcode) || (this.phone && this.checknum)) {
  275. this.disabled = false;
  276. return;
  277. }
  278. this.disabled = true;
  279. },
  280. // 获取验证码
  281. async getCheckNum() {
  282. uni.hideKeyboard();
  283. if (this.codetime > 0) return;
  284. // 验证手机号合法性
  285. if (!this.phone) {
  286. return uni.showToast({
  287. title: '请输入手机号',
  288. icon: 'none'
  289. });
  290. }
  291. if (!this.$base.phoneRegular.test(this.phone)) {
  292. return uni.showToast({
  293. title: '请输入正确的手机号码',
  294. icon: 'none'
  295. });
  296. }
  297. // 请求服务器,发送验证码
  298. let res = await this.$http.get('/sendMsg', {
  299. phone: this.phone,
  300. type: "0"
  301. });
  302. // 请求失败处理
  303. if (res.code != 200) {
  304. return uni.showToast({
  305. title: res.data.msg,
  306. icon: "none"
  307. });
  308. } else {
  309. uni.showToast({
  310. title: "发送成功",
  311. icon: "none"
  312. });
  313. }
  314. // 发送成功,开启倒计时
  315. this.codetime = 60;
  316. let timer = setInterval(() => {
  317. this.codetime--;
  318. if (this.codetime < 1) {
  319. clearInterval(timer);
  320. this.codetime = 0;
  321. }
  322. }, 1000);
  323. },
  324. //#ifdef APP-PLUS
  325. quxiao() {
  326. this.show = false;
  327. this.$login({
  328. url: "/login2",
  329. data: {
  330. account: this.username,
  331. password: this.password,
  332. captcha: this.imgcode.toLowerCase(),
  333. captchaId: this.captchaId,
  334. }
  335. }).then(res => {
  336. if (res) {
  337. return uni.showToast({
  338. title: res.msg,
  339. icon: 'none'
  340. });
  341. } else {
  342. socket.init();
  343. }
  344. })
  345. },
  346. queren() {
  347. this.show = false;
  348. this.$login({
  349. url: "/login2",
  350. data: {
  351. account: this.username,
  352. password: this.password,
  353. captcha: this.imgcode.toLowerCase(),
  354. captchaId: this.captchaId,
  355. }
  356. }).then(async res => {
  357. if (res) {
  358. return uni.showToast({
  359. title: res.msg,
  360. icon: 'none'
  361. });
  362. } else {
  363. this.deleteTableData();
  364. this.openSQL();
  365. this.createTable(); //创建表
  366. this.insertTableData(this.username, this.password); //新增表数据
  367. socket.init();
  368. }
  369. })
  370. },
  371. //#endif
  372. // 提交登录
  373. submit() {
  374. // // 账号密码登录
  375. uni.hideKeyboard();
  376. if (!this.status) {
  377. //#ifdef H5
  378. this.$login({
  379. url: "/login2",
  380. data: {
  381. account: this.username,
  382. password: this.password,
  383. captcha: this.imgcode.toLowerCase(),
  384. captchaId: this.captchaId,
  385. }
  386. }).then(res => {
  387. if (res) {
  388. return uni.showToast({
  389. title: res.msg,
  390. icon: 'none'
  391. });
  392. } else {
  393. socket.init();
  394. }
  395. })
  396. // }
  397. //#endif
  398. //#ifdef APP-PLUS
  399. if (this.listData.length > 0) {
  400. this.listData.map(ele => {
  401. if (this.username == ele.username && this.password == ele.password) {
  402. this.$login({
  403. url: "/login2",
  404. data: {
  405. account: this.username,
  406. password: this.password,
  407. captcha: this.imgcode.toLowerCase(),
  408. captchaId: this.captchaId,
  409. }
  410. }).then(res => {
  411. if (res) {
  412. return uni.showToast({
  413. title: res.msg,
  414. icon: 'none'
  415. });
  416. } else {
  417. socket.init();
  418. }
  419. })
  420. } else {
  421. this.show = true;
  422. }
  423. })
  424. } else {
  425. this.$login({
  426. url: "/login2",
  427. data: {
  428. account: this.username,
  429. password: this.password,
  430. captcha: this.imgcode.toLowerCase(),
  431. captchaId: this.captchaId,
  432. }
  433. }).then(res => {
  434. if (res) {
  435. return uni.showToast({
  436. title: res.msg,
  437. icon: 'none'
  438. });
  439. } else {
  440. this.openSQL(); //打开数据库
  441. this.createTable(); //创建表
  442. this.insertTableData(this.username, this.password); //新增表数据
  443. socket.init();
  444. }
  445. })
  446. }
  447. //#endif
  448. } else {
  449. // 验证码登录
  450. // 验证手机号合法性
  451. if (!this.$base.phoneRegular.test(this.phone)) {
  452. return uni.showToast({
  453. title: '请输入正确的手机号码',
  454. icon: 'none'
  455. });
  456. }
  457. this.$login({
  458. url: "/loginByPhone",
  459. data: {
  460. phone: this.phone,
  461. phoneMsg: this.checknum
  462. }
  463. }).then(res => {
  464. if (res) {
  465. return uni.showToast({
  466. title: res.msg,
  467. icon: 'none'
  468. });
  469. }
  470. // socket.init();
  471. return;
  472. })
  473. }
  474. },
  475. // 微信APP登录
  476. onWxAppLogin() {
  477. var that = this;
  478. uni.login({
  479. provider: 'weixin',
  480. onlyAuthorize: true,
  481. success: function(loginRes) {
  482. that.codeRes(loginRes.code);
  483. },
  484. fail: (err) => {
  485. uni.showToast({
  486. title: '绑定失败',
  487. icon: "none"
  488. });
  489. console.log('login fail:', err);
  490. }
  491. });
  492. },
  493. codeRes(code) {
  494. this.$login({
  495. url: "/wechat/login",
  496. data: {
  497. code: code,
  498. }
  499. }).then(res => {
  500. return uni.showToast({
  501. title: res.msg,
  502. icon: 'none'
  503. });
  504. socket.init();
  505. return;
  506. })
  507. },
  508. // 打开数据库
  509. openSQL() {
  510. // 这个是查询有没有打开数据库
  511. let open = DB.isOpen();
  512. DB.openSqlite()
  513. .then(res => {})
  514. .catch(error => {});
  515. },
  516. // 关闭数据库
  517. closeSQL() {
  518. // 这个是查询有没有打开数据库
  519. let open = DB.isOpen();
  520. if (open) {
  521. DB.closeSqlite()
  522. .then(res => {
  523. // this.showToast("数据库已关闭");
  524. })
  525. .catch(error => {
  526. // this.showToast("数据库关闭失败");
  527. });
  528. }
  529. },
  530. // 创建表
  531. createTable() {
  532. let open = DB.isOpen();
  533. if (open) {
  534. this.openSQL();
  535. let sql =
  536. '"id" INTEGER PRIMARY KEY AUTOINCREMENT,"username" text,"password" text,"time" text';
  537. // 创建表 DB.createTable(表名, 表的列)
  538. DB.createTable("chat", sql)
  539. .then(res => {
  540. // this.showToast("创建chat表成功");
  541. })
  542. .catch(error => {});
  543. } else {}
  544. },
  545. // 新增表数据
  546. insertTableData(user, word) {
  547. let open = DB.isOpen();
  548. if (open) {
  549. let arr = [{
  550. username: user,
  551. password: word,
  552. }]
  553. arr.map(item => {
  554. let time = this.formatDate(new Date().getTime());
  555. let sql =
  556. `'${item.username}','${item.password}','${time}'`;
  557. let condition = "'username','password','time'";
  558. // 新增 DB.insertTableData(表名, 对应表头列的数据)
  559. DB.insertTableData("chat", sql, condition)
  560. .then(res => {
  561. this.selectTableData();
  562. })
  563. .catch(error => {});
  564. })
  565. } else {}
  566. },
  567. // 查询表数据
  568. selectTableData() {
  569. let open = DB.isOpen();
  570. if (open) {
  571. // 查询表 DB.selectTableData(表名,查询条件列名,查询条件列值)
  572. DB.selectTableData("chat")
  573. .then(res => {
  574. console.log("contact表数据", res);
  575. this.listData = res;
  576. this.username = res[0].username;
  577. this.password = res[0].password;
  578. })
  579. .catch(error => {});
  580. } else {}
  581. },
  582. // 修改表数据
  583. updateTableData() {
  584. let open = DB.isOpen();
  585. if (open) {
  586. let time = this.formatDate(new Date().getTime());
  587. let data =
  588. `username ='${this.username}',password ='${this.password}'`;
  589. // 修改表数据 DB.updateTableData(表名, 要修改的列名=修改后列值, 修改条件的列名, 修改条件的列值)
  590. DB.updateTableData("chat", data)
  591. .then(res => {
  592. console.log('修改后的数据', res)
  593. this.showToast("保存成功");
  594. this.selectTableData();
  595. })
  596. .catch(error => {
  597. console.log(error)
  598. });
  599. } else {}
  600. },
  601. // 删除表
  602. deleteTableData() {
  603. let open = DB.isOpen();
  604. if (open) {
  605. // 删除表 DB.deleteTableData(表名,查询条件列名,查询条件列值)
  606. DB.dropTable("chat")
  607. .then(res => {})
  608. .catch(error => {});
  609. } else {}
  610. },
  611. // 提示框
  612. showToast: function(str) {
  613. uni.showToast({
  614. icon: "none",
  615. title: str,
  616. mask: true
  617. });
  618. },
  619. // 时间戳转年月日
  620. formatDate(data) {
  621. let now = new Date(data);
  622. var year = now.getFullYear(); //取得4位数的年份
  623. var month =
  624. now.getMonth() + 1 < 10 ?
  625. "0" + (now.getMonth() + 1) :
  626. now.getMonth() + 1;
  627. var date = now.getDate() < 10 ? "0" + now.getDate() : now.getDate();
  628. var hour = now.getHours() < 10 ? "0" + now.getHours() : now.getHours();
  629. var minute =
  630. now.getMinutes() < 10 ? "0" + now.getMinutes() : now.getMinutes();
  631. var second =
  632. now.getSeconds() < 10 ? "0" + now.getSeconds() : now.getSeconds();
  633. return (
  634. year +
  635. "-" +
  636. month +
  637. "-" +
  638. date +
  639. " " +
  640. hour +
  641. ":" +
  642. minute +
  643. ":" +
  644. second
  645. );
  646. }
  647. },
  648. //页面隐藏
  649. onHide() {},
  650. //页面卸载
  651. onUnload() {},
  652. //页面下来刷新
  653. onPullDownRefresh() {},
  654. //页面上拉触底
  655. onReachBottom() {},
  656. };
  657. </script>
  658. <style scoped>
  659. .shu1 {
  660. display: flex;
  661. flex-direction: column;
  662. justify-content: space-between;
  663. align-items: center;
  664. }
  665. .shili_btn {
  666. width: 100%;
  667. height: 90rpx;
  668. border-top: 2rpx solid #F2F2F2;
  669. }
  670. .shili_btn>view {
  671. width: 50%;
  672. height: 100%;
  673. background-color: #ffffff;
  674. cursor: pointer;
  675. }
  676. .shili_btn>view:nth-child(2) {
  677. color: #FFFFFF;
  678. background-color: #007BFF;
  679. }
  680. .shili>text:nth-child(1) {
  681. font-weight: bold;
  682. }
  683. .shili {
  684. padding: 40rpx;
  685. box-sizing: border-box;
  686. }
  687. .heng {
  688. display: flex;
  689. justify-content: space-between;
  690. align-items: center;
  691. }
  692. .heng1 {
  693. display: flex;
  694. justify-content: center;
  695. align-items: center;
  696. }
  697. /* 第三方登录Start */
  698. .third_party_login_box {
  699. position: fixed;
  700. bottom: 100rpx;
  701. left: 0;
  702. right: 0;
  703. height: 170rpx;
  704. padding: 0 30rpx;
  705. }
  706. .third_party_login_box .third_party_title {
  707. display: flex;
  708. align-items: center;
  709. }
  710. .third_party_login_box .third_party_title:before,
  711. .third_party_login_box .third_party_title:after {
  712. content: "";
  713. flex: 1;
  714. height: 2rpx;
  715. background-color: #f5f5f5;
  716. }
  717. .third_party_login_box .third_party_title text {
  718. font-size: 24rpx;
  719. color: #999999;
  720. flex-shrink: 0;
  721. padding: 0 20rpx;
  722. }
  723. .third_party_login_box .third_party_content {
  724. height: 140rpx;
  725. display: flex;
  726. justify-content: center;
  727. align-items: center;
  728. }
  729. .third_party_login_box .third_party_content image {
  730. margin: 0rpx 20rpx;
  731. width: 80rpx;
  732. height: 80rpx;
  733. }
  734. /* 第三方登录End */
  735. .yanzhengmaView1 {
  736. background: #FFFFFF;
  737. border-radius: 10rpx;
  738. width: 150rpx;
  739. padding: 5rpx 0;
  740. }
  741. .yanzhengmaView2 {
  742. background: #FFFFFF;
  743. border-radius: 10rpx;
  744. width: 220rpx;
  745. padding: 5rpx 0;
  746. }
  747. </style>