index.vue 38 KB

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