版本号动态获取显示

This commit is contained in:
尹吉欢
2018-05-28 14:14:48 +08:00
parent aaa2a8274b
commit 79a82ac42e
3 changed files with 23 additions and 3 deletions
+5 -1
View File
@@ -50,7 +50,7 @@
<div class="item-inner">
<div class="item-title-row">
<div class="item-title">关于我们</div>
<div class="item-after">V1.1</div>
<div class="item-after" id="versionInfo">V1.1</div>
</div>
</div>
</a>
@@ -150,6 +150,10 @@ function download(imgUrl) {
mui.plusReady(function() {
plus.runtime.getProperty(plus.runtime.appid, function(inf) {
var localVersion = inf.version;
document.getElementById("versionInfo").innerHTML = "V"+localVersion;
});
axios.get("/rest/ad/position",{params:{position : 7}}).then(function (response) {
var data = response.data.data;
if (data) {