feat: 会员等级设置更新
This commit is contained in:
parent
d2f14ff44b
commit
aff42b126d
|
@ -180,17 +180,17 @@
|
|||
</el-table-column>
|
||||
<el-table-column label="开启积分抵扣" width="120" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-switch v-model="scope.row.enablePointsRedemption"></el-switch>
|
||||
<el-switch v-model="scope.row.enablePointsDeduction"></el-switch>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="积分抵扣额度" width="180" align="center">
|
||||
<template slot-scope="scope">
|
||||
<div
|
||||
v-if="scope.row.enablePointsRedemption"
|
||||
v-if="scope.row.enablePointsDeduction"
|
||||
class="deduction-amount-input"
|
||||
>
|
||||
<el-input-number
|
||||
v-model="scope.row.pointsDeductionAmount"
|
||||
v-model="scope.row.pointsDeductionQuota"
|
||||
:min="0"
|
||||
:max="10000"
|
||||
size="mini"
|
||||
|
@ -700,8 +700,8 @@ export default {
|
|||
memberBenefits: "新会员双倍积分,享受基础会员价格优惠",
|
||||
enableDiscount: true,
|
||||
discountRate: 5,
|
||||
enablePointsRedemption: false,
|
||||
pointsDeductionAmount: 100,
|
||||
enablePointsDeduction: false,
|
||||
pointsDeductionQuota: 100,
|
||||
enableBirthdayCoupons: true,
|
||||
enableBirthdayReward: false,
|
||||
birthdayCouponsName: "",
|
||||
|
@ -721,8 +721,8 @@ export default {
|
|||
memberBenefits: "享受9.5折优惠,每月专属优惠券,生日礼品",
|
||||
enableDiscount: true,
|
||||
discountRate: 10,
|
||||
enablePointsRedemption: true,
|
||||
pointsDeductionAmount: 100,
|
||||
enablePointsDeduction: true,
|
||||
pointsDeductionQuota: 100,
|
||||
enableBirthdayCoupons: true,
|
||||
enableBirthdayReward: true,
|
||||
birthdayCouponsName: "",
|
||||
|
@ -742,8 +742,8 @@ export default {
|
|||
memberBenefits: "享受9折优惠,免费配送服务,专属客服支持",
|
||||
enableDiscount: true,
|
||||
discountRate: 15,
|
||||
enablePointsRedemption: true,
|
||||
pointsDeductionAmount: 100,
|
||||
enablePointsDeduction: true,
|
||||
pointsDeductionQuota: 100,
|
||||
enableBirthdayCoupons: true,
|
||||
enableBirthdayReward: true,
|
||||
birthdayCouponsName: "",
|
||||
|
@ -763,8 +763,8 @@ export default {
|
|||
memberBenefits: "享受8.5折优惠,优先配送,专属活动邀请,年度礼品",
|
||||
enableDiscount: true,
|
||||
discountRate: 20,
|
||||
enablePointsRedemption: true,
|
||||
pointsDeductionAmount: 100,
|
||||
enablePointsDeduction: true,
|
||||
pointsDeductionQuota: 100,
|
||||
enableBirthdayCoupons: true,
|
||||
enableBirthdayReward: true,
|
||||
birthdayCouponsName: "",
|
||||
|
@ -827,8 +827,8 @@ export default {
|
|||
endGrowthValue: 100,
|
||||
enableDiscount: false,
|
||||
discountRate: 0,
|
||||
enablePointsRedemption: false,
|
||||
pointsDeductionAmount: 100,
|
||||
enablePointsDeduction: false,
|
||||
pointsDeductionQuota: 100,
|
||||
enableBirthdayCoupons: false,
|
||||
birthdayCouponsName: "",
|
||||
birthdayCouponsThreshold: 0,
|
||||
|
@ -986,8 +986,8 @@ export default {
|
|||
endGrowthValue: level.endGrowthValue,
|
||||
enableDiscount: level.enableDiscount,
|
||||
discountRate: level.discountRate,
|
||||
enablePointsRedemption: level.enablePointsRedemption,
|
||||
pointsDeductionAmount: level.pointsDeductionAmount || 100,
|
||||
enablePointsDeduction: level.enablePointsDeduction || false,
|
||||
pointsDeductionQuota: level.pointsDeductionQuota || 100,
|
||||
enableBirthdayCoupons: level.enableBirthdayCoupons,
|
||||
birthdayCouponsName: level.birthdayCouponsName || "",
|
||||
birthdayCouponsThreshold: level.birthdayCouponsThreshold || 0,
|
||||
|
@ -1037,7 +1037,7 @@ export default {
|
|||
}
|
||||
|
||||
// 积分兑换权益
|
||||
if (level.enablePointsRedemption) {
|
||||
if (level.enablePointsDeduction) {
|
||||
benefits.push("积分兑换商品");
|
||||
}
|
||||
|
||||
|
@ -1067,8 +1067,8 @@ export default {
|
|||
endGrowthValue: level.endGrowthValue,
|
||||
enableDiscount: level.enableDiscount,
|
||||
discountRate: level.discountRate,
|
||||
enablePointsRedemption: level.enablePointsRedemption,
|
||||
pointsDeductionAmount: level.pointsDeductionAmount,
|
||||
enablePointsDeduction: level.enablePointsDeduction || false,
|
||||
pointsDeductionQuota: level.pointsDeductionQuota || 100,
|
||||
enableBirthdayCoupons: level.enableBirthdayCoupons,
|
||||
birthdayCouponsName: level.birthdayCouponsName,
|
||||
birthdayCouponsThreshold: level.birthdayCouponsThreshold,
|
||||
|
@ -1275,8 +1275,8 @@ export default {
|
|||
endGrowthValue: 0,
|
||||
enableDiscount: false,
|
||||
discountRate: 0,
|
||||
enablePointsRedemption: false,
|
||||
pointsDeductionAmount: 100,
|
||||
enablePointsDeduction: false,
|
||||
pointsDeductionQuota: 100,
|
||||
enableBirthdayCoupons: false,
|
||||
birthdayCouponsName: "",
|
||||
birthdayCouponsThreshold: 0,
|
||||
|
|
|
@ -204,18 +204,18 @@ export default {
|
|||
align: "center",
|
||||
field: "productName"
|
||||
},
|
||||
// {
|
||||
// title: "商品规格ID",
|
||||
// align: "center",
|
||||
// field: "productSpecId"
|
||||
// },
|
||||
{
|
||||
title: "商品规格ID",
|
||||
align: "center",
|
||||
field: "productSpecId"
|
||||
},
|
||||
{
|
||||
title: "商品规格名称",
|
||||
title: "规格名称",
|
||||
align: "center",
|
||||
field: "productSpecName"
|
||||
},
|
||||
{
|
||||
title: "所属店铺",
|
||||
title: "归属店铺",
|
||||
align: "center",
|
||||
field: "shopName"
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue