From e268cb55fa740e5775bdeccc7c60e71c9cfdf30b Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期四, 30 十月 2025 10:15:16 +0800
Subject: [PATCH] 重复扫码验证
---
src/components/product_card/index.vue | 24 ++++++++++++++++++------
1 files changed, 18 insertions(+), 6 deletions(-)
diff --git a/src/components/product_card/index.vue b/src/components/product_card/index.vue
index d0ffa6e..9fb6b8c 100644
--- a/src/components/product_card/index.vue
+++ b/src/components/product_card/index.vue
@@ -2,9 +2,9 @@
<wd-card class="card_bg">
<template #title>
<view class="flex justify-between w-full">
- <text class="font-medium text-[#252525]">璁惧缂栧彿: 1234567891</text>
+ <text class="font-medium text-[#252525]">璁惧缂栧彿: {{ data[map.deviceModel] }}</text>
<wd-tag color="#0D867F" bg-color="#E7F4EC">
- <text class="text-xs">JL/B20-400-35</text>
+ <text class="text-xs">{{ data[map.model] }}</text>
</wd-tag>
</view>
</template>
@@ -16,7 +16,7 @@
</view>
<text class="text-[#646874] mx-2">
鎬婚渶姹傛暟閲�:
- <text class="text-[#252525]">274m</text>
+ <text class="text-[#252525]">{{ data[map.totalAmount] }}{{ data[map.unit] }}</text>
</text>
</view>
</wd-col>
@@ -29,7 +29,7 @@
</view>
<text class="text-[#646874] mx-2">
宸茬敓浜ф暟閲�:
- <text class="text-[#252525]">202m</text>
+ <text class="text-[#252525]">{{ data[map.amount] }}{{ data[map.unit] }}</text>
</text>
</view>
</wd-col>
@@ -40,7 +40,7 @@
</view>
<text class="text-[#646874] mx-2">
寰呮帓浜ф暟閲�:
- <text class="text-[#252525]">72m</text>
+ <text class="text-[#252525]">{{ data[map.unAmount] }}{{ data[map.unit] }}</text>
</text>
</view>
</wd-col>
@@ -48,9 +48,21 @@
</wd-card>
</template>
+<script setup lang="ts">
+defineProps({
+ data: {
+ type: Object,
+ default: () => {},
+ },
+ map: {
+ type: Object,
+ default: () => {},
+ },
+});
+</script>
+
<style lang="scss" scoped>
.card_bg {
- margin-top: 12px;
box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.05);
padding-bottom: 10px;
}
--
Gitblit v1.9.3