create-account.vue 25 KB

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