...
|
...
|
@@ -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) {
|
...
|
...
|
|