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 "实物"; } }, },