完成订单相关UI

This commit is contained in:
kron
2025-05-28 15:00:31 +08:00
parent 6b4eff428c
commit 2586bab023
9 changed files with 188 additions and 21 deletions

View File

@@ -12,6 +12,10 @@ defineProps({
type: Object,
default: () => ({}),
},
onClick: {
type: Function,
default: null,
},
});
</script>
@@ -19,8 +23,8 @@ defineProps({
<view class="user-item" :style="customStyle">
<text>{{ title }}</text>
<view>
<text>{{ value }}</text>
<button>
<slot></slot>
<button v-if="onClick !== null" @click="onClick">
<image src="../static/enter.png" mode="widthFix" />
</button>
</view>