wx-program
parent
cf6867aac4
commit
25c8590dee
|
@ -283,7 +283,7 @@
|
||||||
toWebView(id) {
|
toWebView(id) {
|
||||||
// console.log(id);
|
// console.log(id);
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/web_view/web_view?id=' + id
|
url: '/pages/web_view/web_view?id=' + id + '&deviceId=' + this.deviceId
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
countData10(data) {
|
countData10(data) {
|
||||||
|
|
|
@ -9,13 +9,15 @@
|
||||||
token:'',
|
token:'',
|
||||||
id:'',
|
id:'',
|
||||||
src:'',
|
src:'',
|
||||||
userid:''
|
userid:'',
|
||||||
|
deviceId:''
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
// console.log('options',options);
|
// console.log('options',options);
|
||||||
if(options){
|
if(options){
|
||||||
this.id = options.id
|
this.id = options.id;
|
||||||
|
this.deviceId = options.deviceId
|
||||||
}
|
}
|
||||||
let that = this
|
let that = this
|
||||||
uni.getStorage({
|
uni.getStorage({
|
||||||
|
@ -27,7 +29,7 @@
|
||||||
key:'userid',
|
key:'userid',
|
||||||
success:function(res){
|
success:function(res){
|
||||||
that.userid = res.data
|
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);
|
// 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) {
|
toWebView: function toWebView(id) {
|
||||||
// console.log(id);
|
// console.log(id);
|
||||||
uni.navigateTo({
|
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) {
|
countData10: function countData10(data) {
|
||||||
|
|
|
@ -149,13 +149,15 @@ var _default = {
|
||||||
token: '',
|
token: '',
|
||||||
id: '',
|
id: '',
|
||||||
src: '',
|
src: '',
|
||||||
userid: ''
|
userid: '',
|
||||||
|
deviceId: ''
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad: function onLoad(options) {
|
onLoad: function onLoad(options) {
|
||||||
// console.log('options',options);
|
// console.log('options',options);
|
||||||
if (options) {
|
if (options) {
|
||||||
this.id = options.id;
|
this.id = options.id;
|
||||||
|
this.deviceId = options.deviceId;
|
||||||
}
|
}
|
||||||
var that = this;
|
var that = this;
|
||||||
uni.getStorage({
|
uni.getStorage({
|
||||||
|
@ -167,7 +169,7 @@ var _default = {
|
||||||
key: 'userid',
|
key: 'userid',
|
||||||
success: function success(res) {
|
success: function success(res) {
|
||||||
that.userid = res.data;
|
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);
|
// console.log(that.src);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue