Authored by 张孝茹

title result为空不加载积分

... ... @@ -12,7 +12,7 @@ exports.familyIndex = (req, res, next) => {
req.ctx(family).familyIndex(uid, contentCodeOne, contentCodeTwo, isMarsApp).then(result => {
res.render('family/index', {
page: 'family',
title: 'family',
title: 'YOHO!Family',
width750: true,
localCss: true,
familyIndexData: result
... ...
... ... @@ -136,7 +136,7 @@ class FamilyIndex extends Page {
type: 'GET',
url: location.protocol + '//m.yohobuy.com/home/family/integralCharts'
}).then(result => {
if (result) {
if (result && !$.isEmptyObject(result)) {
result.totalHref = location.protocol + '//m.yohobuy.com/home/family/coinDetail?openby:yohobuy={"action":"go.h5","params":{"url":"' + location.protocol + '//m.yohobuy.com/home/family/coinDetail"}}', // eslint-disable-line
this.selector.$integralContent.append(this.view.integral(result));
... ... @@ -157,6 +157,8 @@ class FamilyIndex extends Page {
}
]
});
} else {
$('.integral').hide();
}
});
}
... ...
... ... @@ -33,7 +33,7 @@
background-image: resolve("home/family/yoho-family.png");
background-size: 100% 100%;
background-repeat: no-repeat;
margin-left: 280px;
margin-left: 250px;
}
}
... ...