...
|
...
|
@@ -53,7 +53,7 @@ class GroupService extends global.yoho.BaseModel { |
|
|
uid
|
|
|
} = {}) {
|
|
|
try {
|
|
|
const [detail, recommend, banner] = await Promise.all([
|
|
|
let [detail, recommend, banner] = await Promise.all([
|
|
|
this.api.groupDetail({
|
|
|
uid,
|
|
|
groupNo
|
...
|
...
|
@@ -78,7 +78,6 @@ 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];
|
...
|
...
|
@@ -90,11 +89,10 @@ class GroupService extends global.yoho.BaseModel { |
|
|
});
|
|
|
}
|
|
|
|
|
|
|
|
|
return {
|
|
|
...detail,
|
|
|
recommend,
|
|
|
bannerUrl
|
|
|
bannerResource: banner
|
|
|
};
|
|
|
|
|
|
} catch (e) {
|
...
|
...
|
|