支付增加轮询,store/common判断是否展示红包代码修改

This commit is contained in:
2025-01-15 15:24:06 +08:00
parent c2bbfc2342
commit c276c9431b
2 changed files with 42 additions and 14 deletions

View File

@@ -46,12 +46,15 @@ export const useCommonStore = defineStore("common", {
return {
payTips: '付款完成后不要忘记抽红包哦',
goldBili: 0,
sysInfo:{}
sysInfo:{},
isIos:false,
isExamine:1
};
},
actions: {
async init() {
this.sysInfo=uni.getSystemInfoSync()
this.isIos=this.sysInfo.platform == 'ios'
const res = await getCommonConfig()
if (res) {
for (let i in $map) {
@@ -64,13 +67,10 @@ export const useCommonStore = defineStore("common", {
}
},
isIosExamine() {
const sysInfo = uni.getSystemInfoSync();
let isIos = sysInfo.platform == 'ios'
if (!isIos) {
if (!this.isIos) {
return true
}
let isExamine = useCommonStore()
if (isExamine.isExamine == 1) {
if (this.isExamine == 1) {
return false
}
return true