diff --git a/components/tpx-physics-scan/tpx-physics-scan.vue b/components/tpx-physics-scan/tpx-physics-scan.vue index 586e03c..871e0a4 100644 --- a/components/tpx-physics-scan/tpx-physics-scan.vue +++ b/components/tpx-physics-scan/tpx-physics-scan.vue @@ -3,6 +3,7 @@ diff --git a/session/index.js b/session/index.js index 199ac57..7ab8a1d 100644 --- a/session/index.js +++ b/session/index.js @@ -1,4 +1,4 @@ -import { XTOKEN_KEY, USERINFO_KEY, BLUETOOTH_KEY, LOGININFO_KEY } from "./key" +import { XTOKEN_KEY, USERINFO_KEY, BLUETOOTH_KEY, LOGININFO_KEY, SYSTEM_INFO_KEY } from "./key" export const setSessionXToken = (val = '')=> { uni.setStorageSync(XTOKEN_KEY, val) @@ -33,4 +33,17 @@ export const getSessionLoginInfo = ()=> { return uni.getStorageSync(LOGININFO_KEY) || { remberPassport: [] } -} \ No newline at end of file +} + +export const setSessionSystemInfo = (val = {})=> { + // { + // hongWaiSwitch: false, // 红外扫描 + // } + uni.setStorageSync(SYSTEM_INFO_KEY, val) +} + +export const getSessionSystemInfo = ()=> { + return uni.getStorageSync(SYSTEM_INFO_KEY) || { + hongWaiSwitch: false + } +} diff --git a/session/key.js b/session/key.js index 506f5ef..6435ee0 100644 --- a/session/key.js +++ b/session/key.js @@ -1,4 +1,5 @@ export const XTOKEN_KEY = 'XTOKEN_KEY' export const USERINFO_KEY = 'USERINFO_KEY' export const BLUETOOTH_KEY = 'BLUETOOTH_KEY' -export const LOGININFO_KEY = 'LOGININFO_KEY' \ No newline at end of file +export const LOGININFO_KEY = 'LOGININFO_KEY' +export const SYSTEM_INFO_KEY = 'SYSTEM_INFO_KEY' \ No newline at end of file