提交 dad3526e 作者: 方治民

chore: 添加审计模式校验

上级 6ba37d19
......@@ -161,7 +161,7 @@
title: '系统检查更新',
icon: 'update',
suffix: '',
show: true,
show: !userStore.isAuditMode,
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>
......
......@@ -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: {
......
// #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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论