|
|
@@ -11,6 +11,7 @@
|
|
|
uni.removeStorageSync("device_sn")
|
|
|
uni.removeStorageSync("sessionId")
|
|
|
uni.removeStorageSync("title")
|
|
|
+ uni.removeStorageSync("channel")
|
|
|
console.log('option>onLaunch>>>>'+JSON.stringify( option.query))
|
|
|
if( option.query.sn!=''&&option.query.sn!=null){
|
|
|
uni.setStorageSync("device_sn",option.query.sn)
|
|
|
@@ -56,12 +57,20 @@
|
|
|
uni.removeStorageSync("device_sn")
|
|
|
uni.removeStorageSync("sessionId")
|
|
|
uni.removeStorageSync("title")
|
|
|
+ uni.removeStorageSync("channel")
|
|
|
console.log('option>onLaunch>>>>'+JSON.stringify( option.query))
|
|
|
if( option.query.sn!=''&&option.query.sn!=null){
|
|
|
uni.setStorageSync("device_sn",option.query.sn)
|
|
|
}else{
|
|
|
- uni.setStorageSync("device_sn",'')
|
|
|
+ uni.setStorageSync("device_sn",'')
|
|
|
}
|
|
|
+
|
|
|
+ if( option.query.channel!=''&&option.query.channel!=null){
|
|
|
+ uni.setStorageSync("channel",option.query.channel)
|
|
|
+ }else{
|
|
|
+ uni.setStorageSync("channel",'')
|
|
|
+ }
|
|
|
+
|
|
|
//Object.keys(option.query).includes('sessionId') &&
|
|
|
if( option.query.sessionId!=''&&option.query.sessionId!=null){
|
|
|
uni.setStorageSync("sessionId",option.query.sessionId)
|