添加小程序分享功能

This commit is contained in:
xuwenbo
2020-09-12 11:03:10 +08:00
parent dea2c42701
commit 6beae9bfb2
5 changed files with 81 additions and 2 deletions

View File

@ -232,6 +232,13 @@
},
methods: {
...mapActions(["getLocation"]),
onShareAppMessage: function() {
return {
title: this.miniHomeRemark,
imageUrl: this.miniHomeImg,
path: "pages/home/index?spread=" + uni.getStorageSync("uid")
}
},
goRoll(item) {
if (item.uniapp_url) {
this.$yrouter.push(item.uniapp_url)