From 84d4792aca13a09c01d9d4f0e6ad75affdd1bb47 Mon Sep 17 00:00:00 2001
From: WindowBird <13870814+windows-bird@user.noreply.gitee.com>
Date: Wed, 19 Nov 2025 13:42:44 +0800
Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E7=8E=B0=E6=96=B0=E7=89=88=E6=9C=AC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
App.vue | 11 ---
api/update.js | 2 +-
components/my/My.vue | 180 ++++++++++++++++++++++++++++++++++++++++++-
3 files changed, 180 insertions(+), 13 deletions(-)
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 @@