...
|
...
|
@@ -58,6 +58,7 @@ class FamilyIndex extends Page { |
|
|
this.trendWordMarquee();
|
|
|
this.resources();
|
|
|
this.downLoadInfo();
|
|
|
this.refreshUserInfo();
|
|
|
}
|
|
|
|
|
|
bindEvents() {
|
...
|
...
|
@@ -70,6 +71,16 @@ class FamilyIndex extends Page { |
|
|
this.selector.$popover.on('mousewheel touchmove', this.banSliding.bind(this));
|
|
|
}
|
|
|
|
|
|
refreshUserInfo() {
|
|
|
|
|
|
// 提供给app更改完个人信息之后刷新
|
|
|
yoho.ready(function() {
|
|
|
yoho.addNativeMethod('refreshUserInfomation', function() {
|
|
|
location.href = location.href;
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
|
|
|
// 头像
|
|
|
headIco() {
|
|
|
let myImage = new Image(),
|
...
|
...
|
@@ -260,6 +271,7 @@ class FamilyIndex extends Page { |
|
|
// 积分图表点击跳转
|
|
|
jump(params) {
|
|
|
let href = `${location.protocol}//m.yohobuy.com/home/family/coinDetail?plateType=${params.data.plateType}`;
|
|
|
|
|
|
let $linkJump = $('#link-jump');
|
|
|
|
|
|
if (yoho.isMarsApp || yoho.isNowApp) {
|
...
|
...
|
@@ -269,11 +281,23 @@ class FamilyIndex extends Page { |
|
|
}
|
|
|
|
|
|
if (yoho.isMarsApp) {
|
|
|
href = href + `&openby:mars={"action":"go.h5","params":{"url":"http://m.yohobuy.com/home/family/coinDetail?plateType=${params.data.plateType}"}}}`;
|
|
|
|
|
|
href = href + '&openby:yohobuy=' + (JSON.stringify({
|
|
|
action: 'go.h5',
|
|
|
params: {
|
|
|
islogin: 'N',
|
|
|
type: 0,
|
|
|
updateflag: Date.now() + '',
|
|
|
url: href
|
|
|
}
|
|
|
}));
|
|
|
}
|
|
|
|
|
|
$linkJump.attr('href', href);
|
|
|
$linkJump[0].click();
|
|
|
|
|
|
return false;
|
|
|
|
|
|
} else {
|
|
|
yoho.goH5(href);
|
|
|
}
|
...
|
...
|
@@ -284,8 +308,9 @@ class FamilyIndex extends Page { |
|
|
let $this = $(e.currentTarget);
|
|
|
let appType = $this.data('name').toLowerCase();
|
|
|
let isLogin = $this.data('login');
|
|
|
let isNoOpen = $this.data('noopen');
|
|
|
|
|
|
if (isLogin) {
|
|
|
if (isLogin && !isNoOpen) {
|
|
|
if (this.vipInfo[appType]) {
|
|
|
this.selector.$diaC.append(this.view.vipDetailInfo(this.vipInfo[appType]));
|
|
|
} else {
|
...
|
...
|
|