fix:大转盘
This commit is contained in:
parent
8cefd74d3b
commit
7ee421a467
|
@ -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",
|
||||
},
|
||||
],
|
||||
|
|
|
@ -666,6 +666,10 @@ export default {
|
|||
return "优惠券";
|
||||
} else if (type == 6) {
|
||||
return "商品";
|
||||
} else if (type == 10) {
|
||||
return "免单";
|
||||
} else if (type == 11) {
|
||||
return "实物";
|
||||
}
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue