Authored by 陈峰

appversion get

... ... @@ -14,8 +14,11 @@ new Vue({
yoho.ready(() => {
const header = Object.assign({}, interceptClick.defaultTitleMap[1]);
header.title.des = '关于我们';
header.title.des = '关于';
yoho.updateNavigationBar({
header: header
});
yoho.getAppVersion({}, (version) => {
document.querySelector('.app-version').textContent = `版本信息:${version}`;
});
});
... ...
... ... @@ -103,6 +103,23 @@ const yoho = {
},
/**
* 获取app版本号
* @param args {""}
* @param success
* @param fail
*/
getAppVersion(args, success, fail) {
if (this.isApp && window.yohoInterface) {
window.yohoInterface.triggerEvent(success || nullFun, fail || nullFun, {
method: 'get.appversion',
arguments: args
});
} else {
// tip(tipInfo);
}
},
/**
* 退出登录,清除本地用户数据
* @param args {""}
* @param success
... ...