diff --git a/pages/goods/detail.vue b/pages/goods/detail.vue index 563c10a..ce3c4c5 100644 --- a/pages/goods/detail.vue +++ b/pages/goods/detail.vue @@ -395,7 +395,7 @@ - + @@ -1042,8 +1042,13 @@ toHaibao(index) { this.shareCancel(); if (index == 2) { + let str = `${this.goods.goods_name}\n + 前台价:¥${this.goods.goods_price_max}元\n + 推广价:¥${this.goods.goods_price_min}元\n + SKU:${this.goods.goods_no} + ` uni.setClipboardData({ - data: this.goods.goods_name, // 这里是个坑接受字符串类型 value转化为字符串 + data: str, // 这里是个坑接受字符串类型 value转化为字符串 success: function() { //调用方法成功 uni.showToast({ diff --git a/pages/index/index.vue b/pages/index/index.vue index ec0d808..2e6790f 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -1077,6 +1077,25 @@ this.isTop = true } }, + /** + * 分享当前页面 + */ + onShareAppMessage() { + return { + + } + }, + + /** + * 分享到朋友圈 + * 本接口为 Beta 版本,暂只在 Android 平台支持,详见分享到朋友圈 (Beta) + * https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/share-timeline.html + */ + onShareTimeline() { + return { + + } + } }