create-account.vue 25 KB

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