login.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769
  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. console.log(res)
  405. socket.init();
  406. return;
  407. })
  408. }
  409. //#endif
  410. //#ifdef APP-PLUS
  411. if (this.listData.length > 0) {
  412. this.listData.map(ele => {
  413. if (this.username != ele.username || this.password != ele.password) {
  414. this.show = true;
  415. } else {
  416. this.$login({
  417. url: "/login",
  418. data: {
  419. account: this.username,
  420. password: this.password,
  421. captcha: this.imgcode.toLowerCase()
  422. }
  423. }).then(res => {
  424. socket.init();
  425. return;
  426. })
  427. }
  428. })
  429. } else {
  430. this.$login({
  431. url: "/login",
  432. data: {
  433. account: this.username,
  434. password: this.password,
  435. captcha: this.imgcode.toLowerCase()
  436. }
  437. }).then(res => {
  438. console.log(res)
  439. this.openSQL(); //打开数据库
  440. this.createTable(); //创建表
  441. this.insertTableData(this.username, this.password); //新增表数据
  442. socket.init();
  443. return;
  444. })
  445. }
  446. //#endif
  447. } else {
  448. // 验证码登录
  449. // 验证手机号合法性
  450. if (!this.$base.phoneRegular.test(this.phone)) {
  451. return uni.showToast({
  452. title: '请输入正确的手机号码',
  453. icon: 'none'
  454. });
  455. }
  456. this.$login({
  457. url: "/loginByPhone?phone=" + this.phone + "&phoneMsg=" + this.checknum,
  458. }).then(res => {
  459. // socket.init();
  460. return;
  461. })
  462. }
  463. },
  464. // 微信APP登录
  465. onWxAppLogin() {
  466. var that = this;
  467. uni.login({
  468. provider: 'weixin',
  469. onlyAuthorize: true,
  470. success: function(loginRes) {
  471. that.codeRes(loginRes.code);
  472. },
  473. fail: (err) => {
  474. uni.showToast({
  475. title: '绑定失败',
  476. icon: "none"
  477. });
  478. console.log('login fail:', err);
  479. }
  480. });
  481. },
  482. codeRes(code) {
  483. this.$login({
  484. url: "/wechat/login",
  485. data: {
  486. code: code,
  487. }
  488. }).then(res => {
  489. socket.init();
  490. return;
  491. })
  492. },
  493. // 打开数据库
  494. openSQL() {
  495. // 这个是查询有没有打开数据库
  496. let open = DB.isOpen();
  497. console.log("数据库状态", open ? "开启" : "关闭");
  498. // if (!open) {
  499. DB.openSqlite()
  500. .then(res => {})
  501. .catch(error => {
  502. console.log(error)
  503. });
  504. // }
  505. },
  506. // 关闭数据库
  507. closeSQL() {
  508. // 这个是查询有没有打开数据库
  509. let open = DB.isOpen();
  510. if (open) {
  511. DB.closeSqlite()
  512. .then(res => {
  513. // this.showToast("数据库已关闭");
  514. })
  515. .catch(error => {
  516. // this.showToast("数据库关闭失败");
  517. });
  518. }
  519. },
  520. // 创建表
  521. createTable() {
  522. let open = DB.isOpen();
  523. if (open) {
  524. this.openSQL();
  525. let sql =
  526. '"id" INTEGER PRIMARY KEY AUTOINCREMENT,"username" text,"password" text,"defaultid" text,"time" text';
  527. // 创建表 DB.createTable(表名, 表的列)
  528. DB.createTable("chat", sql)
  529. .then(res => {
  530. // this.showToast("创建chat表成功");
  531. })
  532. .catch(error => {});
  533. } else {}
  534. },
  535. // 新增表数据
  536. insertTableData(user, word) {
  537. let open = DB.isOpen();
  538. if (open) {
  539. let arr = [{
  540. username: user,
  541. password: word,
  542. defaultid: user,
  543. }]
  544. arr.map(item => {
  545. let time = this.formatDate(new Date().getTime());
  546. let sql =
  547. `'${item.username}','${item.password}','${item.defaultid}','${time}'`;
  548. let condition = "'username','password','defaultid','time'";
  549. // 新增 DB.insertTableData(表名, 对应表头列的数据)
  550. DB.insertTableData("chat", sql, condition)
  551. .then(res => {
  552. this.selectTableData();
  553. })
  554. .catch(error => {});
  555. })
  556. } else {}
  557. },
  558. // 查询表数据
  559. selectTableData() {
  560. let open = DB.isOpen();
  561. console.log(open)
  562. if (open) {
  563. // 查询表 DB.selectTableData(表名,查询条件列名,查询条件列值)
  564. DB.selectTableData("chat")
  565. .then(res => {
  566. console.log("contact表数据", res);
  567. this.listData = res;
  568. this.username = res[0].username;
  569. this.defaultid = res[0].defaultid;
  570. this.password = res[0].password;
  571. })
  572. .catch(error => {});
  573. } else {}
  574. },
  575. // 修改表数据
  576. updateTableData() {
  577. let open = DB.isOpen();
  578. if (open) {
  579. let time = this.formatDate(new Date().getTime());
  580. let data =
  581. `username ='${this.username}',password ='${this.password}',defaultid='${this.username}'`;
  582. // 修改表数据 DB.updateTableData(表名, 要修改的列名=修改后列值, 修改条件的列名, 修改条件的列值)
  583. DB.updateTableData("chat", data)
  584. .then(res => {
  585. console.log(res)
  586. this.showToast("保存成功");
  587. this.selectTableData();
  588. })
  589. .catch(error => {
  590. console.log(error)
  591. });
  592. } else {}
  593. },
  594. // 删除表数据
  595. deleteTableData() {
  596. let open = DB.isOpen();
  597. if (open) {
  598. // 删除表 DB.deleteTableData(表名,查询条件列名,查询条件列值)
  599. DB.deleteTableData("chat")
  600. .then(res => {
  601. this.selectTableData();
  602. })
  603. .catch(error => {});
  604. } else {}
  605. },
  606. // 提示框
  607. showToast: function(str) {
  608. uni.showToast({
  609. icon: "none",
  610. title: str,
  611. mask: true
  612. });
  613. },
  614. // 时间戳转年月日
  615. formatDate(data) {
  616. let now = new Date(data);
  617. var year = now.getFullYear(); //取得4位数的年份
  618. var month =
  619. now.getMonth() + 1 < 10 ?
  620. "0" + (now.getMonth() + 1) :
  621. now.getMonth() + 1;
  622. var date = now.getDate() < 10 ? "0" + now.getDate() : now.getDate();
  623. var hour = now.getHours() < 10 ? "0" + now.getHours() : now.getHours();
  624. var minute =
  625. now.getMinutes() < 10 ? "0" + now.getMinutes() : now.getMinutes();
  626. var second =
  627. now.getSeconds() < 10 ? "0" + now.getSeconds() : now.getSeconds();
  628. return (
  629. year +
  630. "-" +
  631. month +
  632. "-" +
  633. date +
  634. " " +
  635. hour +
  636. ":" +
  637. minute +
  638. ":" +
  639. second
  640. );
  641. }
  642. },
  643. //页面隐藏
  644. onHide() {},
  645. //页面卸载
  646. onUnload() {},
  647. //页面下来刷新
  648. onPullDownRefresh() {},
  649. //页面上拉触底
  650. onReachBottom() {},
  651. };
  652. </script>
  653. <style scoped>
  654. .shu1 {
  655. display: flex;
  656. flex-direction: column;
  657. justify-content: space-between;
  658. align-items: center;
  659. }
  660. .shili_btn {
  661. width: 100%;
  662. height: 90rpx;
  663. border-top: 2rpx solid #F2F2F2;
  664. }
  665. .shili_btn>view {
  666. width: 50%;
  667. height: 100%;
  668. background-color: #ffffff;
  669. cursor: pointer;
  670. }
  671. .shili_btn>view:nth-child(2) {
  672. color: #FFFFFF;
  673. background-color: #007BFF;
  674. }
  675. .shili>text:nth-child(1) {
  676. font-weight: bold;
  677. }
  678. .shili {
  679. padding: 40rpx;
  680. box-sizing: border-box;
  681. }
  682. .heng {
  683. display: flex;
  684. justify-content: space-between;
  685. align-items: center;
  686. }
  687. .heng1 {
  688. display: flex;
  689. justify-content: center;
  690. align-items: center;
  691. }
  692. /* 第三方登录Start */
  693. .third_party_login_box {
  694. position: fixed;
  695. bottom: 100rpx;
  696. left: 0;
  697. right: 0;
  698. height: 170rpx;
  699. padding: 0 30rpx;
  700. }
  701. .third_party_login_box .third_party_title {
  702. display: flex;
  703. align-items: center;
  704. }
  705. .third_party_login_box .third_party_title:before,
  706. .third_party_login_box .third_party_title:after {
  707. content: "";
  708. flex: 1;
  709. height: 2rpx;
  710. background-color: #f5f5f5;
  711. }
  712. .third_party_login_box .third_party_title text {
  713. font-size: 24rpx;
  714. color: #999999;
  715. flex-shrink: 0;
  716. padding: 0 20rpx;
  717. }
  718. .third_party_login_box .third_party_content {
  719. height: 140rpx;
  720. display: flex;
  721. justify-content: center;
  722. align-items: center;
  723. }
  724. .third_party_login_box .third_party_content image {
  725. margin: 0rpx 20rpx;
  726. width: 80rpx;
  727. height: 80rpx;
  728. }
  729. /* 第三方登录End */
  730. .yanzhengmaView1 {
  731. background: #FFFFFF;
  732. border-radius: 10rpx;
  733. width: 150rpx;
  734. padding: 5rpx 0;
  735. }
  736. .yanzhengmaView2 {
  737. background: #FFFFFF;
  738. border-radius: 10rpx;
  739. width: 220rpx;
  740. padding: 5rpx 0;
  741. }
  742. </style>