活动类型 全折扣秒杀

This commit is contained in:
faiz 2024-11-21 11:49:03 +08:00
parent 1e18ee32b1
commit c0ef2f8f6b
1 changed files with 12 additions and 0 deletions

View File

@ -928,6 +928,10 @@ const proOptions = [
name: "首发新品", name: "首发新品",
value: "is_new", value: "is_new",
}, },
{
name: "全折扣秒杀",
value: "is_discount",
},
// { // {
// name: "", // name: "",
// value: "is_activities", // value: "is_activities",
@ -998,6 +1002,10 @@ export default {
name: "首发新品", name: "首发新品",
value: "new", value: "new",
}, },
{
name: "全折扣秒杀",
value: "discount",
},
// { // {
// name: "", // name: "",
// value: "activity", // value: "activity",
@ -1435,6 +1443,10 @@ export default {
this.checkboxGroup.includes("is_hot") this.checkboxGroup.includes("is_hot")
? (this.formValidate.is_hot = 1) ? (this.formValidate.is_hot = 1)
: (this.formValidate.is_hot = 0 && this.checkboxGroup.remove("is_hot")); : (this.formValidate.is_hot = 0 && this.checkboxGroup.remove("is_hot"));
this.checkboxGroup.includes("is_discount")
? (this.formValidate.is_discount = 1)
: (this.formValidate.is_discount =
0 && this.checkboxGroup.remove("is_discount"));
}, },
onChangeRecommend() { onChangeRecommend() {
this.recommendForm.is_benefit = Number( this.recommendForm.is_benefit = Number(