|
@@ -14,16 +14,20 @@
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
onLoad(option) {
|
|
onLoad(option) {
|
|
|
- let obj = JSON.parse(decodeURIComponent(option.item))
|
|
|
|
|
- console.log('obj',obj)
|
|
|
|
|
- let url = '';
|
|
|
|
|
- if(obj.type == 4){
|
|
|
|
|
- url = uni.getStorageSync('cameraExtranetAgent')+'?source=2&type=4&subId='+obj.subId+'&touken='+uni.getStorageSync('token')
|
|
|
|
|
- }else if(obj.type == 5){
|
|
|
|
|
- url = uni.getStorageSync('cameraExtranetAgent')+'?source=5&type=5&floorId='+obj.floorId+'&subId='+obj.subId+'&touken='+uni.getStorageSync('token')
|
|
|
|
|
|
|
+ if(uni.getStorageSync('weChatProgramVersion')){
|
|
|
|
|
+ let obj = JSON.parse(decodeURIComponent(option.item))
|
|
|
|
|
+ let url = '';
|
|
|
|
|
+ if(obj.type == 4){
|
|
|
|
|
+ url = uni.getStorageSync('cameraExtranetAgent')+'?source=2&type=4&subId='+obj.subId+'&touken='+uni.getStorageSync('token')
|
|
|
|
|
+ }else if(obj.type == 5){
|
|
|
|
|
+ url = uni.getStorageSync('cameraExtranetAgent')+'?source=5&type=5&floorId='+obj.floorId+'&subId='+obj.subId+'&touken='+uni.getStorageSync('token')
|
|
|
|
|
+ }
|
|
|
|
|
+ this.$set(this,'webViewUrl',url);
|
|
|
|
|
+ this.$set(this,'pageType',true);
|
|
|
|
|
+ }else{
|
|
|
|
|
+ this.$set(this,'webViewUrl','');
|
|
|
|
|
+ this.$set(this,'pageType',false);
|
|
|
}
|
|
}
|
|
|
- this.$set(this,'webViewUrl',url);
|
|
|
|
|
- this.$set(this,'pageType',true);
|
|
|
|
|
},
|
|
},
|
|
|
onShow(){
|
|
onShow(){
|
|
|
|
|
|