新增添加优惠券页面

This commit is contained in:
gyq
2025-11-20 18:47:52 +08:00
parent 61447986c5
commit 05b9551126
10 changed files with 1062 additions and 14 deletions

View File

@@ -10,7 +10,10 @@
</view>
<view class="total-info">
<view class="item">
<text class="info">{{ item.giveNum }}</text>
<text class="info">
<template v-if="item.giveNum == -10086">无限</template>
<template v-else>{{ item.giveNum }}</template>
</text>
<text class="title">总发放</text>
</view>
<view class="item">
@@ -31,10 +34,10 @@
</view>
<view class="footer-wrap">
<view class="btn">
<u-button shape="circle">删除</u-button>
<u-button shape="circle" @click="emits('delete', item)">删除</u-button>
</view>
<view class="btn">
<u-button shape="circle" type="primary">编辑</u-button>
<u-button shape="circle" type="primary" @click="emits('editor', item)">编辑</u-button>
</view>
</view>
</view>
@@ -47,6 +50,8 @@ const props = defineProps({
default: {}
}
});
const emits = defineEmits(['delete', 'editor']);
</script>
<style scoped lang="scss">