10.13 修改时间筛选逻辑,去掉分时图线上圆圈展示,修改K线图颜色
This commit is contained in:
41
unpackage/dist/dev/mp-weixin/app.js
vendored
41
unpackage/dist/dev/mp-weixin/app.js
vendored
@@ -37,12 +37,51 @@ const _sfc_main = {
|
||||
},
|
||||
onShow: function() {
|
||||
common_vendor.index.__f__("log", "at App.vue:20", "App Show");
|
||||
this.updateManager();
|
||||
},
|
||||
onHide: function() {
|
||||
common_vendor.index.__f__("log", "at App.vue:23", "App Hide");
|
||||
common_vendor.index.__f__("log", "at App.vue:24", "App Hide");
|
||||
},
|
||||
globalData: {
|
||||
mobileReg: /^1[3456789][0-9]{9}$/
|
||||
},
|
||||
methods: {
|
||||
updateManager() {
|
||||
const updateManager = common_vendor.index.getUpdateManager();
|
||||
updateManager.onCheckForUpdate((res) => {
|
||||
if (res.hasUpdate) {
|
||||
common_vendor.index.showModal({
|
||||
title: "更新提示",
|
||||
content: "检测到新版本,是否下载新版本并重启小程序?",
|
||||
success(res2) {
|
||||
if (res2.confirm) {
|
||||
updateManager.onUpdateReady(() => {
|
||||
common_vendor.index.showModal({
|
||||
title: "更新提示",
|
||||
content: "新版本已经准备好,即将重启应用",
|
||||
showCancel: false,
|
||||
success(res3) {
|
||||
if (res3.confirm) {
|
||||
updateManager.applyUpdate();
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
},
|
||||
fail(error) {
|
||||
}
|
||||
});
|
||||
}
|
||||
updateManager.onUpdateFailed(() => {
|
||||
common_vendor.index.showModal({
|
||||
title: "更新提示",
|
||||
content: "新版本下载失败",
|
||||
showCancel: false
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
function createApp() {
|
||||
|
||||
Reference in New Issue
Block a user