create-account.vue 23 KB

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