...
|
...
|
@@ -61,23 +61,15 @@ module.exports = class extends global.yoho.BaseModel { |
|
|
result[i].value = item.couponValue;
|
|
|
result[i].validity = item.couponValidity;
|
|
|
result[i].useRemark = item.couponDetailInfomation;
|
|
|
if (!_.isEmpty(item.sortNameLimit)) {
|
|
|
result[i].categorys = item.sortNameLimit.join('、');
|
|
|
}
|
|
|
if (!_.isEmpty(item.brandNameLimit)) {
|
|
|
result[i].brands = item.brandNameLimit.join('、');
|
|
|
}
|
|
|
|
|
|
if (limits.indexOf('1') >= 0) {
|
|
|
extra.push('3折以下');
|
|
|
}
|
|
|
if (limits.indexOf('2') >= 0) {
|
|
|
extra.push('限量');
|
|
|
}
|
|
|
|
|
|
result[i].extraPro = extra.join('、');
|
|
|
result[i].isNoLimit = item.isNoLimit === 'true' ? true : false;
|
|
|
result[i].explains = _.isEmpty(item.explains) ? false : item.explains;
|
|
|
result[i].proListUrl = helpers.urlFormat('', {cpc_id: item.couponId,
|
|
|
result[i].notes = item.notes;
|
|
|
result[i].proListUrl = helpers.urlFormat('', {cpc_id: item.couponId, coupon_code: item.couponCode,
|
|
|
phrase: encodeURIComponent('以下商品可使用 【' + item.couponDetailInfomation + '】优惠券')}, 'list');
|
|
|
result[i].rule = item.rule4ShortName || '';
|
|
|
result[i].overState = item.overState || '';
|
...
|
...
|
|