create-account.vue 24 KB

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