fix:大转盘

This commit is contained in:
faiz 2024-10-25 19:26:07 +08:00
parent 8cefd74d3b
commit 7ee421a467
2 changed files with 5 additions and 10 deletions

View File

@ -284,14 +284,6 @@ export default {
}, },
computed: { computed: {
ruleValidate() { ruleValidate() {
var conditionType = (rule, value, callback) => {
if (this.formValidate.type == 11) {
return callback();
}
if (!value) {
return callback(new Error("请输入中奖条件"));
}
};
return { return {
name: [ name: [
{ {
@ -333,8 +325,7 @@ export default {
condition: [ condition: [
{ {
required: this.formValidate.type == 11 ? false : true, required: this.formValidate.type == 11 ? false : true,
type: "number", message: "请选择中奖条件",
validator: conditionType,
trigger: "blur", trigger: "blur",
}, },
], ],

View File

@ -666,6 +666,10 @@ export default {
return "优惠券"; return "优惠券";
} else if (type == 6) { } else if (type == 6) {
return "商品"; return "商品";
} else if (type == 10) {
return "免单";
} else if (type == 11) {
return "实物";
} }
}, },
}, },