50 lines
1.3 KiB
Vue
50 lines
1.3 KiB
Vue
<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>
|