...
|
...
|
@@ -86,19 +86,27 @@ exports.getSaleGoodsData = (params) => { |
|
|
|
|
|
switch (userInfo.curLevel) {
|
|
|
case '1':
|
|
|
finalResult.goods[key].salePrice = value.vip1Price;
|
|
|
finalResult.goods[key].vip1 = true;
|
|
|
finalResult.goods[key] = {
|
|
|
salePrice: value.vip1Price,
|
|
|
vip1: true
|
|
|
};
|
|
|
break;
|
|
|
case '2':
|
|
|
finalResult.goods[key].salePrice = value.vip2Price;
|
|
|
finalResult.goods[key].vip2 = true;
|
|
|
finalResult.goods[key] = {
|
|
|
salePrice: value.vip2Price,
|
|
|
vip2: true
|
|
|
};
|
|
|
break;
|
|
|
case '3':
|
|
|
finalResult.goods[key].salePrice = value.vip3Price;
|
|
|
finalResult.goods[key].vip3 = true;
|
|
|
finalResult.goods[key] = {
|
|
|
salePrice: value.vip3Price,
|
|
|
vip3: true
|
|
|
};
|
|
|
break;
|
|
|
default:
|
|
|
finalResult.goods[key].vip = true;
|
|
|
finalResult.goods[key] = {
|
|
|
vip: true
|
|
|
};
|
|
|
delete finalResult.goods[key].salesPrice;
|
|
|
break;
|
|
|
}
|
...
|
...
|
@@ -317,19 +325,27 @@ exports.getSaleOthersData = (params, channel) => { |
|
|
|
|
|
switch (userInfo.curLevel) {
|
|
|
case '1':
|
|
|
finalResult.goods[key].salePrice = value.vip1_price;
|
|
|
finalResult.goods[key].vip1 = true;
|
|
|
finalResult.goods[key] = {
|
|
|
salePrice: value.vip1_price,
|
|
|
vip1: true
|
|
|
};
|
|
|
break;
|
|
|
case '2':
|
|
|
finalResult.goods[key].salePrice = value.vip2_price;
|
|
|
finalResult.goods[key].vip2 = true;
|
|
|
finalResult.goods[key] = {
|
|
|
salePrice: value.vip2_price,
|
|
|
vip2: true
|
|
|
};
|
|
|
break;
|
|
|
case '3':
|
|
|
finalResult.goods[key].salePrice = value.vip3_price;
|
|
|
finalResult.goods[key].vip3 = true;
|
|
|
finalResult.goods[key] = {
|
|
|
salePrice: value.vip3_price,
|
|
|
vip3: true
|
|
|
};
|
|
|
break;
|
|
|
default:
|
|
|
finalResult.goods[key].vip = true;
|
|
|
finalResult.goods[key] = {
|
|
|
vip: true
|
|
|
};
|
|
|
delete finalResult.goods[key].salesPrice;
|
|
|
break;
|
|
|
}
|
...
|
...
|
|