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.

1102 lines
23 KiB

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