|
|
@@ -228,33 +228,34 @@
|
|
228
|
228
|
console.log(nowVersionCode + "---" + serveVersionCode)
|
|
229
|
229
|
if (nowVersionCode !== serveVersionCode) {
|
|
230
|
230
|
if (typeUp === 0) {
|
|
231
|
|
- plus.runtime.openURL(data.FileUrl[0].F_FileUrl, err => {
|
|
232
|
|
- plus.runtime.openURL(data.FileUrl[0].F_FileUrl);
|
|
233
|
|
- }, 'com.android.browser');
|
|
234
|
|
- // uni.showModal({
|
|
235
|
|
- // title: '更新',
|
|
236
|
|
- // content: '是否更新',
|
|
237
|
|
- // success: function (res) {
|
|
238
|
|
- // if (res.confirm) {
|
|
239
|
|
- // console.log(data.F_FileUrl)
|
|
240
|
|
- // } else if (res.cancel) {
|
|
241
|
|
- // this.$mHelper.toast("取消更新");
|
|
242
|
|
- // }
|
|
243
|
|
- // }
|
|
244
|
|
- // });
|
|
|
231
|
+
|
|
|
232
|
+ uni.showModal({
|
|
|
233
|
+ title: '更新',
|
|
|
234
|
+ content: '是否更新',
|
|
|
235
|
+ showCancel:false,
|
|
|
236
|
+ success: function (res) {
|
|
|
237
|
+ if (res.confirm) {
|
|
|
238
|
+ plus.runtime.openURL(data.FileUrl[0].F_FileUrl, err => {
|
|
|
239
|
+ plus.runtime.openURL(data.FileUrl[0].F_FileUrl);
|
|
|
240
|
+ }, 'com.android.browser');
|
|
|
241
|
+ } else if (res.cancel) {
|
|
|
242
|
+ this.$mHelper.toast("取消更新");
|
|
|
243
|
+ }
|
|
|
244
|
+ }
|
|
|
245
|
+ });
|
|
245
|
246
|
} else if (typeUp === 1) {
|
|
246
|
|
- plus.runtime.openURL(data.F_Url);
|
|
247
|
|
- // uni.showModal({
|
|
248
|
|
- // title: '更新',
|
|
249
|
|
- // content: '是否更新',
|
|
250
|
|
- // success: function (res) {
|
|
251
|
|
- // if (res.confirm) {
|
|
252
|
|
- // plus.runtime.openURL(data.F_Url);
|
|
253
|
|
- // } else if (res.cancel) {
|
|
254
|
|
- // this.$mHelper.toast("取消更新");
|
|
255
|
|
- // }
|
|
256
|
|
- // }
|
|
257
|
|
- // });
|
|
|
247
|
+ uni.showModal({
|
|
|
248
|
+ title: '更新',
|
|
|
249
|
+ content: '是否更新',
|
|
|
250
|
+ showCancel:false,
|
|
|
251
|
+ success: function (res) {
|
|
|
252
|
+ if (res.confirm) {
|
|
|
253
|
+ plus.runtime.openURL(data.F_Url);
|
|
|
254
|
+ } else if (res.cancel) {
|
|
|
255
|
+ this.$mHelper.toast("取消更新");
|
|
|
256
|
+ }
|
|
|
257
|
+ }
|
|
|
258
|
+ });
|
|
258
|
259
|
|
|
259
|
260
|
}
|
|
260
|
261
|
|