修复我的喜欢跳转视频详情进去走的历史记录问题,公共配置全部放到store/common.js下

This commit is contained in:
2025-01-14 10:13:05 +08:00
parent 781783a665
commit 66236012c9
4 changed files with 33 additions and 18 deletions

View File

@@ -18,11 +18,11 @@ const $map = {
251: 'isGuanggao',
254: 'isGuanggaody',
202: 'kefu',
249: 'moreSearch', //热搜词
206: 'kefuPhone',
204: 'kefuUrl',
203: 'kefuAppId',
248: 'isVips',
249: 'moreSearch',
49: 'AppUrl',
823: 'OfferID',
824: 'payEnv',
@@ -37,14 +37,15 @@ const $map = {
109: '',
922: 'withdrawNum',
500: 'payTips',
914: 'goldBili' // 金币比例
914: 'goldBili', // 金币比例
919: 'isExamine' //是否ios审核中
}
export const useCommonStore = defineStore("common", {
state() {
return {
payTips: '付款完成后不要忘记抽红包哦',
goldBili:0
goldBili: 0
};
},
actions: {
@@ -55,6 +56,7 @@ export const useCommonStore = defineStore("common", {
const key = $map[i]
if (key) {
this[key] = res[i]
uni.setStorageSync(key,res[i])
}
}
}