|
@@ -287,6 +287,13 @@
|
|
|
if (checkPermi(['system:notice:number'])) {
|
|
|
// this.getNoticenumber()
|
|
|
}
|
|
|
+ // #ifdef APP-PLUS
|
|
|
+ plus.runtime.getProperty(plus.runtime.appid, function(widgetInfo) {
|
|
|
+ that.$store.dispatch('SetwgtFn', widgetInfo.version).then(() => {
|
|
|
+ that.wgtcode=widgetInfo.version
|
|
|
+ })
|
|
|
+ });
|
|
|
+ // #endif
|
|
|
},
|
|
|
methods: {
|
|
|
checkPermi,
|
|
@@ -346,7 +353,9 @@
|
|
|
onlineWgt() {
|
|
|
let that = this;
|
|
|
plus.runtime.getProperty(plus.runtime.appid, function(widgetInfo) {
|
|
|
- that.$store.dispatch('SetwgtFn', widgetInfo.version).then(() => {})
|
|
|
+ that.$store.dispatch('SetwgtFn', widgetInfo.version).then(() => {
|
|
|
+ that.wgtcode=widgetInfo.version
|
|
|
+ })
|
|
|
that.comparisonVersionNo(widgetInfo.versionCode);
|
|
|
});
|
|
|
// that.comparisonVersionNo()
|
|
@@ -363,7 +372,7 @@
|
|
|
console.log(versionNos, 'versionNos')
|
|
|
// console.log(res.data.path);
|
|
|
let filePath = res.data.path;
|
|
|
- if (versionNos != versionCode) { //服务器返回1更新,0则不更新
|
|
|
+ if (Number(versionNos) > Number(versionCode)) { //服务器返回1更新,0则不更新
|
|
|
uni.showModal({
|
|
|
title: '提示',
|
|
|
content: '发现新版本,是否升级',
|