问题修复,增加点单智能推荐页面

This commit is contained in:
2025-11-20 15:55:50 +08:00
parent 8fa21b3404
commit bb4c2676e7
11 changed files with 201 additions and 40 deletions

View File

@@ -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",
});
}
});
}
);