Authored by 李奇

拼团结果页banner改为资源位获取

@@ -39,7 +39,7 @@ class GroupService extends global.yoho.BaseModel { @@ -39,7 +39,7 @@ class GroupService extends global.yoho.BaseModel {
39 uid 39 uid
40 } = {}) { 40 } = {}) {
41 try { 41 try {
42 - const [detail, recommend] = await Promise.all([ 42 + const [detail, recommend, banner] = await Promise.all([
43 this.api.groupDetail({ 43 this.api.groupDetail({
44 uid, 44 uid,
45 groupNo 45 groupNo
@@ -47,6 +47,9 @@ class GroupService extends global.yoho.BaseModel { @@ -47,6 +47,9 @@ class GroupService extends global.yoho.BaseModel {
47 this.api.activityRecommend({ 47 this.api.activityRecommend({
48 uid, 48 uid,
49 activityId 49 activityId
  50 + }),
  51 + this.api._getResourceCode({
  52 + contentCode: 'cea0efae77f4e04c935beb1e87181247'
50 }) 53 })
51 ]); 54 ]);
52 55
@@ -61,6 +64,7 @@ class GroupService extends global.yoho.BaseModel { @@ -61,6 +64,7 @@ class GroupService extends global.yoho.BaseModel {
61 let yourJoinItem = detail.yourJoinItem; 64 let yourJoinItem = detail.yourJoinItem;
62 let lackNum = detail.lackNum; 65 let lackNum = detail.lackNum;
63 let membershipItems = detail.membershipItems; 66 let membershipItems = detail.membershipItems;
  67 + let bannerUrl = _.get(banner, '[0].data[0].src', '');
64 68
65 if (!yourJoinItem) { 69 if (!yourJoinItem) {
66 detail.yourJoinItem = membershipItems[0]; 70 detail.yourJoinItem = membershipItems[0];
@@ -75,7 +79,8 @@ class GroupService extends global.yoho.BaseModel { @@ -75,7 +79,8 @@ class GroupService extends global.yoho.BaseModel {
75 79
76 return { 80 return {
77 ...detail, 81 ...detail,
78 - recommend 82 + recommend,
  83 + bannerUrl
79 }; 84 };
80 85
81 } catch (e) { 86 } catch (e) {
@@ -79,8 +79,12 @@ @@ -79,8 +79,12 @@
79 <a class="tip" href="https://m.yohobuy.com/activity/feature/1555.html">支付开团-支付参团-凑齐人数发货-凑不齐退款 玩法介绍》</a> 79 <a class="tip" href="https://m.yohobuy.com/activity/feature/1555.html">支付开团-支付参团-凑齐人数发货-凑不齐退款 玩法介绍》</a>
80 </div> 80 </div>
81 </div> 81 </div>
82 - <div class="divide"></div>  
83 - <div class="banner official-account"></div> 82 + {{#if bannerUrl}}
  83 + <div class="divide"></div>
  84 + <div class="banner">
  85 + <img src="{{image2 bannerUrl w=750 h=140}}" class="official-account">
  86 + </div>
  87 + {{/if}}
84 <div class="divide zero-margin"></div> 88 <div class="divide zero-margin"></div>
85 <div class="recommend"> 89 <div class="recommend">
86 <p class="rec-title">看看其他拼团商品</p> 90 <p class="rec-title">看看其他拼团商品</p>
@@ -188,8 +188,6 @@ @@ -188,8 +188,6 @@
188 .banner { 188 .banner {
189 width: 750px; 189 width: 750px;
190 height: 140px; 190 height: 140px;
191 - background-image: url("https://img13.static.yhbimg.com/article/2019/02/28/14/02b72ac74385bdefd089ffa860d29d0862.jpeg");  
192 - background-size: 750px 140px;  
193 } 191 }
194 192
195 .rec-title { 193 .rec-title {