orderDetail.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843
  1. <template>
  2. <view class="container">
  3. <!-- 加载中 -->
  4. <view v-if="loading" class="loading-wrapper">
  5. <text>加载中...</text>
  6. </view>
  7. <!-- 订单详情 -->
  8. <view v-else-if="order">
  9. <!-- 订单状态 -->
  10. <view class="card status-card">
  11. <view class="status-left">
  12. <view class="status-icon-wrapper" :class="getStatusClass(order.status)">
  13. <text class="status-icon">✓</text>
  14. </view>
  15. <text class="status-text">{{ order.statusText || getStatusText(order.status) }}</text>
  16. </view>
  17. <!-- 开票状态暂时隐藏 -->
  18. <!-- <text class="invoice-status">未开票</text> -->
  19. </view>
  20. <!-- 订单明细 -->
  21. <view class="card detail-card">
  22. <view class="card-header">
  23. <text class="card-title">订单明细</text>
  24. </view>
  25. <view v-for="(product, index) in order.products" :key="index" class="product-item">
  26. <view class="product-image">
  27. <image v-if="product.image" :src="product.image" mode="aspectFill" lazy-load></image>
  28. <view v-else class="image-placeholder"></view>
  29. </view>
  30. <view class="product-info">
  31. <text class="product-name">{{ product.name }}</text>
  32. <text class="product-price">销售单价 ¥{{ product.price.toFixed(2) }}</text>
  33. </view>
  34. <text class="product-quantity">x{{ product.quantity }}</text>
  35. </view>
  36. <view v-if="order.discountAmount && order.discountAmount > 0" class="amount-row discount-row">
  37. <text class="amount-label">优惠金额</text>
  38. <view class="amount-value-wrapper">
  39. <text class="amount-prefix">-¥</text>
  40. <text class="amount-discount">{{ order.discountAmount.toFixed(2) }}</text>
  41. </view>
  42. </view>
  43. <view class="amount-row">
  44. <text class="amount-label">实付款</text>
  45. <view class="amount-value-wrapper">
  46. <text class="amount-prefix">合计</text>
  47. <text class="amount-symbol">¥</text>
  48. <text class="amount-integer">{{ (order.paidAmount || order.totalAmount || 0).toFixed(2) }}</text>
  49. </view>
  50. </view>
  51. <!-- 退款历史记录 -->
  52. <view v-if="order.refunds && order.refunds.length > 0" class="refund-history">
  53. <view class="history-title">退款记录</view>
  54. <view v-for="(record, index) in order.refunds" :key="index" class="history-item">
  55. <view class="history-timeline">
  56. <view :class="['timeline-dot', record.status === 'REFUNDED' ? 'success' : record.status === 'REJECTED' ? 'rejected' : 'pending']"></view>
  57. <view v-if="index < order.refunds.length - 1" class="timeline-line"></view>
  58. </view>
  59. <view class="history-content">
  60. <view class="history-header">
  61. <text :class="['history-status', record.status === 'REFUNDED' ? 'success' : record.status === 'REJECTED' ? 'rejected' : 'pending']">
  62. {{ record.status === 'REFUNDED' ? '已退款' : record.status === 'REJECTED' ? '已拒绝' : '审核中' }}
  63. </text>
  64. <text class="history-amount">¥{{ (record.refundAmount || 0).toFixed(2) }}</text>
  65. </view>
  66. <view class="history-meta">
  67. <text class="history-time">{{ record.createTime }}</text>
  68. </view>
  69. <text v-if="record.reason" class="history-reason">原因:{{ record.reason }}</text>
  70. <text v-if="record.remark && record.status === 'REJECTED'" class="history-reject-reason">拒绝原因:{{ record.remark }}</text>
  71. <!-- 退款商品 -->
  72. <view v-if="record.items && record.items.length > 0" class="history-items">
  73. <view v-for="(item, i) in record.items" :key="i" class="history-item-row">
  74. <text class="item-name">{{ item.productName }}</text>
  75. <text class="item-meta">×{{ item.quantity }} ¥{{ (item.refundAmount || 0).toFixed(2) }}</text>
  76. </view>
  77. </view>
  78. </view>
  79. </view>
  80. </view>
  81. <view class="card-footer-actions">
  82. <button v-if="canRefund(order) && order.refundStatus !== 'PENDING'" class="action-btn-outline" @click="applyRefund">申请退款</button>
  83. </view>
  84. </view>
  85. <!-- 订单信息 -->
  86. <view class="card info-card">
  87. <view class="card-header">
  88. <text class="card-title">订单信息</text>
  89. </view>
  90. <view class="info-list">
  91. <view class="info-row" v-if="order.orderName">
  92. <text class="info-label">订单名称</text>
  93. <text class="info-value">{{ order.orderName }}</text>
  94. </view>
  95. <view class="info-row">
  96. <text class="info-label">订单编号</text>
  97. <view class="info-value-group">
  98. <text class="info-value">{{ order.orderNo }}</text>
  99. <view class="copy-btn" @click="copyText(order.orderNo)">
  100. <view class="copy-icon-box"></view>
  101. </view>
  102. </view>
  103. </view>
  104. <view class="info-row" v-if="order.hahaOrderNo">
  105. <text class="info-label">哈哈订单号</text>
  106. <view class="info-value-group">
  107. <text class="info-value">{{ order.hahaOrderNo }}</text>
  108. <view class="copy-btn" @click="copyText(order.hahaOrderNo)">
  109. <view class="copy-icon-box"></view>
  110. </view>
  111. </view>
  112. </view>
  113. <view class="info-row">
  114. <text class="info-label">下单时间</text>
  115. <text class="info-value">{{ formatTime(order.createTime) }}</text>
  116. </view>
  117. <view class="info-row" v-if="order.payTime">
  118. <text class="info-label">支付时间</text>
  119. <text class="info-value">{{ formatTime(order.payTime) }}</text>
  120. </view>
  121. <view class="info-row">
  122. <text class="info-label">支付方式</text>
  123. <text class="info-value">微信</text>
  124. </view>
  125. <view v-if="order.payScoreOrderId" class="info-row">
  126. <text class="info-label">支付详情</text>
  127. <view class="info-link" @click="viewPayDetail">
  128. <text class="link-text">查看详情</text>
  129. <text class="link-arrow" />
  130. </view>
  131. </view>
  132. <view class="info-row" v-if="order.storeName">
  133. <text class="info-label">门店</text>
  134. <text class="info-value">{{ order.storeName }}</text>
  135. </view>
  136. <view class="info-row">
  137. <text class="info-label">设备编号</text>
  138. <text class="info-value">{{ order.deviceId }}</text>
  139. </view>
  140. <view class="info-row" v-if="order.confidence">
  141. <text class="info-label">AI识别置信度</text>
  142. <text class="info-value">{{ (order.confidence * 100).toFixed(1) }}%</text>
  143. </view>
  144. <view class="info-row" v-if="order.videoUrl">
  145. <text class="info-label">识别视频</text>
  146. <view class="info-link" @click="viewVideo(order.videoUrl)">
  147. <text class="link-text">查看视频</text>
  148. <text class="link-arrow">></text>
  149. </view>
  150. </view>
  151. </view>
  152. </view>
  153. </view>
  154. <!-- 联系客服 -->
  155. <view class="footer-note">
  156. <CustomerServiceButton
  157. mode="link"
  158. :title="'订单 ' + (order?.orderNo || '')"
  159. :path="'/pages/orderDetail/orderDetail?orderId=' + String(order?.id || '')"
  160. >
  161. <text>如有疑问,请联系客服</text>
  162. </CustomerServiceButton>
  163. </view>
  164. </view>
  165. </template>
  166. <script setup lang="ts">
  167. import { ref, onMounted } from 'vue';
  168. import { onShow } from '@dcloudio/uni-app';
  169. import { getOrderDetail } from '../../api/order';
  170. import type { OrderInfo } from '../../api/order';
  171. import { getPayscoreDetailSign } from '../../api/payscore';
  172. import { checkAuth } from '../../utils/auth';
  173. import { getStatusText, canRefund } from '../../utils/order';
  174. import { logger } from '../../utils/logger';
  175. const order = ref<OrderInfo | null>(null);
  176. const loading = ref(true);
  177. const orderId = ref<string | null>(null);
  178. const getStatusClass = (status: number) => {
  179. if (status === 1) return 'status-success';
  180. if (status === 0) return 'status-pending';
  181. if (status === 2) return 'status-cancelled';
  182. return '';
  183. };
  184. const formatTime = (time: string | undefined) => {
  185. if (!time) return '-';
  186. if (typeof time === 'string' && time.includes('-')) {
  187. return time.replace('T', ' ').substring(0, 19);
  188. }
  189. return time;
  190. };
  191. const loadOrderDetail = async () => {
  192. if (!orderId.value) {
  193. uni.showToast({ title: '订单ID不存在', icon: 'none' });
  194. return;
  195. }
  196. loading.value = true;
  197. try {
  198. uni.showLoading({ title: '加载中...' });
  199. const orderDetail = await getOrderDetail({ orderId: orderId.value });
  200. order.value = orderDetail;
  201. uni.hideLoading();
  202. } catch (error: any) {
  203. uni.hideLoading();
  204. logger.error('加载订单详情失败:', error);
  205. setTimeout(() => {
  206. uni.navigateBack();
  207. }, 1500);
  208. } finally {
  209. loading.value = false;
  210. }
  211. };
  212. onMounted(() => {
  213. if (!checkAuth()) {
  214. return;
  215. }
  216. const pages = getCurrentPages();
  217. const currentPage = pages[pages.length - 1] as any;
  218. const options = currentPage.options || {};
  219. if (options.orderId) {
  220. orderId.value = String(options.orderId);
  221. loadOrderDetail();
  222. } else {
  223. uni.showToast({ title: '订单ID不存在', icon: 'none' });
  224. setTimeout(() => {
  225. uni.navigateBack();
  226. }, 1500);
  227. }
  228. });
  229. // 从退款页返回时刷新退款状态
  230. onShow(() => {
  231. if (orderId.value) {
  232. loadOrderDetail();
  233. }
  234. });
  235. const applyRefund = () => {
  236. if (!order.value) return;
  237. uni.navigateTo({
  238. url: '/pages/refund/refund?orderId=' + String(order.value.id)
  239. });
  240. };
  241. const copyText = (text: string) => {
  242. uni.setClipboardData({
  243. data: text,
  244. success: () => {
  245. uni.showToast({ title: '复制成功', icon: 'success' });
  246. }
  247. });
  248. };
  249. const viewVideo = (url: string) => {
  250. uni.showToast({ title: '视频播放功能开发中', icon: 'none' });
  251. };
  252. const viewPayDetail = async () => {
  253. if (!order.value?.payScoreOrderId) return;
  254. try {
  255. uni.showLoading({ title: '加载中...' });
  256. const signData = await getPayscoreDetailSign({ outOrderNo: order.value.payScoreOrderId });
  257. uni.hideLoading();
  258. wx.openBusinessView({
  259. businessType: 'wxpayScoreDetail',
  260. extraData: {
  261. mch_id: signData.mchId,
  262. service_id: signData.serviceId,
  263. out_order_no: signData.outOrderNo,
  264. timestamp: signData.timestamp,
  265. nonce_str: signData.nonceStr,
  266. sign_type: signData.signType,
  267. sign: signData.sign,
  268. },
  269. success: () => {
  270. logger.log('[订单详情] 支付分订单详情页返回');
  271. },
  272. fail: (err: any) => {
  273. logger.error('[订单详情] openBusinessView fail:', err);
  274. const errMsg = err?.errMsg || '';
  275. if (!errMsg.includes('cancel')) {
  276. uni.showToast({ title: '打开支付详情失败', icon: 'none' });
  277. }
  278. },
  279. });
  280. } catch (error: any) {
  281. uni.hideLoading();
  282. logger.error('[订单详情] 获取支付分签名失败:', error);
  283. uni.showToast({ title: error?.message || '获取支付详情失败', icon: 'none' });
  284. }
  285. };
  286. </script>
  287. <style scoped lang="scss">
  288. .container {
  289. min-height: 100vh;
  290. background: linear-gradient(180deg, $color-primary-bg 0%, $color-bg-secondary 30%);
  291. padding: 24rpx;
  292. box-sizing: border-box;
  293. }
  294. .loading-wrapper {
  295. display: flex;
  296. align-items: center;
  297. justify-content: center;
  298. min-height: 400rpx;
  299. font-size: 28rpx;
  300. color: $color-text-secondary;
  301. }
  302. /* 通用卡片样式 */
  303. .card {
  304. background-color: $color-bg-primary;
  305. border-radius: $radius-lg;
  306. padding: 32rpx;
  307. margin-bottom: 24rpx;
  308. box-shadow: $shadow-md;
  309. }
  310. /* 订单状态卡片 */
  311. .status-card {
  312. display: flex;
  313. justify-content: space-between;
  314. align-items: center;
  315. }
  316. .status-left {
  317. display: flex;
  318. align-items: center;
  319. }
  320. .status-icon-wrapper {
  321. width: 56rpx;
  322. height: 56rpx;
  323. border-radius: 50%;
  324. display: flex;
  325. align-items: center;
  326. justify-content: center;
  327. margin-right: 20rpx;
  328. &.status-success {
  329. background: linear-gradient(135deg, $color-success, #43A047);
  330. box-shadow: 0 4rpx 12rpx rgba(76, 175, 80, 0.3);
  331. }
  332. &.status-pending {
  333. background: linear-gradient(135deg, $color-warning, #F57C00);
  334. box-shadow: 0 4rpx 12rpx rgba(255, 152, 0, 0.3);
  335. }
  336. &.status-cancelled {
  337. background: linear-gradient(135deg, $color-text-secondary, #9E9E9E);
  338. box-shadow: 0 4rpx 12rpx rgba(140, 140, 140, 0.3);
  339. }
  340. }
  341. .status-icon {
  342. color: #ffffff;
  343. font-size: 32rpx;
  344. font-weight: bold;
  345. }
  346. .status-text {
  347. font-size: 34rpx;
  348. color: $color-text-primary;
  349. font-weight: 700;
  350. }
  351. .invoice-status {
  352. font-size: 24rpx;
  353. color: $color-error;
  354. padding: 6rpx 16rpx;
  355. background: rgba(244, 67, 54, 0.06);
  356. border-radius: 12rpx;
  357. }
  358. /* 订单明细卡片 */
  359. .detail-card {
  360. padding: 0;
  361. overflow: hidden;
  362. }
  363. .card-header {
  364. padding: 32rpx;
  365. border-bottom: 1rpx solid $color-bg-secondary;
  366. }
  367. .card-title {
  368. font-size: 32rpx;
  369. font-weight: 700;
  370. color: $color-text-primary;
  371. }
  372. .product-item {
  373. display: flex;
  374. padding: 32rpx;
  375. align-items: flex-start;
  376. &:active {
  377. background: $color-bg-secondary;
  378. }
  379. }
  380. .product-image {
  381. width: 140rpx;
  382. height: 140rpx;
  383. background: $color-bg-tertiary;
  384. border-radius: $radius-md;
  385. margin-right: 24rpx;
  386. overflow: hidden;
  387. image {
  388. width: 100%;
  389. height: 100%;
  390. border-radius: $radius-md;
  391. }
  392. }
  393. .image-placeholder {
  394. width: 100%;
  395. height: 100%;
  396. background: $color-bg-tertiary;
  397. border-radius: $radius-md;
  398. display: flex;
  399. align-items: center;
  400. justify-content: center;
  401. }
  402. .product-info {
  403. flex: 1;
  404. }
  405. .product-name {
  406. font-size: 30rpx;
  407. color: $color-text-primary;
  408. font-weight: 600;
  409. margin-bottom: 16rpx;
  410. display: block;
  411. line-height: 1.5;
  412. }
  413. .product-price {
  414. font-size: 26rpx;
  415. color: $color-text-secondary;
  416. }
  417. .product-quantity {
  418. font-size: 26rpx;
  419. color: $color-text-tertiary;
  420. margin-top: 60rpx;
  421. font-weight: 500;
  422. }
  423. .amount-row {
  424. display: flex;
  425. justify-content: space-between;
  426. align-items: center;
  427. padding: 32rpx;
  428. border-top: 1rpx solid $color-bg-secondary;
  429. background: $color-bg-primary;
  430. }
  431. .discount-row {
  432. background: rgba(76, 175, 80, 0.04);
  433. border-top: none;
  434. padding: 24rpx 32rpx;
  435. }
  436. .amount-label {
  437. font-size: 28rpx;
  438. color: $color-text-secondary;
  439. }
  440. .amount-value-wrapper {
  441. display: flex;
  442. align-items: baseline;
  443. }
  444. .amount-prefix {
  445. font-size: 26rpx;
  446. color: $color-text-secondary;
  447. margin-right: 10rpx;
  448. }
  449. .amount-symbol {
  450. font-size: 28rpx;
  451. color: $color-warning;
  452. font-weight: 700;
  453. }
  454. .amount-integer {
  455. font-size: 40rpx;
  456. color: $color-warning;
  457. font-weight: 800;
  458. }
  459. .amount-discount {
  460. font-size: 32rpx;
  461. color: $color-success;
  462. font-weight: 700;
  463. }
  464. .refund-notice {
  465. display: flex;
  466. align-items: center;
  467. gap: 12rpx;
  468. margin: 0 $spacing-lg $spacing-xs;
  469. padding: 20rpx $spacing-md;
  470. border-radius: $radius-md;
  471. font-size: 26rpx;
  472. line-height: 1.5;
  473. .notice-dot {
  474. width: 14rpx;
  475. height: 14rpx;
  476. border-radius: 50%;
  477. flex-shrink: 0;
  478. }
  479. .notice-amount {
  480. font-weight: 700;
  481. }
  482. &.pending {
  483. background-color: $color-primary-bg;
  484. color: $color-primary-dark;
  485. .notice-dot {
  486. background-color: $color-warning;
  487. animation: notice-dot-pulse 1.5s ease-in-out infinite;
  488. }
  489. }
  490. &.partial {
  491. background-color: #E3F2FD;
  492. color: #1565C0;
  493. .notice-dot {
  494. background-color: $color-info;
  495. }
  496. }
  497. &.full {
  498. background-color: #E8F5E9;
  499. color: #2E7D32;
  500. .notice-dot {
  501. background-color: $color-success;
  502. }
  503. }
  504. }
  505. @keyframes notice-dot-pulse {
  506. 0%, 100% { opacity: 1; }
  507. 50% { opacity: 0.4; }
  508. }
  509. .card-footer-actions {
  510. display: flex;
  511. justify-content: flex-end;
  512. padding: 24rpx 32rpx 32rpx;
  513. gap: 16rpx;
  514. }
  515. .action-btn-outline {
  516. background-color: $color-bg-primary;
  517. border: 2rpx solid $color-border;
  518. border-radius: $radius-xl;
  519. font-size: 26rpx;
  520. color: $color-text-secondary;
  521. margin: 0;
  522. padding: 16rpx 32rpx;
  523. line-height: 1;
  524. &::after {
  525. border: none;
  526. }
  527. &:active {
  528. transform: scale(0.95);
  529. background-color: $color-bg-secondary;
  530. }
  531. }
  532. /* 退款历史记录 */
  533. .refund-history {
  534. padding: 0 $spacing-lg;
  535. margin-bottom: $spacing-md;
  536. }
  537. .history-title {
  538. font-size: 28rpx;
  539. font-weight: 600;
  540. color: $color-text-primary;
  541. margin-bottom: $spacing-md;
  542. }
  543. .history-item {
  544. display: flex;
  545. gap: $spacing-md;
  546. &:last-child .timeline-line {
  547. display: none;
  548. }
  549. }
  550. .history-timeline {
  551. display: flex;
  552. flex-direction: column;
  553. align-items: center;
  554. width: 40rpx;
  555. flex-shrink: 0;
  556. }
  557. .timeline-dot {
  558. width: 16rpx;
  559. height: 16rpx;
  560. border-radius: 50%;
  561. margin-top: 6rpx;
  562. flex-shrink: 0;
  563. &.success { background-color: $color-success; }
  564. &.rejected { background-color: $color-error; }
  565. &.pending { background-color: $color-warning; }
  566. }
  567. .timeline-line {
  568. width: 2rpx;
  569. flex: 1;
  570. min-height: 30rpx;
  571. background-color: $color-border;
  572. margin: 8rpx 0;
  573. }
  574. .history-content {
  575. flex: 1;
  576. padding-bottom: $spacing-md;
  577. min-width: 0;
  578. }
  579. .history-header {
  580. display: flex;
  581. justify-content: space-between;
  582. align-items: center;
  583. margin-bottom: 6rpx;
  584. }
  585. .history-status {
  586. font-size: 26rpx;
  587. font-weight: 500;
  588. &.success { color: $color-success; }
  589. &.rejected { color: $color-error; }
  590. &.pending { color: $color-warning; }
  591. }
  592. .history-amount {
  593. font-size: 28rpx;
  594. font-weight: 700;
  595. color: $color-text-primary;
  596. }
  597. .history-meta {
  598. margin-bottom: 4rpx;
  599. }
  600. .history-time {
  601. font-size: 22rpx;
  602. color: $color-text-tertiary;
  603. }
  604. .history-reason {
  605. display: block;
  606. font-size: 24rpx;
  607. color: $color-text-secondary;
  608. margin-top: 6rpx;
  609. line-height: 1.5;
  610. }
  611. .history-reject-reason {
  612. display: block;
  613. font-size: 24rpx;
  614. color: $color-error;
  615. margin-top: 6rpx;
  616. line-height: 1.5;
  617. }
  618. .history-items {
  619. margin-top: 12rpx;
  620. padding: 16rpx;
  621. background-color: $color-bg-secondary;
  622. border-radius: $radius-sm;
  623. }
  624. .history-item-row {
  625. display: flex;
  626. justify-content: space-between;
  627. align-items: center;
  628. padding: 6rpx 0;
  629. .item-name {
  630. font-size: 24rpx;
  631. color: $color-text-primary;
  632. flex: 1;
  633. overflow: hidden;
  634. text-overflow: ellipsis;
  635. white-space: nowrap;
  636. }
  637. .item-meta {
  638. font-size: 24rpx;
  639. color: $color-text-secondary;
  640. flex-shrink: 0;
  641. margin-left: 16rpx;
  642. }
  643. }
  644. /* 订单信息卡片 */
  645. .info-card {
  646. padding: 0;
  647. }
  648. .info-list {
  649. padding: 10rpx 32rpx 32rpx;
  650. }
  651. .info-row {
  652. display: flex;
  653. justify-content: space-between;
  654. align-items: center;
  655. padding: 28rpx 0;
  656. border-bottom: 1rpx solid $color-bg-secondary;
  657. &:active {
  658. background: $color-bg-secondary;
  659. }
  660. &:last-child {
  661. border-bottom: none;
  662. }
  663. }
  664. .info-label {
  665. font-size: 28rpx;
  666. color: $color-text-secondary;
  667. }
  668. .info-value-group {
  669. display: flex;
  670. align-items: center;
  671. }
  672. .info-value {
  673. font-size: 28rpx;
  674. color: $color-text-primary;
  675. font-weight: 500;
  676. }
  677. .copy-btn {
  678. margin-left: 12rpx;
  679. padding: 8rpx;
  680. &:active {
  681. transform: scale(0.9);
  682. }
  683. }
  684. .copy-icon-box {
  685. width: 28rpx;
  686. height: 32rpx;
  687. border: 3rpx solid $color-text-secondary;
  688. position: relative;
  689. border-radius: 4rpx;
  690. &::after {
  691. content: '';
  692. position: absolute;
  693. width: 20rpx;
  694. height: 24rpx;
  695. border: 3rpx solid $color-text-secondary;
  696. background-color: $color-bg-primary;
  697. top: -8rpx;
  698. right: -8rpx;
  699. border-radius: 4rpx;
  700. }
  701. }
  702. .info-link {
  703. display: flex;
  704. align-items: center;
  705. &:active {
  706. opacity: 0.6;
  707. }
  708. }
  709. .link-text {
  710. font-size: 28rpx;
  711. color: $color-warning;
  712. font-weight: 600;
  713. margin-right: 6rpx;
  714. }
  715. .link-arrow {
  716. font-size: 28rpx;
  717. color: $color-primary-dark;
  718. &::after {
  719. content: '>';
  720. }
  721. }
  722. /* 底部提示 */
  723. .footer-note {
  724. text-align: center;
  725. padding: 60rpx 0 40rpx;
  726. text {
  727. font-size: 24rpx;
  728. color: $color-text-tertiary;
  729. }
  730. }
  731. </style>