赞
踩
- <web-view src="{{src}}"></web-view>
-
-
- data: {
- src: ""
- },
-
- //查看跳转外链条件,网址+ id
- //option 接收到参数id
- //然后拼接到src上
-
- //接收参数id
- onLoad(option) {
- console.log('99', option);
- this.setData({
- src: 'https://m.xxx.com/' + option.src
- })
- },
-
-
-
- //跳转传递参数id
- go(e){
- const rid = e.target.dataset.rid
- wx.navigateTo({
- url:'/pages/go/go?src='+ rid
- })
- },
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。