index.vue 38 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453
  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. formData.value.sourceCode = options.ex || null
  431. formData.value.w = options.w || ''
  432. formData.value.subId = options.SUBID || ''
  433. formData.value.oc = options.oc || ''
  434. formData.value.email = options.emailAdvertisement || ''
  435. if (options.id) {
  436. isRouteHasId.value = true
  437. formData.value.agentId = Number(options.id)
  438. formData.value.linkValue = options.commission || ''
  439. switch (options.ibInvalid) {
  440. case 'B0':
  441. formData.value.ibInvalid = 0
  442. break
  443. case 'B1':
  444. formData.value.ibInvalid = 1
  445. break
  446. }
  447. }
  448. }
  449. })
  450. const ho = ref('')
  451. // 国家列表
  452. async function getCountry() {
  453. try {
  454. let res = await countryApi.Country({})
  455. if (res.code == 200) {
  456. mock_options.value = res.data
  457. } else {
  458. showToast(res.msg)
  459. }
  460. } catch (error) {
  461. console.error(error)
  462. }
  463. }
  464. const getCountryMsg = async () => {
  465. let res = await countryApi.CountryGet({})
  466. if (res.code == Code.StatusOK) {
  467. countryCode.value = res.msg
  468. } else {
  469. console.log(res)
  470. }
  471. }
  472. async function handleGetCode() {
  473. if (!formData.value.birthDate) {
  474. showToast(t('vaildate.birthDate.empty'))
  475. return
  476. }
  477. if (!isAgeValid.value) {
  478. showToast(t('signup.ageRestriction'))
  479. return
  480. }
  481. if (!formData.value.country) {
  482. showToast(t('vaildate.country.empty'))
  483. return
  484. }
  485. if (!formData.value.email) {
  486. showToast(t('vaildate.email.empty'))
  487. return
  488. }
  489. if (!Config.Pattern.Email.test(formData.value.email)) {
  490. showToast(t('vaildate.email.format'))
  491. return
  492. }
  493. if (!canSend.value) return
  494. await sendEmailCode()
  495. }
  496. async function sendEmailCode() {
  497. try {
  498. const res = await loginApi.Code({
  499. ...formData.value,
  500. })
  501. if (res.code === 200) {
  502. showToast(res.msg, 'success')
  503. start()
  504. return true
  505. } else {
  506. showToast(res.msg, 'error')
  507. return false
  508. }
  509. } catch (e) {
  510. showToast(e.msg, 'error')
  511. }
  512. }
  513. const register = async () => {
  514. if (countryCode.value == 'MY' || countryCode.value == 'ID') {
  515. showToast('Registration not available for this region')
  516. return
  517. }
  518. regForm.value.validate().then(async (res) => {
  519. const chinaCountryCodes = ['CN']
  520. const isChina = chinaCountryCodes.includes(formData.value.country)
  521. const xSystemValue = isChina ? 'B' : 'A'
  522. let resData = await loginApi.Register(
  523. { ...formData.value },
  524. { headers: { 'X-System': xSystemValue } },
  525. )
  526. if (resData.code == 200) {
  527. showToast(t('Msg.registerSuc'))
  528. registLogin()
  529. } else {
  530. showToast(resData.msg)
  531. }
  532. }).catch(err => {
  533. console.log('表单错误信息:', err)
  534. showToast(err.msg)
  535. return false
  536. })
  537. }
  538. const registLogin = async () => {
  539. try {
  540. let res = await userApi.login({
  541. loginName: formData.value.email,
  542. password: formData.value.password,
  543. })
  544. if (res.code == 200) {
  545. userToken.value = res.data
  546. getRegistLoginInfo()
  547. } else {
  548. showToast(res.msg)
  549. }
  550. } catch (error) {
  551. console.error(error)
  552. }
  553. }
  554. const getRegistLoginInfo = async () => {
  555. try {
  556. let res = await userApi.getUserInfo()
  557. if (res.code == 200) {
  558. userStore.saveUserInfo(res.data)
  559. showToast(t('Msg.LoginSuccess'))
  560. setTimeout(() => {
  561. uni.reLaunch({
  562. url: '/pages/customer/index',
  563. })
  564. }, 1000)
  565. } else {
  566. showToast(t('Msg.SystemError'))
  567. }
  568. } catch (error) {
  569. console.error(error)
  570. }
  571. }
  572. const openUrl = (url) => {
  573. openLocalPdf(url)
  574. }
  575. // ========== 注册表单相关结束 ==========
  576. // 响应式表单数据
  577. const form = ref({
  578. loginName: '',
  579. password: '',
  580. })
  581. function submit() {
  582. if (!form.value.loginName) {
  583. uni.$u.toast(t('signin.form.email'))
  584. return
  585. }
  586. if (!form.value.password) {
  587. uni.$u.toast(t('signin.form.password'))
  588. return
  589. }
  590. handleLogin()
  591. }
  592. const customStyle = {
  593. height: '48px',
  594. 'border-radius': '8px',
  595. background: 'transparent',
  596. padding: '0 20px !important',
  597. position: 'relative',
  598. }
  599. const remenber = ref([])
  600. const checkboxChange = (e) => {
  601. remenber.value = e
  602. }
  603. const fetchUserList = (params) => post('/Login/AcctLogin', params)
  604. const handleClick = (value) => {
  605. activeTab.value = value
  606. }
  607. async function handleLogin() {
  608. try {
  609. const res = await userApi.login({
  610. loginName: form.value.loginName,
  611. password: form.value.password,
  612. })
  613. if (res.code === 200) {
  614. userToken.value = res.data
  615. uni.showToast({ title: t('login.msg0_1'), icon: 'success' })
  616. getCustomLoginInfo()
  617. // getCardUserInfo();
  618. reasonsRefusalList()
  619. if (remenber.value.length) {
  620. userStore.saveAccountInfo({
  621. loginName: form.value.loginName,
  622. password: form.value.password,
  623. rememberPassword: true,
  624. })
  625. } else {
  626. userStore.saveAccountInfo({
  627. loginName: '',
  628. password: '',
  629. rememberPassword: false,
  630. })
  631. }
  632. // console.log(1111);
  633. } else {
  634. uni.showToast({ title: res.msg })
  635. // console.log(12112);
  636. }
  637. } catch (error) {
  638. // console.log(error)
  639. uni.showToast({ title: error.msg, icon: 'error' })
  640. // console.log(error, 19089);
  641. }
  642. }
  643. async function getCustomLoginInfo() {
  644. try {
  645. const res = await userApi.getUserInfo()
  646. userStore.saveUserInfo(res.data)
  647. uni.removeStorageSync('systemListCache')
  648. // 登录更新金额
  649. uni.$emit('updatePayment')
  650. // uni.$emit('updateSystemList', 'login')
  651. if (res.code === 200) {
  652. switch (modeStore.value) {
  653. case 'customer':
  654. router.reLaunch('/pages/customer/dashboard')
  655. // router.reLaunch('/pages/customer/index')
  656. break
  657. case 'ib':
  658. router.reLaunch('/pages/ib/index')
  659. break
  660. case 'follow':
  661. router.reLaunch('/pages/follow/index')
  662. break
  663. default:
  664. break
  665. }
  666. } else {
  667. uni.$u.toast(res.msg || t('login.msg0'))
  668. }
  669. } catch (error) {
  670. uni.$u.toast(error.msg || t('login.msg0'), 'error')
  671. // console.log(error, 111);
  672. }
  673. }
  674. async function getCardUserInfo() {
  675. try {
  676. const res = await ucardApi.getSingle()
  677. userStore.saveUserInfo(res.data)
  678. if (res.code === 200) {
  679. if (!res.data || res.data.approveStatus != 2) {
  680. router.push('/pages/mine/improve')
  681. } else {
  682. router.push('/pages/card/index')
  683. }
  684. } else {
  685. uni.$u.toast(res.msg || t('login.msg0'))
  686. }
  687. } catch (error) {
  688. // console.log(error, 111);
  689. }
  690. }
  691. async function reasonsRefusalList() {
  692. try {
  693. const res = await customApi.reasonsRefusalList()
  694. if (res.code === 200) {
  695. pickFields(res.data)
  696. } else {
  697. uni.$u.toast(res.msg || t('login.msg0'))
  698. }
  699. } catch (error) {
  700. // console.log(error, 111);
  701. }
  702. }
  703. function pickFields(source, fields = ['content', 'enContent']) {
  704. const result = {}
  705. Object.entries(source).forEach(([key, value]) => {
  706. result[key] = fields.reduce((acc, f) => {
  707. acc[f] = value[f] ?? null
  708. return acc
  709. }, {})
  710. })
  711. userStore.saveReasonsOptions(result)
  712. }
  713. onMounted(() => {
  714. if (uni.getStorageSync('logoutToSystem') == 1) {
  715. uni.removeStorageSync('logoutToSystem')
  716. uni.removeStorageSync('systemListCache')
  717. }
  718. uni.$emit('updateSystemList', 'login')
  719. const accountInfo = userStore.accountInfo
  720. if (accountInfo?.rememberPassword) {
  721. form.value.loginName = accountInfo?.loginName || ''
  722. form.value.password = accountInfo?.password || ''
  723. remenber.value = ['记住我']
  724. } else {
  725. form.value.loginName = ''
  726. form.value.password = ''
  727. remenber.value = []
  728. }
  729. // 注册表单初始化
  730. getCountry()
  731. getCountryMsg()
  732. const hostParts = window.location.host.split('.')
  733. ho.value = hostParts.length > 1 ? hostParts[1] : ''
  734. globalStore.setMode(ls.get('mode') || 'customer');
  735. })
  736. const inputType = ref('password')
  737. const isChatIconExpanded = ref(false)
  738. // 处理聊天图标点击
  739. const handleChatIconClick = () => {
  740. // 如果还没显示 → 先滑出来
  741. if (!isChatIconExpanded.value) {
  742. isChatIconExpanded.value = true
  743. return
  744. }
  745. if (isMobile.value) {
  746. // router.push('/pages/common/chat')
  747. } else {
  748. if (LiveChatService) {
  749. LiveChatService.showChat()
  750. }
  751. }
  752. setTimeout(() => {
  753. isChatIconExpanded.value = false
  754. }, 300)
  755. }
  756. </script>
  757. <style lang="scss" scoped>
  758. @import "@/uni.scss";
  759. :deep(uni-content) {
  760. padding-left: 0 !important;
  761. }
  762. .login-page {
  763. height: 100vh;
  764. border: none;
  765. padding: 0;
  766. position: relative;
  767. display: flex;
  768. flex-direction: column;
  769. }
  770. .chat-icon {
  771. width: px2rpx(50);
  772. height: px2rpx(50);
  773. border-radius: 50%;
  774. background-color: #cf1322;
  775. display: flex;
  776. align-items: center;
  777. justify-content: center;
  778. position: fixed;
  779. bottom: px2rpx(25);
  780. right: px2rpx(0);
  781. z-index: 999;
  782. cursor: pointer;
  783. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  784. box-shadow: 0 px2rpx(8) px2rpx(20) rgba(0, 0, 0, 0.15);
  785. will-change: transform;
  786. }
  787. @media screen and (max-width: 991px) {
  788. .chat-icon {
  789. right: px2rpx(-25);
  790. }
  791. }
  792. .chat-icon:hover {
  793. transform: scale(1.1);
  794. }
  795. .chat-icon-expanded {
  796. bottom: px2rpx(20);
  797. right: px2rpx(20);
  798. transform: scale(1.1);
  799. box-shadow: 0 px2rpx(12) px2rpx(30) rgba(0, 0, 0, 0.2);
  800. }
  801. .chat-icon-hidden {
  802. display: none;
  803. }
  804. .fixed {
  805. width: 100%;
  806. height: var(--status-bar-height);
  807. background-color: rgba(var(--bs-body-bg-rgb), var(--bs-bg-opacity)) !important;
  808. z-index: 9;
  809. }
  810. .global-header-bar {
  811. width: 100%;
  812. height: px2rpx(60);
  813. display: flex;
  814. align-items: center;
  815. justify-content: center;
  816. flex-shrink: 0;
  817. z-index: 100;
  818. &.pc-header {
  819. background-color: transparent;
  820. }
  821. .header-inner {
  822. width: 100%;
  823. padding: 0 5%;
  824. display: flex;
  825. justify-content: space-between;
  826. /* 两端对齐,可放logo和组件 */
  827. align-items: center;
  828. }
  829. }
  830. .mobile-header-bar {
  831. //position: absolute;
  832. //top: px2rpx(20);
  833. //right: px2rpx(20);
  834. z-index: 10;
  835. width: 100%;
  836. display: flex;
  837. background-color: rgba(var(--bs-body-bg-rgb), var(--bs-bg-opacity)) !important;
  838. justify-content: flex-end;
  839. }
  840. .main-content {
  841. flex: 1;
  842. overflow: hidden;
  843. }
  844. .demo-uni-row {
  845. height: 100%;
  846. margin: 0 !important;
  847. .left-bg {
  848. height: 100%;
  849. min-height: calc(100vh - 120px);
  850. background-size: cover;
  851. background-position: center;
  852. display: flex;
  853. box-sizing: border-box;
  854. padding: px2rpx(50);
  855. //flex-direction: column;
  856. //align-items: center;
  857. justify-content: center;
  858. .left-box {
  859. display: flex;
  860. flex-direction: column;
  861. justify-content: center;
  862. align-items: flex-start;
  863. width: 60%;
  864. //margin-top: px2rpx(20);
  865. .inner {
  866. width: 100%;
  867. text-align: start;
  868. //margin-bottom: px2rpx(20);
  869. .section-title {
  870. //margin-top: px2rpx(10);
  871. //margin-bottom: px2rpx(10);
  872. }
  873. .title {
  874. margin: 0 0 0 px2rpx(10);
  875. font-size: px2rpx(56);
  876. line-height: 1.2;
  877. color: #fff;
  878. font-weight: 700;
  879. text-align: left;
  880. }
  881. .w-700 {
  882. font-weight: 700;
  883. }
  884. .subtitle {
  885. width: 45%;
  886. font-size: px2rpx(18);
  887. letter-spacing: px2rpx(1);
  888. display: block;
  889. margin-bottom: px2rpx(24);
  890. color: #ffffff;
  891. line-height: px2rpx(15);
  892. font-weight: 500;
  893. padding: px2rpx(10) px2rpx(20);
  894. border-radius: px2rpx(100);
  895. text-transform: uppercase;
  896. background-color: #e61f1e;
  897. text-align: center;
  898. }
  899. .w-40 {
  900. max-width: 40%;
  901. }
  902. .text-white {
  903. margin-top: px2rpx(10);
  904. font-size: px2rpx(18);
  905. margin-bottom: px2rpx(16);
  906. line-height: 1.6;
  907. color: var(--bs-emphasis-color);
  908. }
  909. }
  910. .img-fluid {
  911. width: 400px;
  912. height: 33px;
  913. }
  914. .mt--10 {
  915. margin-top: px2rpx(10);
  916. }
  917. .h1 {
  918. // text-align: center;
  919. color: var(--bs-emphasis-color);
  920. font-size: 30px;
  921. margin-top: 30px;
  922. line-height: 1.5;
  923. }
  924. .h6 {
  925. text-align: start;
  926. line-height: 20px;
  927. color: var(--bs-emphasis-color);
  928. font-size: 14px;
  929. margin-top: 10px;
  930. }
  931. .company {
  932. padding: px2rpx(10) 0 px2rpx(10) 0;
  933. position: relative;
  934. align-items: flex-start !important;
  935. width: 100%;
  936. }
  937. }
  938. .left-content {
  939. width: 100%;
  940. .des {
  941. text-align: start;
  942. line-height: 24px;
  943. color: var(--bs-emphasis-color);
  944. font-size: 14px;
  945. //margin-top: px2rpx(20);
  946. :nth-child(n) {
  947. display: inline;
  948. word-break: break-all;
  949. word-wrap: break-word;
  950. }
  951. .doc-link {
  952. color: var(--color-error);
  953. text-decoration: underline;
  954. margin: 0 px2rpx(4);
  955. }
  956. }
  957. }
  958. }
  959. .right-f {
  960. background-color: rgba(var(--bs-body-bg-rgb), var(--bs-bg-opacity)) !important;
  961. padding: 0 px2rpx(24);
  962. height: 100%;
  963. box-sizing: border-box;
  964. .account {
  965. background-color: rgba(var(--bs-body-bg-rgb), var(--bs-bg-opacity)) !important;
  966. position: relative;
  967. height: calc(100vh - 60px);
  968. display: flex;
  969. flex-direction: column;
  970. //justify-content: center;
  971. padding: 0 px2rpx(24);
  972. .company {
  973. padding: px2rpx(20) 0 px2rpx(30) 0;
  974. position: relative;
  975. align-items: center !important;
  976. }
  977. .company-icon {
  978. width: px2rpx(234);
  979. }
  980. .company-icon-mini {
  981. width: px2rpx(100);
  982. }
  983. }
  984. }
  985. }
  986. .bottom-box {
  987. width: 100%;
  988. height: 60px;
  989. background-color: rgba(var(--bs-body-bg-rgb), var(--bs-bg-opacity)) !important;
  990. display: flex;
  991. justify-content: center;
  992. align-items: center;
  993. color: #000;
  994. .bottom-title {
  995. text-align: center;
  996. font-size: px2rpx(14);
  997. font-weight: 500;
  998. line-height: 1.5;
  999. color: #666666;
  1000. }
  1001. .ellipsis {
  1002. width: px2rpx(200);
  1003. white-space: nowrap;
  1004. overflow: hidden;
  1005. text-overflow: ellipsis;
  1006. }
  1007. .cwg-button {
  1008. width: 120px !important;
  1009. padding: px2rpx(4) 0 !important;
  1010. }
  1011. }
  1012. button {
  1013. background-color: #ea002a;
  1014. font-size: px2rpx(14);
  1015. font-weight: normal;
  1016. height: px2rpx(44);
  1017. line-height: px2rpx(44);
  1018. }
  1019. .right-f .account .company {
  1020. padding: px2rpx(20) 0 px2rpx(200) 0;
  1021. position: relative;
  1022. align-items: flex-start !important;
  1023. }
  1024. .logo {
  1025. margin-left: px2rpx(48);
  1026. }
  1027. .left-bg .company-icon {
  1028. width: px2rpx(234);
  1029. }
  1030. .left-bg .left-content {
  1031. position: relative;
  1032. z-index: 1;
  1033. }
  1034. .title {
  1035. margin: px2rpx(15) 0;
  1036. font-size: px2rpx(24);
  1037. font-weight: bolder;
  1038. color: var(--bs-emphasis-color);
  1039. text-align: center;
  1040. i {
  1041. margin-right: px2rpx(10);
  1042. }
  1043. .tit1 {
  1044. font-size: px2rpx(34);
  1045. line-height: 1.5;
  1046. font-weight: bold;
  1047. color: var(--bs-emphasis-color);
  1048. }
  1049. .tit2 {
  1050. font-size: px2rpx(16);
  1051. line-height: 1.5;
  1052. color: #cecece;
  1053. font-weight: 500;
  1054. }
  1055. }
  1056. .qr-title {
  1057. font-size: px2rpx(16);
  1058. line-height: 1.5;
  1059. color: #cecece;
  1060. font-weight: 500;
  1061. text-align: center;
  1062. margin: px2rpx(40) 0;
  1063. display: flex;
  1064. align-items: center;
  1065. justify-content: center;
  1066. .line {
  1067. flex: 1;
  1068. height: 1px;
  1069. background-color: #e4e4e4;
  1070. }
  1071. .qr-tit2 {
  1072. margin: 0 px2rpx(12);
  1073. }
  1074. }
  1075. .input {
  1076. height: px2rpx(44);
  1077. border-radius: px2rpx(8);
  1078. background: #f7f8fa;
  1079. padding: 0 px2rpx(20) !important;
  1080. position: relative;
  1081. }
  1082. .account-icon {
  1083. width: px2rpx(12);
  1084. height: px2rpx(14) !important;
  1085. margin-right: px2rpx(5);
  1086. }
  1087. :deep(.u-input__content__prefix-icon) {
  1088. height: px2rpx(20);
  1089. }
  1090. .regiset-btn {
  1091. margin: px2rpx(20) 0;
  1092. border-radius: px2rpx(8);
  1093. }
  1094. .account-tip {
  1095. color: #666666;
  1096. font-size: px2rpx(16);
  1097. text-align: center;
  1098. cursor: pointer;
  1099. text {
  1100. color: #ea002a;
  1101. }
  1102. }
  1103. :deep(.u-form-item__body) {
  1104. padding: 0 !important;
  1105. padding-bottom: px2rpx(24) !important;
  1106. }
  1107. :deep(.wcg-checkbox) {
  1108. padding: 0 !important;
  1109. }
  1110. .cwg-button {
  1111. padding: px2rpx(34) 0 !important;
  1112. uni-button {
  1113. border-radius: px2rpx(8)
  1114. }
  1115. }
  1116. .tab-list {
  1117. width: 100%;
  1118. display: flex;
  1119. align-items: center;
  1120. justify-content: center;
  1121. border-bottom: 1px solid var(--bs-border-color);
  1122. }
  1123. .tab-item {
  1124. width: 50%;
  1125. margin: 0 px2rpx(15);
  1126. padding-right: 0;
  1127. padding-left: 0;
  1128. padding-bottom: 8px;
  1129. text-align: center;
  1130. border-bottom: 2px solid transparent;
  1131. font-weight: 500;
  1132. color: var(--bs-emphasis-color);
  1133. cursor: pointer;
  1134. transition: all 0.3s ease;
  1135. .tab-label {
  1136. font-size: px2rpx(20);
  1137. }
  1138. &:hover,
  1139. &:focus {
  1140. font-weight: 700;
  1141. color: #e32326;
  1142. border-bottom-color: #e32326;
  1143. }
  1144. &.active {
  1145. font-weight: 700;
  1146. color: #e32326;
  1147. border-bottom-color: #e32326;
  1148. }
  1149. }
  1150. /* 注册表单样式 */
  1151. .pwd {
  1152. list-style: none;
  1153. padding-left: 0;
  1154. margin: 0;
  1155. li {
  1156. font-size: px2rpx(12);
  1157. color: var(--bs-heading-color);
  1158. line-height: px2rpx(20);
  1159. position: relative;
  1160. padding-left: px2rpx(16);
  1161. &::before {
  1162. content: '';
  1163. position: absolute;
  1164. left: 0;
  1165. top: 50%;
  1166. transform: translateY(-50%);
  1167. width: px2rpx(6);
  1168. height: px2rpx(6);
  1169. border-radius: 50%;
  1170. background-color: var(--bs-heading-color);
  1171. }
  1172. &.fit {
  1173. color: #67c23a;
  1174. &::before {
  1175. background-color: #67c23a;
  1176. }
  1177. }
  1178. }
  1179. }
  1180. :deep(.formContent) {
  1181. padding: 0 10px;
  1182. .uni-select,
  1183. .uni-combox,
  1184. .uni-easyinput__content,
  1185. //.cwg-combox,
  1186. .uni-date-editor--x {
  1187. padding: 0.5rem px2rpx(10);
  1188. height: 3rem !important;
  1189. //border: none !important;
  1190. border-radius: px2rpx(8);
  1191. }
  1192. .cwg-combox {
  1193. background-color: transparent !important;
  1194. }
  1195. .code {
  1196. .uni-easyinput__content {
  1197. border-radius: px2rpx(8) 0 0 px2rpx(8);
  1198. }
  1199. }
  1200. }
  1201. :deep(.uni-stat-box) {
  1202. height: 100%;
  1203. }
  1204. :deep(.uni-select) {
  1205. height: 100%;
  1206. }
  1207. :deep(.uni-easyinput__content) {
  1208. height: 100%;
  1209. }
  1210. :deep(.uni-date-editor) {
  1211. height: 100%;
  1212. }
  1213. :deep(.uni-date-editor--x) {
  1214. height: 100%;
  1215. }
  1216. .btn-code {
  1217. //margin-left: -10px;
  1218. width: px2rpx(120);
  1219. height: 3rem;
  1220. box-sizing: border-box;
  1221. background-color: #102047;
  1222. //border: 1px solid rgb(229, 229, 229);
  1223. color: #fff;
  1224. text-align: center;
  1225. line-height: 3rem;
  1226. border-radius: 0 px2rpx(8) px2rpx(8) 0;
  1227. cursor: pointer;
  1228. font-size: 14px;
  1229. flex-shrink: 0;
  1230. }
  1231. .check-box {
  1232. padding: 0 px2rpx(10);
  1233. margin-bottom: px2rpx(10);
  1234. display: flex;
  1235. align-items: flex-start;
  1236. cursor: pointer;
  1237. .checkbox-label {
  1238. font-size: px2rpx(16);
  1239. color: #666666;
  1240. margin-left: px2rpx(8);
  1241. line-height: px2rpx(20);
  1242. user-select: none;
  1243. }
  1244. :deep(.u-checkbox) {
  1245. display: flex;
  1246. align-items: flex-start;
  1247. margin: 0;
  1248. }
  1249. }
  1250. .regiset-btn {
  1251. width: 100%;
  1252. height: px2rpx(40);
  1253. line-height: px2rpx(40);
  1254. border-radius: px2rpx(8);
  1255. background-color: var(--color-error);
  1256. color: #fff;
  1257. font-weight: bold;
  1258. }
  1259. .login-link {
  1260. width: 100%;
  1261. margin-top: px2rpx(20);
  1262. text-align: center;
  1263. display: flex;
  1264. align-items: center;
  1265. justify-content: center;
  1266. font-size: px2rpx(16);
  1267. line-height: 1.6;
  1268. }
  1269. .link {
  1270. margin-left: px2rpx(5);
  1271. color: #e61f1e;
  1272. padding-bottom: 2px;
  1273. cursor: pointer;
  1274. font-size: px2rpx(16);
  1275. }
  1276. .agreemnet9 {
  1277. text-align: initial;
  1278. color: #e61f1e;
  1279. }
  1280. .des-bottom {
  1281. margin-top: px2rpx(20);
  1282. line-height: 20px;
  1283. color: #000;
  1284. font-size: px2rpx(14);
  1285. :deep(.pdf-link) {
  1286. width: auto;
  1287. }
  1288. .desc-link {
  1289. display: inline-block !important;
  1290. color: #e61f1e;
  1291. text-decoration: underline;
  1292. }
  1293. }
  1294. </style>