小程序跳h5 页面 分享等

1.小程序跳外链 h5页面 h5 单独一个域名放h5页面 用于小程序访问
单独写一个组件,用于 类似iframe



1.1小程序里面用webview (小程序自带,[https://developers.weixin.qq.com/miniprogram/dev/component/web-view.html]
(https://developers.weixin.qq.com/miniprogram/dev/component/web-view.html)
)跳外链
1.2外链跳小程序的时候,h5在html里面设置


用于区别小程序和h5
用法
wuni.navigateTo({
url: '/pages/product/product?id=' + id
});
2.分享
在小程序里面建一个组件用于访问外部,嵌套 webview ,分享想的时候在小程序里面分享就好

你可能感兴趣的:(小程序跳h5 页面 分享等)