ApplyRecord.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068
  1. <template>
  2. <view class="page">
  3. <view class="step">
  4. <view v-for="item in stepList" :key="item.id" :class="step >= item.id ? 'step-item step-active' : 'step-item'">
  5. <view v-t="t(item.name)" class="step-item-content"></view>
  6. </view>
  7. </view>
  8. <view class="form-box">
  9. <view v-if="step == 1" class="status-box">
  10. <view class="status">
  11. <template v-if="cardInfo.tradeType == '1'">
  12. <text v-if="cardInfo.tradeStatus == '2'" v-t="'card.Info.t8'"></text>
  13. <text v-else-if="cardInfo.tradeStatus == '3'" v-t="'card.Info.t9'"></text>
  14. <text v-else v-t="'card.Info.t5'"></text>
  15. </template>
  16. <template v-if="cardInfo.tradeType == '2'">
  17. <text v-if="cardInfo.tradeStatus == '2'" v-t="'card.Info.t12'"></text>
  18. <text v-else-if="cardInfo.tradeStatus == '3'" v-t="'card.Info.t13'"></text>
  19. <text v-else v-t="'card.Info.t11'"></text>
  20. </template>
  21. </view>
  22. <template v-if="cardInfo.tradeType == '1'">
  23. <template v-if="cardInfo.tradeStatus == '1'">
  24. <view v-t="'card.Info.s31'"></view>
  25. <image class="imgs" mode="widthFix" src="/static/images/card/img1.png" alt="" srcset="" />
  26. </template>
  27. <template v-if="cardInfo.tradeStatus == '3'">
  28. <view v-t="'card.Info.s32'"></view>
  29. <image class="imgs" mode="widthFix" src="/static/images/card/img4.png" alt="" srcset="" />
  30. </template>
  31. </template>
  32. <template v-if="cardInfo.tradeType == '2'">
  33. <template v-if="cardInfo.tradeStatus == '1'">
  34. <view v-t="'card.Info.s32'"></view>
  35. <image class="imgs" mode="widthFix" src="/static/images/card/img1.png" alt="" srcset="" />
  36. </template>
  37. <template v-if="cardInfo.tradeStatus == '2'">
  38. <view v-t="'card.Info.s33'"></view>
  39. <image class="imgs" mode="widthFix" src="/static/images/card/img3.png" alt="" srcset="" />
  40. </template>
  41. </template>
  42. </view>
  43. <view v-if="step == 2" class="status-box">
  44. <view class="status">
  45. <text v-if="cardInfo.approveStatus == '2'" v-t="'card.Info.t2'"></text>
  46. <text v-else-if="cardInfo.approveStatus == '3'" v-t="'card.Info.t3'"></text>
  47. <text v-else v-t="'card.Info.t1'"></text>
  48. </view>
  49. <template v-if="cardInfo.approveStatus == '1'">
  50. <view v-t="'card.Info.s34'"></view>
  51. <image class="imgs" mode="widthFix" src="/static/images/card/img1.png" alt="" srcset="" />
  52. </template>
  53. <template v-if="cardInfo.approveStatus == '3'">
  54. <view v-t="'card.Info.s35'"></view>
  55. <image class="imgs" mode="widthFix" src="/static/images/card/img4.png" alt="" srcset="" />
  56. </template>
  57. </view>
  58. <view v-if="step == 3" class="status-box">
  59. <template v-if="cardInfo.status == 'success'">
  60. <template v-if="cardInfo.logisticsStatus">
  61. <view class="success-step"
  62. v-for="key in Object.keys(logisticsStatusMap).filter(k => Number(k) <= cardInfo.logisticsStatus)"
  63. :key="key">
  64. <view class="status">
  65. <image class="status-img" src="/static/images/card/step-icon.png" alt="" />
  66. <text>{{ t(logisticsStatusMap[key]) }}</text>
  67. </view>
  68. <view class="title">
  69. <text>{{ t(logisticsTitleMap[key]) }} </text>
  70. </view>
  71. </view>
  72. <view>
  73. <view class="qr-container" @click="handleQrClick(cardGuide)">
  74. <QrCode width="200" height="200" :text="cardGuide"></QrCode>
  75. </view>
  76. <br />
  77. <text v-t="'card.New3.p10'"></text>
  78. </view>
  79. </template>
  80. <image class="imgs" mode="widthFix" src="/static/images/card/img5.png" alt="" srcset="" />
  81. <view class="step-box">
  82. <view class="step-item">
  83. <view class="ids">1</view>
  84. <view v-t="'card.Info.s22'" class="k"></view>
  85. <view v-t="'card.Info.s23'" class="v"></view>
  86. </view>
  87. <view class="step-item">
  88. <view class="ids">2</view>
  89. <view v-t="'card.Info.s24'" class="k"></view>
  90. <view v-t="'card.Info.s25'" class="v"></view>
  91. </view>
  92. <view class="step-item">
  93. <view class="ids">3</view>
  94. <view v-t="'card.Info.s26'" class="k"></view>
  95. <view v-t="'card.Info.s27'" class="v"></view>
  96. </view>
  97. <view class="step-item">
  98. <view class="ids">4</view>
  99. <view v-t="'card.Info.s28'" class="k"></view>
  100. <view v-t="'card.Info.s29'" class="v"></view>
  101. <view v-t="'card.Info.s30'" class="v"></view>
  102. </view>
  103. </view>
  104. <view v-t="'card.Info.s21'" class="f"></view>
  105. </template>
  106. <template v-else-if="cardInfo.status == 'fail'">
  107. <view class="status">
  108. <text v-t="'card.Info.t7'"></text>
  109. </view>
  110. <view v-t="'card.Info.s37'"></view>
  111. <image class="imgs" mode="widthFix" src="/static/images/card/img4.png" alt="" srcset="" />
  112. </template>
  113. <template v-else>
  114. <view class="status">
  115. <text v-if="cardInfo.status === 'processing'" v-t="'card.Info.t5'"></text>
  116. <text v-else v-t="'card.Info.t10'"></text>
  117. </view>
  118. <view v-t="'card.Info.s38'"></view>
  119. <image class="imgs" mode="widthFix" src="/static/images/card/img1.png" alt="" srcset="" />
  120. </template>
  121. </view>
  122. </view>
  123. <view v-if="cardInfo.cardName && !props.type" class="card-info1">
  124. <view class="card-title">{{ cardInfo.cardName }}</view>
  125. <view class="card-content">{{ cardInfo.cardDesc }}</view>
  126. <ul class="card-list">
  127. <li>
  128. <text class="label">{{ t(`card.New1.d13`) }}</text>
  129. <text>{{ cardInfo.mailingAreaCode }} {{ cardInfo.mailingMobile }}</text>
  130. </li>
  131. <li>
  132. <text class="label">{{ t("card.New1.d8") }}</text>
  133. <text>{{ cardInfo.mailingCountry || "--" }}</text>
  134. </li>
  135. <li>
  136. <text class="label">{{ t("card.New1.d9") }}</text>
  137. <text>{{ cardInfo.mailingTown }}</text>
  138. </li>
  139. <li>
  140. <text class="label">{{ t("card.New1.d10") }}</text>
  141. <text>{{ cardInfo.mailingAddressCn }}</text>
  142. </li>
  143. <li>
  144. <text class="label">{{ t("card.New1.d11") }}</text>
  145. <text>{{ cardInfo.mailingAddress }}</text>
  146. </li>
  147. <li>
  148. <text class="label">{{ t("card.New1.d12") }}</text>
  149. <text>{{ cardInfo.mailingPostCode }}</text>
  150. </li>
  151. <li class="one" :class="statusClass(cardInfo.status)">
  152. <text class="label">{{ t("card.Status.v5") }}</text>
  153. <text>{{
  154. statusMap[cardInfo.status] || t("card.Status.t3")
  155. }}</text>
  156. </li>
  157. </ul>
  158. </view>
  159. </view>
  160. </template>
  161. <script setup lang="ts">
  162. import { ref, onMounted, watch, computed } from "vue";
  163. import { useI18n } from "vue-i18n";
  164. import useCardStore from "@/stores/use-card-store";
  165. import QrCode from "@/components/QrCode.vue";
  166. import { ucardApi } from "@/api/ucard";
  167. import { Image } from "vant";
  168. const props = defineProps({
  169. id: String,
  170. type: String,
  171. });
  172. const cardStore = useCardStore();
  173. const applyList = computed(() => cardStore.applyCard);
  174. const { t } = useI18n();
  175. const cardInfo = ref({
  176. status: "success",
  177. tradeStatus: 2,
  178. approveStatus: 2,
  179. tradeType: 1,
  180. });
  181. const isShowBtn = ref(false);
  182. const dateRange = ref<[string, string] | undefined>(undefined);
  183. dateRange.value = ["", ""];
  184. const stepList = [
  185. { id: 1, name: "card.Info.s39", status: "finish" },
  186. { id: 2, name: "card.Info.s40", status: "process" },
  187. { id: 3, name: "card.Info.s41", status: "wait" },
  188. ];
  189. const logisticsStatusMap = ref({
  190. 1: 'card.New3.p1',
  191. 2: 'card.New3.p3',
  192. 3: 'card.New3.p5',
  193. 4: 'card.New3.p7'
  194. })
  195. const logisticsTitleMap = ref({
  196. 1: 'card.New3.p2',
  197. 2: 'card.New3.p4',
  198. 3: 'card.New3.p6',
  199. 4: 'card.New3.p8'
  200. })
  201. const step = ref(1);
  202. async function getKycList() {
  203. const b = applyList.value.filter((i) => {
  204. return i.kycStatus == null;
  205. });
  206. if (props.id) {
  207. let a = {
  208. status: "success",
  209. tradeStatus: 2,
  210. approveStatus: 2,
  211. tradeType: 1,
  212. };
  213. a = applyList.value.filter((item) => item.id == props.id)[0];
  214. if (a?.tradeStatus == 1) step.value = 1;
  215. if (a?.tradeStatus == 2 && a.tradeType == 1) step.value = 2;
  216. if (a?.approveStatus == 2) step.value = 3;
  217. cardInfo.value = a;
  218. if (a.status == 'success') getCardInfo(a.cardNumber);
  219. }
  220. }
  221. const statusMap: Record<string, string> = {
  222. success: t("card.Status.t6"),
  223. fail: t("card.Status.t7"),
  224. processing: t("card.Status.t3"),
  225. wait_process: t("card.Status.t3"),
  226. cancel: t("card.Status.t3"),
  227. };
  228. function statusClass(status: string) {
  229. switch (status) {
  230. case "success":
  231. return "one";
  232. case "fail":
  233. return "error";
  234. case "cancel":
  235. return "error";
  236. default:
  237. return "default";
  238. }
  239. }
  240. async function getCardInfo(cardNumber?: string) {
  241. try {
  242. if (props.type == "card") {
  243. isShowBtn.value = false;
  244. const res = await ucardApi.getCardInfo({ id: props.id || "" });
  245. if (res.code == 200) {
  246. cardInfo.value = { ...cardInfo.value, ...res.data };
  247. isShowBtn.value = true;
  248. }
  249. } else {
  250. if (!cardNumber) return;
  251. const res = await ucardApi.cardList({ page: { current: 1, row: 10 }, cardNumber })
  252. if (res.code == 200) {
  253. cardInfo.value = { ...cardInfo.value, ...res.data[0] };
  254. }
  255. }
  256. } catch (error) {
  257. console.log(error);
  258. }
  259. }
  260. onMounted(async () => {
  261. if (props.type == "card") {
  262. step.value = 3
  263. await getCardInfo();
  264. } else {
  265. getKycList();
  266. }
  267. });
  268. // 二维码目标链接
  269. const cardGuide = "https://secure.ucardwallet.com/card-guide";
  270. function handleQrClick(url) {
  271. if (!url) return;
  272. uni.showModal({
  273. title: t('pages.apply-record.index'),
  274. content: t('pages.apply-record.confirmOpen'),
  275. confirmText: t('pages.apply-record.open'),
  276. cancelText: t('common.cancel'),
  277. success: (res) => {
  278. if (!res.confirm) return;
  279. try {
  280. // #ifdef APP-PLUS
  281. plus.runtime.openURL(url);
  282. return;
  283. // #endif
  284. // #ifdef H5
  285. window.open(url, "_blank");
  286. return;
  287. // #endif
  288. } catch (e) {
  289. }
  290. uni.setClipboardData({
  291. data: url,
  292. success() {
  293. uni.showToast({ title: t("pages.apply-record.copyPrompt"), icon: "none" });
  294. },
  295. fail() {
  296. uni.showToast({ title: t("pages.apply-record.openFailed"), icon: "none" });
  297. },
  298. });
  299. },
  300. });
  301. }
  302. </script>
  303. <style scoped lang="scss">
  304. @import "@/uni.scss";
  305. .page {
  306. padding-bottom: px2rpx(20);
  307. box-sizing: border-box;
  308. min-height: 100vh;
  309. background: var(--main-bg);
  310. }
  311. .page1 {
  312. padding: px2rpx(16);
  313. }
  314. .card-wrapper {
  315. position: absolute;
  316. width: 100%;
  317. height: 100%;
  318. transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  319. will-change: transform;
  320. }
  321. .card-info {
  322. background: url("/static/images/visa.png") no-repeat center center;
  323. background-size: cover;
  324. border-radius: 0.426667rem;
  325. padding: 0.64rem 0.533333rem 0 0.533333rem;
  326. color: var(--main-yellow);
  327. box-shadow: 0 0.106667rem 0.533333rem rgba(214, 255, 0, 0.1);
  328. border: 1px solid rgba(214, 255, 0, 0.2);
  329. width: 100%;
  330. height: 100%;
  331. display: flex;
  332. justify-content: flex-start;
  333. align-items: baseline;
  334. flex-wrap: wrap;
  335. transform-style: preserve-3d;
  336. transition: transform 0.6s ease;
  337. flex-direction: column;
  338. &.flipping {
  339. transform: rotateY(180deg);
  340. }
  341. .card-b {
  342. display: flex;
  343. flex-wrap: wrap;
  344. justify-content: center;
  345. align-items: center;
  346. text {
  347. display: block;
  348. }
  349. .valid {
  350. font-size: var(--font-size-14);
  351. font-weight: 500;
  352. color: var(--black);
  353. text-shadow: 0 0 px2rpx(8) rgba(214, 255, 0, 0.2);
  354. gap: px2rpx(8);
  355. padding-right: px2rpx(30);
  356. line-height: px2rpx(20);
  357. }
  358. .lable {
  359. font-size: var(--font-size-10);
  360. font-weight: 400;
  361. }
  362. }
  363. }
  364. .card-front,
  365. .card-back {
  366. position: absolute;
  367. top: 0;
  368. left: 0;
  369. width: 100%;
  370. height: 100%;
  371. padding: px2rpx(24) px2rpx(20) px2rpx(16) px2rpx(20);
  372. backface-visibility: hidden;
  373. -webkit-backface-visibility: hidden;
  374. }
  375. .card-back {
  376. transform: rotateY(180deg);
  377. }
  378. .owner {
  379. font-size: var(--font-size-14);
  380. line-height: 2;
  381. margin-bottom: px2rpx(8);
  382. text-shadow: 0 0 px2rpx(10) rgba(214, 255, 0, 0.3);
  383. display: flex;
  384. align-items: center;
  385. gap: px2rpx(8);
  386. i {
  387. font-size: var(--font-size-18);
  388. color: var(--main-yellow);
  389. }
  390. }
  391. .number {
  392. color: var(--black);
  393. font-size: var(--font-size-18);
  394. font-weight: 500;
  395. line-height: 3;
  396. letter-spacing: px2rpx(2);
  397. margin: px2rpx(24) 0;
  398. text-shadow: 0 0 px2rpx(15) rgba(214, 255, 0, 0.4);
  399. display: flex;
  400. align-items: center;
  401. gap: px2rpx(8);
  402. }
  403. .actions {
  404. display: flex;
  405. justify-content: space-between;
  406. margin: px2rpx(20) 0 px2rpx(16) 0;
  407. }
  408. .action-btn {
  409. color: var(--white);
  410. border: none;
  411. border-radius: px2rpx(12);
  412. padding: px2rpx(10) px2rpx(2);
  413. font-size: var(--font-size-14);
  414. cursor: pointer;
  415. display: flex;
  416. flex-direction: column;
  417. align-items: center;
  418. gap: px2rpx(4);
  419. transition: all 0.3s ease;
  420. text-align: center;
  421. color: #1a1a1a;
  422. .btn-icon {
  423. width: px2rpx(46);
  424. height: px2rpx(46);
  425. border-radius: 50%;
  426. background: #ff4766;
  427. display: flex;
  428. justify-content: center;
  429. align-items: center;
  430. }
  431. i {
  432. display: inline-block;
  433. line-height: px2rpx(46);
  434. width: px2rpx(22);
  435. height: px2rpx(22);
  436. color: var(--black);
  437. margin-bottom: px2rpx(4);
  438. }
  439. }
  440. .balance-wrap {
  441. display: flex;
  442. align-items: center;
  443. justify-content: space-between;
  444. margin: px2rpx(30) 0;
  445. font-size: var(--font-size-14);
  446. }
  447. .balance-content {
  448. font-size: var(--font-size-20);
  449. color: var(--white);
  450. font-weight: bold;
  451. margin-bottom: px2rpx(24);
  452. }
  453. .balance-title {
  454. font-size: var(--font-size-12);
  455. color: var(--white);
  456. }
  457. .currency {
  458. display: flex;
  459. align-items: center;
  460. font-size: var(--font-size-14);
  461. margin-right: px2rpx(12);
  462. color: var(--white);
  463. }
  464. .flag {
  465. width: px2rpx(24);
  466. height: px2rpx(24);
  467. border-radius: 50%;
  468. margin-right: px2rpx(6);
  469. }
  470. .balance {
  471. font-size: var(--font-size-14);
  472. font-weight: bold;
  473. color: var(--white);
  474. }
  475. .transactions {
  476. border-radius: px2rpx(16);
  477. margin-bottom: px2rpx(16);
  478. padding: px2rpx(16) 0;
  479. }
  480. .trans-icon {
  481. width: px2rpx(40);
  482. height: px2rpx(40);
  483. display: flex;
  484. background: var(--main-bg);
  485. box-shadow: 0 px2rpx(4) px2rpx(12) rgba(214, 255, 0, 0.1);
  486. border-radius: px2rpx(8);
  487. margin-right: px2rpx(12);
  488. align-items: center;
  489. justify-content: center;
  490. .trans-icon-inner {
  491. width: px2rpx(36);
  492. height: px2rpx(36);
  493. background: rgba(212, 206, 206, 0.24);
  494. border-radius: 50%;
  495. display: flex;
  496. align-items: center;
  497. justify-content: center;
  498. }
  499. i {
  500. color: #000;
  501. width: px2rpx(18);
  502. height: px2rpx(18);
  503. font-size: var(--font-size-16);
  504. border-radius: 50%;
  505. }
  506. }
  507. .trans-header {
  508. display: flex;
  509. justify-content: space-between;
  510. align-items: center;
  511. margin-bottom: px2rpx(10);
  512. color: var(--white);
  513. i {
  514. font-size: var(--font-size-20);
  515. cursor: pointer;
  516. }
  517. }
  518. ::v-deep .van-calendar {
  519. background: var(--action-bg);
  520. }
  521. ::v-deep .van-calendar__month-mark {
  522. display: none;
  523. }
  524. ::v-deep .van-calendar__header-subtitle {
  525. color: var(--white);
  526. }
  527. ::v-deep .van-calendar__header-title {
  528. color: var(--white);
  529. }
  530. ::v-deep .van-calendar__month-title {
  531. color: var(--main-yellow);
  532. }
  533. .trans-title {
  534. font-size: var(--font-size-20);
  535. color: var(--white);
  536. font-weight: bold;
  537. }
  538. .date-field {
  539. width: px2rpx(200);
  540. :deep(.van-field__control) {
  541. color: var(--white);
  542. }
  543. :deep(.van-field__placeholder) {
  544. color: var(--gray);
  545. }
  546. }
  547. :deep(.van-popup) {
  548. background: var(--action-bg);
  549. }
  550. :deep(.van-picker__toolbar) {
  551. background: var(--action-bg);
  552. border-bottom: 1px solid var(--border);
  553. }
  554. :deep(.van-picker__title) {
  555. color: var(--white);
  556. }
  557. :deep(.van-picker__confirm) {
  558. color: var(--main-yellow);
  559. }
  560. :deep(.van-picker__cancel) {
  561. color: var(--gray);
  562. }
  563. :deep(.van-picker-column) {
  564. color: var(--white);
  565. }
  566. :deep(.van-picker-column__item) {
  567. color: var(--white);
  568. }
  569. :deep(.van-picker-column__item--selected) {
  570. color: var(--main-yellow);
  571. }
  572. .transaction {
  573. display: flex;
  574. align-items: center;
  575. justify-content: space-between;
  576. padding: px2rpx(10) 0;
  577. /* border-bottom: 1px solid var(--border); */
  578. font-size: var(--font-size-16);
  579. }
  580. .transaction:last-child {
  581. border-bottom: none;
  582. }
  583. .trans-left {
  584. width: px2rpx(200);
  585. }
  586. .trans-right {
  587. width: px2rpx(100);
  588. view {
  589. text-align: right;
  590. }
  591. }
  592. .trans-type {
  593. color: var(--white);
  594. font-size: var(--font-size-14);
  595. line-height: 2;
  596. }
  597. .trans-desc {
  598. font-size: var(--font-size-12);
  599. color: var(--gray);
  600. }
  601. .trans-amount {
  602. font-size: var(--font-size-14);
  603. color: var(--white);
  604. line-height: 2;
  605. }
  606. .trans-date {
  607. color: var(--gray);
  608. font-size: var(--font-size-12);
  609. }
  610. .card-swiper {
  611. position: relative;
  612. overflow: hidden;
  613. margin-bottom: px2rpx(20);
  614. padding-bottom: px2rpx(5);
  615. }
  616. .swiper-container {
  617. position: relative;
  618. width: 100%;
  619. height: px2rpx(209);
  620. touch-action: pan-y pinch-zoom;
  621. user-select: none;
  622. }
  623. .card-info {
  624. position: absolute;
  625. width: 100%;
  626. height: 100%;
  627. transition: transform 0.3s ease;
  628. will-change: transform;
  629. }
  630. .swiper-controls {
  631. display: flex;
  632. align-items: center;
  633. justify-content: center;
  634. margin-top: px2rpx(16);
  635. gap: px2rpx(16);
  636. }
  637. .swiper-btn {
  638. background: var(--action-bg);
  639. border: none;
  640. border-radius: 50%;
  641. width: px2rpx(32);
  642. height: px2rpx(32);
  643. display: flex;
  644. align-items: center;
  645. justify-content: center;
  646. cursor: pointer;
  647. color: var(--main-yellow);
  648. &:disabled {
  649. opacity: 0.5;
  650. cursor: not-allowed;
  651. }
  652. i {
  653. font-size: var(--font-size-20);
  654. }
  655. }
  656. .swiper-dots {
  657. display: flex;
  658. gap: px2rpx(8);
  659. }
  660. .dot {
  661. width: px2rpx(8);
  662. height: px2rpx(8);
  663. border-radius: 50%;
  664. background: var(--action-bg);
  665. cursor: pointer;
  666. transition: all 0.3s ease;
  667. &.active {
  668. background: var(--main-yellow);
  669. transform: scale(1.2);
  670. }
  671. }
  672. .swiper-indicators {
  673. display: flex;
  674. justify-content: center;
  675. margin-top: px2rpx(16);
  676. gap: px2rpx(8);
  677. }
  678. .indicator-dot {
  679. width: px2rpx(8);
  680. height: px2rpx(8);
  681. border-radius: 50%;
  682. background: var(--gray);
  683. cursor: pointer;
  684. transition: all 0.3s ease;
  685. &.active {
  686. background: var(--main-yellow);
  687. transform: scale(1.2);
  688. }
  689. }
  690. .flags {
  691. width: px2rpx(20);
  692. height: px2rpx(20);
  693. cursor: pointer;
  694. position: absolute;
  695. top: px2rpx(10);
  696. right: px2rpx(10);
  697. }
  698. .cwg-btn {
  699. margin: px2rpx(36) 0 px2rpx(80) 0;
  700. }
  701. .card-info1 {
  702. width: 100%;
  703. }
  704. .card-chip {
  705. position: absolute;
  706. right: px2rpx(12);
  707. top: px2rpx(16);
  708. width: px2rpx(18);
  709. height: px2rpx(12);
  710. background: linear-gradient(145deg, #f5f5f5, #eaeaea);
  711. border-radius: px2rpx(3);
  712. border: 1px solid #bbb;
  713. box-shadow: 0 px2rpx(1) px2rpx(3) rgba(0, 0, 0, 0.1);
  714. }
  715. .card-title {
  716. margin: px2rpx(24) 0 px2rpx(12) 0;
  717. font-weight: 600;
  718. font-size: px2rpx(22);
  719. line-height: px2rpx(28);
  720. text-align: left;
  721. color: #1a1a1a;
  722. }
  723. .card-list {
  724. list-style: none;
  725. padding: px2rpx(12) 0;
  726. margin: 0;
  727. width: 100%;
  728. flex: 1;
  729. overflow-y: auto;
  730. box-shadow: 0 px2rpx(4) px2rpx(20) rgba(140, 145, 143, 0.194);
  731. border-radius: px2rpx(10);
  732. }
  733. .card-list li {
  734. display: flex;
  735. justify-content: space-between;
  736. font-size: var(--font-size-12);
  737. color: #1a1a1a;
  738. padding: px2rpx(12) px2rpx(24);
  739. transition: all 0.3s ease;
  740. position: relative;
  741. font-family: "Roboto";
  742. font-style: normal;
  743. font-weight: 600;
  744. font-size: px2rpx(14);
  745. line-height: px2rpx(20);
  746. }
  747. .label {
  748. display: inline-block;
  749. font-weight: 600;
  750. font-size: px2rpx(14);
  751. line-height: px2rpx(20);
  752. color: #8e8a8a;
  753. width: px2rpx(100);
  754. white-space: nowrap;
  755. overflow: hidden;
  756. text-overflow: ellipsis;
  757. padding-right: px2rpx(10);
  758. }
  759. .card-list li:hover {
  760. background: rgba(73, 247, 166, 0.1);
  761. border-radius: px2rpx(6);
  762. }
  763. .card-list li:last-child {
  764. margin-bottom: 0;
  765. }
  766. .card-list li text:first-child {
  767. color: #bbb;
  768. }
  769. .card-content {
  770. font-size: var(--font-size-16);
  771. color: #474747;
  772. margin: 0 0 px2rpx(26) 0;
  773. text-align: left;
  774. line-height: px2rpx(24);
  775. }
  776. .a1 {
  777. flex: 1;
  778. }
  779. .card-list {
  780. .one {
  781. margin: px2rpx(12) px2rpx(24);
  782. padding: px2rpx(12) 0;
  783. border-top: 1px dashed #beb6b6;
  784. color: #329644;
  785. font-family: Roboto;
  786. font-size: px2rpx(28);
  787. font-style: normal;
  788. font-weight: 700;
  789. line-height: px2rpx(36);
  790. align-items: flex-end;
  791. .label {
  792. color: #343434;
  793. font-family: Roboto;
  794. font-size: px2rpx(16);
  795. font-style: normal;
  796. font-weight: 600;
  797. line-height: px2rpx(24);
  798. }
  799. }
  800. .error {
  801. color: #d32f2f;
  802. }
  803. .default {
  804. color: #009deb;
  805. }
  806. }
  807. .step {
  808. display: flex;
  809. align-items: flex-start;
  810. padding: px2rpx(20) 0;
  811. color: #000;
  812. .step-item {
  813. width: px2rpx(315);
  814. position: relative;
  815. text-align: center;
  816. margin-right: px2rpx(20);
  817. text-align: left;
  818. font-size: px2rpx(16);
  819. padding-top: px2rpx(20);
  820. &::after {
  821. content: "";
  822. position: absolute;
  823. top: 0;
  824. right: 0;
  825. width: 100%;
  826. z-index: 1;
  827. height: px2rpx(5);
  828. position: absolute;
  829. background: #f1f1f1;
  830. }
  831. }
  832. .step-active {
  833. font-weight: bold;
  834. &::after {
  835. background: #eb3f57;
  836. }
  837. }
  838. }
  839. .status-box {
  840. width: 100%;
  841. display: flex;
  842. align-items: flex-start;
  843. justify-content: flex-start;
  844. flex-wrap: wrap;
  845. padding: px2rpx(20) 0;
  846. .status {
  847. font-weight: 600;
  848. font-size: px2rpx(22);
  849. line-height: px2rpx(28);
  850. text-align: left;
  851. color: #1a1a1a;
  852. display: flex;
  853. align-items: center;
  854. }
  855. .status-img {
  856. width: px2rpx(20);
  857. height: px2rpx(20);
  858. padding-right: px2rpx(10);
  859. flex-shrink: 0;
  860. }
  861. .qr-container {
  862. justify-content: flex-start;
  863. }
  864. view {
  865. width: 100%;
  866. text-align: start;
  867. color: #6f6f6f;
  868. font-size: px2rpx(16);
  869. font-weight: 400;
  870. word-wrap: break-word;
  871. line-height: px2rpx(32);
  872. text {
  873. display: block;
  874. padding: px2rpx(8) 0;
  875. }
  876. }
  877. .a-title {
  878. color: #333333;
  879. font-size: px2rpx(18);
  880. font-weight: 500;
  881. word-wrap: break-word;
  882. margin-top: px2rpx(44);
  883. }
  884. .step-box {
  885. width: 100%;
  886. display: flex;
  887. flex-wrap: wrap;
  888. justify-content: space-between;
  889. margin-top: px2rpx(20);
  890. .step-item {
  891. width: 100%;
  892. padding: 0 0 px2rpx(20) px2rpx(40);
  893. text-align: center;
  894. position: relative;
  895. &::after {
  896. content: "";
  897. position: absolute;
  898. top: 0;
  899. left: px2rpx(15);
  900. width: 0;
  901. height: 100%;
  902. border-left: 1px dashed #ccc;
  903. z-index: 1;
  904. }
  905. &:last-child {
  906. &::after {
  907. display: none;
  908. }
  909. }
  910. .ids {
  911. position: absolute;
  912. left: 0;
  913. top: 0;
  914. width: px2rpx(30);
  915. height: px2rpx(30);
  916. position: absolute;
  917. color: #000;
  918. line-height: px2rpx(30);
  919. background-color: #fff;
  920. text-align: center;
  921. border-radius: px2rpx(9999);
  922. border: 1px #ccc dashed;
  923. z-index: 12;
  924. padding: 0;
  925. }
  926. .k {
  927. font-size: px2rpx(14);
  928. color: #333333;
  929. font-weight: bold;
  930. padding: 0;
  931. }
  932. .v {
  933. font-size: px2rpx(14);
  934. color: #6f6f6f;
  935. padding: 0;
  936. }
  937. }
  938. }
  939. .f {
  940. margin: px2rpx(20) 0 0 0;
  941. color: #333333;
  942. font-size: px2rpx(15);
  943. font-family: PingFang SC;
  944. font-weight: 500;
  945. word-wrap: break-word;
  946. }
  947. }
  948. </style>