diff --git a/api/product/comment.js b/api/product/comment.js index f7851f2d..afb0bbac 100644 --- a/api/product/comment.js +++ b/api/product/comment.js @@ -4,6 +4,8 @@ import request from "@/utils/request.js"; export function getCommentStatistics(spuId) { return request.get('app-api/product/comment/statistics', { spuId + }, { + noAuth: true // TODO 芋艿:后续要做调整 }); } @@ -12,5 +14,7 @@ export function getCommentList(spuId, count) { return request.get('app-api/product/comment/list', { spuId, count + }, { + noAuth: true // TODO 芋艿:后续要做调整 }); } diff --git a/api/promotion/activity.js b/api/promotion/activity.js index 15256493..3c642ee6 100644 --- a/api/promotion/activity.js +++ b/api/promotion/activity.js @@ -4,6 +4,8 @@ import request from "@/utils/request.js"; export function getActivityListBySpuId(spuId) { return request.get("app-api/promotion/activity/list-by-spu-id", { spuId + }, { + noAuth: true // TODO 芋艿:后续要做调整 }); } @@ -11,5 +13,7 @@ export function getActivityListBySpuId(spuId) { export function getActivityListBySpuIds(spuIds) { return request.get("app-api/promotion/activity/list-by-spu-ids", { spuIds + }, { + noAuth: true // TODO 芋艿:后续要做调整 }); } diff --git a/api/promotion/seckill.js b/api/promotion/seckill.js index 6d96f257..83986fe7 100644 --- a/api/promotion/seckill.js +++ b/api/promotion/seckill.js @@ -4,5 +4,7 @@ import request from "@/utils/request.js"; export function getSeckillActivity(id) { return request.get("app-api/promotion/seckill-activity/get-detail", { id + }, { + noAuth: true // TODO 芋艿:后续要做调整 }); } diff --git a/components/productWindow/index.vue b/components/productWindow/index.vue index e0cae7c1..445dc350 100644 --- a/components/productWindow/index.vue +++ b/components/productWindow/index.vue @@ -48,9 +48,9 @@ + = attr.productSelect.quota) + || (attr.productSelect.cart_num >= attr.productSelect.stock) + || (attr.productSelect.cart_num >= attr.productSelect.limitCount) ? "on":""' @click='CartNumAdd'>+ diff --git a/pages/activity/goods_seckill_details/index.vue b/pages/activity/goods_seckill_details/index.vue index 8f0a0c84..a80a274e 100644 --- a/pages/activity/goods_seckill_details/index.vue +++ b/pages/activity/goods_seckill_details/index.vue @@ -93,7 +93,7 @@ 客服 - + @@ -136,7 +136,7 @@ @close="closeAttr" /> - + - @@ -156,7 +156,7 @@ - + @@ -182,19 +182,7 @@ diff --git a/pages/goods_details/index.vue b/pages/goods_details/index.vue index 939485c6..394dc780 100644 --- a/pages/goods_details/index.vue +++ b/pages/goods_details/index.vue @@ -983,25 +983,23 @@ if (!this.$wechat.isWeixin()) { return } - let spu = this.spu; + const spu = this.spu; let href = location.href; - href = href.indexOf("?") === -1 ? href + "?spread=" + this.uid : href + "&spread=" + this.uid; - let configAppMessage = { - desc: spu.description, + href = href.indexOf("?") === -1 ? + href + "?spread=" + this.uid : + href + "&spread=" + this.uid; + const configAppMessage = { title: spu.name, - link: href, - imgUrl: spu.picUrl + imgUrl: spu.picUrl, + desc: spu.description, + link: href }; this.$wechat.wechatEvevt([ "updateAppMessageShareData", "updateTimelineShareData", "onMenuShareAppMessage", "onMenuShareTimeline" - ], configAppMessage).then(res => { - console.log(res); - }).catch(err => { - console.log(err); - }) + ], configAppMessage); }, /** * 获得商品的封面 base64 @@ -1064,12 +1062,11 @@ uni.downloadFile({ url: that.imgTop, // 仅为示例,并非真实的资源 success: (res) => { - debugger arrImagesUrlTop = res.tempFilePath; const arrImages = [that.posterbackgd, arrImagesUrlTop, that.promotionCode]; const name = that.spu.name; - const price = that.fen2yuan(this.spu.price); - const marketPrice = that.fen2yuan(this.spu.marketPrice); + const price = that.fen2yuan(that.spu.price); + const marketPrice = that.fen2yuan(that.spu.marketPrice); setTimeout(() => { that.$util.PosterCanvas(arrImages, name, price, marketPrice, function(tempFilePath) {