create-account.vue 28 KB

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