wx-program
parent
cf6867aac4
commit
25c8590dee
|
@ -283,7 +283,7 @@
|
|||
toWebView(id) {
|
||||
// console.log(id);
|
||||
uni.navigateTo({
|
||||
url: '/pages/web_view/web_view?id=' + id
|
||||
url: '/pages/web_view/web_view?id=' + id + '&deviceId=' + this.deviceId
|
||||
})
|
||||
},
|
||||
countData10(data) {
|
||||
|
|
|
@ -9,13 +9,15 @@
|
|||
token:'',
|
||||
id:'',
|
||||
src:'',
|
||||
userid:''
|
||||
userid:'',
|
||||
deviceId:''
|
||||
};
|
||||
},
|
||||
onLoad(options) {
|
||||
// console.log('options',options);
|
||||
if(options){
|
||||
this.id = options.id
|
||||
this.id = options.id;
|
||||
this.deviceId = options.deviceId
|
||||
}
|
||||
let that = this
|
||||
uni.getStorage({
|
||||
|
@ -27,7 +29,7 @@
|
|||
key:'userid',
|
||||
success:function(res){
|
||||
that.userid = res.data
|
||||
that.src = `https://portal.lihe-control.com/#/irrigateSet?id=${that.id}&token=${that.token}&userid=${that.userid}`
|
||||
that.src = `https://portal.lihe-control.com/#/irrigateSet?id=${that.id}&token=${that.token}&userid=${that.userid}&deviceId=${that.deviceId}`
|
||||
// console.log(that.src);
|
||||
}
|
||||
})
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -452,7 +452,7 @@ var _default = {
|
|||
toWebView: function toWebView(id) {
|
||||
// console.log(id);
|
||||
uni.navigateTo({
|
||||
url: '/pages/web_view/web_view?id=' + id
|
||||
url: '/pages/web_view/web_view?id=' + id + '&deviceId=' + this.deviceId
|
||||
});
|
||||
},
|
||||
countData10: function countData10(data) {
|
||||
|
|
|
@ -149,13 +149,15 @@ var _default = {
|
|||
token: '',
|
||||
id: '',
|
||||
src: '',
|
||||
userid: ''
|
||||
userid: '',
|
||||
deviceId: ''
|
||||
};
|
||||
},
|
||||
onLoad: function onLoad(options) {
|
||||
// console.log('options',options);
|
||||
if (options) {
|
||||
this.id = options.id;
|
||||
this.deviceId = options.deviceId;
|
||||
}
|
||||
var that = this;
|
||||
uni.getStorage({
|
||||
|
@ -167,7 +169,7 @@ var _default = {
|
|||
key: 'userid',
|
||||
success: function success(res) {
|
||||
that.userid = res.data;
|
||||
that.src = "https://portal.lihe-control.com/#/irrigateSet?id=".concat(that.id, "&token=").concat(that.token, "&userid=").concat(that.userid);
|
||||
that.src = "https://portal.lihe-control.com/#/irrigateSet?id=".concat(that.id, "&token=").concat(that.token, "&userid=").concat(that.userid, "&deviceId=").concat(that.deviceId);
|
||||
// console.log(that.src);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue