Commit 2fb7cf9b by 陈玉桐

fix 首页banner跳转webview

parent 25ab5c4d
......@@ -95,8 +95,7 @@ Page({
method: 'POST',
data: {
token: wx.getStorageSync('token'),
// historyId: options.historyId
historyId: 12
historyId: options.historyId
},
success: function (res) {
// 请求成功后关闭Loading
......
......@@ -842,4 +842,10 @@ Page({
})
}
},
// banner跳转
toUrl(e) {
wx.navigateTo({
url: '/pages/out/out?url='+e.currentTarget.dataset.url
})
}
})
\ No newline at end of file
......@@ -5,7 +5,7 @@
autoplay="{{autoplay}}" interval="{{interval}}" circular="{{ circular }}">
<block wx:for="{{imgUrls}}" wx:key="{{index}}">
<swiper-item class="swiperCon">
<image src="{{item.url}}" class="slideImage"/>
<image src="{{item.url}}" data-url="{{item.redirectTo}}" bindtap="toUrl" class="slideImage"/>
</swiper-item>
</block>
</swiper>
......
Page({
data:{
url: ''
},
onLoad: function (options) {
console.log(options.url)
this.setData({
url: options.url
})
}
})
\ No newline at end of file
<web-view src="https://seex.dev.iouou.cn/Wechat/WechatIot/wxDeviceWifi#wechat_redirect"></web-view>
\ No newline at end of file
<web-view src="{{url}}"></web-view>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment