|
|
@ -997,8 +997,12 @@ |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
toDetail(goods_id) { |
|
|
|
toDetail(goods_id) { |
|
|
|
|
|
|
|
let that=this |
|
|
|
uni.navigateTo({ |
|
|
|
uni.navigateTo({ |
|
|
|
url: '/pages/goods/detail?goodsId=' + goods_id |
|
|
|
url: '/pages/goods/seckillDetail?goodsId=' + goods_id + '&activeTimeId=' + that.activeTimeId + |
|
|
|
|
|
|
|
'&sharpGoodsId=' + that.sharpGoodsId + "&isSeckill=" + true + '&isBuy=' + that |
|
|
|
|
|
|
|
.isBuy + '&seckillText=' + (that.activeInfo.status == 10 ? |
|
|
|
|
|
|
|
'结束' : '开始') |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
goRanking() { |
|
|
|
goRanking() { |
|
|
@ -1079,11 +1083,14 @@ |
|
|
|
async toQueryShortUrl() { |
|
|
|
async toQueryShortUrl() { |
|
|
|
// 获取推荐商品列表 |
|
|
|
// 获取推荐商品列表 |
|
|
|
const that = this; |
|
|
|
const that = this; |
|
|
|
// 构建页面参数 |
|
|
|
|
|
|
|
const res = await GoodsApi.goodsShortUrl({ |
|
|
|
const res = await GoodsApi.goodsShortUrl({ |
|
|
|
page_url: encodeURIComponent('pages/goods/seckillDetail?refereeId=' + store.getters.userId + |
|
|
|
page_url: encodeURIComponent('pages/goods/seckillDetail?refereeId=' + store.getters |
|
|
|
|
|
|
|
.userId + |
|
|
|
'&goodsId=' + this.goods |
|
|
|
'&goodsId=' + this.goods |
|
|
|
.goods_id), |
|
|
|
.goods_id + '&activeTimeId=' + that.activeTimeId + '&sharpGoodsId=' + that |
|
|
|
|
|
|
|
.sharpGoodsId + "&isSeckill=" + true + '&isBuy=' + that |
|
|
|
|
|
|
|
.isBuy + '&seckillText=' + (that.activeInfo.status == 10 ? |
|
|
|
|
|
|
|
'结束' : '开始')), |
|
|
|
page_title: that.goods.goods_name, |
|
|
|
page_title: that.goods.goods_name, |
|
|
|
}) |
|
|
|
}) |
|
|
|
if (res.data.url) { |
|
|
|
if (res.data.url) { |
|
|
@ -1130,12 +1137,18 @@ |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
onShareAppMessage() { |
|
|
|
onShareAppMessage() { |
|
|
|
const app = this |
|
|
|
const app = this |
|
|
|
|
|
|
|
|
|
|
|
// 构建页面参数 |
|
|
|
// 构建页面参数 |
|
|
|
const params = app.$getShareUrlParams(this.options) |
|
|
|
// const params = app.$getShareUrlParams(this.options) |
|
|
|
return { |
|
|
|
return { |
|
|
|
title: app.goods.goods_name, |
|
|
|
title: app.goods.goods_name, |
|
|
|
imageUrl: app.goods.goods_image, |
|
|
|
imageUrl: app.goods.goods_image, |
|
|
|
path: `/pages/goods/detail?${params}` |
|
|
|
path: 'pages/goods/seckillDetail?refereeId=' + store.getters.userId + |
|
|
|
|
|
|
|
'&goodsId=' + app.goods |
|
|
|
|
|
|
|
.goods_id + '&activeTimeId=' + app.activeTimeId + '&sharpGoodsId=' + app.sharpGoodsId + "&isSeckill=" + |
|
|
|
|
|
|
|
true + '&isBuy=' + app |
|
|
|
|
|
|
|
.isBuy + '&seckillText=' + (app.activeInfo.status == 10 ? |
|
|
|
|
|
|
|
'结束' : '开始') |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -1150,7 +1163,12 @@ |
|
|
|
return { |
|
|
|
return { |
|
|
|
title: app.goods.goods_name, |
|
|
|
title: app.goods.goods_name, |
|
|
|
imageUrl: app.goods.goods_image, |
|
|
|
imageUrl: app.goods.goods_image, |
|
|
|
path: `/pages/goods/detail?${params}` |
|
|
|
path: 'pages/goods/seckillDetail?refereeId=' + store.getters.userId + |
|
|
|
|
|
|
|
'&goodsId=' + app.goods |
|
|
|
|
|
|
|
.goods_id + '&activeTimeId=' + app.activeTimeId + '&sharpGoodsId=' + app.sharpGoodsId+ "&isSeckill=" + |
|
|
|
|
|
|
|
true + '&isBuy=' + app |
|
|
|
|
|
|
|
.isBuy + '&seckillText=' + (app.activeInfo.status == 10 ? |
|
|
|
|
|
|
|
'结束' : '开始') |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|