web-view:每個頁面只能有一個 web-view,承載網頁的容器。會自動鋪滿整個小程序頁面,並覆蓋其他組件。個人類型的小程序暫不支持使用。
官方文檔(https://developers.weixin.qq.com/miniprogram/dev/component/web-view.html)

小程序點擊跳轉按鈕事件
hotPackage() { global.globalData.Params = "XXXXX"; mpvue.navigateTo({ url: "/pages/webview/main?url=https://XXX.html#/" }); },
接收頁面:
<web-view :src="url"></web-view>
export default { data() { return { url: "", params:"" }; }, onLoad(options) { let that = this; that.params = global.globalData.Params console.log(options) if (options.url) { that.url = options.url+'?'+that.params; } console.log(this.url) } };
