ios判断,红包修改

This commit is contained in:
duan
2025-01-14 18:06:23 +08:00
parent 6e153586c9
commit 383ffe5c31
29 changed files with 1468 additions and 301 deletions

View File

@@ -56,10 +56,22 @@ export const useCommonStore = defineStore("common", {
const key = $map[i]
if (key) {
this[key] = res[i]
uni.setStorageSync(key,res[i])
uni.setStorageSync(key, res[i])
}
}
}
}
},
isIosExamine() {
const sysInfo = uni.getSystemInfoSync();
let isIos = sysInfo.platform == 'ios'
if (!isIos) {
return true
}
let isExamine = useCommonStore()
if (isExamine.isExamine == 1) {
return false
}
return true
}
},
unistorage: true, // 开启后对 state 的数据读写都将持久化