Authored by ccbikai(👎🏻🍜)

优惠券文案修改

@@ -14,12 +14,6 @@ const couponData = (params) => { @@ -14,12 +14,6 @@ const couponData = (params) => {
14 return result.data.couponList.map(function(elem) { 14 return result.data.couponList.map(function(elem) {
15 delete elem.id; 15 delete elem.id;
16 16
17 - elem.isNoLimit = elem.isNoLimit === 'true';// 全场通用  
18 - elem.isDiscount = (`,${elem.shopPriceLimits},`).indexOf(',1,') !== -1;// 三折以下  
19 - elem.isLimited = (`,${elem.shopPriceLimits},`).indexOf(',2,') !== -1;// 限量  
20 - elem.brandNameLimits = elem.brandNameLimit && elem.brandNameLimit.join('、');  
21 - elem.sortNameLimits = elem.sortNameLimit && elem.sortNameLimit.join('、');  
22 -  
23 if (status0) { 17 if (status0) {
24 elem.bestowLink = helpers.urlFormat('/product/index/index', 18 elem.bestowLink = helpers.urlFormat('/product/index/index',
25 { 19 {
@@ -36,19 +36,9 @@ @@ -36,19 +36,9 @@
36 </div> 36 </div>
37 </div> 37 </div>
38 <div class="coupon-footer hide"> 38 <div class="coupon-footer hide">
39 - {{#if isNoLimit}}  
40 - <p>全场通用</p>  
41 - {{/if}}  
42 -  
43 - {{#if brandNameLimits}}  
44 - <p>限品牌:{{brandNameLimits}}</p>  
45 - {{/if}}  
46 -  
47 - {{#if sortNameLimits}}  
48 - <p>限品类:{{sortNameLimits}}</p>  
49 - {{/if}}  
50 - <p>特例商品(秒杀、限定、境外、预售{{#if isDiscount}}、3折以下{{/if}}{{#if isLimited}}、限量{{/if}}等)暂不支持使用优惠券。</p>  
51 - {{#if explains}}<p>说明:{{explains}}</p>{{/if}} 39 + {{#notes}}
  40 + <p>{{.}}</p>
  41 + {{/notes}}
52 </div> 42 </div>
53 </div> 43 </div>
54 {{/each}} 44 {{/each}}
@@ -26,20 +26,9 @@ @@ -26,20 +26,9 @@
26 </div> 26 </div>
27 </div> 27 </div>
28 <div class="coupon-footer hide"> 28 <div class="coupon-footer hide">
29 - {{#if isNoLimit}}  
30 - <p>全场通用</p>  
31 - {{/if}}  
32 -  
33 - {{#if brandNameLimits}}  
34 - <p>限品牌:{{brandNameLimits}}</p>  
35 - {{/if}}  
36 -  
37 - {{#if sortNameLimits}}  
38 - <p>限品类:{{sortNameLimits}}</p>  
39 - {{/if}}  
40 -  
41 - <p>特例商品(秒杀、限定、境外、预售{{#if isDiscount}}、3折以下{{/if}}{{#if isLimited}}、限量{{/if}}等)暂不支持使用优惠券。</p>  
42 - {{#if explains}}<p>说明:{{explains}}</p>{{/if}} 29 + {{#notes}}
  30 + <p>{{.}}</p>
  31 + {{/notes}}
43 </div> 32 </div>
44 </div> 33 </div>
45 {{/each}} 34 {{/each}}