Authored by 李奇

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

... ... @@ -39,7 +39,7 @@ class GroupService extends global.yoho.BaseModel {
uid
} = {}) {
try {
const [detail, recommend] = await Promise.all([
const [detail, recommend, banner] = await Promise.all([
this.api.groupDetail({
uid,
groupNo
... ... @@ -47,6 +47,9 @@ class GroupService extends global.yoho.BaseModel {
this.api.activityRecommend({
uid,
activityId
}),
this.api._getResourceCode({
contentCode: 'cea0efae77f4e04c935beb1e87181247'
})
]);
... ... @@ -61,6 +64,7 @@ class GroupService extends global.yoho.BaseModel {
let yourJoinItem = detail.yourJoinItem;
let lackNum = detail.lackNum;
let membershipItems = detail.membershipItems;
let bannerUrl = _.get(banner, '[0].data[0].src', '');
if (!yourJoinItem) {
detail.yourJoinItem = membershipItems[0];
... ... @@ -75,7 +79,8 @@ class GroupService extends global.yoho.BaseModel {
return {
...detail,
recommend
recommend,
bannerUrl
};
} catch (e) {
... ...
... ... @@ -79,8 +79,12 @@
<a class="tip" href="https://m.yohobuy.com/activity/feature/1555.html">支付开团-支付参团-凑齐人数发货-凑不齐退款 玩法介绍》</a>
</div>
</div>
<div class="divide"></div>
<div class="banner official-account"></div>
{{#if bannerUrl}}
<div class="divide"></div>
<div class="banner">
<img src="{{image2 bannerUrl w=750 h=140}}" class="official-account">
</div>
{{/if}}
<div class="divide zero-margin"></div>
<div class="recommend">
<p class="rec-title">看看其他拼团商品</p>
... ...
... ... @@ -188,8 +188,6 @@
.banner {
width: 750px;
height: 140px;
background-image: url("https://img13.static.yhbimg.com/article/2019/02/28/14/02b72ac74385bdefd089ffa860d29d0862.jpeg");
background-size: 750px 140px;
}
.rec-title {
... ...