From 7ee421a467ba75f31eb5350b5460af640a5aee18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=8F?= <1978476055@qq.com> Date: Fri, 25 Oct 2024 19:26:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=A4=A7=E8=BD=AC=E7=9B=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/marketing/lottery/addGoods.vue | 11 +---------- src/views/marketing/lottery/create.vue | 4 ++++ 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/src/views/marketing/lottery/addGoods.vue b/src/views/marketing/lottery/addGoods.vue index 315d5e5..f54c23c 100644 --- a/src/views/marketing/lottery/addGoods.vue +++ b/src/views/marketing/lottery/addGoods.vue @@ -284,14 +284,6 @@ export default { }, computed: { ruleValidate() { - var conditionType = (rule, value, callback) => { - if (this.formValidate.type == 11) { - return callback(); - } - if (!value) { - return callback(new Error("请输入中奖条件")); - } - }; return { name: [ { @@ -333,8 +325,7 @@ export default { condition: [ { required: this.formValidate.type == 11 ? false : true, - type: "number", - validator: conditionType, + message: "请选择中奖条件", trigger: "blur", }, ], diff --git a/src/views/marketing/lottery/create.vue b/src/views/marketing/lottery/create.vue index a119ed1..fe421c2 100644 --- a/src/views/marketing/lottery/create.vue +++ b/src/views/marketing/lottery/create.vue @@ -666,6 +666,10 @@ export default { return "优惠券"; } else if (type == 6) { return "商品"; + } else if (type == 10) { + return "免单"; + } else if (type == 11) { + return "实物"; } }, },