Authored by yyq

Merge branch 'feature/activityTpl' into release/6.7.9

@@ -128,7 +128,7 @@ class featureModel extends global.yoho.BaseModel { @@ -128,7 +128,7 @@ class featureModel extends global.yoho.BaseModel {
128 /** 128 /**
129 * 拼团商品列表 129 * 拼团商品列表
130 */ 130 */
131 - _getCollageProductList(collageInfo, ctx) { 131 + _getCollageProductList(collageInfo, ctx) { // eslint-disable-line
132 let activityId = collageInfo.collageActivityId; 132 let activityId = collageInfo.collageActivityId;
133 133
134 if (!activityId) { 134 if (!activityId) {
@@ -154,15 +154,15 @@ class featureModel extends global.yoho.BaseModel { @@ -154,15 +154,15 @@ class featureModel extends global.yoho.BaseModel {
154 let productUrl = `//m.yohobuy.com/product/${replaceKey}.html?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"${replaceKey}","activity_id":"${activityId}","activity_type":"groupPurchase"}}`; // eslint-disable-line 154 let productUrl = `//m.yohobuy.com/product/${replaceKey}.html?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"${replaceKey}","activity_id":"${activityId}","activity_type":"groupPurchase"}}`; // eslint-disable-line
155 let defaultPros = _.get(result, 'data.collageProductVoList', []); 155 let defaultPros = _.get(result, 'data.collageProductVoList', []);
156 156
157 - if (!ctx.req.yoho.isApp) {  
158 - productUrl = 'javascript:;'; // eslint-disable-line  
159 - } 157 + // if (!ctx.req.yoho.isApp) {
  158 + // productUrl = 'javascript:;'; // eslint-disable-line
  159 + // }
160 160
161 defaultPros.forEach(val => { 161 defaultPros.forEach(val => {
162 val.producturl = productUrl.replace(replaceReg, val.productSkn); 162 val.producturl = productUrl.replace(replaceReg, val.productSkn);
163 }); 163 });
164 164
165 - collageInfo.defaultPros = result.data; 165 + collageInfo.defaultPros = defaultPros;
166 }); 166 });
167 } 167 }
168 168
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 <div class="side-swiper-content"> 2 <div class="side-swiper-content">
3 <ul> 3 <ul>
4 {{#defaultPros}} 4 {{#defaultPros}}
5 - <li class="side-swiper-item" data-skn="{{product_skn}}"> 5 + <li class="side-swiper-item" data-skn="{{productSkn}}">
6 <a href="{{producturl}}"> 6 <a href="{{producturl}}">
7 <div class="img-box"> 7 <div class="img-box">
8 {{#if lefTopImg}} 8 {{#if lefTopImg}}
@@ -17,8 +17,8 @@ @@ -17,8 +17,8 @@
17 <div class="info-middle"> 17 <div class="info-middle">
18 <div class="pro-price" style="{{#if ../priceFontColor}}color:{{../priceFontColor}};{{/if}}"> 18 <div class="pro-price" style="{{#if ../priceFontColor}}color:{{../priceFontColor}};{{/if}}">
19 <span class="sale-price"{{#if ../fontColor}} style="color:{{../fontColor}};" {{/if}}>¥{{collagePrice}}</span> 19 <span class="sale-price"{{#if ../fontColor}} style="color:{{../fontColor}};" {{/if}}>¥{{collagePrice}}</span>
20 - {{#if marketprice}}  
21 - <span class="market-price" {{#if ../fontColor}} style="color:{{../fontColor}};"{{/if}}>¥{{marketprice}}</span> 20 + {{#if marketPrice}}
  21 + <span class="market-price" {{#if ../fontColor}} style="color:{{../fontColor}};"{{/if}}>¥{{marketPrice}}</span>
22 {{/if}} 22 {{/if}}
23 </div> 23 </div>
24 24