上传代码

This commit is contained in:
2025-08-18 10:01:04 +08:00
commit d0be991e07
2614 changed files with 1130442 additions and 0 deletions

View File

@ -0,0 +1,23 @@
let sysinfo = uni.getSystemInfoSync();
const Bluetooth = {
state: {
//蓝牙信息
BLEInformation: {
platform: sysinfo.platform || "",
deviceId: "",
writeCharaterId: "",
writeServiceId: "",
notifyCharaterId: "",
notifyServiceId: "",
readCharaterId: "",
readServiceId: "",
}
},
mutations:{
BLEInformationSet(state, info){
state.BLEInformation = info;
}
}
}
export default Bluetooth;

View File

@ -0,0 +1,24 @@
import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
//蓝牙设置
import Bluetooth from '@/store/bluetooth/index.js'
const store = new Vuex.Store({
modules: {
Bluetooth
},
state: {
sysinfo: uni.getSystemInfoSync(),//系统信息
},
mutations: {
}
})
export default store

View File

@ -0,0 +1,27 @@
import Vue from 'vue';
import Vuex from 'vuex';
Vue.use(Vuex);
const state = {
userInfo: {}
};
const mutations = {
SET_USER_INFO(state, userInfo) {
state.userInfo = userInfo;
}
};
const actions = {
setUserInfo({ commit }, userInfo) {
commit('SET_USER_INFO', userInfo);
}
};
export default new Vuex.Module({
namespaced: true,
state,
mutations,
actions
});