版本号动态获取显示
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user