问题修复,增加点单智能推荐页面
This commit is contained in:
@@ -54,7 +54,7 @@
|
||||
placeholder="请输入内容"
|
||||
placeholder-class="color-999 u-font-28"
|
||||
type="number"
|
||||
v-model="form.payAmount"
|
||||
v-model="form.discountAmount"
|
||||
/>
|
||||
<view class="unit">元</view>
|
||||
</view>
|
||||
@@ -225,6 +225,7 @@ const form = reactive({
|
||||
discountType: "FIXED",
|
||||
useTypeList: [],
|
||||
randomDiscountList: [],
|
||||
discountAmount: "",
|
||||
});
|
||||
|
||||
function cancel() {
|
||||
@@ -243,6 +244,13 @@ function save() {
|
||||
});
|
||||
return;
|
||||
}
|
||||
if(form.discountType == "FIXED" && form.discountAmount == ""){
|
||||
uni.showToast({
|
||||
title:'请填写减免金额',
|
||||
icon:'none'
|
||||
})
|
||||
return;
|
||||
}
|
||||
newUserDiscountStore
|
||||
.editConfig(
|
||||
{
|
||||
@@ -266,7 +274,14 @@ function save() {
|
||||
watch(
|
||||
() => newUserDiscountStore.config.isEnable,
|
||||
(newVal) => {
|
||||
save();
|
||||
newUserDiscountStore.editConfig().then((res) => {
|
||||
if (res) {
|
||||
uni.showToast({
|
||||
title: "操作成功",
|
||||
icon: "none",
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user