index.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895
  1. <template>
  2. <div class="login-wrapper bglogin">
  3. <up-navbar title="登录" placeholder>
  4. <template #left>
  5. <!-- <view-->
  6. <!-- v-if="appStore?.$wxConfig?.auditModeEnstoreAuditModeEnabledabled"-->
  7. <!-- @click="backHome"-->
  8. <!-- >-->
  9. <!-- <image src="@/static/images/tabbar/1-001.png" style="height: 40rpx;width: 40rpx;"></image>-->
  10. <!-- </view>-->
  11. <view
  12. class="back_extend"
  13. v-if="appStore?.$wxConfig?.storeAuditModeEnabled"
  14. @click="backHome"
  15. >
  16. {{ "<" }} 回到首页
  17. </view>
  18. </template>
  19. </up-navbar>
  20. <div class="shading">
  21. <view class="">Hello!</view>
  22. <view class="">欢迎来到水贝搬运工</view>
  23. <image src="@/static/images/login_ip.png" class="ip-pic"></image>
  24. </div>
  25. <div class="whiteBg" v-if="formItem === 1">
  26. <view
  27. class="whiteBg-tab whiteBg-tabimg"
  28. :class="{ 'whiteBg-tabs whiteBg-tabsimg': current == 1 }"
  29. >
  30. <view
  31. @click="current = item.type"
  32. :class="{ active: current != index, noActive: current == index }"
  33. class="whiteBg-tab-li"
  34. v-for="(item, index) in navList"
  35. :key="index"
  36. >
  37. <view class="">{{ item.name }}</view>
  38. </view>
  39. </view>
  40. <div class="list">
  41. <div class="item">
  42. <input
  43. type="text"
  44. maxlength="11"
  45. class="texts"
  46. placeholder="输入手机号码"
  47. v-model="account"
  48. required
  49. />
  50. </div>
  51. <template v-if="current == 0">
  52. <div class="item">
  53. <input
  54. type="password"
  55. class="texts"
  56. placeholder="填写登录密码"
  57. v-model="password"
  58. required
  59. />
  60. </div>
  61. </template>
  62. <template v-else-if="current == 1">
  63. <div class="item">
  64. <input
  65. type="number"
  66. placeholder="填写验证码"
  67. class="texts"
  68. v-model="captcha"
  69. maxlength="6"
  70. />
  71. <button
  72. class="code"
  73. :disabled="disabled"
  74. :class="disabled === true ? 'on' : ''"
  75. @click="code"
  76. >
  77. {{ text }}
  78. </button>
  79. </div>
  80. <div class="item">
  81. <input
  82. type="text"
  83. class="texts"
  84. placeholder="输入邀请码"
  85. v-model="inviteCode"
  86. />
  87. </div>
  88. </template>
  89. </div>
  90. <div class="privacy-box" @click="aloneChecked = !aloneChecked">
  91. <image
  92. v-if="aloneChecked"
  93. src="/static/images/select-active@2x.png"
  94. mode=""
  95. ></image>
  96. <image v-else src="/static/images/select@2x.png" mode=""></image>
  97. <view class="">我已阅读并同意</view>
  98. <view class="privacy-text" @click.stop="openPrivacy">《用户协议》</view>
  99. <view class="privacy-text" @click.stop="openPrivacy">《隐私政策》</view>
  100. </div>
  101. <view class="footer">
  102. <button class="logon" @click="loginMobile" v-if="current !== 0">
  103. 登录
  104. </button>
  105. <!-- <button class="logonWX" open-type="getPhoneNumber" @getphonenumber="getPhoneNumberFn" v-if="current !== 0">微信登录</button> -->
  106. <button class="logon" @click="submit" v-if="current === 0">登录</button>
  107. </view>
  108. <view class="wx-login" v-if="current !== 0">
  109. <view class="wx-login-tip">
  110. <view class="login-line"> </view>
  111. <text class="wx-tip">第三方登录</text>
  112. <view class="login-line"> </view>
  113. </view>
  114. <view class="wx-login-btn">
  115. <button
  116. v-if="aloneChecked"
  117. class="logonWX"
  118. open-type="getPhoneNumber"
  119. @getphonenumber="getPhoneNumberFn"
  120. >
  121. <image
  122. class="wx-icon"
  123. src="@/static/images/wxLogin.png"
  124. mode="widthFix"
  125. ></image>
  126. </button>
  127. <button v-else class="logonWX" @click="checkPrivacyAgreement">
  128. <image
  129. class="wx-icon"
  130. src="@/static/images/wxLogin.png"
  131. mode="widthFix"
  132. ></image>
  133. </button>
  134. </view>
  135. </view>
  136. </div>
  137. </div>
  138. </template>
  139. <script setup>
  140. import { ref, watch, onMounted } from "vue";
  141. import { onLoad } from "@dcloudio/uni-app";
  142. import { useAppStore } from "@/stores/app";
  143. import {
  144. loginH5,
  145. loginMobile as loginMobileApi,
  146. registerVerify,
  147. register,
  148. getUserInfo,
  149. } from "@/api/user";
  150. import { getLogo, appAuth, appleLogin } from "@/api/public";
  151. import { VUE_APP_API_URL } from "@/utils";
  152. import { useSendCode } from "@/hooks/useSendCode";
  153. import Cache from "@/utils/cache";
  154. import { getPhoneNumber } from "@/utils/util.js";
  155. import { useToast } from "@/hooks/useToast.js";
  156. // import {
  157. // useGoEasy
  158. // } from "@/plugin/goeasy";
  159. // import {
  160. // getGroupchatList
  161. // } from "@/api/customerService";
  162. import { footprintScan } from "@/api/merchant.js";
  163. import { EXPIRES_TIME } from "@/config/cache";
  164. const appStore = useAppStore();
  165. const { Toast } = useToast();
  166. // const {
  167. // connect,
  168. // GoEasy
  169. // } = useGoEasy();
  170. const BACK_URL = "login_back_url";
  171. // Reactive state
  172. const navList = ref([
  173. {
  174. name: "快速登录",
  175. type: 1,
  176. },
  177. {
  178. name: "账号登录",
  179. type: 0,
  180. },
  181. ]);
  182. const current = ref(1);
  183. const account = ref("");
  184. const inviteCode = ref(""); // 邀请码
  185. const password = ref("");
  186. const captcha = ref("");
  187. const formItem = ref(1);
  188. const type = ref("login");
  189. const logoUrl = ref("");
  190. const keyCode = ref("");
  191. const codeUrl = ref("");
  192. const codeVal = ref("");
  193. const platform = ref("");
  194. const appleShow = ref(false);
  195. const aloneChecked = ref(false);
  196. const merchantId = ref("");
  197. const userInfo = ref({});
  198. // Watch formItem to update type
  199. watch(formItem, (newVal) => {
  200. type.value = newVal === 1 ? "login" : "register";
  201. });
  202. const { disabled, text, sendCode } = useSendCode();
  203. function openPrivacy() {
  204. // void plus.runtime.openWeb("https://www.shuibeibyg.com/shenhe.html");
  205. goDetail("https://www.shuibeibyg.com/shenhe.html");
  206. }
  207. const goDetail = (url) => {
  208. const webviewPageUrl = `/pages/webview/privacy?path=${url}`;
  209. uni.navigateTo({
  210. url: webviewPageUrl,
  211. fail: (err) => {
  212. console.error("跳转到webview页面失败:", err);
  213. uni.showToast({
  214. title: "跳转失败,请重试",
  215. icon: "none",
  216. duration: 1500,
  217. });
  218. },
  219. });
  220. };
  221. // Get logo image
  222. const getLogoImage = async () => {
  223. try {
  224. const res = await getLogo();
  225. logoUrl.value = res.data.logoUrl || "/static/images/logo2.png";
  226. } catch (err) {
  227. console.error(err);
  228. }
  229. };
  230. // 验证码登录
  231. const loginMobile = async () => {
  232. if (!account.value)
  233. return uni.showToast({
  234. title: "请填写手机号码",
  235. icon: "none",
  236. });
  237. if (!/^1(3|4|5|7|8|9|6)\d{9}$/i.test(account.value))
  238. return uni.showToast({
  239. title: "请输入正确的手机号码",
  240. icon: "none",
  241. });
  242. if (!captcha.value)
  243. return uni.showToast({
  244. title: "请填写验证码",
  245. icon: "none",
  246. });
  247. if (!/^[\w\d]+$/i.test(captcha.value))
  248. return uni.showToast({
  249. title: "请输入正确的验证码",
  250. icon: "none",
  251. });
  252. if (!aloneChecked.value) {
  253. return Toast({
  254. title: "请阅读并同意用户协议和隐私政策",
  255. icon: "none",
  256. });
  257. }
  258. try {
  259. const res = await loginMobileApi({
  260. phone: account.value,
  261. captcha: captcha.value,
  262. platformType: "app",
  263. spread_spid: Cache.get("spread"),
  264. inviteCode: inviteCode.value,
  265. });
  266. // 使用 LOGIN action 保存 token 到缓存
  267. appStore.LOGIN({
  268. token: res.data.token,
  269. });
  270. // 保存过期时间(999天后过期)
  271. const expiresTime = Math.round(new Date() / 1000) + 999 * 24 * 60 * 60;
  272. Cache.set(EXPIRES_TIME, expiresTime, 0);
  273. await getUserInfoFn(res.data);
  274. } catch (res) {
  275. const message = typeof res === "object" ? res.message : res;
  276. uni.showToast({
  277. title: message,
  278. icon: "none",
  279. });
  280. }
  281. };
  282. // 注册
  283. const registerFn = async () => {
  284. if (!account.value)
  285. return uni.showToast({
  286. title: "请填写手机号码",
  287. icon: "none",
  288. });
  289. if (!/^1(3|4|5|7|8|9|6)\d{9}$/i.test(account.value))
  290. return uni.showToast({
  291. title: "请输入正确的手机号码",
  292. icon: "none",
  293. });
  294. if (!captcha.value)
  295. return uni.showToast({
  296. title: "请填写验证码",
  297. icon: "none",
  298. });
  299. if (!/^[\w\d]+$/i.test(captcha.value))
  300. return uni.showToast({
  301. title: "请输入正确的验证码",
  302. icon: "none",
  303. });
  304. if (!password.value)
  305. return uni.showToast({
  306. title: "请填写密码",
  307. icon: "none",
  308. });
  309. // 正则1:验证长度6-18位
  310. const lengthReg = /^.{6,18}$/;
  311. // 正则2:必须包含至少1个数字(\d)和至少1个字母(a-zA-Z)
  312. const hasNumAndLetterReg = /(?=.*\d)(?=.*[a-zA-Z])/;
  313. if (!lengthReg.test(password.value)) {
  314. return uni.showToast({
  315. title: "密码长度必须为6-18位",
  316. icon: "none",
  317. });
  318. } else if (!hasNumAndLetterReg.test(password.value)) {
  319. return uni.showToast({
  320. title: "密码必须同时包含数字和字母",
  321. icon: "none",
  322. });
  323. }
  324. try {
  325. const res = await register({
  326. account: account.value,
  327. captcha: captcha.value,
  328. password: password.value,
  329. spread: Cache.get("spread"),
  330. });
  331. uni.showToast({
  332. title: res.message,
  333. icon: "none",
  334. });
  335. formItem.value = 1;
  336. } catch (res) {
  337. uni.showToast({
  338. title: res.message,
  339. icon: "none",
  340. });
  341. }
  342. };
  343. // 发送验证码
  344. const code = async () => {
  345. if (!account.value)
  346. return uni.showToast({
  347. title: "请填写手机号码",
  348. icon: "none",
  349. });
  350. if (!/^1(3|4|5|7|8|9|6)\d{9}$/i.test(account.value))
  351. return uni.showToast({
  352. title: "请输入正确的手机号码",
  353. icon: "none",
  354. });
  355. if (formItem.value === 2) type.value = "register";
  356. try {
  357. const res = await registerVerify(account.value);
  358. uni.showToast({
  359. title: res.message,
  360. icon: "none",
  361. });
  362. sendCode();
  363. } catch (err) {
  364. uni.showToast({
  365. title: err.message,
  366. icon: "none",
  367. });
  368. }
  369. };
  370. // Navigation tab switch
  371. const navTap = (index) => {
  372. current.value = index;
  373. };
  374. // 账号密码登录
  375. const submit = async () => {
  376. appStore.setIndexRefersh(true);
  377. if (!account.value)
  378. return Toast({
  379. title: "请填写账号",
  380. icon: "none",
  381. });
  382. if (!/^[\w\d]{5,16}$/i.test(account.value))
  383. return Toast({
  384. title: "请输入正确的账号",
  385. icon: "none",
  386. });
  387. if (!password.value)
  388. return Toast({
  389. title: "请填写密码",
  390. icon: "none",
  391. });
  392. if (!aloneChecked.value) {
  393. return Toast({
  394. title: "请阅读并同意用户协议和隐私政策",
  395. icon: "none",
  396. });
  397. }
  398. try {
  399. const { data } = await loginH5({
  400. account: account.value,
  401. password: password.value,
  402. platformType: "app",
  403. spread: Cache.get("spread"),
  404. });
  405. appStore.LOGIN({
  406. token: data.token,
  407. });
  408. // 保存过期时间(999天后过期)
  409. const expiresTime = Math.round(new Date() / 1000) + 999 * 24 * 60 * 60;
  410. Cache.set(EXPIRES_TIME, expiresTime, 0);
  411. await getUserInfoFn(data);
  412. } catch (err) {
  413. const message = typeof err === "object" ? err.message : err;
  414. uni.showToast({
  415. title: message,
  416. icon: "none",
  417. });
  418. }
  419. };
  420. // 订阅已加入的群组
  421. // function getGroupchatListFn(uid) {
  422. // getGroupchatList({
  423. // userId: uid
  424. // }).then((res) => {
  425. // if (res && res.data && res.data.length > 0) {
  426. // //订阅群消息
  427. // var groupIds = res.data;
  428. // GoEasy.im.subscribeGroup({
  429. // groupIds: groupIds,
  430. // onSuccess: function() {
  431. // //订阅成功
  432. // console.log("Group message subscribe successfully.");
  433. // },
  434. // onFailed: function(error) {
  435. // //订阅失败
  436. // console.log(
  437. // "Failed to subscribe group message, code:" +
  438. // error.code +
  439. // " content:" +
  440. // error.content
  441. // );
  442. // },
  443. // });
  444. // }
  445. // });
  446. // }
  447. const getUserInfoFn = async (data) => {
  448. try {
  449. appStore.SETUID(data.uid);
  450. const res = await getUserInfo();
  451. appStore.UPDATE_USERINFO(res.data);
  452. userInfo.value = res.data;
  453. // connect({
  454. // id: appStore.uid?.toString(),
  455. // data: {
  456. // avatar: appStore.$userInfo?.avatar,
  457. // nickname: appStore.$userInfo?.nickname,
  458. // phone: appStore.$userInfo?.phone,
  459. // uid: appStore.uid?.toString(),
  460. // },
  461. // });
  462. // 订阅已加入的群组
  463. // await getGroupchatListFn(data.uid);
  464. if (merchantId.value != "") {
  465. let obj = {
  466. merchantId: merchantId.value,
  467. userId: res.data.userId,
  468. };
  469. await footprintScanFn(obj);
  470. } else {
  471. console.log("============");
  472. appStore.UPDATE_MERCHANT_ID("");
  473. Toast({
  474. title: "登录成功",
  475. });
  476. backHome();
  477. }
  478. } catch (err) {
  479. console.error(err);
  480. uni.showToast({
  481. title: err.msg,
  482. icon: "none",
  483. });
  484. }
  485. };
  486. const backHome = () => {
  487. if (userInfo.value.merchant && userInfo.value.merchant.id) {
  488. uni.navigateTo({
  489. url: "/pages/merchantCenter/index",
  490. });
  491. } else {
  492. uni.switchTab({
  493. url: "/pages/index/index",
  494. });
  495. }
  496. };
  497. const footprintScanFn = async (data) => {
  498. const res = await footprintScan(data);
  499. appStore.USERINFO();
  500. Toast({
  501. title: "登录成功",
  502. });
  503. backHome();
  504. };
  505. const checkPrivacyAgreement = () => {
  506. if (!aloneChecked.value) {
  507. Toast({
  508. title: "请阅读并同意用户协议和隐私政策",
  509. icon: "none",
  510. });
  511. }
  512. };
  513. const getPhoneNumberFn = async (e) => {
  514. console.log("e", e);
  515. // Toast({ title: "登录中..." });
  516. appStore.setIndexRefersh(true);
  517. if (!aloneChecked.value) {
  518. return Toast({
  519. title: "请阅读并同意用户协议和隐私政策",
  520. icon: "none",
  521. });
  522. }
  523. const res = await getPhoneNumber(e);
  524. console.log("res", res);
  525. if (res) {
  526. appStore.LOGIN({
  527. token: res.data.token,
  528. });
  529. // 保存过期时间(999天后过期)
  530. const expiresTime = Math.round(new Date() / 1000) + 999 * 24 * 60 * 60;
  531. Cache.set(EXPIRES_TIME, expiresTime, 0);
  532. await getUserInfoFn(res.data);
  533. }
  534. };
  535. onLoad(() => {
  536. console.log(appStore.$wxConfig);
  537. merchantId.value = appStore.merchantId || "";
  538. getLogoImage();
  539. });
  540. onMounted(() => {
  541. uni.getSystemInfo({
  542. success(res) {
  543. platform.value = res.platform.toLowerCase();
  544. if (platform.value === "ios" && res.system.split(" ")[1] >= 13) {
  545. appleShow.value = true;
  546. }
  547. },
  548. });
  549. });
  550. </script>
  551. <style lang="scss" scoped>
  552. ::v-deep .u-status-bar {
  553. background: transparent;
  554. background-color: transparent !important;
  555. }
  556. ::v-deep .u-navbar__content {
  557. background: transparent;
  558. background-color: transparent !important;
  559. }
  560. .login-wrapper {
  561. //background: url('https://sb-admin.oss-cn-shenzhen.aliyuncs.com/shuibei-mini/new-mini/login@2x.png');
  562. background-repeat: no-repeat;
  563. background-size: 100% 624rpx;
  564. background-color: #ffffff;
  565. }
  566. .appLogin {
  567. .hds {
  568. display: flex;
  569. justify-content: center;
  570. align-items: center;
  571. font-size: 24rpx;
  572. color: #b4b4b4;
  573. .line {
  574. width: 68rpx;
  575. height: 1rpx;
  576. background: #cccccc;
  577. }
  578. p {
  579. margin: 0 20rpx;
  580. }
  581. }
  582. .btn-wrapper {
  583. display: flex;
  584. align-items: center;
  585. justify-content: center;
  586. margin-top: 30rpx;
  587. .btn {
  588. display: flex;
  589. align-items: center;
  590. justify-content: center;
  591. width: 68rpx;
  592. height: 68rpx;
  593. border-radius: 50%;
  594. }
  595. .apple-btn {
  596. display: flex;
  597. align-items: center;
  598. justify-content: center;
  599. margin-left: 30rpx;
  600. background: #000;
  601. border-radius: 34rpx;
  602. font-size: 40rpx;
  603. .icon-s-pingguo {
  604. color: #fff;
  605. font-size: 40rpx;
  606. }
  607. }
  608. .iconfont {
  609. font-size: 40rpx;
  610. color: #fff;
  611. }
  612. .wx {
  613. margin-right: 30rpx;
  614. background-color: #61c64f;
  615. }
  616. .mima {
  617. background-color: #28b3e9;
  618. }
  619. .yanzheng {
  620. background-color: #f89c23;
  621. }
  622. }
  623. }
  624. .code img {
  625. width: 100%;
  626. height: 100%;
  627. }
  628. .acea-row.row-middle {
  629. input {
  630. margin-left: 20rpx;
  631. display: block;
  632. }
  633. }
  634. .login-wrapper {
  635. height: 100vh;
  636. .shading {
  637. padding: 72rpx 78rpx;
  638. display: flex;
  639. justify-content: center;
  640. flex-direction: column;
  641. position: relative;
  642. z-index: 1;
  643. view {
  644. color: #333333;
  645. font-size: 36rpx;
  646. font-weight: bold;
  647. &:first-child {
  648. font-size: 48rpx;
  649. margin-bottom: 16rpx;
  650. }
  651. }
  652. .ip-pic {
  653. width: 261rpx;
  654. height: 480rpx;
  655. position: absolute;
  656. right: 14rpx;
  657. bottom: calc(-76rpx - 88rpx);
  658. }
  659. }
  660. .whiteBg {
  661. // margin-top: 100rpx;
  662. background: #ffffff;
  663. border-radius: 48rpx 48rpx 0rpx 0rpx;
  664. position: relative;
  665. z-index: 5;
  666. .whiteBg-tab {
  667. color: #666666;
  668. display: flex;
  669. align-items: center;
  670. height: 88rpx;
  671. text-align: center;
  672. //background: url('https://sb-admin.oss-cn-shenzhen.aliyuncs.com/shuibei-mini/new-mini/logintab1.png');
  673. background-repeat: no-repeat;
  674. background-size: cover;
  675. .active {
  676. width: 407rpx;
  677. view {
  678. color: #f8c008;
  679. font-weight: bold;
  680. position: relative;
  681. &::after {
  682. left: 50%;
  683. bottom: -12rpx;
  684. content: "";
  685. transform: translateX(-50%);
  686. position: absolute;
  687. width: 32rpx;
  688. height: 8rpx;
  689. background: #f8c008;
  690. border-radius: 4rpx;
  691. }
  692. }
  693. }
  694. .noActive {
  695. flex: 1;
  696. }
  697. }
  698. .whiteBg-tabs {
  699. //background: url('https://sb-admin.oss-cn-shenzhen.aliyuncs.com/shuibei-mini/new-mini/logintab.png');
  700. background-repeat: no-repeat;
  701. background-size: cover;
  702. }
  703. .list {
  704. padding: 0 80rpx;
  705. margin-top: 120rpx;
  706. .item {
  707. display: flex;
  708. height: 88rpx;
  709. align-items: center;
  710. justify-content: space-between;
  711. padding: 0 8rpx 0 24rpx;
  712. background: #f9f7f0;
  713. border-radius: 16rpx;
  714. margin-bottom: 32rpx;
  715. .texts {
  716. flex: 1;
  717. font-size: 28rpx;
  718. }
  719. .code {
  720. padding: 0;
  721. margin: 0;
  722. width: 188rpx;
  723. display: flex;
  724. align-items: center;
  725. height: 72rpx;
  726. justify-content: center;
  727. background: #ffffff;
  728. border-radius: 16rpx;
  729. color: #f8c008;
  730. font-size: 28rpx;
  731. font-weight: bold;
  732. border: none;
  733. &::after {
  734. width: 0;
  735. border: none;
  736. }
  737. }
  738. }
  739. }
  740. .logon {
  741. display: flex;
  742. align-items: center;
  743. justify-content: center;
  744. height: 88rpx;
  745. background-color: #f8c008;
  746. border-radius: 16rpx;
  747. color: #333333;
  748. font-size: 32rpx;
  749. font-weight: bold;
  750. }
  751. .logonWX {
  752. display: flex;
  753. align-items: center;
  754. justify-content: center;
  755. // height: 88rpx;
  756. background-color: #fff;
  757. border: none !important;
  758. border-radius: 16rpx;
  759. color: #ffffff;
  760. font-size: 32rpx;
  761. }
  762. .logonWX[disabled] {
  763. background-color: #beedc7;
  764. }
  765. }
  766. .privacy-box {
  767. font-size: 24rpx;
  768. padding: 0 80rpx;
  769. display: flex;
  770. align-items: center;
  771. image {
  772. width: 28rpx;
  773. height: 28rpx;
  774. margin-right: 8rpx;
  775. }
  776. .privacy-text {
  777. color: #f8c008;
  778. vertical-align: top;
  779. }
  780. }
  781. }
  782. .footer {
  783. padding: 48rpx 80rpx 72rpx;
  784. }
  785. .back_extend {
  786. //position: fixed;
  787. //top: 50px;
  788. //left: 10px;
  789. //font-size: 26rpx;
  790. //color: #999;
  791. }
  792. .wx-login-tip {
  793. display: flex;
  794. align-items: center;
  795. width: 590rpx;
  796. margin: 0 auto;
  797. justify-content: space-between;
  798. .login-line {
  799. width: 193rpx;
  800. height: 1rpx;
  801. background-color: #f1f3f8;
  802. }
  803. .wx-tip {
  804. font-size: 28rpx;
  805. line-height: 44rpx;
  806. color: #999;
  807. flex: 1;
  808. width: 100rpx;
  809. text-align: center;
  810. display: block;
  811. }
  812. }
  813. .wx-login-btn {
  814. width: 590rpx;
  815. margin: 0 auto;
  816. display: flex;
  817. align-items: center;
  818. justify-content: center;
  819. margin-top: 32rpx;
  820. padding-bottom: 30rpx;
  821. .wx-icon {
  822. width: 92rpx;
  823. height: 92rpx;
  824. }
  825. }
  826. </style>