index.vue 39 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472
  1. <template>
  2. <view class="login-page bg-body" :isHeaderFixed="true" :isLoginPage="true" :class="{ 'dark': isDark }">
  3. <view class="fixed" />
  4. <view class="main-content">
  5. <uni-row class="demo-uni-row">
  6. <cwg-match-media :min-width="991" style="height: 100%;">
  7. <uni-col :xs="24" :sm="24" :md="12" :lg="14" :xl="16" style="height: 100%">
  8. <view class="left-bg" :style="{ backgroundImage: `url(${loginBg})` }">
  9. <view class="left-box">
  10. <view class="inner">
  11. <view class="title w-700">
  12. {{ `${t('newLoop.item12')} ` }}
  13. <text class="color-white" v-t="'newLoop.item13'"></text>
  14. </view>
  15. <view class="text-white" v-t="'newLoop.item14'"></view>
  16. </view>
  17. <view class="left-content">
  18. <view class="des text-white">
  19. <text v-html="t('newSignin.item12')"></text>
  20. <br />
  21. <text v-html="t('newSignin.item12_1')"></text>
  22. <br />
  23. <text v-html="t('newSignin.item10')"></text>
  24. <br />
  25. <text v-html="t('newSignin.item11')"></text>
  26. <br />
  27. <text v-t="'newSignin.item13'"></text>
  28. <!-- <cwg-link type="pdf" :title="'newSignin.item13_1'"-->
  29. <!-- :url="`pdf/Risk-Disclosures-and-Acknowledgements-2020-08.pdf`" target="_blank"-->
  30. <!-- v-t="'newSignin.item13_1'" class="doc-link" />-->
  31. <text v-t="'newSignin.item13_2'"></text>
  32. <!-- <view v-t="'newSignin.item13_3'"></view>
  33. <text v-t="'newSignin.item13_4'"></text> -->
  34. </view>
  35. </view>
  36. <!-- <image src="/static/images/trust-pilot.png" class="img-fluid mt&#45;&#45;10" mode="widthFix"></image>-->
  37. </view>
  38. </view>
  39. </uni-col>
  40. </cwg-match-media>
  41. <uni-col :xs="24" :sm="24" :md="12" :lg="10" :xl="8" class="right-f">
  42. <cwg-match-media :min-width="991">
  43. <view class="global-header-bar pc-header">
  44. <view class="header-inner">
  45. <view class="logo-placeholder"></view> <!-- 左侧可预留放logo或留空 -->
  46. <LoginHeaderGroup text-color="#fff" :icon-color="isDark ? '#fff' : '#97A1C0'" />
  47. </view>
  48. </view>
  49. </cwg-match-media>
  50. <!-- 移动端顶部栏:悬浮在上方,深色文字 -->
  51. <cwg-match-media :max-width="991">
  52. <view class="mobile-header-bar">
  53. <!-- <view class="fixed"/>-->
  54. <LoginHeaderGroup text-color="#fff" :icon-color="isDark ? '#fff' : '#97A1C0'" />
  55. </view>
  56. </cwg-match-media>
  57. <view class="account">
  58. <view class="company u-flex-y u-flex-y-center">
  59. <image v-if="!isDark" src="/static/images/vu/logo-full.svg"
  60. :class="isMobile ? 'company-icon-mini' : 'company-icon'" mode="widthFix"></image>
  61. <image v-else src="/static/images/vu/logo-full-white.svg"
  62. :class="isMobile ? 'company-icon-mini' : 'company-icon'" mode="widthFix"></image>
  63. </view>
  64. <view class="tab-list">
  65. <view v-for="tab in tabs" :key="tab.value" class="tab-item" :class="{ active: activeTab === tab.value }"
  66. @click="handleClick(tab.value)">
  67. <text class="tab-label">{{ tab.text }}</text>
  68. </view>
  69. </view>
  70. <view v-show="activeTab == 1" style="overflow-y: scroll;">
  71. <view class="title">
  72. <view class="tit1">{{ t('newSignin.item1') }}</view>
  73. <view class="tit2">{{ t('newSignin.item2') }}</view>
  74. </view>
  75. <view>
  76. <uni-forms ref="uFormRef" :model="form" labelWidth="200" label-position="top">
  77. <uni-forms-item :label="t('newSignup.item7')" prop="loginName">
  78. <up-input :customStyle="customStyle" v-model="form.loginName" border="none"
  79. :placeholder="t('signin.form.email')">
  80. </up-input>
  81. </uni-forms-item>
  82. <uni-forms-item :label="t('signin.form.password')" prop="password">
  83. <up-input :customStyle="customStyle" v-model="form.password" :type="inputType" border="none"
  84. :placeholder="t('signin.form.password')">
  85. </up-input>
  86. </uni-forms-item>
  87. </uni-forms>
  88. </view>
  89. <view class="u-flex u-flex-between u-flex-y-center mb1">
  90. <view class="check-box">
  91. <up-checkbox-group v-model="remenber" @change="checkboxChange">
  92. <up-checkbox size="18" labelSize="16" labelColor="#666666" activeColor="#ea002a"
  93. :label="t('newSignin.item5')" name="记住我" class="wcg-checkbox"></up-checkbox>
  94. </up-checkbox-group>
  95. </view>
  96. <navigator url="/pages/login/reset" class="account-tip">
  97. <text>{{ t('signin.forget') }}</text>
  98. </navigator>
  99. </view>
  100. <view class="cwg-button">
  101. <button type="primary" class="" @click="submit">
  102. {{ t('signin.login') }}
  103. </button>
  104. </view>
  105. <view @click="activeTab = 2" class="account-tip">
  106. {{ t('signin.words') }}
  107. <text>{{ t('signin.signup') }}</text>
  108. </view>
  109. </view>
  110. <view v-show="activeTab == 2" style="overflow-y: scroll;">
  111. <view class="title">
  112. <view class="tit1">{{ t('newSignup.item1') }}</view>
  113. <view class="tit2">{{ t('newSignup.item2') }}</view>
  114. </view>
  115. <view>
  116. <uni-forms ref="regForm" :modelValue="formData" :rules="rules" validate-trigger="blur"
  117. label-position="top" label-width="120">
  118. <uni-row :gutter="20" class="formContent">
  119. <uni-col :xs="24" :md="12">
  120. <uni-forms-item name="country" :label="t('newSignup.item3')">
  121. <cwg-combox v-model:value="formData.country" :options="countryOptions" border="none" filterable
  122. :placeholder="t('newSignup.item4')">
  123. </cwg-combox>
  124. </uni-forms-item>
  125. </uni-col>
  126. <uni-col :xs="24" :md="12">
  127. <uni-forms-item name="phone" :label="t('newSignup.item5')">
  128. <uni-easyinput :customStyle="customStyle" v-model="formData.phone" border="none"
  129. :placeholder="t('newSignup.item6')"></uni-easyinput>
  130. </uni-forms-item>
  131. </uni-col>
  132. <uni-col :xs="24" :md="12">
  133. <uni-forms-item name="birthDate" :label="t('newSignup.item18')">
  134. <uni-datetime-picker type="date" v-model="formData.birthDate"
  135. :placeholder="t('newSignup.item19')" @change="checkAge" />
  136. </uni-forms-item>
  137. </uni-col>
  138. <uni-col :xs="24" :md="12">
  139. <uni-forms-item name="email" :label="t('newSignup.item7')">
  140. <uni-easyinput :customStyle="customStyle" v-model="formData.email"
  141. :placeholder="t('newSignup.item8')" border="none"
  142. :disabled="!isAgeValid || !formData.birthDate"></uni-easyinput>
  143. </uni-forms-item>
  144. </uni-col>
  145. <uni-col :xs="24" :md="24">
  146. <uni-forms-item name="emailCode" :label="t('newSignup.item9')">
  147. <view style="display: flex;">
  148. <view style="flex: 1;">
  149. <uni-easyinput :customStyle="customStyle" class="code" border="none"
  150. :disabled="!isAgeValid || !formData.birthDate" v-model="formData.emailCode"
  151. :placeholder="t('newSignup.item10')">
  152. </uni-easyinput>
  153. </view>
  154. <view class="btn-code" @click="(!isAgeValid || !formData.birthDate) ? '' : handleGetCode()">
  155. {{ getCodeString }}
  156. </view>
  157. </view>
  158. </uni-forms-item>
  159. </uni-col>
  160. <uni-col :xs="24" :md="24">
  161. <view class="agreemnet9">*{{ t('signup.agreemnet9') }}</view>
  162. </uni-col>
  163. <uni-col :xs="24" :md="12">
  164. <uni-forms-item name="password" :label="t('newSignup.item12')">
  165. <uni-easyinput border="none" :customStyle="customStyle" v-model.trim="formData.password"
  166. :disabled="!isAgeValid || !formData.birthDate" :placeholder="t('newSignup.item13')"
  167. type="password"></uni-easyinput>
  168. </uni-forms-item>
  169. <uni-col :xs="24" :md="24">
  170. <uni-forms-item>
  171. <ul class="pwd">
  172. <li :class="{ fit: rule1 }" v-t="'signup.form.rules.1st'"></li>
  173. <li :class="{ fit: rule2 }" v-t="'signup.form.rules.2nd'"></li>
  174. <li :class="{ fit: rule3 }" v-t="'signup.form.rules.3rd'"></li>
  175. </ul>
  176. </uni-forms-item>
  177. </uni-col>
  178. </uni-col>
  179. <uni-col :xs="24" :md="12">
  180. <uni-forms-item v-if="!isRouteHasId" name="linkValue" :label="t('newSignup.item14')">
  181. <uni-easyinput border="none" :customStyle="customStyle" v-model.trim="formData.linkValue"
  182. :disabled="!isAgeValid || !formData.birthDate" :placeholder="t('newSignup.item15')"
  183. @input="limitAgentIdLength"></uni-easyinput>
  184. </uni-forms-item>
  185. </uni-col>
  186. </uni-row>
  187. <uni-forms-item name="agree">
  188. <view class="check-box" @click="toggleAgree">
  189. <up-checkbox-group v-model="agreeGroup" @change="onAgreeChange">
  190. <up-checkbox size="18" labelSize="24" labelColor="#666666" activeColor="#ea002a" name="agree"
  191. class="wcg-checkbox"></up-checkbox>
  192. </up-checkbox-group>
  193. <text class="checkbox-label">{{ t('signup.agree') }}</text>
  194. </view>
  195. </uni-forms-item>
  196. <uni-forms-item name="isSubscribeEmail">
  197. <view class="check-box" @click="toggleSubscribeEmail">
  198. <up-checkbox-group v-model="subscribeEmailGroup" @change="onSubscribeEmailChange">
  199. <up-checkbox size="18" labelSize="24" labelColor="#666666" activeColor="#ea002a"
  200. name="subscribeEmail" class="wcg-checkbox"></up-checkbox>
  201. </up-checkbox-group>
  202. <text class="checkbox-label">{{ t('signup.agree1') }}</text>
  203. </view>
  204. </uni-forms-item>
  205. </uni-forms>
  206. </view>
  207. <view>
  208. <button class="regiset-btn" @click="register">
  209. {{ t('signup.button') }}
  210. </button>
  211. </view>
  212. <view class="login-link">
  213. <text>{{ t('newSignup.item16') }}</text>
  214. <view class="link" @click="activeTab = 1">{{ t('newSignup.item17') }}</view>
  215. </view>
  216. <view class="des-bottom">
  217. <text v-t="'signup.agreemnet1'"></text>
  218. <cwg-link type="pdf" url='pdf/Client_Agreement.pdf' target="_blank" :title="'signup.agreemnet2'"
  219. class="desc-link" />
  220. <text v-t="'signup.agreemnet3'"></text>
  221. <cwg-link type="pdf" url='pdf/Terms&Conditions.pdf' target="_blank" :title="'signup.agreemnet4'"
  222. class="desc-link" />
  223. <text v-t="'signup.agreemnet5'"></text>
  224. <cwg-link type="pdf" url='pdf/Privacy_Policy.pdf' target="_blank" :title="'signup.agreemnet6'"
  225. class="desc-link" />
  226. <text v-t="'signup.agreemnet7'"></text>
  227. </view>
  228. </view>
  229. <cwg-match-media :min-width="791">
  230. <!-- <view class="qr-container">
  231. <view class="qr-title">
  232. <view class="line"></view>
  233. <view class="qr-tit2">{{ t('newSignin.item2') }}</view>
  234. <view class="line"></view>
  235. </view>
  236. <QrCode width="200" height="200" text="cardGuide" :logo="logoImage"></QrCode>
  237. </view> -->
  238. </cwg-match-media>
  239. </view>
  240. </uni-col>
  241. </uni-row>
  242. </view>
  243. <view class="chat-icon" :class="{ 'chat-icon-expanded': isChatIconExpanded, 'chat-icon-hidden': type == 'chat' }"
  244. @click="handleChatIconClick">
  245. <cwg-icon name="chat" color="#fff" />
  246. </view>
  247. </view>
  248. </template>
  249. <script setup>
  250. import { ref, watch, onMounted, computed } from 'vue'
  251. import { onLoad } from '@dcloudio/uni-app'
  252. import ls from "@/utils/store2";
  253. import QrCode from '@/components/QrCode.vue'
  254. import { post } from '@/utils/request'
  255. import { userToken } from '@/composables/config'
  256. import { userApi } from '@/api/user'
  257. import { ucardApi } from '@/api/ucard'
  258. import { customApi } from '@/service/custom'
  259. import { loginApi } from '@/api/login'
  260. import { countryApi } from '@/api/country'
  261. import Config from '@/config/index'
  262. import { showToast } from '@/utils/toast'
  263. import { useEmailCountdown } from '@/hooks/useEmailCountdown'
  264. import useGlobalStore from '@/stores/use-global-store'
  265. import useUserStore from '@/stores/use-user-store'
  266. import useRouter from '@/hooks/useRouter'
  267. import { useI18n } from 'vue-i18n'
  268. import companyLogo from '@/static/images/logo4.png'
  269. import loginBg from '@/static/images/login-bg.jpeg'
  270. import LoginHeaderGroup from './components/LoginHeaderGroup.vue'
  271. import LiveChatService from '@/utils/liveChat.js'
  272. import { useWindowWidth } from '@/composables/useWindowWidth'
  273. import { openLocalPdf } from '@/utils/pdf.js'
  274. const windowWidth = useWindowWidth(300)
  275. const isMobile = computed(() => windowWidth.value <= 991)
  276. const router = useRouter()
  277. const { t } = useI18n()
  278. const { Code } = Config
  279. const userStore = useUserStore()
  280. const globalStore = useGlobalStore()
  281. const modeStore = computed(() => globalStore.mode)
  282. const isDark = computed(() => globalStore.theme === 'dark')
  283. const tabs = computed(() => [
  284. { text: t('signin.tabs1'), value: 1, },
  285. { text: t('signin.tabs2'), value: 2, },
  286. ])
  287. const activeTab = ref(1)
  288. // ========== 注册表单相关 ==========
  289. const {
  290. time,
  291. text: getCodeString,
  292. canSend,
  293. start,
  294. restore,
  295. } = useEmailCountdown()
  296. const isRouteHasId = ref(false)
  297. const formData = ref({
  298. country: 'CN',
  299. phone: '',
  300. birthDate: '',
  301. email: '',
  302. emailCode: '',
  303. password: '',
  304. linkValue: '',
  305. agree: 0,
  306. isSubscribeEmail: 0,
  307. sourceCode: null,
  308. w: '',
  309. subId: '',
  310. oc: '',
  311. agentId: null,
  312. ibInvalid: null,
  313. })
  314. const rules = {
  315. country: { rules: [{ required: true, errorMessage: t('vaildate.country.empty'), trigger: 'blur' }] },
  316. email: {
  317. rules: [
  318. { required: true, errorMessage: t('vaildate.email.empty'), trigger: 'blur' },
  319. { pattern: Config.Pattern.Email, errorMessage: t('vaildate.email.format'), trigger: 'blur' },
  320. ],
  321. },
  322. emailCode: { rules: [{ required: true, errorMessage: t('vaildate.code.empty'), trigger: 'blur' }] },
  323. password: {
  324. rules: [
  325. { required: true, errorMessage: t('vaildate.password.format'), trigger: 'blur' },
  326. { pattern: Config.Pattern.Password, errorMessage: t('vaildate.password.format'), trigger: 'blur' },
  327. ],
  328. },
  329. agree: {
  330. rules: [
  331. {
  332. validateFunction: (rule, value) => {
  333. if (value) return true
  334. return t('vaildate.agree.empty')
  335. },
  336. trigger: 'change',
  337. },
  338. ],
  339. },
  340. phone: {
  341. rules: [
  342. { required: true, errorMessage: t('vaildate.phone.format'), trigger: 'blur' },
  343. { pattern: Config.Pattern.NonNegInt, errorMessage: t('vaildate.phone.format'), trigger: 'blur' },
  344. ],
  345. },
  346. birthDate: { rules: [{ required: true, errorMessage: t('vaildate.birthDate.empty'), trigger: 'change' }] },
  347. }
  348. const agreeGroup = ref([])
  349. const subscribeEmailGroup = ref([])
  350. const regForm = ref(null)
  351. const mock_options = ref([])
  352. const countryCode = ref('my')
  353. const countryOptions = computed(() => {
  354. return mock_options.value.map(item => ({
  355. text: item.enName,
  356. value: item.code,
  357. disabled: item.isOpenAccount == 0 || item.isOpenAccount === null ? true : false,
  358. }))
  359. })
  360. watch(() => formData.value.agree, (val) => {
  361. agreeGroup.value = val === 1 ? ['agree'] : []
  362. }, { immediate: true })
  363. watch(() => formData.value.isSubscribeEmail, (val) => {
  364. subscribeEmailGroup.value = val === 1 ? ['subscribeEmail'] : []
  365. }, { immediate: true })
  366. const onAgreeChange = (e) => {
  367. formData.value.agree = e && e.length ? 1 : 0
  368. }
  369. const onSubscribeEmailChange = (e) => {
  370. formData.value.isSubscribeEmail = e && e.length ? 1 : 0
  371. }
  372. const toggleAgree = () => {
  373. const next = agreeGroup.value.length ? [] : ['agree']
  374. agreeGroup.value = next
  375. onAgreeChange(next)
  376. }
  377. const toggleSubscribeEmail = () => {
  378. const next = subscribeEmailGroup.value.length ? [] : ['subscribeEmail']
  379. subscribeEmailGroup.value = next
  380. onSubscribeEmailChange(next)
  381. }
  382. const rule1 = computed(() => {
  383. if (!formData.value.password) return false
  384. return /^.{8,16}$/.test(formData.value.password)
  385. })
  386. const rule2 = computed(() => {
  387. return /^(?=.*?[a-z])(?=.*?[A-Z]).*$/.test(formData.value.password)
  388. })
  389. const rule3 = computed(() => {
  390. return /^(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?!.*([~!@&%$^\(\)#_]).*\1.*\1)[A-Za-z0-9~!@&%$^\(\)#_]{8,16}$/.test(
  391. formData.value.password,
  392. )
  393. })
  394. const isAgeValid = computed(() => {
  395. if (!formData.value.birthDate) {
  396. return false
  397. }
  398. const today = new Date()
  399. const birthDate = new Date(formData.value.birthDate)
  400. let age = today.getFullYear() - birthDate.getFullYear()
  401. const monthDiff = today.getMonth() - birthDate.getMonth()
  402. if (monthDiff < 0 || (monthDiff === 0 && today.getDate() < birthDate.getDate())) {
  403. age--
  404. }
  405. return age >= 18
  406. })
  407. const checkAge = () => {
  408. if (formData.value.birthDate && !isAgeValid.value) {
  409. uni.showModal({
  410. title: t('Msg.SystemPrompt'),
  411. content: t('signup.ageRestriction'),
  412. showCancel: false,
  413. confirmText: t('Btn.Confirm'),
  414. success: function (res) {
  415. if (res.confirm) {
  416. }
  417. },
  418. })
  419. }
  420. }
  421. const limitAgentIdLength = (val) => {
  422. if (val == null || val === '') return
  423. const filtered = val.toString().replace(/[^0-9a-zA-Z]/g, '').slice(0, 10)
  424. if (formData.value.linkValue !== filtered) {
  425. formData.value.linkValue = filtered
  426. }
  427. }
  428. onLoad((options) => {
  429. if (options) {
  430. // 处理 activeTab 参数,跳转到注册页面
  431. if (options.activeTab === '2' || options.tab === '2') {
  432. activeTab.value = 2
  433. }
  434. // 处理各种参数格式
  435. formData.value.sourceCode = options.ex || options.sourceCode || null
  436. formData.value.w = options.w || options.subId || ''
  437. formData.value.subId = options.SUBID || options.subId || options.w || ''
  438. formData.value.oc = options.oc || options.code || ''
  439. formData.value.email = options.emailAdvertisement || options.email || ''
  440. // 处理 agentId 参数
  441. const agentId = options.id || options.agentId || options.p1 || ''
  442. if (agentId) {
  443. isRouteHasId.value = true
  444. formData.value.agentId = Number(agentId)
  445. formData.value.linkValue = options.subId || options.linkValue || ''
  446. }
  447. // 处理 ibInvalid 参数 (如 B0, B1)
  448. const ibInvalid = options.ibInvalid || options.p3 || ''
  449. if (ibInvalid) {
  450. switch (ibInvalid) {
  451. case 'B0':
  452. formData.value.ibInvalid = 0
  453. break
  454. case 'B1':
  455. formData.value.ibInvalid = 1
  456. break
  457. }
  458. }
  459. // 兼容 signup 路径格式 signup/19628/RHOP4WVa/B0
  460. if (options.p2) {
  461. formData.value.subId = options.p2
  462. }
  463. console.log(formData.value, 1212);
  464. }
  465. })
  466. const ho = ref('')
  467. // 国家列表
  468. async function getCountry() {
  469. try {
  470. let res = await countryApi.Country({})
  471. if (res.code == 200) {
  472. mock_options.value = res.data
  473. } else {
  474. showToast(res.msg)
  475. }
  476. } catch (error) {
  477. console.error(error)
  478. }
  479. }
  480. const getCountryMsg = async () => {
  481. let res = await countryApi.CountryGet({})
  482. if (res.code == Code.StatusOK) {
  483. countryCode.value = res.msg
  484. } else {
  485. console.log(res)
  486. }
  487. }
  488. async function handleGetCode() {
  489. if (!formData.value.birthDate) {
  490. showToast(t('vaildate.birthDate.empty'))
  491. return
  492. }
  493. if (!isAgeValid.value) {
  494. showToast(t('signup.ageRestriction'))
  495. return
  496. }
  497. if (!formData.value.country) {
  498. showToast(t('vaildate.country.empty'))
  499. return
  500. }
  501. if (!formData.value.email) {
  502. showToast(t('vaildate.email.empty'))
  503. return
  504. }
  505. if (!Config.Pattern.Email.test(formData.value.email)) {
  506. showToast(t('vaildate.email.format'))
  507. return
  508. }
  509. if (!canSend.value) return
  510. await sendEmailCode()
  511. }
  512. async function sendEmailCode() {
  513. try {
  514. const res = await loginApi.Code({
  515. ...formData.value,
  516. })
  517. if (res.code === 200) {
  518. showToast(res.msg, 'success')
  519. start()
  520. return true
  521. } else {
  522. showToast(res.msg, 'error')
  523. return false
  524. }
  525. } catch (e) {
  526. showToast(e.msg, 'error')
  527. }
  528. }
  529. const register = async () => {
  530. if (countryCode.value == 'MY' || countryCode.value == 'ID') {
  531. showToast('Registration not available for this region')
  532. return
  533. }
  534. regForm.value.validate().then(async (res) => {
  535. const chinaCountryCodes = ['CN']
  536. const isChina = chinaCountryCodes.includes(formData.value.country)
  537. const xSystemValue = isChina ? 'B' : 'A'
  538. let resData = await loginApi.Register(
  539. { ...formData.value,agree: formData.value.agree ==1 ? true : false },
  540. { headers: { 'X-System': xSystemValue } },
  541. )
  542. if (resData.code == 200) {
  543. showToast(t('Msg.registerSuc'))
  544. registLogin()
  545. } else {
  546. showToast(resData.msg)
  547. }
  548. }).catch(err => {
  549. console.log('表单错误信息:', err)
  550. showToast(err.msg)
  551. return false
  552. })
  553. }
  554. const registLogin = async () => {
  555. try {
  556. let res = await userApi.login({
  557. loginName: formData.value.email,
  558. password: formData.value.password,
  559. })
  560. if (res.code == 200) {
  561. userToken.value = res.data
  562. getRegistLoginInfo()
  563. } else {
  564. showToast(res.msg)
  565. }
  566. } catch (error) {
  567. console.error(error)
  568. }
  569. }
  570. const getRegistLoginInfo = async () => {
  571. try {
  572. let res = await userApi.getUserInfo()
  573. if (res.code == 200) {
  574. userStore.saveUserInfo(res.data)
  575. showToast(t('Msg.LoginSuccess'))
  576. setTimeout(() => {
  577. uni.reLaunch({
  578. url: '/pages/customer/index',
  579. })
  580. }, 1000)
  581. } else {
  582. showToast(t('Msg.SystemError'))
  583. }
  584. } catch (error) {
  585. console.error(error)
  586. }
  587. }
  588. const openUrl = (url) => {
  589. openLocalPdf(url)
  590. }
  591. // ========== 注册表单相关结束 ==========
  592. // 响应式表单数据
  593. const form = ref({
  594. loginName: '',
  595. password: '',
  596. })
  597. function submit() {
  598. if (!form.value.loginName) {
  599. uni.$u.toast(t('signin.form.email'))
  600. return
  601. }
  602. if (!form.value.password) {
  603. uni.$u.toast(t('signin.form.password'))
  604. return
  605. }
  606. handleLogin()
  607. }
  608. const customStyle = {
  609. height: '48px',
  610. 'border-radius': '8px',
  611. background: 'transparent',
  612. padding: '0 20px !important',
  613. position: 'relative',
  614. }
  615. const remenber = ref([])
  616. const checkboxChange = (e) => {
  617. remenber.value = e
  618. }
  619. const fetchUserList = (params) => post('/Login/AcctLogin', params)
  620. const handleClick = (value) => {
  621. activeTab.value = value
  622. }
  623. async function handleLogin() {
  624. try {
  625. const res = await userApi.login({
  626. loginName: form.value.loginName,
  627. password: form.value.password,
  628. })
  629. if (res.code === 200) {
  630. userToken.value = res.data
  631. uni.showToast({ title: t('login.msg0_1'), icon: 'success' })
  632. getCustomLoginInfo()
  633. // getCardUserInfo();
  634. reasonsRefusalList()
  635. if (remenber.value.length) {
  636. userStore.saveAccountInfo({
  637. loginName: form.value.loginName,
  638. password: form.value.password,
  639. rememberPassword: true,
  640. })
  641. } else {
  642. userStore.saveAccountInfo({
  643. loginName: '',
  644. password: '',
  645. rememberPassword: false,
  646. })
  647. }
  648. // console.log(1111);
  649. } else {
  650. uni.showToast({ title: res.msg })
  651. // console.log(12112);
  652. }
  653. } catch (error) {
  654. // console.log(error)
  655. uni.showToast({ title: error.msg, icon: 'error' })
  656. // console.log(error, 19089);
  657. }
  658. }
  659. async function getCustomLoginInfo() {
  660. try {
  661. const res = await userApi.getUserInfo()
  662. userStore.saveUserInfo(res.data)
  663. uni.removeStorageSync('systemListCache')
  664. // 登录更新金额
  665. uni.$emit('updatePayment')
  666. // uni.$emit('updateSystemList', 'login')
  667. if (res.code === 200) {
  668. switch (modeStore.value) {
  669. case 'customer':
  670. router.reLaunch('/pages/customer/dashboard')
  671. // router.reLaunch('/pages/customer/index')
  672. break
  673. case 'ib':
  674. router.reLaunch('/pages/ib/index')
  675. break
  676. case 'follow':
  677. router.reLaunch('/pages/follow/index')
  678. break
  679. default:
  680. break
  681. }
  682. } else {
  683. uni.$u.toast(res.msg || t('login.msg0'))
  684. }
  685. } catch (error) {
  686. uni.$u.toast(error.msg || t('login.msg0'), 'error')
  687. // console.log(error, 111);
  688. }
  689. }
  690. async function getCardUserInfo() {
  691. try {
  692. const res = await ucardApi.getSingle()
  693. userStore.saveUserInfo(res.data)
  694. if (res.code === 200) {
  695. if (!res.data || res.data.approveStatus != 2) {
  696. router.push('/pages/mine/improve')
  697. } else {
  698. router.push('/pages/card/index')
  699. }
  700. } else {
  701. uni.$u.toast(res.msg || t('login.msg0'))
  702. }
  703. } catch (error) {
  704. // console.log(error, 111);
  705. }
  706. }
  707. async function reasonsRefusalList() {
  708. try {
  709. const res = await customApi.reasonsRefusalList()
  710. if (res.code === 200) {
  711. pickFields(res.data)
  712. } else {
  713. uni.$u.toast(res.msg || t('login.msg0'))
  714. }
  715. } catch (error) {
  716. // console.log(error, 111);
  717. }
  718. }
  719. function pickFields(source, fields = ['content', 'enContent']) {
  720. const result = {}
  721. Object.entries(source).forEach(([key, value]) => {
  722. result[key] = fields.reduce((acc, f) => {
  723. acc[f] = value[f] ?? null
  724. return acc
  725. }, {})
  726. })
  727. userStore.saveReasonsOptions(result)
  728. }
  729. onMounted(() => {
  730. if (uni.getStorageSync('logoutToSystem') == 1) {
  731. uni.removeStorageSync('logoutToSystem')
  732. uni.removeStorageSync('systemListCache')
  733. }
  734. uni.$emit('updateSystemList', 'login')
  735. const accountInfo = userStore.accountInfo
  736. if (accountInfo?.rememberPassword) {
  737. form.value.loginName = accountInfo?.loginName || ''
  738. form.value.password = accountInfo?.password || ''
  739. remenber.value = ['记住我']
  740. } else {
  741. form.value.loginName = ''
  742. form.value.password = ''
  743. remenber.value = []
  744. }
  745. // 注册表单初始化
  746. getCountry()
  747. getCountryMsg()
  748. const hostParts = window.location.host.split('.')
  749. ho.value = hostParts.length > 1 ? hostParts[1] : ''
  750. globalStore.setMode(ls.get('mode') || 'customer');
  751. })
  752. const inputType = ref('password')
  753. const isChatIconExpanded = ref(false)
  754. // 处理聊天图标点击
  755. const handleChatIconClick = () => {
  756. // 如果还没显示 → 先滑出来
  757. if (!isChatIconExpanded.value) {
  758. isChatIconExpanded.value = true
  759. return
  760. }
  761. if (isMobile.value) {
  762. // router.push('/pages/common/chat')
  763. } else {
  764. if (LiveChatService) {
  765. LiveChatService.showChat()
  766. }
  767. }
  768. setTimeout(() => {
  769. isChatIconExpanded.value = false
  770. }, 300)
  771. }
  772. </script>
  773. <style lang="scss" scoped>
  774. @import "@/uni.scss";
  775. :deep(uni-content) {
  776. padding-left: 0 !important;
  777. }
  778. .login-page {
  779. height: 100vh;
  780. border: none;
  781. padding: 0;
  782. position: relative;
  783. display: flex;
  784. flex-direction: column;
  785. }
  786. .chat-icon {
  787. width: px2rpx(50);
  788. height: px2rpx(50);
  789. border-radius: 50%;
  790. background-color: #cf1322;
  791. display: flex;
  792. align-items: center;
  793. justify-content: center;
  794. position: fixed;
  795. bottom: px2rpx(25);
  796. right: px2rpx(0);
  797. z-index: 999;
  798. cursor: pointer;
  799. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  800. box-shadow: 0 px2rpx(8) px2rpx(20) rgba(0, 0, 0, 0.15);
  801. will-change: transform;
  802. }
  803. @media screen and (max-width: 991px) {
  804. .chat-icon {
  805. right: px2rpx(-25);
  806. }
  807. }
  808. .chat-icon:hover {
  809. transform: scale(1.1);
  810. }
  811. .chat-icon-expanded {
  812. bottom: px2rpx(20);
  813. right: px2rpx(20);
  814. transform: scale(1.1);
  815. box-shadow: 0 px2rpx(12) px2rpx(30) rgba(0, 0, 0, 0.2);
  816. }
  817. .chat-icon-hidden {
  818. display: none;
  819. }
  820. .fixed {
  821. width: 100%;
  822. height: var(--status-bar-height);
  823. background-color: rgba(var(--bs-body-bg-rgb), var(--bs-bg-opacity)) !important;
  824. z-index: 9;
  825. }
  826. .global-header-bar {
  827. width: 100%;
  828. height: px2rpx(60);
  829. display: flex;
  830. align-items: center;
  831. justify-content: center;
  832. flex-shrink: 0;
  833. z-index: 100;
  834. &.pc-header {
  835. background-color: transparent;
  836. }
  837. .header-inner {
  838. width: 100%;
  839. padding: 0 5%;
  840. display: flex;
  841. justify-content: space-between;
  842. /* 两端对齐,可放logo和组件 */
  843. align-items: center;
  844. }
  845. }
  846. .mobile-header-bar {
  847. //position: absolute;
  848. //top: px2rpx(20);
  849. //right: px2rpx(20);
  850. z-index: 10;
  851. width: 100%;
  852. display: flex;
  853. background-color: rgba(var(--bs-body-bg-rgb), var(--bs-bg-opacity)) !important;
  854. justify-content: flex-end;
  855. }
  856. .main-content {
  857. flex: 1;
  858. overflow: hidden;
  859. }
  860. .demo-uni-row {
  861. height: 100%;
  862. margin: 0 !important;
  863. .left-bg {
  864. height: 100%;
  865. min-height: calc(100vh - 120px);
  866. background-size: cover;
  867. background-position: center;
  868. display: flex;
  869. box-sizing: border-box;
  870. padding: px2rpx(50);
  871. //flex-direction: column;
  872. //align-items: center;
  873. justify-content: center;
  874. .left-box {
  875. display: flex;
  876. flex-direction: column;
  877. justify-content: center;
  878. align-items: flex-start;
  879. width: 60%;
  880. //margin-top: px2rpx(20);
  881. .inner {
  882. width: 100%;
  883. text-align: start;
  884. //margin-bottom: px2rpx(20);
  885. .section-title {
  886. //margin-top: px2rpx(10);
  887. //margin-bottom: px2rpx(10);
  888. }
  889. .title {
  890. margin: 0 0 0 px2rpx(10);
  891. font-size: px2rpx(56);
  892. line-height: 1.2;
  893. color: #fff;
  894. font-weight: 700;
  895. text-align: left;
  896. }
  897. .w-700 {
  898. font-weight: 700;
  899. }
  900. .subtitle {
  901. width: 45%;
  902. font-size: px2rpx(18);
  903. letter-spacing: px2rpx(1);
  904. display: block;
  905. margin-bottom: px2rpx(24);
  906. color: #ffffff;
  907. line-height: px2rpx(15);
  908. font-weight: 500;
  909. padding: px2rpx(10) px2rpx(20);
  910. border-radius: px2rpx(100);
  911. text-transform: uppercase;
  912. background-color: #e61f1e;
  913. text-align: center;
  914. }
  915. .w-40 {
  916. max-width: 40%;
  917. }
  918. .text-white {
  919. margin-top: px2rpx(10);
  920. font-size: px2rpx(18);
  921. margin-bottom: px2rpx(16);
  922. line-height: 1.6;
  923. color: var(--bs-emphasis-color);
  924. }
  925. }
  926. .img-fluid {
  927. width: 400px;
  928. height: 33px;
  929. }
  930. .mt--10 {
  931. margin-top: px2rpx(10);
  932. }
  933. .h1 {
  934. // text-align: center;
  935. color: var(--bs-emphasis-color);
  936. font-size: 30px;
  937. margin-top: 30px;
  938. line-height: 1.5;
  939. }
  940. .h6 {
  941. text-align: start;
  942. line-height: 20px;
  943. color: var(--bs-emphasis-color);
  944. font-size: 14px;
  945. margin-top: 10px;
  946. }
  947. .company {
  948. padding: px2rpx(10) 0 px2rpx(10) 0;
  949. position: relative;
  950. align-items: flex-start !important;
  951. width: 100%;
  952. }
  953. }
  954. .left-content {
  955. width: 100%;
  956. .des {
  957. text-align: start;
  958. line-height: 24px;
  959. color: var(--bs-emphasis-color);
  960. font-size: 14px;
  961. //margin-top: px2rpx(20);
  962. :nth-child(n) {
  963. display: inline;
  964. word-break: break-all;
  965. word-wrap: break-word;
  966. }
  967. .doc-link {
  968. color: var(--color-error);
  969. text-decoration: underline;
  970. margin: 0 px2rpx(4);
  971. }
  972. }
  973. }
  974. }
  975. .right-f {
  976. background-color: rgba(var(--bs-body-bg-rgb), var(--bs-bg-opacity)) !important;
  977. padding: 0 px2rpx(24);
  978. height: 100%;
  979. box-sizing: border-box;
  980. .account {
  981. background-color: rgba(var(--bs-body-bg-rgb), var(--bs-bg-opacity)) !important;
  982. position: relative;
  983. height: calc(100vh - 60px);
  984. display: flex;
  985. flex-direction: column;
  986. //justify-content: center;
  987. padding: 0 px2rpx(24);
  988. .company {
  989. padding: px2rpx(20) 0 px2rpx(30) 0;
  990. position: relative;
  991. align-items: center !important;
  992. }
  993. .company-icon {
  994. width: px2rpx(234);
  995. }
  996. .company-icon-mini {
  997. width: px2rpx(100);
  998. }
  999. }
  1000. }
  1001. }
  1002. .bottom-box {
  1003. width: 100%;
  1004. height: 60px;
  1005. background-color: rgba(var(--bs-body-bg-rgb), var(--bs-bg-opacity)) !important;
  1006. display: flex;
  1007. justify-content: center;
  1008. align-items: center;
  1009. color: #000;
  1010. .bottom-title {
  1011. text-align: center;
  1012. font-size: px2rpx(14);
  1013. font-weight: 500;
  1014. line-height: 1.5;
  1015. color: #666666;
  1016. }
  1017. .ellipsis {
  1018. width: px2rpx(200);
  1019. white-space: nowrap;
  1020. overflow: hidden;
  1021. text-overflow: ellipsis;
  1022. }
  1023. .cwg-button {
  1024. width: 120px !important;
  1025. padding: px2rpx(4) 0 !important;
  1026. }
  1027. }
  1028. button {
  1029. background-color: #ea002a;
  1030. font-size: px2rpx(14);
  1031. font-weight: normal;
  1032. height: px2rpx(44);
  1033. line-height: px2rpx(44);
  1034. }
  1035. .right-f .account .company {
  1036. padding: px2rpx(20) 0 px2rpx(200) 0;
  1037. position: relative;
  1038. align-items: flex-start !important;
  1039. }
  1040. .logo {
  1041. margin-left: px2rpx(48);
  1042. }
  1043. .left-bg .company-icon {
  1044. width: px2rpx(234);
  1045. }
  1046. .left-bg .left-content {
  1047. position: relative;
  1048. z-index: 1;
  1049. }
  1050. .title {
  1051. margin: px2rpx(15) 0;
  1052. font-size: px2rpx(24);
  1053. font-weight: bolder;
  1054. color: var(--bs-emphasis-color);
  1055. text-align: center;
  1056. i {
  1057. margin-right: px2rpx(10);
  1058. }
  1059. .tit1 {
  1060. font-size: px2rpx(34);
  1061. line-height: 1.5;
  1062. font-weight: bold;
  1063. color: var(--bs-emphasis-color);
  1064. }
  1065. .tit2 {
  1066. font-size: px2rpx(16);
  1067. line-height: 1.5;
  1068. color: #cecece;
  1069. font-weight: 500;
  1070. }
  1071. }
  1072. .qr-title {
  1073. font-size: px2rpx(16);
  1074. line-height: 1.5;
  1075. color: #cecece;
  1076. font-weight: 500;
  1077. text-align: center;
  1078. margin: px2rpx(40) 0;
  1079. display: flex;
  1080. align-items: center;
  1081. justify-content: center;
  1082. .line {
  1083. flex: 1;
  1084. height: 1px;
  1085. background-color: #e4e4e4;
  1086. }
  1087. .qr-tit2 {
  1088. margin: 0 px2rpx(12);
  1089. }
  1090. }
  1091. .input {
  1092. height: px2rpx(44);
  1093. border-radius: px2rpx(8);
  1094. background: #f7f8fa;
  1095. padding: 0 px2rpx(20) !important;
  1096. position: relative;
  1097. }
  1098. .account-icon {
  1099. width: px2rpx(12);
  1100. height: px2rpx(14) !important;
  1101. margin-right: px2rpx(5);
  1102. }
  1103. :deep(.u-input__content__prefix-icon) {
  1104. height: px2rpx(20);
  1105. }
  1106. .regiset-btn {
  1107. margin: px2rpx(20) 0;
  1108. border-radius: px2rpx(8);
  1109. }
  1110. .account-tip {
  1111. color: #666666;
  1112. font-size: px2rpx(16);
  1113. text-align: center;
  1114. cursor: pointer;
  1115. text {
  1116. color: #ea002a;
  1117. }
  1118. }
  1119. :deep(.u-form-item__body) {
  1120. padding: 0 !important;
  1121. padding-bottom: px2rpx(24) !important;
  1122. }
  1123. :deep(.wcg-checkbox) {
  1124. padding: 0 !important;
  1125. }
  1126. .cwg-button {
  1127. padding: px2rpx(34) 0 !important;
  1128. uni-button {
  1129. border-radius: px2rpx(8)
  1130. }
  1131. }
  1132. .tab-list {
  1133. width: 100%;
  1134. display: flex;
  1135. align-items: center;
  1136. justify-content: center;
  1137. border-bottom: 1px solid var(--bs-border-color);
  1138. }
  1139. .tab-item {
  1140. width: 50%;
  1141. margin: 0 px2rpx(15);
  1142. padding-right: 0;
  1143. padding-left: 0;
  1144. padding-bottom: 8px;
  1145. text-align: center;
  1146. border-bottom: 2px solid transparent;
  1147. font-weight: 500;
  1148. color: var(--bs-emphasis-color);
  1149. cursor: pointer;
  1150. transition: all 0.3s ease;
  1151. .tab-label {
  1152. font-size: px2rpx(20);
  1153. }
  1154. &:hover,
  1155. &:focus {
  1156. font-weight: 700;
  1157. color: #e32326;
  1158. border-bottom-color: #e32326;
  1159. }
  1160. &.active {
  1161. font-weight: 700;
  1162. color: #e32326;
  1163. border-bottom-color: #e32326;
  1164. }
  1165. }
  1166. /* 注册表单样式 */
  1167. .pwd {
  1168. list-style: none;
  1169. padding-left: 0;
  1170. margin: 0;
  1171. li {
  1172. font-size: px2rpx(12);
  1173. color: var(--bs-heading-color);
  1174. line-height: px2rpx(20);
  1175. position: relative;
  1176. padding-left: px2rpx(16);
  1177. &::before {
  1178. content: '';
  1179. position: absolute;
  1180. left: 0;
  1181. top: 50%;
  1182. transform: translateY(-50%);
  1183. width: px2rpx(6);
  1184. height: px2rpx(6);
  1185. border-radius: 50%;
  1186. background-color: var(--bs-heading-color);
  1187. }
  1188. &.fit {
  1189. color: #67c23a;
  1190. &::before {
  1191. background-color: #67c23a;
  1192. }
  1193. }
  1194. }
  1195. }
  1196. :deep(.formContent) {
  1197. padding: 0 10px;
  1198. .uni-select,
  1199. .uni-combox,
  1200. .uni-easyinput__content,
  1201. //.cwg-combox,
  1202. .uni-date-editor--x {
  1203. padding: 0.5rem px2rpx(10);
  1204. height: 3rem !important;
  1205. //border: none !important;
  1206. border-radius: px2rpx(8);
  1207. }
  1208. .cwg-combox {
  1209. background-color: transparent !important;
  1210. }
  1211. .code {
  1212. .uni-easyinput__content {
  1213. border-radius: px2rpx(8) 0 0 px2rpx(8);
  1214. }
  1215. }
  1216. }
  1217. :deep(.uni-stat-box) {
  1218. height: 100%;
  1219. }
  1220. :deep(.uni-select) {
  1221. height: 100%;
  1222. }
  1223. :deep(.uni-easyinput__content) {
  1224. height: 100%;
  1225. }
  1226. :deep(.uni-date-editor) {
  1227. height: 100%;
  1228. }
  1229. :deep(.uni-date-editor--x) {
  1230. height: 100%;
  1231. }
  1232. .btn-code {
  1233. //margin-left: -10px;
  1234. width: px2rpx(120);
  1235. height: 3rem;
  1236. box-sizing: border-box;
  1237. background-color: #102047;
  1238. //border: 1px solid rgb(229, 229, 229);
  1239. color: #fff;
  1240. text-align: center;
  1241. line-height: 3rem;
  1242. border-radius: 0 px2rpx(8) px2rpx(8) 0;
  1243. cursor: pointer;
  1244. font-size: 14px;
  1245. flex-shrink: 0;
  1246. }
  1247. .check-box {
  1248. padding: 0 px2rpx(10);
  1249. margin-bottom: px2rpx(10);
  1250. display: flex;
  1251. align-items: flex-start;
  1252. cursor: pointer;
  1253. .checkbox-label {
  1254. font-size: px2rpx(16);
  1255. color: #666666;
  1256. margin-left: px2rpx(8);
  1257. line-height: px2rpx(20);
  1258. user-select: none;
  1259. }
  1260. :deep(.u-checkbox) {
  1261. display: flex;
  1262. align-items: flex-start;
  1263. margin: 0;
  1264. }
  1265. }
  1266. .regiset-btn {
  1267. width: 100%;
  1268. height: px2rpx(40);
  1269. line-height: px2rpx(40);
  1270. border-radius: px2rpx(8);
  1271. background-color: var(--color-error);
  1272. color: #fff;
  1273. font-weight: bold;
  1274. }
  1275. .login-link {
  1276. width: 100%;
  1277. margin-top: px2rpx(20);
  1278. text-align: center;
  1279. display: flex;
  1280. align-items: center;
  1281. justify-content: center;
  1282. font-size: px2rpx(16);
  1283. line-height: 1.6;
  1284. }
  1285. .link {
  1286. margin-left: px2rpx(5);
  1287. color: #e61f1e;
  1288. padding-bottom: 2px;
  1289. cursor: pointer;
  1290. font-size: px2rpx(16);
  1291. }
  1292. .agreemnet9 {
  1293. text-align: initial;
  1294. color: #e61f1e;
  1295. }
  1296. .des-bottom {
  1297. margin-top: px2rpx(20);
  1298. line-height: 20px;
  1299. color: #000;
  1300. font-size: px2rpx(14);
  1301. :deep(.pdf-link) {
  1302. width: auto;
  1303. }
  1304. .desc-link {
  1305. display: inline-block !important;
  1306. color: #e61f1e;
  1307. text-decoration: underline;
  1308. }
  1309. }
  1310. </style>