|
|
'use strict';
|
|
|
const yoho = require('yoho-app');
|
|
|
|
|
|
let tip = require('plugin/tip');
|
|
|
|
|
|
import {
|
|
|
Controller
|
|
|
} from 'yoho-mvc';
|
...
|
...
|
@@ -25,13 +27,7 @@ class FreeMailIndexController extends Controller { |
|
|
this.freeMailModel.receiveVerify().then(result => {
|
|
|
if (result.code === 200) {
|
|
|
if (yoho.isApp) {
|
|
|
yoho.goH5('http://m.yohobuy.com/activity/free-mail/list', JSON.stringify({
|
|
|
action: 'go.h5',
|
|
|
params: {
|
|
|
islogin: 'N',
|
|
|
url: 'http://m.yohobuy.com/activity/free-mail/list'
|
|
|
}
|
|
|
}));
|
|
|
yoho.goH5(location.protocol + '//m.yohobuy.com/activity/free-mail/list');
|
|
|
} else {
|
|
|
location.href = '//m.yohobuy.com/activity/free-mail/list';
|
|
|
}
|
...
|
...
|
@@ -47,6 +43,8 @@ class FreeMailIndexController extends Controller { |
|
|
}
|
|
|
|
|
|
this.receiveView.popHide();
|
|
|
}).catch(() => {
|
|
|
tip.show('服务异常,请稍后重试');
|
|
|
});
|
|
|
}
|
|
|
}
|
...
|
...
|
|