Showing
2 changed files
with
21 additions
and
1 deletions
@@ -14,8 +14,11 @@ new Vue({ | @@ -14,8 +14,11 @@ new Vue({ | ||
14 | yoho.ready(() => { | 14 | yoho.ready(() => { |
15 | const header = Object.assign({}, interceptClick.defaultTitleMap[1]); | 15 | const header = Object.assign({}, interceptClick.defaultTitleMap[1]); |
16 | 16 | ||
17 | - header.title.des = '关于我们'; | 17 | + header.title.des = '关于'; |
18 | yoho.updateNavigationBar({ | 18 | yoho.updateNavigationBar({ |
19 | header: header | 19 | header: header |
20 | }); | 20 | }); |
21 | + yoho.getAppVersion({}, (version) => { | ||
22 | + document.querySelector('.app-version').textContent = `版本信息:${version}`; | ||
23 | + }); | ||
21 | }); | 24 | }); |
@@ -103,6 +103,23 @@ const yoho = { | @@ -103,6 +103,23 @@ const yoho = { | ||
103 | }, | 103 | }, |
104 | 104 | ||
105 | /** | 105 | /** |
106 | + * 获取app版本号 | ||
107 | + * @param args {""} | ||
108 | + * @param success | ||
109 | + * @param fail | ||
110 | + */ | ||
111 | + getAppVersion(args, success, fail) { | ||
112 | + if (this.isApp && window.yohoInterface) { | ||
113 | + window.yohoInterface.triggerEvent(success || nullFun, fail || nullFun, { | ||
114 | + method: 'get.appversion', | ||
115 | + arguments: args | ||
116 | + }); | ||
117 | + } else { | ||
118 | + // tip(tipInfo); | ||
119 | + } | ||
120 | + }, | ||
121 | + | ||
122 | + /** | ||
106 | * 退出登录,清除本地用户数据 | 123 | * 退出登录,清除本地用户数据 |
107 | * @param args {""} | 124 | * @param args {""} |
108 | * @param success | 125 | * @param success |
-
Please register or login to post a comment