修改ios審核時候的視頻播放

This commit is contained in:
duan
2025-01-18 09:51:56 +08:00
parent 503f1d4594
commit 940cf8c2e7
10 changed files with 189 additions and 110 deletions

View File

@@ -38,7 +38,6 @@ const $map = {
922: 'withdrawNum',
500: 'payTips',
914: 'goldBili', // 金币比例
919: 'isExamine' //是否ios审核中
}
export const useCommonStore = defineStore("common", {
@@ -46,15 +45,15 @@ export const useCommonStore = defineStore("common", {
return {
payTips: '付款完成后不要忘记抽红包哦',
goldBili: 0,
sysInfo:{},
isIos:false,
isExamine:1
sysInfo: {},
isIos: false,
isExamines: 0
};
},
actions: {
async init() {
this.sysInfo=uni.getSystemInfoSync()
this.isIos=this.sysInfo.platform == 'ios'
this.sysInfo = uni.getSystemInfoSync()
this.isIos = this.sysInfo.platform == 'ios'
const res = await getCommonConfig()
if (res) {
for (let i in $map) {
@@ -63,19 +62,31 @@ export const useCommonStore = defineStore("common", {
this[key] = res[i]
uni.setStorageSync(key, res[i])
}
}
}
}
},
isIosExamine() {
setversion(a, b) {
// a是當前應用的版本號 b是接口拿的
let appversion = (a.split('.').join('')) * 1
let resversion = (b.split('.').join('')) * 1
console.log('當前版本-' + appversion, '接口版本-' + resversion, '返回-' + this.isIosExamine,'判斷值-'+this.isExamines)
if (appversion > resversion) {
// 再審核
this.isExamines = 1
}
}
},
getters: {
isIosExamine: function() {
if (!this.isIos) {
return true
}
if (this.isExamine == 1) {
}
if (this.isExamines == 1) {
return false
}
return true
}
},
unistorage: true, // 开启后对 state 的数据读写都将持久化
});