create-account.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891
  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 name="platform">
  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')" />
  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. // 平台选项
  349. const platformColumns = computed(() => {
  350. const columns = [];
  351. if (showData.value && showData.value['mt4s'] && showData.value['mt4s'].length) {
  352. columns.push({ text: 'MT4', value: 'MT4' });
  353. }
  354. if (showData.value && showData.value['mt5s'] && showData.value['mt5s'].length) {
  355. columns.push({ text: 'MT5', value: 'MT5' });
  356. }
  357. return columns;
  358. });
  359. // 货币选项
  360. const currencyColumns = computed(() => {
  361. if (optionsCur.value.length) {
  362. return optionsCur.value.map(item => ({ text: item, value: item }));
  363. }
  364. return [];
  365. });
  366. // 杠杆选项
  367. const leverageColumns = computed(() => {
  368. if (optionsLev.value.length) {
  369. return optionsLev.value.map(item => ({ text: String(item), value: item }));
  370. }
  371. return [];
  372. });
  373. // 方法
  374. const closeDia = () => {
  375. resetForm()
  376. };
  377. const closeAccountLimitDialog = () => {
  378. dialogAccountLimit.value = false;
  379. limitPlatform.value = '';
  380. };
  381. const showAccountLimitDialog = (platform) => {
  382. limitPlatform.value = platform;
  383. dialogAccountLimit.value = true;
  384. };
  385. // 获取必要数据
  386. const getMustData = async (type, isDome) => {
  387. console.log(type, isDome, locale)
  388. const api = isDome ? customApi.AccountApplyDataDome : customApi.AccountApplyData;
  389. console.log(api, 121212);
  390. const res = await api({
  391. type: type
  392. });
  393. console.log(res, 121212);
  394. if (res.code === 200) {
  395. showData.value = res.data;
  396. } else {
  397. uni.showToast({
  398. title: res.msg,
  399. icon: 'none'
  400. });
  401. }
  402. };
  403. // 获取显示权限
  404. const getExcludeShowLogin = async () => {
  405. pictLoading.value = true;
  406. const res = await customApi.excludeShowLogin({});
  407. if (res.code === 200) {
  408. showLogin.value = res.data?.excludeShowLoginTypes || [];
  409. showPage.value = true;
  410. pictLoading.value = false;
  411. } else {
  412. uni.showToast({
  413. title: res.msg,
  414. icon: 'none'
  415. });
  416. pictLoading.value = false;
  417. }
  418. };
  419. // 提交开户
  420. const newAccount = async () => {
  421. try {
  422. if (formRef.value) {
  423. const valid = await formRef.value.validate()
  424. if (flag.value) return;
  425. flag.value = true;
  426. const api = dome.value ? customApi.AccountApplyAddDome : customApi.AccountApplyAdd;
  427. const res = await api({
  428. type: Number(isOpenAccount.value),
  429. ...formData
  430. });
  431. if (res.code === 200) {
  432. if (dome.value) {
  433. uni.showToast({
  434. title: t('Msg.Success'),
  435. icon: 'success'
  436. });
  437. }
  438. router.push('/pages/customer/index')
  439. isOpenAccount.value = 0;
  440. dialogSuccess.value = true;
  441. if (formRef.value) {
  442. formRef.value.resetFields();
  443. }
  444. flag.value = false;
  445. } else if (res.code === 407) {
  446. showAccountLimitDialog(formData.platform);
  447. flag.value = false;
  448. } else {
  449. RES.value = res.msg;
  450. dialogError.value = true;
  451. flag.value = false;
  452. resetForm()
  453. }
  454. }
  455. } catch (error) {
  456. console.log(error)
  457. flag.value = false;
  458. if (error instanceof Array) {
  459. // showToast(error[0].errorMessage);
  460. return
  461. } else {
  462. console.log(error)
  463. dialogError.value = true;
  464. RES.value = error.msg;
  465. console.log(dialogError.value);
  466. resetForm()
  467. }
  468. }
  469. };
  470. // 选择平台
  471. const checkPlatform = (pla) => {
  472. if (pla === 'mt5s') {
  473. hidden.value = false;
  474. } else {
  475. hidden.value = true;
  476. }
  477. optionsLev.value = [];
  478. optionsCur.value = [];
  479. const Cur = [];
  480. showData.value[pla].forEach((item) => {
  481. Cur.push(item.currency);
  482. });
  483. Cur.forEach((item) => {
  484. if (!optionsCur.value.includes(item)) {
  485. optionsCur.value.push(item);
  486. }
  487. });
  488. };
  489. watch(() => formData.platform, (newVal) => {
  490. if (newVal) {
  491. optionsLev.value = [];
  492. optionsCur.value = [];
  493. formData.currency = ''
  494. formData.leverage = ''
  495. formData.balance = ''
  496. formData.password = ''
  497. checkPlatform(newVal === 'MT4' ? 'mt4s' : 'mt5s');
  498. }
  499. });
  500. watch(() => formData.currency, (newVal) => {
  501. if (newVal && formData.platform) {
  502. checkCurrency(formData.platform, newVal);
  503. }
  504. });
  505. // 选择货币
  506. const checkCurrency = (pla, cur) => {
  507. formData.leverage = '';
  508. optionsLev.value = [];
  509. const platform = pla === 'MT4' ? 'mt4s' : 'mt5s';
  510. const list = [];
  511. showData.value[platform].forEach((item) => {
  512. if (item.currency === cur) {
  513. list.push(item.leverage);
  514. }
  515. });
  516. formData.leverage = list.reduce((a, b) => Math.max(a, b));
  517. optionsLev.value = list;
  518. };
  519. // 时间判断
  520. const isAfterJuly28 = () => {
  521. // 实现日期判断逻辑
  522. return false;
  523. };
  524. const isTimeShowType8 = () => {
  525. const endTime1 = '2024/9/25 00:00:00';
  526. const timezone = 2;
  527. const offset_GMT = new Date().getTimezoneOffset();
  528. const nowDate = new Date().getTime();
  529. const now = new Date(nowDate + offset_GMT * 60 * 1000 + timezone * 60 * 60 * 1000).getTime();
  530. const end = new Date(endTime1).getTime();
  531. if (now > end) {
  532. isTimeShow.value = true;
  533. }
  534. };
  535. // 余额变化验证
  536. const handleBalanceChange = () => {
  537. if (formRef.value) {
  538. formRef.value.validateField('balance');
  539. }
  540. };
  541. // 打开链接
  542. const openLink = (path) => {
  543. uni.navigateTo({
  544. url: `/pages/common/webview?url=https://www.${ho.value}.com/${path}`
  545. });
  546. };
  547. // 打开PDF
  548. const openPdf = (path) => {
  549. uni.navigateTo({
  550. url: `/pages/common/webview?url=/pdf/${path}`
  551. });
  552. };
  553. // 监听balance变化
  554. watch(() => formData.balance, (newVal, oldVal) => {
  555. if (newVal !== oldVal && newVal !== null && newVal !== undefined) {
  556. // nextTick(() => {
  557. // if (formRef.value) {
  558. // formRef.value.validateField('balance');
  559. // }
  560. // });
  561. }
  562. });
  563. watch(() => cativeIndex.value, (newVal) => {
  564. dome.value = newVal == 'demo'
  565. console.log(newVal, 1111)
  566. getMustData(isOpenAccount.value, dome.value);
  567. resetForm()
  568. });
  569. // 生命周期
  570. onLoad((e) => {
  571. dome.value = e.server == 'demo'
  572. cativeIndex.value = e.server
  573. isOpenAccount.value = e.id
  574. const host = window?.location?.host || '';
  575. ho.value = host.split('.')[1] || '';
  576. getExcludeShowLogin();
  577. getMustData(isOpenAccount.value, dome.value);
  578. isTimeShowType8();
  579. });
  580. onMounted(() => {
  581. // 挂载后的操作
  582. });
  583. </script>
  584. <style lang="scss" scoped>
  585. @import "@/uni.scss";
  586. .bg {
  587. background-image: url('/static/images/vu/account-bg.png');
  588. background-size: cover;
  589. background-position: center bottom;
  590. }
  591. .tit {
  592. text-align: center;
  593. font-size: px2rpx(30);
  594. font-weight: bold;
  595. color: var(--color-slate-900);
  596. margin: px2rpx(24) 0;
  597. }
  598. .des {
  599. color: var(--color-slate-900);
  600. font-size: px2rpx(14);
  601. line-height: 1.5;
  602. margin-bottom: px2rpx(24);
  603. text-align: center;
  604. }
  605. .box {
  606. margin-top: px2rpx(20);
  607. }
  608. .box-text {
  609. margin: px2rpx(20) 0;
  610. .text {
  611. font-size: px2rpx(14);
  612. line-height: px2rpx(24);
  613. text-align: center;
  614. }
  615. }
  616. .b-card {
  617. min-height: px2rpx(683);
  618. margin-bottom: px2rpx(20);
  619. position: relative;
  620. overflow: hidden;
  621. display: flex;
  622. align-items: center;
  623. flex-wrap: wrap;
  624. flex-direction: column;
  625. justify-content: center;
  626. .header {
  627. width: 100%;
  628. text-align: center;
  629. }
  630. .descending {
  631. margin: 0 auto;
  632. margin-top: px2rpx(32);
  633. min-height: px2rpx(160);
  634. .feature {
  635. display: flex;
  636. align-items: flex-start;
  637. justify-content: flex-start;
  638. margin-bottom: px2rpx(16);
  639. }
  640. .icon-success {
  641. display: flex;
  642. align-items: center;
  643. justify-content: center;
  644. width: px2rpx(24);
  645. height: px2rpx(24);
  646. margin-right: px2rpx(12);
  647. background-color: color-mix(in oklab, var(--bs-success) 10%, transparent);
  648. }
  649. }
  650. .btn-bottom {
  651. width: 100%;
  652. display: flex;
  653. justify-content: center;
  654. color: var(--color-white);
  655. margin-top: px2rpx(32);
  656. gap: px2rpx(16);
  657. .btn-open {
  658. background-color: #cf1322;
  659. padding: px2rpx(12) px2rpx(20);
  660. }
  661. .btn-try {
  662. background-color: var(--color-slate-150);
  663. color: var(--color-navy-800);
  664. padding: px2rpx(12) px2rpx(20);
  665. }
  666. }
  667. }
  668. :deep(.uni-row1) {
  669. .uni-col {
  670. padding: 0 10px !important;
  671. }
  672. .uni-forms-item {
  673. min-height: px2rpx(79);
  674. margin-bottom: px2rpx(10);
  675. }
  676. }
  677. .btn {
  678. width: 100%;
  679. display: flex;
  680. align-items: center;
  681. justify-content: center;
  682. padding: px2rpx(12) 0;
  683. background-color: var(--color-error);
  684. color: white;
  685. border: none;
  686. font-size: px2rpx(16);
  687. cursor: pointer;
  688. margin: px2rpx(24) 0;
  689. }
  690. .notice-list {
  691. // margin: px2rpx(10) 0;
  692. padding: 0 px2rpx(12) px2rpx(12) 0;
  693. .notice-item {
  694. font-size: px2rpx(14);
  695. line-height: px2rpx(24);
  696. &::before {
  697. content: '●';
  698. display: inline-block;
  699. font-size: px2rpx(10);
  700. margin-right: px2rpx(4);
  701. }
  702. }
  703. .isOK {
  704. color: var(--bs-success);
  705. }
  706. }
  707. .email-code {
  708. display: flex;
  709. align-items: flex-end;
  710. .email-code-item {
  711. flex: 1;
  712. }
  713. .btn-code {
  714. margin-bottom: px2rpx(18);
  715. width: auto;
  716. padding: px2rpx(10) px2rpx(16);
  717. }
  718. }
  719. .card-bottom {
  720. max-width: px2rpx(566);
  721. margin-top: px2rpx(20);
  722. .tabs-class {
  723. margin: 0 px2rpx(10) px2rpx(20) px2rpx(10);
  724. }
  725. }
  726. .create-card {
  727. display: flex;
  728. gap: px2rpx(30);
  729. justify-content: space-between;
  730. }
  731. @media (max-width: 992px) {
  732. .card-bottom {
  733. width: 100%;
  734. margin-top: px2rpx(20);
  735. }
  736. .create-card {
  737. display: flex;
  738. gap: px2rpx(30);
  739. flex-wrap: wrap;
  740. }
  741. }
  742. .card-content {
  743. margin-top: px2rpx(30);
  744. padding: px2rpx(16);
  745. width: px2rpx(300);
  746. .account-name {
  747. display: block;
  748. font-size: px2rpx(18);
  749. font-weight: 600;
  750. color: var(--bs-emphasis-color);
  751. padding-bottom: px2rpx(16);
  752. padding-left: px2rpx(20);
  753. border-left: 1px solid #f0f2f5;
  754. }
  755. .info-row {
  756. padding-left: px2rpx(20);
  757. padding-bottom: px2rpx(12);
  758. border-left: 1px solid #f0f2f5;
  759. .info-label {
  760. font-size: px2rpx(15);
  761. line-height: px2rpx(30);
  762. color: #7f8c8d;
  763. }
  764. .info-value {
  765. font-size: px2rpx(14);
  766. font-weight: 500;
  767. color: var(--bs-emphasis-color);
  768. }
  769. .link-item {
  770. line-height: px2rpx(20);
  771. font-size: px2rpx(12);
  772. letter-spacing: px2rpx(0.5);
  773. color: #cf1322;
  774. text-decoration: underline;
  775. cursor: pointer;
  776. &:active {
  777. opacity: 0.7;
  778. }
  779. }
  780. }
  781. .link-wrapper {
  782. display: flex;
  783. align-items: center;
  784. justify-content: flex-end;
  785. margin-top: px2rpx(8);
  786. padding-top: px2rpx(8);
  787. border-top: 1rpx solid #f0f2f5;
  788. .link-text {
  789. font-size: px2rpx(14);
  790. color: #007aff;
  791. margin-right: px2rpx(4);
  792. }
  793. .link-icon {
  794. font-size: px2rpx(14);
  795. color: #007aff;
  796. }
  797. }
  798. }
  799. </style>