Authored by 李奇

fixed: 小程序内不能调用yoho.invokeMethod

... ... @@ -49,7 +49,9 @@ class HaveGainApplyPage extends Page {
$('#jump-url').attr('href', jumpUrl);
setTimeout(() => {
yoho.invokeMethod('go.back');
if (window.yohoInterface) {
yoho.invokeMethod('go.back');
}
$('#jump-url')[0].click();
}, 500);
} else {
... ... @@ -125,7 +127,9 @@ class HaveGainApplyPage extends Page {
tapAdded() {
let that = this;
yoho.invokeMethod('go.copy', {text: '有货有赚'});
if (window.yohoInterface) {
yoho.invokeMethod('go.copy', {text: '有货有赚'});
}
dialog.showDialog({
dialogText: '“有货有赚”服务号已经复制,请去微信搜索添加',
hasClass: 'dialog-text-apply',
... ...
... ... @@ -23,7 +23,9 @@ class HaveGainVerifyPage extends Page {
}
tapAdded() {
yoho.invokeMethod('go.copy', {text: '有货有赚'});
if (window.yohoInterface) {
yoho.invokeMethod('go.copy', {text: '有货有赚'});
}
dialog.showDialog({
dialogText: '“有货有赚”服务号已经复制,请去微信搜索添加',
hasClass: 'dialog-text-apply',
... ...