|
@@ -13,6 +13,10 @@
|
|
|
},
|
|
|
onLoad(option) {
|
|
|
// console.log(option,'option')
|
|
|
+ uni.showToast({
|
|
|
+ icon:'none',
|
|
|
+ title: JSON.stringify(option)
|
|
|
+ })
|
|
|
this.src = option.src
|
|
|
// 开启分享
|
|
|
uni.showShareMenu({
|
|
@@ -22,6 +26,19 @@
|
|
|
},
|
|
|
methods: {
|
|
|
|
|
|
+ },
|
|
|
+ onShareAppMessage(res){
|
|
|
+ return {
|
|
|
+ title:'',
|
|
|
+ path:'pages/webView/webView?src='+this.src
|
|
|
+ }
|
|
|
+ },
|
|
|
+ onShareTimeline(res){
|
|
|
+ return {
|
|
|
+ title:'',
|
|
|
+ path:'pages/webView/webView',
|
|
|
+ query:'src='+this.src
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|