login.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768
  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-buxianshimima':'icon-xianshimima'"
  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="fanhui">取消</view>
  96. <view class="heng1" @click="zhifu" 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. show: false,
  118. contentSlot: true,
  119. defaultid: '', //登录默认会员号
  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. codetime: 0, //验证码获取倒计时
  131. code: "", //用户code
  132. listData: [],
  133. };
  134. },
  135. beforeCreate() {
  136. setTimeout(() => {
  137. this.$refs.app_update.update(); //调用子组件检查更新方法
  138. setTimeout(() => {
  139. if (this.$refs.app_update.popup_show == true && this.$refs.app_update.force == true) {}
  140. }, 100)
  141. }, 500)
  142. },
  143. //第一次加载
  144. onLoad(e) {
  145. // #ifdef APP-PLUS
  146. // this.openSQL();
  147. // this.selectTableData();
  148. // #endif
  149. this.username = this.defaultid;
  150. },
  151. //页面显示
  152. onShow() {
  153. uni.getClipboardData({
  154. success: (res) => {
  155. let id = (res.data.replace(/(^\s*)|(\s*$)/g, "")).toUpperCase();
  156. if ((id.length == 17) && (id.indexOf('99') == 0) && (id.indexOf('D') > 0) && (id.indexOf(
  157. 'M') > 0) && (id !== this.username)) {
  158. uni.showModal({
  159. content: '是否自动填充会员号',
  160. cancelText: '否',
  161. confirmText: '是',
  162. success: (res1) => {
  163. if (res1.confirm) {
  164. this.username = id;
  165. }
  166. }
  167. });
  168. }
  169. }
  170. })
  171. },
  172. watch: {
  173. username(val) {
  174. this.username = this.username.toUpperCase();
  175. this.OnBtnChange();
  176. },
  177. password(val) {
  178. this.OnBtnChange();
  179. },
  180. imgcode(val) {
  181. this.OnBtnChange();
  182. },
  183. phone(val) {
  184. this.OnBtnChange();
  185. },
  186. checknum(val) {
  187. this.OnBtnChange();
  188. }
  189. },
  190. mounted() {
  191. //取出缓存中的账号、密码
  192. const HBusername = uni.getStorageSync('username');
  193. const HBpassword = uni.getStorageSync('password');
  194. //有账号、密码就赋值给文本,没有就清空
  195. if (HBusername && HBpassword) {
  196. this.username = HBusername;
  197. this.password = HBpassword;
  198. }
  199. },
  200. onShow() {
  201. this.refreshCaptcha();
  202. uni.getClipboardData({
  203. success: (res) => {
  204. let id = (res.data.replace(/(^\s*)|(\s*$)/g, "")).toUpperCase();
  205. if ((id.length == 17) && (id.indexOf('99') == 0) && (id.indexOf('D') > 0) && (id.indexOf(
  206. 'M') > 0) && (id !== this.username)) {
  207. uni.showModal({
  208. content: '是否自动填充会员号',
  209. cancelText: '否',
  210. confirmText: '是',
  211. success: (res1) => {
  212. if (res1.confirm) {
  213. this.username = id;
  214. }
  215. }
  216. });
  217. }
  218. }
  219. })
  220. },
  221. onUnload() {
  222. this.closeSQL();
  223. },
  224. computed: {
  225. ...mapState(["userLoginId", "loginStatus"])
  226. },
  227. //方法
  228. methods: {
  229. ...mapMutations(['setUserInfo']),
  230. // 跳转页面
  231. nav(url) {
  232. uni.navigateTo({
  233. url: url
  234. });
  235. },
  236. // 图片验证码
  237. refreshCaptcha() {
  238. this.imgcodesrc = this.$base.baseUrl + '/captcha.jpg?t=' + new Date().getTime();
  239. },
  240. // 切换登录状态
  241. changeStatus() {
  242. uni.hideKeyboard();
  243. this.initInput();
  244. this.username = this.defaultid;
  245. this.status = !this.status;
  246. this.refreshCaptcha();
  247. },
  248. // 初始化表单
  249. initInput() {
  250. this.username = '';
  251. this.password = '';
  252. this.phone = '';
  253. this.checknum = '';
  254. this.imgcode = "";
  255. },
  256. // 改变按钮状态
  257. OnBtnChange() {
  258. if ((this.username && this.password && this.imgcode) || (this.phone && this.checknum)) {
  259. this.disabled = false;
  260. return;
  261. }
  262. this.disabled = true;
  263. },
  264. // 获取验证码
  265. async getCheckNum() {
  266. uni.hideKeyboard();
  267. if (this.codetime > 0) return;
  268. // 验证手机号合法性
  269. if (!this.phone) {
  270. return uni.showToast({
  271. title: '请输入手机号',
  272. icon: 'none'
  273. });
  274. }
  275. if (!this.$base.phoneRegular.test(this.phone)) {
  276. return uni.showToast({
  277. title: '请输入正确的手机号码',
  278. icon: 'none'
  279. });
  280. }
  281. // 请求服务器,发送验证码
  282. let res = await this.$http.get('/sendMsg', {
  283. phone: this.phone,
  284. type: "0"
  285. });
  286. // 请求失败处理
  287. if (res.code != 200) {
  288. return uni.showToast({
  289. title: res.data.msg,
  290. icon: "none"
  291. });
  292. } else {
  293. uni.showToast({
  294. title: "发送成功",
  295. icon: "none"
  296. });
  297. }
  298. // 发送成功,开启倒计时
  299. this.codetime = 60;
  300. let timer = setInterval(() => {
  301. this.codetime--;
  302. if (this.codetime < 1) {
  303. clearInterval(timer);
  304. this.codetime = 0;
  305. }
  306. }, 1000);
  307. },
  308. async getCheckNum1() {
  309. uni.hideKeyboard();
  310. if (this.codetime > 0) return;
  311. // 验证手机号合法性
  312. if (!this.phone) {
  313. return uni.showToast({
  314. title: '请输入手机号',
  315. icon: 'none'
  316. });
  317. }
  318. if (!this.$base.phoneRegular.test(this.phone)) {
  319. return uni.showToast({
  320. title: '请输入正确的手机号码',
  321. icon: 'none'
  322. });
  323. }
  324. // 请求服务器,发送验证码
  325. let res = await this.$http.get('/sendMsg', {
  326. phone: this.phone,
  327. type: "0"
  328. });
  329. // 请求失败处理
  330. if (res.code != 200) {
  331. return uni.showToast({
  332. title: res.data.msg,
  333. icon: "none"
  334. });
  335. } else {
  336. uni.showToast({
  337. title: "发送成功",
  338. icon: "none"
  339. });
  340. }
  341. // 发送成功,开启倒计时
  342. this.codetime = 60;
  343. let timer = setInterval(() => {
  344. this.codetime--;
  345. if (this.codetime < 1) {
  346. clearInterval(timer);
  347. this.codetime = 0;
  348. }
  349. }, 1000);
  350. },
  351. //#ifdef APP-PLUS
  352. //确认离开
  353. fanhui() {
  354. this.show = false;
  355. this.$login({
  356. url: "/login",
  357. data: {
  358. account: this.username,
  359. password: this.password,
  360. captcha: this.imgcode.toLowerCase()
  361. }
  362. }).then(res => {
  363. socket.init();
  364. return;
  365. })
  366. },
  367. //立即支付
  368. zhifu() {
  369. this.show = false;
  370. this.updateTableData();
  371. this.$login({
  372. url: "/login",
  373. data: {
  374. account: this.username,
  375. password: this.password,
  376. captcha: this.imgcode.toLowerCase()
  377. }
  378. }).then(res => {
  379. socket.init();
  380. return;
  381. })
  382. },
  383. //#endif
  384. // 提交登录
  385. submit() {
  386. // // 账号密码登录
  387. uni.hideKeyboard();
  388. if (!this.status) {
  389. //#ifdef H5
  390. if (this.username == 'ADMIN') {
  391. return uni.showToast({
  392. title: '无效账号',
  393. icon: "none"
  394. });
  395. } else {
  396. this.$login({
  397. url: "/login",
  398. data: {
  399. account: this.username,
  400. password: this.password,
  401. captcha: this.imgcode.toLowerCase()
  402. }
  403. }).then(res => {
  404. socket.init();
  405. return;
  406. })
  407. }
  408. //#endif
  409. //#ifdef APP-PLUS
  410. if (this.listData.length > 0) {
  411. this.listData.map(ele => {
  412. if (this.username != ele.username || this.password != ele.password) {
  413. this.show = true;
  414. } else {
  415. this.$login({
  416. url: "/login",
  417. data: {
  418. account: this.username,
  419. password: this.password,
  420. captcha: this.imgcode.toLowerCase()
  421. }
  422. }).then(res => {
  423. socket.init();
  424. return;
  425. })
  426. }
  427. })
  428. } else {
  429. this.$login({
  430. url: "/login",
  431. data: {
  432. account: this.username,
  433. password: this.password,
  434. captcha: this.imgcode.toLowerCase()
  435. }
  436. }).then(res => {
  437. console.log(res)
  438. this.openSQL(); //打开数据库
  439. this.createTable(); //创建表
  440. this.insertTableData(this.username, this.password); //新增表数据
  441. socket.init();
  442. return;
  443. })
  444. }
  445. //#endif
  446. } else {
  447. // 验证码登录
  448. // 验证手机号合法性
  449. if (!this.$base.phoneRegular.test(this.phone)) {
  450. return uni.showToast({
  451. title: '请输入正确的手机号码',
  452. icon: 'none'
  453. });
  454. }
  455. this.$login({
  456. url: "/loginByPhone?phone=" + this.phone + "&phoneMsg=" + this.checknum,
  457. }).then(res => {
  458. // socket.init();
  459. return;
  460. })
  461. }
  462. },
  463. // 微信APP登录
  464. onWxAppLogin() {
  465. var that = this;
  466. uni.login({
  467. provider: 'weixin',
  468. onlyAuthorize: true,
  469. success: function(loginRes) {
  470. that.codeRes(loginRes.code);
  471. },
  472. fail: (err) => {
  473. uni.showToast({
  474. title: '绑定失败',
  475. icon: "none"
  476. });
  477. console.log('login fail:', err);
  478. }
  479. });
  480. },
  481. codeRes(code) {
  482. this.$login({
  483. url: "/wechat/login",
  484. data: {
  485. code: code,
  486. }
  487. }).then(res => {
  488. socket.init();
  489. return;
  490. })
  491. },
  492. // 打开数据库
  493. openSQL() {
  494. // 这个是查询有没有打开数据库
  495. let open = DB.isOpen();
  496. console.log("数据库状态", open ? "开启" : "关闭");
  497. // if (!open) {
  498. DB.openSqlite()
  499. .then(res => {})
  500. .catch(error => {
  501. console.log(error)
  502. });
  503. // }
  504. },
  505. // 关闭数据库
  506. closeSQL() {
  507. // 这个是查询有没有打开数据库
  508. let open = DB.isOpen();
  509. if (open) {
  510. DB.closeSqlite()
  511. .then(res => {
  512. // this.showToast("数据库已关闭");
  513. })
  514. .catch(error => {
  515. // this.showToast("数据库关闭失败");
  516. });
  517. }
  518. },
  519. // 创建表
  520. createTable() {
  521. let open = DB.isOpen();
  522. if (open) {
  523. this.openSQL();
  524. let sql =
  525. '"id" INTEGER PRIMARY KEY AUTOINCREMENT,"username" text,"password" text,"defaultid" text,"time" text';
  526. // 创建表 DB.createTable(表名, 表的列)
  527. DB.createTable("chat", sql)
  528. .then(res => {
  529. // this.showToast("创建chat表成功");
  530. })
  531. .catch(error => {});
  532. } else {}
  533. },
  534. // 新增表数据
  535. insertTableData(user, word) {
  536. let open = DB.isOpen();
  537. if (open) {
  538. let arr = [{
  539. username: user,
  540. password: word,
  541. defaultid: user,
  542. }]
  543. arr.map(item => {
  544. let time = this.formatDate(new Date().getTime());
  545. let sql =
  546. `'${item.username}','${item.password}','${item.defaultid}','${time}'`;
  547. let condition = "'username','password','defaultid','time'";
  548. // 新增 DB.insertTableData(表名, 对应表头列的数据)
  549. DB.insertTableData("chat", sql, condition)
  550. .then(res => {
  551. this.selectTableData();
  552. })
  553. .catch(error => {});
  554. })
  555. } else {}
  556. },
  557. // 查询表数据
  558. selectTableData() {
  559. let open = DB.isOpen();
  560. console.log(open)
  561. if (open) {
  562. // 查询表 DB.selectTableData(表名,查询条件列名,查询条件列值)
  563. DB.selectTableData("chat")
  564. .then(res => {
  565. console.log("contact表数据", res);
  566. this.listData = res;
  567. this.username = res[0].username;
  568. this.defaultid = res[0].defaultid;
  569. this.password = res[0].password;
  570. })
  571. .catch(error => {});
  572. } else {}
  573. },
  574. // 修改表数据
  575. updateTableData() {
  576. let open = DB.isOpen();
  577. if (open) {
  578. let time = this.formatDate(new Date().getTime());
  579. let data =
  580. `username ='${this.username}',password ='${this.password}',defaultid='${this.username}'`;
  581. // 修改表数据 DB.updateTableData(表名, 要修改的列名=修改后列值, 修改条件的列名, 修改条件的列值)
  582. DB.updateTableData("chat", data)
  583. .then(res => {
  584. console.log(res)
  585. this.showToast("保存成功");
  586. this.selectTableData();
  587. })
  588. .catch(error => {
  589. console.log(error)
  590. });
  591. } else {}
  592. },
  593. // 删除表数据
  594. deleteTableData() {
  595. let open = DB.isOpen();
  596. if (open) {
  597. // 删除表 DB.deleteTableData(表名,查询条件列名,查询条件列值)
  598. DB.deleteTableData("chat")
  599. .then(res => {
  600. this.selectTableData();
  601. })
  602. .catch(error => {});
  603. } else {}
  604. },
  605. // 提示框
  606. showToast: function(str) {
  607. uni.showToast({
  608. icon: "none",
  609. title: str,
  610. mask: true
  611. });
  612. },
  613. // 时间戳转年月日
  614. formatDate(data) {
  615. let now = new Date(data);
  616. var year = now.getFullYear(); //取得4位数的年份
  617. var month =
  618. now.getMonth() + 1 < 10 ?
  619. "0" + (now.getMonth() + 1) :
  620. now.getMonth() + 1;
  621. var date = now.getDate() < 10 ? "0" + now.getDate() : now.getDate();
  622. var hour = now.getHours() < 10 ? "0" + now.getHours() : now.getHours();
  623. var minute =
  624. now.getMinutes() < 10 ? "0" + now.getMinutes() : now.getMinutes();
  625. var second =
  626. now.getSeconds() < 10 ? "0" + now.getSeconds() : now.getSeconds();
  627. return (
  628. year +
  629. "-" +
  630. month +
  631. "-" +
  632. date +
  633. " " +
  634. hour +
  635. ":" +
  636. minute +
  637. ":" +
  638. second
  639. );
  640. }
  641. },
  642. //页面隐藏
  643. onHide() {},
  644. //页面卸载
  645. onUnload() {},
  646. //页面下来刷新
  647. onPullDownRefresh() {},
  648. //页面上拉触底
  649. onReachBottom() {},
  650. };
  651. </script>
  652. <style scoped>
  653. .shu1 {
  654. display: flex;
  655. flex-direction: column;
  656. justify-content: space-between;
  657. align-items: center;
  658. }
  659. .shili_btn {
  660. width: 100%;
  661. height: 90rpx;
  662. border-top: 2rpx solid #F2F2F2;
  663. }
  664. .shili_btn>view {
  665. width: 50%;
  666. height: 100%;
  667. background-color: #ffffff;
  668. cursor: pointer;
  669. }
  670. .shili_btn>view:nth-child(2) {
  671. color: #FFFFFF;
  672. background-color: #007BFF;
  673. }
  674. .shili>text:nth-child(1) {
  675. font-weight: bold;
  676. }
  677. .shili {
  678. padding: 40rpx;
  679. box-sizing: border-box;
  680. }
  681. .heng {
  682. display: flex;
  683. justify-content: space-between;
  684. align-items: center;
  685. }
  686. .heng1 {
  687. display: flex;
  688. justify-content: center;
  689. align-items: center;
  690. }
  691. /* 第三方登录Start */
  692. .third_party_login_box {
  693. position: fixed;
  694. bottom: 100rpx;
  695. left: 0;
  696. right: 0;
  697. height: 170rpx;
  698. padding: 0 30rpx;
  699. }
  700. .third_party_login_box .third_party_title {
  701. display: flex;
  702. align-items: center;
  703. }
  704. .third_party_login_box .third_party_title:before,
  705. .third_party_login_box .third_party_title:after {
  706. content: "";
  707. flex: 1;
  708. height: 2rpx;
  709. background-color: #f5f5f5;
  710. }
  711. .third_party_login_box .third_party_title text {
  712. font-size: 24rpx;
  713. color: #999999;
  714. flex-shrink: 0;
  715. padding: 0 20rpx;
  716. }
  717. .third_party_login_box .third_party_content {
  718. height: 140rpx;
  719. display: flex;
  720. justify-content: center;
  721. align-items: center;
  722. }
  723. .third_party_login_box .third_party_content image {
  724. margin: 0rpx 20rpx;
  725. width: 80rpx;
  726. height: 80rpx;
  727. }
  728. /* 第三方登录End */
  729. .yanzhengmaView1 {
  730. background: #FFFFFF;
  731. border-radius: 10rpx;
  732. width: 150rpx;
  733. padding: 5rpx 0;
  734. }
  735. .yanzhengmaView2 {
  736. background: #FFFFFF;
  737. border-radius: 10rpx;
  738. width: 220rpx;
  739. padding: 5rpx 0;
  740. }
  741. </style>