create-account.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888
  1. <template>
  2. <cwg-page-wrapper class="create-page " :isHeaderFixed="true">
  3. <view class="container">
  4. <view
  5. class="app-page-head card-header d-flex gap-3 flex-wrap align-items-center justify-content-between border-0">
  6. <view class="app-page-head mb-0">
  7. <h1 class="app-page-title" v-t="currentAccount?.name"></h1>
  8. </view>
  9. </view>
  10. <view class="row">
  11. <view class="col-lg-8">
  12. <view class="card">
  13. <view class="border-0 card-header">
  14. <uni-forms ref="formRef" :model="formData" :rules="rules" label-width="200"
  15. label-position="top" class="base-info-form" validate-trigger="submit">
  16. <view class="row">
  17. <view class="col-lg-12">
  18. <h5 class="mb-3" v-t="'Custom.PaymentHistory.AccountType'"></h5>
  19. <uni-forms-item>
  20. <cwg-combox :clearable="false" v-model:value="cativeIndex" :options="tabs"
  21. :placeholder="t('placeholder.choose')" />
  22. </uni-forms-item>
  23. </view>
  24. <view class="col-lg-6">
  25. <h5 class="mb-3" v-t="'Custom.NewAccount.Platform'"></h5>
  26. <uni-forms-item name="platform">
  27. <cwg-combox :clearable="false" v-model:value="formData.platform"
  28. :options="platformColumns" :placeholder="t('placeholder.choose')" />
  29. </uni-forms-item>
  30. </view>
  31. <view class="col-lg-6">
  32. <h5 class="mb-3" v-t="'Custom.NewAccount.Currency'"></h5>
  33. <uni-forms-item name="currency">
  34. <cwg-combox :clearable="false" v-model:value="formData.currency"
  35. :options="currencyColumns" :placeholder="t('placeholder.choose')" />
  36. </uni-forms-item>
  37. </view>
  38. <view class="col-lg-6">
  39. <h5 class="mb-3" v-t="'Custom.NewAccount.Lever'"></h5>
  40. <uni-forms-item name="leverage">
  41. <cwg-combox :clearable="false" v-model:value="formData.leverage"
  42. :options="leverageColumns" :placeholder="t('placeholder.choose')" :disabled="formData.platform == 'MT4'"/>
  43. </uni-forms-item>
  44. </view>
  45. <view class="col-lg-6">
  46. <h5 class="mb-3" v-t="'Custom.NewAccount.Password'"></h5>
  47. <uni-forms-item name="password">
  48. <uni-easyinput :clearable="false" v-model="formData.password"
  49. :placeholder="t('Custom.NewAccount.Password')" />
  50. </uni-forms-item>
  51. </view>
  52. <view class="col-lg-6" v-if="dome">
  53. <h5 class="mb-3" v-t="'Custom.NewAccount.Balance'"></h5>
  54. <uni-forms-item name="balance">
  55. <uni-easyinput type="digit" :clearable="false" v-model="formData.balance"
  56. :placeholder="t('Custom.NewAccount.BalancePlaceholder')" />
  57. </uni-forms-item>
  58. </view>
  59. <view class="px-4">
  60. <view class="notice-list">
  61. <view v-for="(item, index) in noticeItems" :key="index"
  62. :class="['notice-item', item.valid ? 'isOK' : '']">
  63. {{ item.label }}
  64. </view>
  65. </view>
  66. </view>
  67. <!-- <view class="col-lg-12 mb-3">
  68. <view class="form-check mb-3">
  69. <input class="form-check-input" type="checkbox" value="" id="invalidCheck2"
  70. required="">
  71. <label class="form-check-label" for="invalidCheck2">* I have read all the
  72. instructions and agreed to the terms and conditions of the Standard
  73. Account</label>
  74. </view>
  75. </view> -->
  76. <button @click="newAccount" class="btn btn-danger waves-effect waves-light"><i
  77. class="fi fi-rs-check"></i>
  78. {{ t('Btn.Application') }}</button>
  79. </view>
  80. </uni-forms>
  81. </view>
  82. </view>
  83. </view>
  84. <view class="col-lg-4">
  85. <view class="card overflow-hidden card-action action-border-primary">
  86. <view class="card-header bg-light border-0 p-4 accordion-b utton text-white bg">
  87. <!-- <view class="ribbon">Premium</view> -->
  88. <h4 class="text-white" v-t="currentAccount?.name"></h4>
  89. <p class="mb-4" v-t="currentAccount?.description"></p>
  90. <view class="display-6 fw-bold text-white lh-1 price-monthly">{{ currentAccount?.minDeposit
  91. || '--' }} <text class="h6 text-white">{{ t('vu.item9') }}</text> </view>
  92. </view>
  93. <view class="card-body p-4">
  94. <view class="fs-5 list-inline text-dark">
  95. <view class="d-flex gap-2 align-items-center py-1"> <i
  96. class="fa-regular fa-circle-check text-success"></i> {{ t('vu.item10') }}: {{
  97. currentAccount?.minSpread || '--' }}
  98. </view>
  99. <view class="d-flex gap-2 align-items-center py-1"> <i
  100. class="fa-regular fa-circle-check text-success"></i> {{ t('vu.item11') }}: {{
  101. currentAccount?.maxLeverage || '--' }}
  102. </view>
  103. </view>
  104. </view>
  105. </view>
  106. </view>
  107. </view>
  108. </view>
  109. <!-- 提交后的弹出框 -->
  110. <uni-popup :show="dialogCheck" mode="center" round="16" @close="closeDia">
  111. <view class="dia-content" v-if="dialogVisible">
  112. <view class="icon">
  113. <text class="iconfont icon-success"></text>
  114. </view>
  115. <view class="des1">{{ t('ApplicationDialog.Des1') }}</view>
  116. <view class="des2">{{ t('ApplicationDialog.Des12') }}</view>
  117. <view class="dialog-footer">
  118. <uv-button type="primary" @click="closeDia">
  119. {{ t('Btn.Confirm') }}
  120. </uv-button>
  121. <uv-button @click="closeDia">
  122. {{ t('Btn.Cancel') }}
  123. </uv-button>
  124. </view>
  125. </view>
  126. <view class="dia-content" v-if="!dialogVisible">
  127. <view class="icon">
  128. <text class="iconfont icon-warning"></text>
  129. </view>
  130. <view class="des1">{{ RES }}</view>
  131. <view class="dialog-footer">
  132. <uv-button type="primary" @click="closeDia">
  133. {{ t('Btn.Confirm') }}
  134. </uv-button>
  135. <uv-button @click="closeDia">
  136. {{ t('Btn.Cancel') }}
  137. </uv-button>
  138. </view>
  139. </view>
  140. </uni-popup>
  141. <cwg-error-popup v-model:visible="dialogError" :responseMessage="RES" />
  142. <cwg-success-popup v-model:visible="dialogSuccess" @confirm="closeDia" type="create" />
  143. <!-- 账户开立上限提示弹框 -->
  144. <cwg-account-limit-popup v-model:visible="dialogAccountLimit" @confirm="closeAccountLimitDialog" />
  145. </cwg-page-wrapper>
  146. </template>
  147. <script setup>
  148. import { ref, reactive, computed, onMounted, watch, nextTick } from 'vue';
  149. import { onLoad } from '@dcloudio/uni-app';
  150. import { customApi } from "@/service/custom";
  151. import useUserStore from "@/stores/use-user-store";
  152. import useRouter from "@/hooks/useRouter";
  153. import { useI18n } from "vue-i18n";
  154. const router = useRouter();
  155. const { t, locale } = useI18n();
  156. const userStore = useUserStore();
  157. // 定义账户数据类型
  158. const standardAccounts = ref([
  159. {
  160. id: 7,
  161. type: 'StandardAccount',
  162. name: 'AccountType.StandardAccount',
  163. showCondition: () => showLogin.value && showLogin.value.indexOf('7') == -1,
  164. description: 'Custom.NewAccount.DesLogin5',
  165. minDeposit: '$200',
  166. minSpread: '0.01',
  167. maxLeverage: '1:1000',
  168. icon: '/static/images/info/bank-information-1.webp',
  169. },
  170. {
  171. id: 2,
  172. type: 'SeniorAccount',
  173. name: 'AccountType.SeniorAccount',
  174. showCondition: () => showLogin.value && showLogin.value.indexOf('2') == -1,
  175. description: 'Custom.NewAccount.DesLogin3',
  176. minDeposit: '$200',
  177. minSpread: '0.01',
  178. maxLeverage: '1:1000',
  179. icon: '/static/images/info/bank-information-2.webp',
  180. },
  181. {
  182. id: 8,
  183. type: 'CentAccount',
  184. name: 'AccountType.CentAccount',
  185. showCondition: () => showLogin.value && showLogin.value.indexOf('8') == -1 && isTimeShow.value,
  186. description: 'Custom.NewAccount.DesLogin8',
  187. minDeposit: '$200',
  188. minSpread: '0.01',
  189. maxLeverage: '1:500',
  190. icon: '/static/images/info/bank-information-3.webp',
  191. }
  192. ])
  193. const cativeIndex = ref('real')
  194. const tabs = computed(() => ([
  195. { value: 'real', text: t('vu.item1') },
  196. { value: 'demo', text: t('vu.item2') }
  197. ]))
  198. const dialogError = ref(false)
  199. const dialogSuccess = ref(false)
  200. const currentAccount = computed(() => {
  201. // 从账户列表中查找匹配的账户
  202. const matched = standardAccounts.value.find(account => account.id == isOpenAccount.value);
  203. // 如果未找到,返回一个默认空对象或 null,模板中需做判空处理
  204. return matched || null;
  205. });
  206. // 数据定义
  207. const pictLoading = ref(false);
  208. const flag = ref(false);
  209. const RES = ref('');
  210. const dialogCheck = ref(false);
  211. const dialogVisible = ref(false);
  212. const showData = ref(null);
  213. const isOpenAccount = ref(0);
  214. const checked = ref('');
  215. const optionsLev = ref([]);
  216. const optionsCur = ref([]);
  217. const dome = ref(null);
  218. const showLogin = ref([]);
  219. const showPage = ref(false);
  220. const isTimeShow = ref(false);
  221. const dialogAccountLimit = ref(false);
  222. const limitPlatform = ref('');
  223. const hidden = ref(true);
  224. const ho = ref('');
  225. // 表单引用
  226. const formRef = ref(null);
  227. // 表单数据
  228. const formData = reactive({
  229. password: '',
  230. currency: '',
  231. leverage: '',
  232. platform: '',
  233. balance: null,
  234. });
  235. const resetForm = async () => {
  236. await nextTick();
  237. formRef.value?.clearValidate();
  238. formData.password = ""
  239. formData.currency = ""
  240. formData.leverage = ""
  241. formData.platform = ""
  242. formData.balance = ""
  243. optionsLev.value = []
  244. optionsCur.value = []
  245. showData.value = null
  246. // amountErrorMessage.value = ""
  247. // submitting.value = false
  248. flag.value = false
  249. // loginValue.value = ""
  250. dialogCheck.value = false
  251. dialogVisible.value = false
  252. }
  253. // 计算属性
  254. const rule1 = computed(() => {
  255. if (!formData.password) return false;
  256. return /^.{8,15}$/.test(formData.password);
  257. });
  258. const rule2 = computed(() => {
  259. return /^(?=.*?[a-z])(?=.*?[A-Z]).*$/.test(formData.password);
  260. });
  261. const rule3 = computed(() => {
  262. return /^(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?!.*([~!@&%$^\\(\\)#_]).*\\1.*\\1)[A-Za-z0-9~!@&%$^\\(\\)#_]{8,16}$/.test(
  263. formData.password
  264. );
  265. });
  266. const rule4 = computed(() => {
  267. return /^(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[~!@&%$^*./\\(\\)\\+\\=#_-])[A-Za-z0-9~!@&%$^*./\\(\\)\\+\\=#_-]{8,16}$/.test(
  268. formData.password
  269. );
  270. });
  271. const noticeItems = computed(() => [
  272. { label: t('signup.form.rules.1st'), valid: rule1.value },
  273. { label: t('signup.form.rules.2nd'), valid: rule2.value },
  274. { label: t('signup.form.rules.4rd'), valid: rule4.value }
  275. ])
  276. const rules = computed(() => ({
  277. platform: {
  278. rules: [
  279. {
  280. required: true,
  281. errorMessage: t('vaildate.select.empty'),
  282. trigger: 'change',
  283. },
  284. ],
  285. },
  286. currency: {
  287. rules: [
  288. {
  289. required: true,
  290. errorMessage: t('vaildate.select.empty'),
  291. trigger: 'change',
  292. },
  293. ],
  294. },
  295. leverage: {
  296. rules: [
  297. {
  298. required: true,
  299. errorMessage: t('vaildate.select.empty'),
  300. trigger: 'change',
  301. },
  302. ],
  303. },
  304. password: {
  305. rules: [
  306. {
  307. required: true,
  308. errorMessage: t('vaildate.password.format'),
  309. trigger: 'blur',
  310. },
  311. {
  312. validateFunction: (rule, value, data, callback) => {
  313. if (/^(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[~!@&%$^*./\\(\\)\\+\\=#_-])[A-Za-z0-9~!@&%$^*./\\(\\)\\+\\=#_-]{8,16}$/.test(value)) {
  314. return true;
  315. } else {
  316. callback(t('vaildate.password.format')); return false;
  317. }
  318. },
  319. trigger: 'blur',
  320. },
  321. ],
  322. },
  323. balance: {
  324. rules: [
  325. {
  326. required: true,
  327. errorMessage: t('vaildate.amount.format'),
  328. },
  329. {
  330. validateFunction: (rule, value, data, callback) => {
  331. if (value === null || value === undefined || value === '') {
  332. return true;
  333. }
  334. const numValue = Number(value);
  335. if (isNaN(numValue)) {
  336. callback(t('vaildate.amount.format'));
  337. return false;
  338. }
  339. if (numValue < 0 || numValue > 100000) {
  340. callback(t('vaildate.amount.amount') + '0-100000');
  341. return false;
  342. }
  343. }
  344. },
  345. ],
  346. },
  347. }));
  348. watch(locale, () => {
  349. formRef.value?.clearValidate()
  350. })
  351. // 平台选项
  352. const platformColumns = computed(() => {
  353. const columns = [];
  354. if (showData.value && showData.value['mt4s'] && showData.value['mt4s'].length) {
  355. columns.push({ text: 'MT4', value: 'MT4' });
  356. }
  357. if (showData.value && showData.value['mt5s'] && showData.value['mt5s'].length) {
  358. columns.push({ text: 'MT5', value: 'MT5' });
  359. }
  360. return columns;
  361. });
  362. // 货币选项
  363. const currencyColumns = computed(() => {
  364. if (optionsCur.value.length) {
  365. return optionsCur.value.map(item => ({ text: item, value: item }));
  366. }
  367. return [];
  368. });
  369. // 杠杆选项
  370. const leverageColumns = computed(() => {
  371. if (optionsLev.value.length) {
  372. return optionsLev.value.map(item => ({ text: String(item), value: item }));
  373. }
  374. return [];
  375. });
  376. // 方法
  377. const closeDia = () => {
  378. resetForm()
  379. };
  380. const closeAccountLimitDialog = () => {
  381. dialogAccountLimit.value = false;
  382. limitPlatform.value = '';
  383. };
  384. const showAccountLimitDialog = (platform) => {
  385. limitPlatform.value = platform;
  386. dialogAccountLimit.value = true;
  387. };
  388. // 获取必要数据
  389. const getMustData = async (type, isDome) => {
  390. console.log(type, isDome, locale)
  391. const api = isDome ? customApi.AccountApplyDataDome : customApi.AccountApplyData;
  392. // console.log(api, 121212);
  393. const res = await api({
  394. type: type
  395. });
  396. // console.log(res, 121212);
  397. if (res.code === 200) {
  398. showData.value = res.data;
  399. } else {
  400. uni.showToast({
  401. title: res.msg,
  402. icon: 'none'
  403. });
  404. }
  405. };
  406. // 获取显示权限
  407. const getExcludeShowLogin = async () => {
  408. pictLoading.value = true;
  409. const res = await customApi.excludeShowLogin({});
  410. if (res.code === 200) {
  411. showLogin.value = res.data?.excludeShowLoginTypes || [];
  412. showPage.value = true;
  413. pictLoading.value = false;
  414. } else {
  415. uni.showToast({
  416. title: res.msg,
  417. icon: 'none'
  418. });
  419. pictLoading.value = false;
  420. }
  421. };
  422. // 提交开户
  423. const newAccount = async () => {
  424. try {
  425. if (formRef.value) {
  426. const valid = await formRef.value.validate()
  427. if (flag.value) return;
  428. flag.value = true;
  429. const api = dome.value ? customApi.AccountApplyAddDome : customApi.AccountApplyAdd;
  430. const res = await api({
  431. type: Number(isOpenAccount.value),
  432. ...formData
  433. });
  434. if (res.code === 200) {
  435. if (dome.value) {
  436. uni.showToast({
  437. title: t('Msg.Success'),
  438. icon: 'success'
  439. });
  440. }
  441. router.push('/pages/customer/index')
  442. isOpenAccount.value = 0;
  443. dialogSuccess.value = true;
  444. if (formRef.value) {
  445. formRef.value.resetFields();
  446. }
  447. flag.value = false;
  448. } else if (res.code === 407) {
  449. showAccountLimitDialog(formData.platform);
  450. flag.value = false;
  451. } else {
  452. RES.value = res.msg;
  453. dialogError.value = true;
  454. flag.value = false;
  455. resetForm()
  456. }
  457. }
  458. } catch (error) {
  459. console.log(error)
  460. flag.value = false;
  461. if (error instanceof Array) {
  462. // showToast(error[0].errorMessage);
  463. return
  464. } else {
  465. console.log(error)
  466. dialogError.value = true;
  467. RES.value = error.msg;
  468. console.log(dialogError.value);
  469. resetForm()
  470. }
  471. }
  472. };
  473. // 选择平台
  474. const checkPlatform = (pla) => {
  475. if (pla === 'mt5s') {
  476. hidden.value = false;
  477. } else {
  478. hidden.value = true;
  479. }
  480. optionsLev.value = [];
  481. optionsCur.value = [];
  482. const Cur = [];
  483. showData.value[pla].forEach((item) => {
  484. Cur.push(item.currency);
  485. });
  486. Cur.forEach((item) => {
  487. if (!optionsCur.value.includes(item)) {
  488. optionsCur.value.push(item);
  489. }
  490. });
  491. };
  492. watch(() => formData.platform, (newVal) => {
  493. if (newVal) {
  494. optionsLev.value = [];
  495. optionsCur.value = [];
  496. formData.currency = ''
  497. formData.leverage = ''
  498. formData.balance = ''
  499. formData.password = ''
  500. checkPlatform(newVal === 'MT4' ? 'mt4s' : 'mt5s');
  501. }
  502. });
  503. watch(() => formData.currency, (newVal) => {
  504. if (newVal && formData.platform) {
  505. checkCurrency(formData.platform, newVal);
  506. }
  507. });
  508. // 选择货币
  509. const checkCurrency = (pla, cur) => {
  510. formData.leverage = '';
  511. optionsLev.value = [];
  512. const platform = pla === 'MT4' ? 'mt4s' : 'mt5s';
  513. const list = [];
  514. showData.value[platform].forEach((item) => {
  515. if (item.currency === cur) {
  516. list.push(item.leverage);
  517. }
  518. });
  519. formData.leverage = list.reduce((a, b) => Math.max(a, b));
  520. optionsLev.value = list;
  521. };
  522. // 时间判断
  523. const isAfterJuly28 = () => {
  524. // 实现日期判断逻辑
  525. return false;
  526. };
  527. const isTimeShowType8 = () => {
  528. const endTime1 = '2024/9/25 00:00:00';
  529. const timezone = 2;
  530. const offset_GMT = new Date().getTimezoneOffset();
  531. const nowDate = new Date().getTime();
  532. const now = new Date(nowDate + offset_GMT * 60 * 1000 + timezone * 60 * 60 * 1000).getTime();
  533. const end = new Date(endTime1).getTime();
  534. if (now > end) {
  535. isTimeShow.value = true;
  536. }
  537. };
  538. // 余额变化验证
  539. const handleBalanceChange = () => {
  540. if (formRef.value) {
  541. formRef.value.validateField('balance');
  542. }
  543. };
  544. // 打开链接
  545. const openLink = (path) => {
  546. uni.navigateTo({
  547. url: `/pages/common/webview?url=https://www.${ho.value}.com/${path}`
  548. });
  549. };
  550. // 打开PDF
  551. const openPdf = (path) => {
  552. uni.navigateTo({
  553. url: `/pages/common/webview?url=/pdf/${path}`
  554. });
  555. };
  556. // 监听balance变化
  557. watch(() => formData.balance, (newVal, oldVal) => {
  558. if (newVal !== oldVal && newVal !== null && newVal !== undefined) {
  559. // nextTick(() => {
  560. // if (formRef.value) {
  561. // formRef.value.validateField('balance');
  562. // }
  563. // });
  564. }
  565. });
  566. watch(() => cativeIndex.value, (newVal) => {
  567. dome.value = newVal == 'demo'
  568. console.log(newVal, 1111)
  569. getMustData(isOpenAccount.value, dome.value);
  570. resetForm()
  571. });
  572. // 生命周期
  573. onLoad((e) => {
  574. dome.value = e.server == 'demo'
  575. cativeIndex.value = e.server
  576. isOpenAccount.value = e.id
  577. const host = window?.location?.host || '';
  578. ho.value = host.split('.')[1] || '';
  579. getExcludeShowLogin();
  580. getMustData(isOpenAccount.value, dome.value);
  581. isTimeShowType8();
  582. });
  583. onMounted(() => {
  584. // 挂载后的操作
  585. });
  586. </script>
  587. <style lang="scss" scoped>
  588. @import "@/uni.scss";
  589. .bg {
  590. background-image: url('/static/images/vu/account-bg.png');
  591. background-size: cover;
  592. background-position: center bottom;
  593. }
  594. .tit {
  595. text-align: center;
  596. font-size: px2rpx(30);
  597. font-weight: bold;
  598. color: var(--color-slate-900);
  599. margin: px2rpx(24) 0;
  600. }
  601. .des {
  602. color: var(--color-slate-900);
  603. font-size: px2rpx(14);
  604. line-height: 1.5;
  605. margin-bottom: px2rpx(24);
  606. text-align: center;
  607. }
  608. .box {
  609. margin-top: px2rpx(20);
  610. }
  611. .box-text {
  612. margin: px2rpx(20) 0;
  613. .text {
  614. font-size: px2rpx(14);
  615. line-height: px2rpx(24);
  616. text-align: center;
  617. }
  618. }
  619. .b-card {
  620. min-height: px2rpx(683);
  621. margin-bottom: px2rpx(20);
  622. position: relative;
  623. overflow: hidden;
  624. display: flex;
  625. align-items: center;
  626. flex-wrap: wrap;
  627. flex-direction: column;
  628. justify-content: center;
  629. .header {
  630. width: 100%;
  631. text-align: center;
  632. }
  633. .descending {
  634. margin: 0 auto;
  635. margin-top: px2rpx(32);
  636. min-height: px2rpx(160);
  637. .feature {
  638. display: flex;
  639. align-items: flex-start;
  640. justify-content: flex-start;
  641. margin-bottom: px2rpx(16);
  642. }
  643. .icon-success {
  644. display: flex;
  645. align-items: center;
  646. justify-content: center;
  647. width: px2rpx(24);
  648. height: px2rpx(24);
  649. margin-right: px2rpx(12);
  650. background-color: color-mix(in oklab, var(--bs-success) 10%, transparent);
  651. }
  652. }
  653. .btn-bottom {
  654. width: 100%;
  655. display: flex;
  656. justify-content: center;
  657. color: var(--color-white);
  658. margin-top: px2rpx(32);
  659. gap: px2rpx(16);
  660. .btn-open {
  661. background-color: #cf1322;
  662. padding: px2rpx(12) px2rpx(20);
  663. }
  664. .btn-try {
  665. background-color: var(--color-slate-150);
  666. color: var(--color-navy-800);
  667. padding: px2rpx(12) px2rpx(20);
  668. }
  669. }
  670. }
  671. :deep(.uni-row1) {
  672. .uni-col {
  673. padding: 0 10px !important;
  674. }
  675. .uni-forms-item {
  676. min-height: px2rpx(79);
  677. margin-bottom: px2rpx(10);
  678. }
  679. }
  680. .btn {
  681. width: 100%;
  682. display: flex;
  683. align-items: center;
  684. justify-content: center;
  685. padding: px2rpx(12) 0;
  686. background-color: var(--color-error);
  687. color: white;
  688. border: none;
  689. font-size: px2rpx(16);
  690. cursor: pointer;
  691. margin: px2rpx(24) 0;
  692. }
  693. .notice-list {
  694. // margin: px2rpx(10) 0;
  695. padding: 0 px2rpx(12) px2rpx(12) 0;
  696. color: var(--bs-emphasis-color);
  697. .notice-item {
  698. font-size: px2rpx(14);
  699. line-height: px2rpx(24);
  700. }
  701. .isOK {
  702. color: var(--bs-success);
  703. }
  704. }
  705. .email-code {
  706. display: flex;
  707. align-items: flex-end;
  708. .email-code-item {
  709. flex: 1;
  710. }
  711. .btn-code {
  712. margin-bottom: px2rpx(18);
  713. width: auto;
  714. padding: px2rpx(10) px2rpx(16);
  715. }
  716. }
  717. .card-bottom {
  718. max-width: px2rpx(566);
  719. margin-top: px2rpx(20);
  720. .tabs-class {
  721. margin: 0 px2rpx(10) px2rpx(20) px2rpx(10);
  722. }
  723. }
  724. .create-card {
  725. display: flex;
  726. gap: px2rpx(30);
  727. justify-content: space-between;
  728. }
  729. @media (max-width: 992px) {
  730. .card-bottom {
  731. width: 100%;
  732. margin-top: px2rpx(20);
  733. }
  734. .create-card {
  735. display: flex;
  736. gap: px2rpx(30);
  737. flex-wrap: wrap;
  738. }
  739. }
  740. .card-content {
  741. margin-top: px2rpx(30);
  742. padding: px2rpx(16);
  743. width: px2rpx(300);
  744. .account-name {
  745. display: block;
  746. font-size: px2rpx(18);
  747. font-weight: 600;
  748. color: var(--bs-emphasis-color);
  749. padding-bottom: px2rpx(16);
  750. padding-left: px2rpx(20);
  751. border-left: 1px solid #f0f2f5;
  752. }
  753. .info-row {
  754. padding-left: px2rpx(20);
  755. padding-bottom: px2rpx(12);
  756. border-left: 1px solid #f0f2f5;
  757. .info-label {
  758. font-size: px2rpx(15);
  759. line-height: px2rpx(30);
  760. color: #7f8c8d;
  761. }
  762. .info-value {
  763. font-size: px2rpx(14);
  764. font-weight: 500;
  765. color: var(--bs-emphasis-color);
  766. }
  767. .link-item {
  768. line-height: px2rpx(20);
  769. font-size: px2rpx(12);
  770. letter-spacing: px2rpx(0.5);
  771. color: #cf1322;
  772. text-decoration: underline;
  773. cursor: pointer;
  774. &:active {
  775. opacity: 0.7;
  776. }
  777. }
  778. }
  779. .link-wrapper {
  780. display: flex;
  781. align-items: center;
  782. justify-content: flex-end;
  783. margin-top: px2rpx(8);
  784. padding-top: px2rpx(8);
  785. border-top: 1rpx solid #f0f2f5;
  786. .link-text {
  787. font-size: px2rpx(14);
  788. color: #007aff;
  789. margin-right: px2rpx(4);
  790. }
  791. .link-icon {
  792. font-size: px2rpx(14);
  793. color: #007aff;
  794. }
  795. }
  796. }
  797. </style>