...
|
...
|
@@ -74,6 +74,10 @@ class IconMall extends Page { |
|
|
this.selector.$marsTab.append($result);
|
|
|
}
|
|
|
this.loading = false;
|
|
|
|
|
|
this.selector.$goBtn = $('.go-btn');
|
|
|
this.selector.$goBtn.on('click', this.goConversion.bind(this));
|
|
|
|
|
|
lazyLoad($result.find('img.lazy'));
|
|
|
} else {
|
|
|
this.end = true;
|
...
|
...
|
@@ -148,6 +152,28 @@ class IconMall extends Page { |
|
|
yoho.invokeMethod('go.point_detail');
|
|
|
}
|
|
|
}
|
|
|
|
|
|
goConversion(e) {
|
|
|
let $this = $(e.currentTarget);
|
|
|
let type = $this.closest('.tab-item-c').attr('id');
|
|
|
let goodId = $this.data('id');
|
|
|
let goodsLevel = $this.data('level');
|
|
|
|
|
|
|
|
|
if ($this.hasClass('usable')) {
|
|
|
if (yoho && yoho.isMarsApp) {
|
|
|
yoho.invokeMethod('go.mars_point', {goodId: goodId, goods_level: goodsLevel});
|
|
|
} else if (yoho && yoho.isNowApp) {
|
|
|
yoho.invokeMethod('go.yohoCoins', {goodId: goodId});
|
|
|
}
|
|
|
} else {
|
|
|
if (type === 'yohonow-tab') {
|
|
|
tip.show('请到yohonowapp打开');
|
|
|
} else if (type === 'mars-tab') {
|
|
|
tip.show('请到mars打开');
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
$(() => {
|
...
|
...
|
|