You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

984 lines
21 KiB

  1. <template>
  2. <view class="login-registration-container">
  3. <!-- 自定义导航栏 -->
  4. <view
  5. class="custom-navbar"
  6. :style="{ paddingTop: safeAreaInsets?.top + 'px' }"
  7. >
  8. <view class="nav-left">
  9. <image
  10. class="icons"
  11. @click="goToBack"
  12. src="../../../static/icons/back.png"
  13. alt="返回首页"
  14. />
  15. </view>
  16. <view class="nav-right">
  17. <image
  18. class="icons"
  19. src="../../../static/icons/Headset.png"
  20. alt="联系客服"
  21. />
  22. </view>
  23. </view>
  24. <!-- Logo -->
  25. <!-- <image class="logo" src="/static/logo.png" mode="aspectFit"></image> -->
  26. <!-- 欢迎语 -->
  27. <text class="welcome-text">找回密码</text>
  28. <!-- 邮箱/手机号切换 -->
  29. <view v-if="!isRecovering" class="switch-container">
  30. <text
  31. class="switch-item"
  32. :class="{ active: switchType === 'Email' }"
  33. @click="switchEmail"
  34. >邮箱</text
  35. >
  36. <text
  37. class="switch-item"
  38. :class="{ active: switchType === 'Phone' }"
  39. @click="switchPhone"
  40. >手机号</text
  41. >
  42. </view>
  43. <view v-else class="switch-container-occupy"> </view>
  44. <!-- 输入框 -->
  45. <view v-if="isRecovering" class="input-container">
  46. <view v-if="switchType === 'Email'">
  47. <!-- 修改邮箱输入框容器将图标包含在内 -->
  48. <view class="input-with-icon">
  49. <image
  50. class="input-icon"
  51. src="../../../static/icons/Unlock.png"
  52. alt=""
  53. />
  54. <input
  55. class="input-field"
  56. :type="newPasswordLookFirst ? 'text' : 'password'"
  57. placeholder="输入新密码"
  58. v-model="newPasswordFirst"
  59. />
  60. <image
  61. class="input-icon-eye"
  62. @click="newPasswordLookFirst = !newPasswordLookFirst"
  63. :src="
  64. !newPasswordLookFirst
  65. ? '../../../static/icons/unlook.png'
  66. : '../../../static/icons/look.png'
  67. "
  68. alt=""
  69. />
  70. </view>
  71. <view class="input-with-icon">
  72. <image
  73. class="input-icon"
  74. src="../../../static/icons/Unlock.png"
  75. alt=""
  76. />
  77. <input
  78. class="input-field"
  79. :type="newPasswordLookSecond ? 'text' : 'password'"
  80. placeholder="再次确认"
  81. v-model="newPasswordSecond"
  82. />
  83. <image
  84. class="input-icon-eye"
  85. @click="newPasswordLookSecond = !newPasswordLookSecond"
  86. :src="
  87. !newPasswordLookSecond
  88. ? '../../../static/icons/unlook.png'
  89. : '../../../static/icons/look.png'
  90. "
  91. alt=""
  92. />
  93. </view>
  94. </view>
  95. </view>
  96. <view v-else class="input-container">
  97. <view v-if="switchType === 'Email'">
  98. <!-- 修改邮箱输入框容器将图标包含在内 -->
  99. <view class="input-with-icon">
  100. <image
  101. class="input-icon"
  102. src="../../../static/icons/Mail.png"
  103. alt=""
  104. />
  105. <input
  106. class="input-field"
  107. type="text"
  108. placeholder="请输入邮箱"
  109. v-model="email"
  110. />
  111. <view>
  112. <button
  113. class="send-code-btn-email"
  114. :disabled="isCodeBtnDisabled"
  115. :class="{ 'send-code-btn-disabled': isCodeBtnDisabled }"
  116. @click="sendCode"
  117. >
  118. <text
  119. class="send-code-text"
  120. :class="{ 'send-code-btn-disabled-text': isCodeBtnDisabled }"
  121. >{{ codeBtnText }}</text
  122. >
  123. </button>
  124. </view>
  125. </view>
  126. <view class="input-with-icon">
  127. <image
  128. class="input-icon"
  129. src="../../../static/icons/Text-recognition.png"
  130. alt=""
  131. />
  132. <input
  133. class="input-field"
  134. type="text"
  135. placeholder="请输入验证码"
  136. v-model="password"
  137. />
  138. </view>
  139. </view>
  140. <view v-if="switchType === 'Phone'" class="phone-input-container">
  141. <view class="country-code-selector" @click="showCountryPicker">
  142. <image
  143. class="country-flag-img"
  144. src="../../../static/icons/Iphone.png"
  145. mode="aspectFit"
  146. ></image>
  147. <text class="country-code">{{ selectedCountry.code }}</text>
  148. <!-- <text class="arrow-down"></text> -->
  149. </view>
  150. <input
  151. class="input-field phone-input"
  152. type="number"
  153. placeholder="输入手机号"
  154. v-model="phone"
  155. @input="onPhoneInput"
  156. />
  157. <view>
  158. <button
  159. class="send-code-btn"
  160. :disabled="isCodeBtnDisabled"
  161. :class="{ 'send-code-btn-disabled': isCodeBtnDisabled }"
  162. @click="sendCode"
  163. >
  164. <text
  165. class="send-code-text"
  166. :class="{ 'send-code-btn-disabled-text': isCodeBtnDisabled }"
  167. >{{ codeBtnText }}</text
  168. >
  169. </button>
  170. </view>
  171. </view>
  172. <view v-if="switchType === 'Phone'" class="input-with-icon">
  173. <image
  174. class="input-icon"
  175. src="../../../static/icons/Text-recognition.png"
  176. alt=""
  177. />
  178. <input
  179. class="input-field"
  180. type="text"
  181. placeholder="请输入验证码"
  182. v-model="password"
  183. />
  184. </view>
  185. </view>
  186. <!-- 用户协议 -->
  187. <view @click="changeCheckbox" class="agreement-container-one">
  188. <text
  189. class="agreement-text-one"
  190. :style="!isRecovering ? 'visibility: hidden' : 'visibility: visible'"
  191. >
  192. 密码最少8位数
  193. </text>
  194. </view>
  195. <!-- 注册按钮 -->
  196. <button class="register-btn" @click="register">
  197. {{ isRecovering ? "确认" : "下一步" }}
  198. </button>
  199. <!-- 或者 -->
  200. <text class="or-text-one" @click="goToRegistration"
  201. >如果您还没有账号点击注册
  202. <image class="to-icon" src="../../../static/icons/To.png"></image>
  203. </text>
  204. <!-- 或者 -->
  205. <text class="or-text" @click="goToLogin">已有账号登录 </text>
  206. <!-- 同意弹窗 -->
  207. <uniPopup ref="agreementPopup" type="dialog">
  208. <view class="popup-content">
  209. <text class="popup-title">同意并继续</text>
  210. <text class="popup-message">请阅读并同意服务协议和隐私权限</text>
  211. <button class="agree-button" @click="handleAgree">
  212. <text class="agree-text">同意</text>
  213. </button>
  214. </view>
  215. </uniPopup>
  216. <footerBar class="static-footer" :type="type"></footerBar>
  217. </view>
  218. </template>
  219. <script setup>
  220. import { ref } from "vue";
  221. // 导入完整的国家列表
  222. import countryList from "../login/list";
  223. import footerBar from "../../../components/footerBar-cn.vue";
  224. import uniPopup from "../../../uni_modules/uni-popup/components/uni-popup/uni-popup.vue";
  225. import { verificationPhone, verificationEmail } from "../login/verification";
  226. const type = ref("member");
  227. const email = ref("");
  228. const password = ref("");
  229. const newPasswordFirst = ref("");
  230. const newPasswordSecond = ref("");
  231. const phone = ref("");
  232. const country = ref("+86");
  233. const agreed = ref(false);
  234. const switchType = ref("Phone"); // 默认是邮箱注册
  235. const { safeAreaInsets } = uni.getSystemInfoSync();
  236. const codeBtnText = ref("获取验证码");
  237. const isCodeBtnDisabled = ref(false); // 添加验证码按钮禁用状态
  238. const checkboxUrl = ref("../../../static/icons/Check-one-false.png");
  239. const isRecovering = ref(false);
  240. const newPasswordLookFirst = ref(false);
  241. const newPasswordLookSecond = ref(false);
  242. // 使用从list.js导入的完整国家列表数据
  243. const countries = ref(
  244. countryList.list.map((item) => ({
  245. name: item.name,
  246. code: `+${item.tel}`,
  247. flag: item.flag,
  248. short: item.short,
  249. en: item.en,
  250. }))
  251. );
  252. // 默认选中的国家(中国)
  253. const selectedCountry = ref(
  254. countries.value.find((country) => country.short === "CN") ||
  255. countries.value[0]
  256. );
  257. // 显示国家选择器
  258. function showCountryPicker() {
  259. uni.showActionSheet({
  260. itemList: countries.value.map(
  261. (country) => `${country.name} ${country.code}`
  262. ),
  263. success: function (res) {
  264. selectedCountry.value = countries.value[res.tapIndex];
  265. },
  266. });
  267. }
  268. function goToBack() {
  269. // 返回上一页
  270. uni.navigateBack(-1);
  271. }
  272. function switchEmail() {
  273. // 切换到邮箱注册
  274. switchType.value = "Email";
  275. }
  276. function switchPhone() {
  277. // 切换到手机注册
  278. switchType.value = "Phone";
  279. }
  280. function register() {
  281. if (isRecovering.value) {
  282. if(!newPasswordFirst.value || !newPasswordSecond.value){
  283. uni.showToast({
  284. title: "密码不能为空",
  285. icon: "none",
  286. });
  287. return;
  288. }
  289. if (newPasswordFirst.value !== newPasswordSecond.value) {
  290. uni.showToast({
  291. title: "前后密码不一致",
  292. icon: "none",
  293. });
  294. return;
  295. }
  296. // 密码逻辑
  297. return;
  298. }
  299. if (switchType.value === "Phone") {
  300. // 登录逻辑
  301. if (!phone.value) {
  302. uni.showToast({
  303. title: "请输入手机号码",
  304. icon: "none",
  305. });
  306. return;
  307. }
  308. if (!password.value) {
  309. uni.showToast({
  310. title: "请输入验证码",
  311. icon: "none",
  312. });
  313. return;
  314. }
  315. const phoneAll = `${country.value}${phone.value}`;
  316. console.log("完整手机号" + phoneAll);
  317. if (validatePhoneNumber(country.value, phone.value)) {
  318. console.log("登录成功:", phoneAll);
  319. }
  320. // 发送登录请求
  321. // console.log("登录:", phone.value);
  322. }
  323. if (switchType.value === "Email") {
  324. // 登录逻辑
  325. if (!email.value) {
  326. uni.showToast({
  327. title: "请输入邮箱地址",
  328. icon: "none",
  329. });
  330. return;
  331. }
  332. if (!password.value) {
  333. uni.showToast({
  334. title: "请输入验证码",
  335. icon: "none",
  336. });
  337. return;
  338. }
  339. const bool = verificationEmail(email.value);
  340. console.log("验证是否成功", bool);
  341. // 检查格式是否正确
  342. if (!bool) {
  343. uni.showToast({
  344. title: "邮箱格式不正确",
  345. icon: "none",
  346. });
  347. return;
  348. }
  349. // 发送登录请求
  350. console.log("登录:", email.value);
  351. }
  352. isRecovering.value = !isRecovering.value;
  353. // 如果已经同意,则继续登录流程
  354. // uni.showToast({
  355. // title: "登录成功",
  356. // icon: "success",
  357. // });
  358. }
  359. function goToLogin() {
  360. // 跳转到登录页
  361. uni.navigateTo({
  362. url: "/pages/start/login/login",
  363. });
  364. }
  365. function onPhoneInput(e) {
  366. // 确保只允许输入数字
  367. const value = e.detail.value;
  368. // 使用 isNaN 检查是否为有效数字
  369. if (isNaN(value)) {
  370. phone.value = "";
  371. } else {
  372. phone.value = value;
  373. }
  374. }
  375. // function sendCode() {
  376. // // 如果按钮已禁用,则不执行后续逻辑
  377. // if (isCodeBtnDisabled.value) return;
  378. // // 设置按钮为禁用状态
  379. // isCodeBtnDisabled.value = true;
  380. // codeBtnText.value = "重新发送";
  381. // let time = 6;
  382. // const timer = setInterval(() => {
  383. // time--;
  384. // codeBtnText.value = "重新发送 " + time + "S";
  385. // if (time <= 0) {
  386. // clearInterval(timer);
  387. // codeBtnText.value = "重新发送";
  388. // // 倒计时结束后启用按钮
  389. // isCodeBtnDisabled.value = false;
  390. // }
  391. // }, 1000);
  392. // return;
  393. // }
  394. function sendCode() {
  395. if (switchType.value === "Phone") {
  396. if (!phone.value) {
  397. uni.showToast({
  398. title: "请输入手机号",
  399. icon: "none",
  400. });
  401. return;
  402. }
  403. const bool = verificationPhone(country.value, phone.value);
  404. console.log("验证是否成功", bool);
  405. // 检查格式是否正确
  406. if (!bool) {
  407. uni.showToast({
  408. title: "手机号格式不正确",
  409. icon: "none",
  410. });
  411. return;
  412. }
  413. }
  414. if (switchType.value === "Email") {
  415. if (!email.value) {
  416. uni.showToast({
  417. title: "请输入邮箱地址",
  418. icon: "none",
  419. });
  420. return;
  421. }
  422. const bool = verificationEmail(email.value);
  423. console.log("验证是否成功", bool);
  424. // 检查格式是否正确
  425. if (!bool) {
  426. uni.showToast({
  427. title: "邮箱格式不正确",
  428. icon: "none",
  429. });
  430. return;
  431. }
  432. }
  433. // 如果按钮已禁用,则不执行后续逻辑
  434. if (isCodeBtnDisabled.value) return;
  435. // 设置按钮为禁用状态
  436. isCodeBtnDisabled.value = true;
  437. codeBtnText.value = "重新发送";
  438. let time = 6;
  439. const timer = setInterval(() => {
  440. time--;
  441. codeBtnText.value = "重新发送 " + time + "s";
  442. if (time <= 0) {
  443. clearInterval(timer);
  444. codeBtnText.value = "重新发送";
  445. // 倒计时结束后启用按钮
  446. isCodeBtnDisabled.value = false;
  447. }
  448. }, 1000);
  449. return;
  450. }
  451. function openAgreement() {
  452. // 打开用户协议
  453. console.log("打开用户协议");
  454. uni.navigateTo({
  455. url: "/pages/start/agreement/agreement",
  456. });
  457. }
  458. function openPrivacy() {
  459. // 打开隐私政策
  460. console.log("打开隐私政策");
  461. uni.navigateTo({
  462. url: "/pages/start/privacy/privacy",
  463. });
  464. }
  465. function changeCheckbox() {
  466. agreed.value = !agreed.value;
  467. checkboxUrl.value = agreed.value
  468. ? "../../../static/icons/Check-one-true.png"
  469. : "../../../static/icons/Check-one-false.png";
  470. }
  471. // 验证手机号是否正确
  472. function validatePhoneNumber(countryCode, phoneNumber) {
  473. // 检查是否为空
  474. if (!phoneNumber || phoneNumber.trim() === "") {
  475. uni.showToast({
  476. title: "手机号不能为空",
  477. icon: "none",
  478. });
  479. return false;
  480. }
  481. const bool = verificationPhone(countryCode, phoneNumber);
  482. console.log("验证是否成功", bool);
  483. // 检查格式是否正确
  484. if (!bool) {
  485. uni.showToast({
  486. title: "手机号格式不正确",
  487. icon: "none",
  488. });
  489. return false;
  490. }
  491. // 去掉+号后检查长度(手机号通常在7到15位之间)
  492. const cleanNumber = phoneNumber.replace(/^\+/, "");
  493. if (cleanNumber.length < 7 || cleanNumber.length > 15) {
  494. uni.showToast({
  495. title: "手机号长度不正确",
  496. icon: "none",
  497. });
  498. return false;
  499. }
  500. return true;
  501. }
  502. // 添加弹窗引用
  503. const agreementPopup = ref(null);
  504. // 处理同意按钮点击
  505. function handleAgree() {
  506. // 关闭弹窗
  507. agreementPopup.value.close();
  508. // 设置为已同意
  509. agreed.value = true;
  510. checkboxUrl.value = "../../../static/icons/Check-one-true.png";
  511. // 继续登录流程
  512. }
  513. </script>
  514. <style scoped>
  515. .login-registration-container {
  516. display: flex;
  517. flex-direction: column;
  518. align-items: center;
  519. justify-content: center;
  520. padding: 0 70rpx;
  521. height: 100vh;
  522. background-color: #ffffff;
  523. }
  524. /* 自定义导航栏样式 */
  525. .custom-navbar {
  526. position: absolute;
  527. top: 0;
  528. left: 0;
  529. /* z-index: 999; */
  530. width: 90%;
  531. height: 80rpx;
  532. display: flex;
  533. justify-content: space-between;
  534. align-items: center;
  535. padding: 10rpx 40rpx;
  536. margin-bottom: 20rpx;
  537. }
  538. .nav-left,
  539. .nav-right {
  540. flex: 1;
  541. }
  542. .nav-right {
  543. display: flex;
  544. justify-content: flex-end;
  545. }
  546. .nav-left {
  547. display: flex;
  548. justify-content: flex-start;
  549. }
  550. .icons {
  551. margin: 20rpx;
  552. width: 40rpx;
  553. height: 40rpx;
  554. /* margin-right: 10rpx; */
  555. }
  556. .back-btn,
  557. .headphone-btn {
  558. font-size: 36rpx;
  559. font-weight: bold;
  560. color: #333333;
  561. padding: 10rpx;
  562. }
  563. .logo {
  564. width: 120rpx;
  565. height: 120rpx;
  566. margin-bottom: 60rpx;
  567. border-radius: 20%;
  568. }
  569. .welcome-text {
  570. font-size: 48rpx;
  571. font-weight: bold;
  572. color: #333333;
  573. margin-bottom: 60rpx;
  574. /* text-align: left; */
  575. /* align-self: flex-start; */
  576. }
  577. .switch-container {
  578. display: flex;
  579. margin-bottom: 40rpx;
  580. align-self: flex-start;
  581. }
  582. .switch-item {
  583. font-size: 28rpx;
  584. color: #999999;
  585. padding: 10rpx 20rpx;
  586. position: relative;
  587. }
  588. .switch-item::after {
  589. content: "";
  590. position: absolute;
  591. bottom: 0;
  592. left: 50%;
  593. transform: translateX(-50%);
  594. width: 60%;
  595. /* 控制边框宽度 */
  596. height: 2rpx;
  597. background-color: transparent;
  598. }
  599. .switch-item.active {
  600. color: #333333;
  601. font-weight: 700;
  602. }
  603. .switch-item.active::after {
  604. content: "";
  605. position: absolute;
  606. top: 60rpx;
  607. bottom: 0;
  608. left: 50%;
  609. transform: translateX(-50%);
  610. width: 30%;
  611. /* 控制边框宽度 */
  612. height: 7rpx;
  613. background-color: #333333;
  614. }
  615. .input-container {
  616. width: 100%;
  617. }
  618. /* 添加图标输入框样式 */
  619. .input-with-icon {
  620. display: flex;
  621. align-items: center;
  622. width: 100%;
  623. height: 80rpx;
  624. border-bottom: 2rpx solid #e5e5e5;
  625. margin-bottom: 20rpx;
  626. }
  627. .input-icon {
  628. width: 40rpx;
  629. height: 40rpx;
  630. margin: 0 20rpx;
  631. }
  632. .input-icon-eye {
  633. width: 40rpx;
  634. height: 20rpx;
  635. margin: 0 20rpx;
  636. }
  637. .input-field {
  638. flex: 1;
  639. height: 80rpx;
  640. padding: 15rpx 0;
  641. font-size: 28rpx;
  642. color: #333333;
  643. border: none;
  644. background-color: transparent;
  645. }
  646. .phone-input-container {
  647. display: flex;
  648. align-items: center;
  649. width: 95.8%;
  650. height: 80rpx;
  651. /* border-radius: 20rpx; */
  652. /* border: 2rpx solid #e5e5e5; */
  653. /* background-color: #f5f5f5; */
  654. padding: 0 10rpx;
  655. border-bottom: 2rpx solid #e5e5e5;
  656. margin-bottom: 20rpx;
  657. }
  658. .country-code-selector {
  659. display: flex;
  660. align-items: center;
  661. padding: 0 10rpx;
  662. padding-bottom: 1rpx;
  663. height: 100%;
  664. /* border-right: 2rpx solid #e5e5e5; */
  665. /* background-color: #f5f5f5; */
  666. border-radius: 20rpx 0 0 20rpx;
  667. }
  668. .country-code {
  669. font-size: 28rpx;
  670. color: #333333;
  671. margin-right: 10rpx;
  672. }
  673. .country-flag-img {
  674. width: 40rpx;
  675. height: 40rpx;
  676. margin-right: 10rpx;
  677. }
  678. .arrow-down {
  679. font-size: 20rpx;
  680. color: #999999;
  681. }
  682. .phone-input {
  683. flex: 1;
  684. width: auto;
  685. height: 100%;
  686. border: none;
  687. background-color: transparent;
  688. padding: 0 0rpx;
  689. }
  690. .send-code-btn {
  691. width: 200rpx;
  692. height: 60rpx;
  693. display: inline-flex;
  694. padding: 0rpx 10rpx;
  695. justify-content: center;
  696. align-items: center;
  697. gap: 10px;
  698. border-radius: 4px;
  699. background: #000;
  700. }
  701. .send-code-btn-email {
  702. width: 200rpx;
  703. height: 60rpx;
  704. display: inline-flex;
  705. padding: 0rpx 10rpx;
  706. justify-content: center;
  707. align-items: center;
  708. gap: 10px;
  709. border-radius: 4px;
  710. background: #000;
  711. margin-right: 15rpx;
  712. }
  713. .send-code-btn-disabled {
  714. background: #e6e6e6;
  715. /* 禁用状态下的灰色背景 */
  716. }
  717. .send-code-btn-disabled-text {
  718. color: #999999 !important;
  719. }
  720. .send-code-text {
  721. color: #fff;
  722. font-size: 28rpx;
  723. }
  724. .agreement-container-one {
  725. display: flex;
  726. align-items: center;
  727. align-self: flex-start;
  728. margin-bottom: 80rpx;
  729. }
  730. .agreement-container {
  731. display: flex;
  732. align-items: center;
  733. margin-bottom: 40rpx;
  734. margin-top: -75.5rpx;
  735. align-self: flex-start;
  736. }
  737. .checkbox {
  738. width: 30rpx;
  739. height: 30rpx;
  740. margin-left: 20rpx;
  741. /* flex: content; */
  742. }
  743. .agreement-text-one {
  744. font-size: 22rpx;
  745. color: #666666;
  746. text-align: center;
  747. margin-left: 10rpx;
  748. }
  749. .agreement-text {
  750. margin-left: 20rpx;
  751. font-size: 24rpx;
  752. color: #666666;
  753. }
  754. .link {
  755. color: #333333;
  756. font-weight: bold;
  757. text-decoration: underline;
  758. }
  759. .register-btn {
  760. width: 100%;
  761. height: 80rpx;
  762. background-color: #000000;
  763. color: white;
  764. font-size: 32rpx;
  765. font-weight: bold;
  766. border-radius: 40rpx;
  767. margin-bottom: 40rpx;
  768. }
  769. .or-text {
  770. flex-direction: column;
  771. font-size: 24rpx;
  772. color: #999999;
  773. margin-top: 294rpx;
  774. margin-bottom: -22rpx;
  775. }
  776. .to-icon {
  777. width: 10rpx;
  778. height: 16rpx;
  779. }
  780. .or-text-one {
  781. flex-direction: column;
  782. font-size: 24rpx;
  783. color: #999999;
  784. }
  785. .third-party-login {
  786. width: 100%;
  787. margin-bottom: 60rpx;
  788. }
  789. .third-party-text {
  790. color: #ffffff;
  791. font-weight: bold;
  792. white-space: pre;
  793. }
  794. .third-party-btn {
  795. width: 100%;
  796. height: 80rpx;
  797. background-color: rgb(0, 0, 0);
  798. border: 2rpx solid #e5e5e5;
  799. border-radius: 40rpx;
  800. display: flex;
  801. align-items: center;
  802. justify-content: center;
  803. margin-bottom: 20rpx;
  804. font-size: 28rpx;
  805. color: #333333;
  806. }
  807. .google-icon,
  808. .apple-icon {
  809. width: 60rpx;
  810. height: 60rpx;
  811. margin-right: 20rpx;
  812. }
  813. .existing-account {
  814. display: flex;
  815. align-items: center;
  816. }
  817. .account-text {
  818. font-size: 24rpx;
  819. color: #666666;
  820. }
  821. .login-link {
  822. font-size: 24rpx;
  823. font-weight: bold;
  824. color: #333333;
  825. margin-left: 10rpx;
  826. text-decoration: underline;
  827. }
  828. .static-footer {
  829. position: fixed;
  830. bottom: 0;
  831. }
  832. /* 弹窗样式 */
  833. .popup-content {
  834. background-color: #ffffff;
  835. padding: 40rpx;
  836. text-align: center;
  837. border-radius: 10rpx;
  838. width: 550rpx;
  839. }
  840. .popup-title {
  841. font-size: 36rpx;
  842. font-weight: bold;
  843. color: #333;
  844. margin-bottom: 80rpx;
  845. text-align: center; /* 水平居中 */
  846. display: flex; /* 使用flex布局 */
  847. justify-content: center; /* 水平居中 */
  848. align-items: center; /* 垂直居中 */
  849. }
  850. .popup-message {
  851. font-size: 28rpx;
  852. color: #000000;
  853. margin-bottom: 80rpx;
  854. text-align: center; /* 水平居中 */
  855. display: flex; /* 使用flex布局 */
  856. justify-content: center; /* 水平居中 */
  857. align-items: center; /* 垂直居中 */
  858. }
  859. .agree-button {
  860. width: 300rpx;
  861. height: 80rpx;
  862. background-color: #000000;
  863. border-radius: 40rpx;
  864. display: flex; /* 添加flex布局 */
  865. align-items: center; /* 垂直居中 */
  866. justify-content: center; /* 水平居中 */
  867. }
  868. .agree-text {
  869. color: #ffffff;
  870. font-size: 34rpx;
  871. /* 添加垂直居中相关样式 */
  872. display: flex;
  873. align-items: center;
  874. justify-content: center;
  875. line-height: 1; /* 确保文字垂直居中 */
  876. }
  877. .switch-container-occupy {
  878. margin-top: 100rpx;
  879. }
  880. </style>