chore:能正常运行

This commit is contained in:
2025-12-17 11:17:50 +08:00
parent ca74d4f8e5
commit 2a0489d4b2
21 changed files with 5928 additions and 127 deletions

View File

@@ -50,7 +50,8 @@ const store = new Vuex.Store({
goods: '',
head: '',
store: '',
article: ''
article: '',
aiAgent: ''
},
cartList: {},
cartIds: [],
@@ -58,6 +59,8 @@ const store = new Vuex.Store({
cartMoney: 0,
cartChange: 0,
bottomNavHidden: false, // 底部导航是否隐藏true隐藏false显示
aiUnreadCount: 10, // AI未读消息数量
globalAIKefuConfig: null, // AI客服配置
globalStoreConfig: null, // 门店配置
globalStoreInfo: null, // 门店信息
defaultStoreInfo: null, // 默认门店
@@ -138,6 +141,10 @@ const store = new Vuex.Store({
setBottomNavHidden(state, value) {
state.bottomNavHidden = value;
},
setglobalAIKefuConfig(state, value) {
state.globalAIKefuConfig = value;
uni.setStorageSync('globalAIKefuConfig', value); // 初始化数据调用
},
setGlobalStoreConfig(state, value) {
state.globalStoreConfig = value;
uni.setStorageSync('globalStoreConfig', value); // 初始化数据调用
@@ -199,8 +206,18 @@ const store = new Vuex.Store({
},
setCartMoney(state, value) {
state.cartMoney = value;
},
// 设置AI未读消息数量
setAiUnreadCount(state, value) {
state.aiUnreadCount = value;
}
},
getters: {
// AI智能助手配置
globalAIKefuConfig: state => state.globalAIKefuConfig,
// AI未读消息数量
aiUnreadCount: state => state.aiUnreadCount,
},
actions: {
init() {
return new Promise((resolve, reject) => {
@@ -231,6 +248,8 @@ const store = new Vuex.Store({
this.commit('setMapConfig', data.map_config);
this.commit('setglobalAIKefuConfig', data.ai_agent_config);
this.commit('setGlobalStoreConfig', data.store_config);
//联系我们