diff --git a/App.vue b/App.vue
index 8521a82..6195dc8 100644
--- a/App.vue
+++ b/App.vue
@@ -2,9 +2,6 @@
// #ifdef VUE3
import { initDictData } from '@/utils/dict'
// #endif
- // #ifdef APP-PLUS
- import { initVersionCheck } from '@/utils/update'
- // #endif
export default {
onLaunch: function() {
@@ -35,14 +32,6 @@
uni.$uv.toast('网络连接不可用,请检查网络设置')
}
})
-
- // #ifdef APP-PLUS
- // 检查应用版本更新(延迟 2 秒,避免影响启动速度)
- initVersionCheck({
- silent: false, // 显示提示
- delay: 2000 // 延迟 2 秒检查
- })
- // #endif
},
onShow: function() {
console.log('App Show')
diff --git a/api/update.js b/api/update.js
index e167177..cd5e532 100644
--- a/api/update.js
+++ b/api/update.js
@@ -10,7 +10,7 @@
* @returns {Promise} 返回版本信息
*/
export const checkAppVersion = (params) => {
- return uni.$uv.http.post('/app/version/check', params, {
+ return uni.$uv.http.post('/bst/app/getLatestVersion', params, {
custom: {
auth: false, // 版本检查可能不需要登录
toast: false // 不自动提示错误
diff --git a/components/my/My.vue b/components/my/My.vue
index a680b3c..a6cbaa4 100644
--- a/components/my/My.vue
+++ b/components/my/My.vue
@@ -11,6 +11,54 @@
开启后仅展示分配给我的客户和任务数据
+
+
+
+
+
+
+ 当前版本
+ {{ currentVersion }}
+
+
+
+ 最新版本
+
+ {{ latestVersion }}
+ 有新版本
+
+
+
+ 最新版本
+ 未检查
+
+
+
+
+
+ {{ checking ? '检查中...' : '检查更新' }}
+
+
+
+ 立即更新
+
+
+
+
@@ -21,12 +69,22 @@