Showing
1 changed file
with
3 additions
and
11 deletions
@@ -61,23 +61,15 @@ module.exports = class extends global.yoho.BaseModel { | @@ -61,23 +61,15 @@ module.exports = class extends global.yoho.BaseModel { | ||
61 | result[i].value = item.couponValue; | 61 | result[i].value = item.couponValue; |
62 | result[i].validity = item.couponValidity; | 62 | result[i].validity = item.couponValidity; |
63 | result[i].useRemark = item.couponDetailInfomation; | 63 | result[i].useRemark = item.couponDetailInfomation; |
64 | - if (!_.isEmpty(item.sortNameLimit)) { | ||
65 | - result[i].categorys = item.sortNameLimit.join('、'); | ||
66 | - } | ||
67 | - if (!_.isEmpty(item.brandNameLimit)) { | ||
68 | - result[i].brands = item.brandNameLimit.join('、'); | ||
69 | - } | 64 | + |
70 | if (limits.indexOf('1') >= 0) { | 65 | if (limits.indexOf('1') >= 0) { |
71 | extra.push('3折以下'); | 66 | extra.push('3折以下'); |
72 | } | 67 | } |
73 | if (limits.indexOf('2') >= 0) { | 68 | if (limits.indexOf('2') >= 0) { |
74 | extra.push('限量'); | 69 | extra.push('限量'); |
75 | } | 70 | } |
76 | - | ||
77 | - result[i].extraPro = extra.join('、'); | ||
78 | - result[i].isNoLimit = item.isNoLimit === 'true' ? true : false; | ||
79 | - result[i].explains = _.isEmpty(item.explains) ? false : item.explains; | ||
80 | - result[i].proListUrl = helpers.urlFormat('', {cpc_id: item.couponId, | 71 | + result[i].notes = item.notes; |
72 | + result[i].proListUrl = helpers.urlFormat('', {cpc_id: item.couponId, coupon_code: item.couponCode, | ||
81 | phrase: encodeURIComponent('以下商品可使用 【' + item.couponDetailInfomation + '】优惠券')}, 'list'); | 73 | phrase: encodeURIComponent('以下商品可使用 【' + item.couponDetailInfomation + '】优惠券')}, 'list'); |
82 | result[i].rule = item.rule4ShortName || ''; | 74 | result[i].rule = item.rule4ShortName || ''; |
83 | result[i].overState = item.overState || ''; | 75 | result[i].overState = item.overState || ''; |
-
Please register or login to post a comment