...
|
...
|
@@ -146,11 +146,13 @@ class IconMall extends Page { |
|
|
}
|
|
|
|
|
|
openDetail() {
|
|
|
yoho.ready(() => {
|
|
|
if (yoho && yoho.isNowApp) {
|
|
|
yoho.invokeMethod('go.coins_detail');
|
|
|
} else if (yoho && yoho.isMarsApp) {
|
|
|
yoho.invokeMethod('go.point_detail');
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
goConversion(e) {
|
...
|
...
|
@@ -158,14 +160,16 @@ class IconMall extends Page { |
|
|
let type = $this.closest('.tab-item-c').attr('id');
|
|
|
let goodId = $this.data('id');
|
|
|
let goodsLevel = $this.data('level');
|
|
|
|
|
|
let point = $this.data('point');
|
|
|
|
|
|
if ($this.hasClass('usable')) {
|
|
|
yoho.ready(() => {
|
|
|
if (yoho && yoho.isMarsApp) {
|
|
|
yoho.invokeMethod('go.mars_point', {goodId: goodId, goods_level: goodsLevel});
|
|
|
yoho.invokeMethod('go.mars_point', {goodId: goodId, goodsLevel: goodsLevel, point: point});
|
|
|
} else if (yoho && yoho.isNowApp) {
|
|
|
yoho.invokeMethod('go.yohoCoins', {goodId: goodId});
|
|
|
}
|
|
|
});
|
|
|
} else {
|
|
|
if (type === 'yohonow-tab') {
|
|
|
tip.show('请到yohonowapp打开');
|
...
|
...
|
|