login.vue 20 KB

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