|
@@ -49,7 +49,7 @@
|
|
|
</view>
|
|
|
</u-card>
|
|
|
<u-button type="primary" @click="exit" style="margin: 20rpx">安全退出</u-button>
|
|
|
- <luo-version-upgrade v-if="show_s == true" version="1.0.1" :url="url" :is_force="is_force"></luo-version-upgrade>
|
|
|
+ <luo-version-upgrade v-if="show_s == true" version="1.0.1" :url="url" :is_force="is_force" :describe="Copywriting"></luo-version-upgrade>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -69,6 +69,7 @@
|
|
|
show_s: false,
|
|
|
url: '',
|
|
|
is_force:false,
|
|
|
+ Copywriting:''
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -107,7 +108,7 @@
|
|
|
console.log(res.data.msg) //更新文案
|
|
|
console.log(res.data.url) //下载最新版地址
|
|
|
console.log(res.data.version) //最新版本
|
|
|
-
|
|
|
+
|
|
|
plus.runtime.getProperty(plus.runtime.appid, (wgtinfo) => {
|
|
|
console.log(wgtinfo);
|
|
|
console.log(wgtinfo.version); //版本号
|
|
@@ -122,12 +123,15 @@
|
|
|
console.log("已经是最新版本了")
|
|
|
} else if (wgtinfo.version != res.data.forceVersion) {
|
|
|
console.log("必须强制更新")
|
|
|
+ this.Copywriting = res.data.msg
|
|
|
this.show_s = true
|
|
|
console.log(res.data.url)
|
|
|
this.url = res.data.url
|
|
|
this.is_force = true
|
|
|
} else if (wgtinfo.version == res.data.forceVersion) {
|
|
|
console.log("达到最低版本")
|
|
|
+ this.Copywriting = res.data.msg
|
|
|
+ console.log(this.Copywriting)
|
|
|
this.is_force = false
|
|
|
this.show_s = true
|
|
|
console.log(this.show_s)
|