|
@ -20,7 +20,7 @@ |
|
|
<view class="product-item" v-for="(item, index) in list" :key="index" @click="navigateToDetail(item)"> |
|
|
<view class="product-item" v-for="(item, index) in list" :key="index" @click="navigateToDetail(item)"> |
|
|
<!-- 产品ID和状态标签 --> |
|
|
<!-- 产品ID和状态标签 --> |
|
|
<view class="item-header"> |
|
|
<view class="item-header"> |
|
|
<view > |
|
|
|
|
|
|
|
|
<view @click.stop="copyID(item.id)"> |
|
|
<text class="item-id">{{ item.id }}</text> |
|
|
<text class="item-id">{{ item.id }}</text> |
|
|
<img src="@/static/copy.png" alt="复制图标" class="item-icon"> |
|
|
<img src="@/static/copy.png" alt="复制图标" class="item-icon"> |
|
|
</view> |
|
|
</view> |
|
@ -157,6 +157,17 @@ export default { |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
copyID(id) { |
|
|
|
|
|
uni.setClipboardData({ |
|
|
|
|
|
data: id, |
|
|
|
|
|
success: () => { |
|
|
|
|
|
uni.showToast({ |
|
|
|
|
|
title: '复制成功', |
|
|
|
|
|
icon: 'success' |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
mixinSetParams(){ |
|
|
mixinSetParams(){ |
|
|
return { |
|
|
return { |
|
|
urgency: this.urgency?.value || '', |
|
|
urgency: this.urgency?.value || '', |
|
|