Authored by yyq

Merge branch 'master' of git.yoho.cn:fe/yoho-community-web

... ... @@ -612,6 +612,17 @@ const yoho = {
} else {
// tip(tipInfo);
}
},
setWebview(args, success, fail) {
if (this.isYohoBuy && window.yohoInterface) {
window.yohoInterface.triggerEvent(success || nullFun, fail || nullFun, {
method: 'set.webview',
arguments: args
});
} else {
// tip(tipInfo);
}
}
};
... ...
... ... @@ -53,6 +53,7 @@ export default {
}
}
return (src || '')
.replace('http://', '//')
.replace('{mode}', this.mode)
.replace('{width}', this.width)
.replace('{height}', this.height);
... ...
... ... @@ -48,4 +48,10 @@ export default store => {
store.commit('SET_LOGIN_INFO', user);
}
});
Vue.$yoho.ready(() => {
Vue.$yoho.setWebview({
bounces: false
});
});
};
... ...