|
|
@@ -164,30 +164,33 @@
|
|
164
|
164
|
console.log(nowVersionCode + "---" +serveVersionCode)
|
|
165
|
165
|
if (nowVersionCode !== serveVersionCode) {
|
|
166
|
166
|
if(typeUp === 0){
|
|
167
|
|
- uni.showModal({
|
|
168
|
|
- title: '更新',
|
|
169
|
|
- content: '是否更新',
|
|
170
|
|
- success: function (res) {
|
|
171
|
|
- if (res.confirm) {
|
|
172
|
|
- console.log(data.F_FileUrl)
|
|
173
|
|
- plus.runtime.openURL(data.FileUrl[0].F_FileUrl);
|
|
174
|
|
- } else if (res.cancel) {
|
|
175
|
|
- this.$mHelper.toast("取消更新");
|
|
176
|
|
- }
|
|
177
|
|
- }
|
|
178
|
|
- });
|
|
|
167
|
+ plus.runtime.openURL(data.FileUrl[0].F_FileUrl, err=>{
|
|
|
168
|
+ plus.runtime.openURL(data.FileUrl[0].F_FileUrl);
|
|
|
169
|
+ }, 'com.android.browser');
|
|
|
170
|
+ // uni.showModal({
|
|
|
171
|
+ // title: '更新',
|
|
|
172
|
+ // content: '是否更新',
|
|
|
173
|
+ // success: function (res) {
|
|
|
174
|
+ // if (res.confirm) {
|
|
|
175
|
+ // console.log(data.F_FileUrl)
|
|
|
176
|
+ // } else if (res.cancel) {
|
|
|
177
|
+ // this.$mHelper.toast("取消更新");
|
|
|
178
|
+ // }
|
|
|
179
|
+ // }
|
|
|
180
|
+ // });
|
|
179
|
181
|
}else if(typeUp === 1){
|
|
180
|
|
- uni.showModal({
|
|
181
|
|
- title: '更新',
|
|
182
|
|
- content: '是否更新',
|
|
183
|
|
- success: function (res) {
|
|
184
|
|
- if (res.confirm) {
|
|
185
|
|
- plus.runtime.openURL(data.F_Url);
|
|
186
|
|
- } else if (res.cancel) {
|
|
187
|
|
- this.$mHelper.toast("取消更新");
|
|
188
|
|
- }
|
|
189
|
|
- }
|
|
190
|
|
- });
|
|
|
182
|
+ plus.runtime.openURL(data.F_Url);
|
|
|
183
|
+ // uni.showModal({
|
|
|
184
|
+ // title: '更新',
|
|
|
185
|
+ // content: '是否更新',
|
|
|
186
|
+ // success: function (res) {
|
|
|
187
|
+ // if (res.confirm) {
|
|
|
188
|
+ // plus.runtime.openURL(data.F_Url);
|
|
|
189
|
+ // } else if (res.cancel) {
|
|
|
190
|
+ // this.$mHelper.toast("取消更新");
|
|
|
191
|
+ // }
|
|
|
192
|
+ // }
|
|
|
193
|
+ // });
|
|
191
|
194
|
|
|
192
|
195
|
}
|
|
193
|
196
|
|