|
|
@@ -102,6 +102,18 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ onShow(){
|
|
|
+ //放回前台时,增加监听扫码动作
|
|
|
+ if(this.$refs.rightItemRef){
|
|
|
+ this.$refs.rightItemRef.addListenScan()
|
|
|
+ }
|
|
|
+ },
|
|
|
+ onHide(){
|
|
|
+ //放在后台时,移除监听扫码动作
|
|
|
+ if(this.$refs.rightItemRef){
|
|
|
+ this.$refs.rightItemRef.removeListenScan()
|
|
|
+ }
|
|
|
+ },
|
|
|
watch:{
|
|
|
getLoginInfo: {
|
|
|
handler(newValue) {
|
|
|
@@ -109,7 +121,6 @@ export default {
|
|
|
this.isLogin = 1
|
|
|
|
|
|
if(newValue.skCustomId && newValue.skCustomId>0){
|
|
|
- console.log('this.customId'+newValue.skCustomId)
|
|
|
this.customId = newValue.skCustomId
|
|
|
this.customName = '快捷开单'
|
|
|
}
|