Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
basic-uniapp-v3
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
1
合并请求
1
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Basic
basic-uniapp-v3
Commits
dad3526e
提交
dad3526e
authored
12月 19, 2025
作者:
方治民
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: 添加审计模式校验
上级
6ba37d19
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
15 行增加
和
5 行删除
+15
-5
index.vue
src/pages/mine/index.vue
+6
-4
user.ts
src/store/modules/user.ts
+1
-1
index.ts
src/utils/upgrade/index.ts
+8
-0
没有找到文件。
src/pages/mine/index.vue
浏览文件 @
dad3526e
...
...
@@ -161,7 +161,7 @@
title
:
'系统检查更新'
,
icon
:
'update'
,
suffix
:
''
,
show
:
tru
e
,
show
:
!
userStore
.
isAuditMod
e
,
handle
:
()
=>
{
// #ifdef APP-PLUS
// 检查更新
...
...
@@ -239,7 +239,9 @@
<view
class=
"w-full h-130rpx pl-3 border-rd-lg bg-#fff flex justify-between items-center"
>
<view
class=
"w-40% flex flex-row"
>
<image
src=
"/static/images/codefun/shield.png"
class=
"w-100 h-100"
/>
<view
class=
"color-#FFAA1E text-50 line-height-loose"
>
{{
userStore
.
getUserInfo
?.
creditScore
}}
</view>
<view
class=
"color-#FFAA1E text-50 line-height-loose"
>
{{
userStore
.
getUserInfo
?.
creditScore
}}
</view>
</view>
<view
class=
"w-60%"
>
<view
class=
"text-25"
>
信用评级: 良好
</view>
...
...
@@ -287,7 +289,7 @@
退出登录
</fui-button>
</view>
<!-- 退出登录确认对话框 -->
<ConfirmDialog
v-model:show=
"model.showLogoutDialog"
...
...
@@ -297,7 +299,7 @@
confirmText=
"确认"
@
confirm=
"handleConfirmLogout"
/>
<!-- 权限提示组件 -->
<!--
<Permissions
@
register=
"registerPermissions"
/>
-->
</view>
...
...
src/store/modules/user.ts
浏览文件 @
dad3526e
...
...
@@ -57,7 +57,7 @@ export const useUserStore = defineStore({
* @returns 是否为审核账号
*/
isAuditMode
():
boolean
{
return
this
.
getUserInfo
?.
phone
===
'10000000001'
return
[
'10000000001'
,
'13000000000'
,
'13312345678'
].
includes
(
this
.
getUserInfo
?.
phone
)
},
},
actions
:
{
...
...
src/utils/upgrade/index.ts
浏览文件 @
dad3526e
// #ifdef APP-PLUS
import
{
useUserStoreWithOut
}
from
'@/store/modules/user'
import
checkVersion
from
'@/uni_modules/uni-upgrade-center-app/utils/check-update'
// #endif
export
async
function
checkUpgrade
(
toast
=
false
):
Promise
<
void
>
{
const
userStore
=
useUserStoreWithOut
()
// 审核模式,直接跳过更新检查
if
(
userStore
.
isAuditMode
)
{
return
Promise
.
resolve
()
}
// #ifdef APP-PLUS
// 版本更新检查
if
(
toast
)
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论