|
|
|
@ -1175,13 +1175,15 @@ |
|
|
|
|
const that = this; |
|
|
|
|
// 构建页面参数 |
|
|
|
|
const res = await GoodsApi.goodsShortUrl({ |
|
|
|
|
page_url: encodeURIComponent('pages/goods/detail?refereeId=' + store.getters.userId + '&goodsId=' + this.goods |
|
|
|
|
page_url: encodeURIComponent('pages/goods/detail?refereeId=' + store.getters.userId + |
|
|
|
|
'&goodsId=' + this.goods |
|
|
|
|
.goods_id), |
|
|
|
|
page_title: that.goods.goods_name, |
|
|
|
|
}) |
|
|
|
|
if (res.data.url) { |
|
|
|
|
let storeInfo = JSON.parse(uni.getStorageSync("storeInfo")) |
|
|
|
|
let str = |
|
|
|
|
`型号:${that.goods.goods_name}\n零售价:¥${that.goods.goods_price_max}元\n会员价:¥${that.goods.goods_price_min}元\n编码:${that.goods.goods_no}\n小程序链接:${res.data.url}` |
|
|
|
|
`【${storeInfo.store_name}】型号:${that.goods.goods_name}\n———————\n市场价:¥${that.goods.goods_price_max}元\n到手价:¥${that.goods.goods_price_min}元\n编码:${that.goods.goods_no}\n———————\n抢购链接:${res.data.url}` |
|
|
|
|
uni.setClipboardData({ |
|
|
|
|
data: str, // 这里是个坑接受字符串类型 value转化为字符串 |
|
|
|
|
success: function() { |
|
|
|
|