From c5542e9e2b2fd14633b596334b957535459ae30e Mon Sep 17 00:00:00 2001
From: lin <1005713861@163.com>
Date: Fri, 10 Jul 2026 16:17:15 +0800
Subject: [PATCH] UI:澜品优选:1.行权问题修复;2.版本更新提示
---
App.vue | 48 ++++++++++++++++++++++++++++++------------------
1 files changed, 30 insertions(+), 18 deletions(-)
diff --git a/App.vue b/App.vue
index df3e9ab..37722e1 100644
--- a/App.vue
+++ b/App.vue
@@ -6,8 +6,8 @@
if(args){
// 处理args参数,如直达到某新页面等
console.log('args', args)
- if(args.indexOf('lzzzsc-app') >= 0) {
- args = args.replace("lzzzsc-app://", "/")
+ if(args.indexOf('gyq-app') >= 0) {
+ args = args.replace("gyq-app://", "/")
return uni.redirectTo({
url: args
})
@@ -21,7 +21,7 @@
console.log('getConfig', res.data)
if(res.code == 1){
try {
- const token = uni.getStorageSync('lzsc-token');
+ const token = uni.getStorageSync('pig-token');
if (!token) {
/*
uni.redirectTo({
@@ -35,10 +35,10 @@
url: '/pages/login/login'
})
return false
-
+
}
uni.setStorageSync('Config', JSON.stringify(res.data))
-
+
// #ifdef APP-PLUS
//机型
let platform = uni.getSystemInfoSync().platform.toLocaleLowerCase()
@@ -58,18 +58,30 @@
updateFlag = !updateFlag
updesc = res.data.android.desc
}
- if (downUrl && updateFlag) {
- uni.showModal({
- showCancel: false,
- confirmText: '立即更新',
- title: '温馨提示!',
- content: updesc || '有最新版本,请更新APP!',
- success: res => {
- if (res.confirm) {
- plus.runtime.openURL(downUrl)
- }
- }
- })
+ // if (downUrl && updateFlag) {
+ if (updateFlag) {
+ // uni.showModal({
+ // showCancel: false,
+ // confirmText: '立即更新',
+ // title: '温馨提示!',
+ // content: updesc || '有最新版本,请更新APP!',
+ // success: res => {
+ // if (res.confirm) {
+ // plus.runtime.openURL(downUrl)
+ // }
+ // }
+ // })
+ uni.showModal({
+ showCancel: false,
+ confirmText: '确定',
+ title: '版本更新提示!',
+ content: updesc,
+ success: res => {
+ if (res.confirm) {
+
+ }
+ }
+ })
}
})
// #endif
@@ -105,7 +117,7 @@
.noDataBtn{
width: 240upx !important;
margin: 50upx auto;
- background-color: #ff7945;
+ background-color: #4766FE;
color: #ffffff !important;
letter-spacing: 10upx;
height: 70upx;
--
Gitblit v1.9.3