新增添加优惠券页面

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

@@ -0,0 +1,49 @@
<template>
<view class="container">
<u-form ref="formRef" label-position="top" labelWidth="200" :model="form" :rules="rules">
<view class="u-form-card">
<u-form-item label="赠券门槛">
<u-input placeholder="请输入内容" v-model="form.fullAmount">
<template v-slot:prefix></template>
<template v-slot:suffix>可用</template>
</u-input>
</u-form-item>
</view>
</u-form>
</view>
</template>
<script setup>
import { ref } from 'vue';
import { onLoad } from '@dcloudio/uni-app';
const shopInfo = ref({});
const formRef = ref(null);
const form = ref({
id: '',
shopId: '',
couponType: 1, // 1-满减券2-商品兑换券3-折扣券4-第二件半价券5-消费送券6-买一送一券7-固定价格券8-免配送费券
fullAmount: '', // 使用门槛:满多少金额
couponGiftList: [], // 优惠券,目前单选
useType: ['dine'], // 可使用类型dine堂食/pickup自取/deliv配送/express快递
giveNum: '', // 总发放数量,-10086为不限量
getLimit: '' // 每人领取限量,-10086为不限量
});
onLoad((options) => {
shopInfo.value = uni.getStorageSync('shopInfo');
});
</script>
<style>
page {
background-color: #f7f7f7;
}
</style>
<style scoped lang="scss">
.container {
padding: 28upx;
}
</style>