create-account.vue 27 KB

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