From 5dc97b08e0f1ab227084629982ff98362b9df467 Mon Sep 17 00:00:00 2001 From: fanfan Date: Tue, 18 Jun 2024 15:22:55 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/goods/seckillDetail.vue | 32 +++++++++++++++++++++++++------- 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/pages/goods/seckillDetail.vue b/pages/goods/seckillDetail.vue index d5d7991..d68afeb 100644 --- a/pages/goods/seckillDetail.vue +++ b/pages/goods/seckillDetail.vue @@ -997,8 +997,12 @@ }) }, toDetail(goods_id) { + let that=this 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() { @@ -1079,11 +1083,14 @@ async toQueryShortUrl() { // 获取推荐商品列表 const that = this; - // 构建页面参数 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 - .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, }) if (res.data.url) { @@ -1130,12 +1137,18 @@ */ onShareAppMessage() { const app = this + // 构建页面参数 - const params = app.$getShareUrlParams(this.options) + // const params = app.$getShareUrlParams(this.options) return { title: app.goods.goods_name, 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 { title: app.goods.goods_name, 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 ? + '结束' : '开始') } } }