提交 dad3526e 作者: 方治民

chore: 添加审计模式校验

上级 6ba37d19
...@@ -161,7 +161,7 @@ ...@@ -161,7 +161,7 @@
title: '系统检查更新', title: '系统检查更新',
icon: 'update', icon: 'update',
suffix: '', suffix: '',
show: true, show: !userStore.isAuditMode,
handle: () => { handle: () => {
// #ifdef APP-PLUS // #ifdef APP-PLUS
// 检查更新 // 检查更新
...@@ -239,7 +239,9 @@ ...@@ -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-full h-130rpx pl-3 border-rd-lg bg-#fff flex justify-between items-center">
<view class="w-40% flex flex-row"> <view class="w-40% flex flex-row">
<image src="/static/images/codefun/shield.png" class="w-100 h-100" /> <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>
<view class="w-60%"> <view class="w-60%">
<view class="text-25">信用评级: 良好</view> <view class="text-25">信用评级: 良好</view>
......
...@@ -57,7 +57,7 @@ export const useUserStore = defineStore({ ...@@ -57,7 +57,7 @@ export const useUserStore = defineStore({
* @returns 是否为审核账号 * @returns 是否为审核账号
*/ */
isAuditMode(): boolean { isAuditMode(): boolean {
return this.getUserInfo?.phone === '10000000001' return ['10000000001', '13000000000', '13312345678'].includes(this.getUserInfo?.phone)
}, },
}, },
actions: { actions: {
......
// #ifdef APP-PLUS // #ifdef APP-PLUS
import { useUserStoreWithOut } from '@/store/modules/user'
import checkVersion from '@/uni_modules/uni-upgrade-center-app/utils/check-update' import checkVersion from '@/uni_modules/uni-upgrade-center-app/utils/check-update'
// #endif // #endif
export async function checkUpgrade(toast = false): Promise<void> { export async function checkUpgrade(toast = false): Promise<void> {
const userStore = useUserStoreWithOut()
// 审核模式,直接跳过更新检查
if (userStore.isAuditMode) {
return Promise.resolve()
}
// #ifdef APP-PLUS // #ifdef APP-PLUS
// 版本更新检查 // 版本更新检查
if (toast) { if (toast) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论