智能灌溉控制器页面跳转

This commit is contained in:
home孙 2025-10-03 14:57:29 +08:00
parent a783455ddc
commit e1b2f49646
2 changed files with 3 additions and 4 deletions

View File

@ -228,7 +228,7 @@
</view> </view>
<view class="line_pop"></view> <view class="line_pop"></view>
<view class="changeMoreBtn" @click="toWebView(indexs)"> <view class="changeMoreBtn" @click="toWebView(indexs,'irrigateSet-soil')">
<image src="../../static/changeMore.png" mode=""></image> <image src="../../static/changeMore.png" mode=""></image>
<text>修改更多参数</text> <text>修改更多参数</text>
</view> </view>
@ -451,10 +451,10 @@
openSoilshow(){ openSoilshow(){
this.Soilshow=true this.Soilshow=true
}, },
toWebView(id) { toWebView(id,url) {
// console.log(id); // console.log(id);
uni.navigateTo({ uni.navigateTo({
url: '/pages/web_view/web_view?id=' + id + '&deviceId=' + this.deviceId url: '/pages/web_view/web_view?id=' + id + '&deviceId=' + this.deviceId+ '&url=' + url
}) })
}, },
countData10(data) { countData10(data) {

View File

@ -32,7 +32,6 @@
success:function(res){ success:function(res){
that.userid = res.data that.userid = res.data
that.src = `https://portal.lihe-control.com/#/${options.url}?id=${that.id}&token=${that.token}&userid=${that.userid}&deviceId=${that.deviceId}` that.src = `https://portal.lihe-control.com/#/${options.url}?id=${that.id}&token=${that.token}&userid=${that.userid}&deviceId=${that.deviceId}`
// console.log(that.src);
} }
}) })
}, },