Commit 3cbf757 1 parent 0649d65 commit 3cbf757 Copy full SHA for 3cbf757
File tree 2 files changed +11
-2
lines changed
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -27,9 +27,8 @@ onShareAppMessage((options: Page.ShareAppMessageOption): Page.CustomShareContent
27
27
console .log (' options:' , options )
28
28
return {
29
29
title: ' 自定义分享标题' ,
30
+ desc: ' unibest 演示示例' ,
30
31
path: ' /pages/index/index?id=xxx' ,
31
- imageUrl:
32
- ' https://cip-shopping-page-0eysug01066a9e-1302818703.tcloudbaseapp.com/pretty-girl.png' ,
33
32
}
34
33
})
35
34
/** 激活“分享到朋友圈”, 注意:需要先激活“分享给好友” */
Original file line number Diff line number Diff line change @@ -33,6 +33,16 @@ const description = ref(
33
33
onLoad(() => {
34
34
console.log(author)
35
35
})
36
+
37
+ /** 激活“分享给好友” */
38
+ onShareAppMessage((options: Page.ShareAppMessageOption): Page.CustomShareContent => {
39
+ console.log('options:', options)
40
+ return {
41
+ title: 'unibest',
42
+ desc: 'unibest 演示示例',
43
+ path: '/pages/index/index?id=xxx',
44
+ }
45
+ })
36
46
</script>
37
47
38
48
<style>
You can’t perform that action at this time.
0 commit comments