Commit f2474c3b by 前端

合并

1 parent 480e9e27
......@@ -3,4 +3,9 @@ export default {
siteData: (state) => state.site.siteData,
userData: (state) => state.user.userData,
userId: (state) => state.user.userData.id,
isInBackgound: (state) => state.sys.isInBackgound,
customerInfo: (state) => state.user.customerInfo,
receptionTrack: (state) => state.user.receptionTrack,
receptionStatus: (state) => state.audio.receptionStatus,
booksList: (state) => state.audio.booksList,
};
/*
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-04-07 17:09:50
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-04-09 10:08:11
* @LastEditors: limin
* @LastEditTime: 2024-12-27 21:11:57
* @FilePath: \gl_tape\store\index.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
......@@ -12,13 +12,15 @@ import getters from "./getters";
import user from "./modules/user";
import audio from "./modules/audio";
import update from "./modules/update";
import sys from "./modules/sys";
Vue.use(Vuex);
const store = new Vuex.Store({
modules: {
user,
audio,
update
update,
sys
},
getters,
});
......
......@@ -2,14 +2,12 @@
* @Description:
* @Author: huyue
* @Date: 2024-04-07 18:15:11
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-10-21 11:49:44
* @LastEditors: limin
* @LastEditTime: 2025-01-03 21:26:31
*/
// import { setToken, getToken, removeToken } from '@/utils/token';;
import utils from '@/utils/utils'
// const recorderManager = uni.getRecorderManager();
import upload from '@/utils/ossUploadFile/uploadFile.js'
import store from '../index'
export default {
namespaced: true,
state() {
......@@ -53,7 +51,6 @@ export default {
},
actions: {
setPerRecordNumber({ commit }, value) {
console.log(value)
commit('setPerRecordNumber', value)
}
// startAudio({ commit, state, dispatch }) {
......
export default {
state() {
return {
isInBackgound: false
}
},
mutations: {
SET_BACKGROUND_STATE(state, value) {
state.isInBackgound = value
}
},
actions: {
setBackgroundState({ commit }, value) {
uni.$logger.local.info(`【==== ${['切回', '切出'][+value]} ====】 APP`)
commit('SET_BACKGROUND_STATE', value)
}
}
}
......@@ -2,8 +2,8 @@
* @Description:
* @Author: huyue
* @Date: 2024-04-07 18:15:11
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-04-11 21:19:09
* @LastEditors: limin
* @LastEditTime: 2025-01-03 20:52:28
*/
// import { setToken, getToken, removeToken } from '@/utils/token';;
......@@ -24,8 +24,11 @@ export default {
employeeList: [],
paymentType: [],
haveCustomerAccess: false,
boutiqueMediaConfig: {},
boutiqueCarList:[],
boutiqueMediaConfig: {
M5: [],
M7: [],
M9: []
},
receptionTrack: {}, //接待记录埋点
boutiqueDefaultCarBrandId: ''
};
......@@ -34,10 +37,10 @@ export default {
getCustomerInfo (state) {
return state.customerInfo;
},
setCustomerInfo (state, data) {
setCustomerInfo (state, data = {}) {
// state.customerInfo = data;
uni.$storage.set("customerInfo", JSON.stringify(data));
state.customerInfo = JSON.parse(uni.$storage.get("customerInfo") || "{}");
state.customerInfo = data
},
clearCustomerInfo (state) {
const info = {
......@@ -50,7 +53,7 @@ export default {
newCarFare: ''
};
uni.$storage.set("customerInfo", JSON.stringify(info));
state.customerInfo = JSON.parse(uni.$storage.get("customerInfo") || "{}");
state.customerInfo = info
},
},
actions: {
......@@ -78,7 +81,6 @@ export default {
},
setReceptionTrack ({ state }, { key, value }) {
state.receptionTrack[key] = value
// console.log(JSON.parse(JSON.stringify(state.receptionTrack)))
},
clearReceptionTrack ({ state }) {
state.receptionTrack = {}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!