ApplyRecord.vue 24 KB

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