0000
This commit is contained in:
21
pages/webview/webview.js
Normal file
21
pages/webview/webview.js
Normal file
@@ -0,0 +1,21 @@
|
||||
Page({
|
||||
data: {
|
||||
url: ""
|
||||
},
|
||||
onLoad: function(n) {
|
||||
this.setData({
|
||||
url: n.url
|
||||
});
|
||||
},
|
||||
onReady: function() {},
|
||||
onShow: function() {},
|
||||
onHide: function() {},
|
||||
onUnload: function() {},
|
||||
onPullDownRefresh: function() {},
|
||||
onReachBottom: function() {},
|
||||
onShareAppMessage: function() {
|
||||
return {
|
||||
path: "/pages/webview/webview?url=".concat(this.data.url)
|
||||
};
|
||||
}
|
||||
});
|
||||
3
pages/webview/webview.json
Normal file
3
pages/webview/webview.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
pages/webview/webview.wxml
Normal file
1
pages/webview/webview.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<web-view src="{{url}}"></web-view>
|
||||
0
pages/webview/webview.wxss
Normal file
0
pages/webview/webview.wxss
Normal file
Reference in New Issue
Block a user