...
|
...
|
@@ -14,12 +14,6 @@ const couponData = (params) => { |
|
|
return result.data.couponList.map(function(elem) {
|
|
|
delete elem.id;
|
|
|
|
|
|
elem.isNoLimit = elem.isNoLimit === 'true';// 全场通用
|
|
|
elem.isDiscount = (`,${elem.shopPriceLimits},`).indexOf(',1,') !== -1;// 三折以下
|
|
|
elem.isLimited = (`,${elem.shopPriceLimits},`).indexOf(',2,') !== -1;// 限量
|
|
|
elem.brandNameLimits = elem.brandNameLimit && elem.brandNameLimit.join('、');
|
|
|
elem.sortNameLimits = elem.sortNameLimit && elem.sortNameLimit.join('、');
|
|
|
|
|
|
if (status0) {
|
|
|
elem.bestowLink = helpers.urlFormat('/product/index/index',
|
|
|
{
|
...
|
...
|
|