diff --git a/pages/index/index.vue b/pages/index/index.vue index 2c66aec..a52ad0d 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -1135,6 +1135,11 @@ pic: that.mallAds[i].adImage.trim() }]; } + }else{ + if (that.mallAds[i].adImage.endsWith(',')) { + that.mallAds[i].adImage = that.mallAds[i].adImage.slice(0, -1); + } + } } if (that.searchForm.pageNum == 1) { @@ -1223,7 +1228,7 @@ }) }, goOrderDetail(item) { - uni.redirectTo({ + uni.navigateTo({ url: '/package1/order/orderDetail?id=' + item.id }); },