cashier_app/pageMarket/addCoupon/addConsumeCoupon.vue

50 lines
1.3 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<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>