From 213339eb0255d51befeb8f17017bf7a1aff304bf Mon Sep 17 00:00:00 2001 From: fanfan Date: Sat, 13 Jul 2024 10:18:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E9=80=80=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/news3/seasoningCondimentsRecord.vue | 2 +- pages/news3/sendOutGoods.vue | 2 +- pages/news3/setOutRecords.vue | 2 +- pages/news3/shopOrder.vue | 2 +- pages/news3/shopOrderDetails.vue | 6 +++--- pages/news3/updateAddr.vue | 3 +-- pages/news3/updatePrice.vue | 2 +- pages/order/detail.vue | 2 +- pages/order/refund/freight.vue | 8 ++++---- pages/order/refund/index.vue | 10 ++++------ pages/order/refund/refund.vue | 2 +- pages/order/refund/refundTips.vue | 2 +- 12 files changed, 20 insertions(+), 23 deletions(-) diff --git a/pages/news3/seasoningCondimentsRecord.vue b/pages/news3/seasoningCondimentsRecord.vue index cf1a328..5b8bdcd 100644 --- a/pages/news3/seasoningCondimentsRecord.vue +++ b/pages/news3/seasoningCondimentsRecord.vue @@ -105,7 +105,7 @@ } }, onLoad(o) { - this.form = JSON.parse(o.item) + this.form = JSON.parse(decodeURIComponent(o.item)) this.send_name = this.modeList[this.form.send_type].text; this.transferList = this.form.transfer_image_ids ? this.form.transfer_image_ids : []; this.chatList = this.form.chat_image_ids ? this.form.chat_image_ids : []; diff --git a/pages/news3/sendOutGoods.vue b/pages/news3/sendOutGoods.vue index d4301df..1d7ad6e 100644 --- a/pages/news3/sendOutGoods.vue +++ b/pages/news3/sendOutGoods.vue @@ -162,7 +162,7 @@ }, }, onLoad(option) { - this.orderInfo = JSON.parse(option.item) + this.orderInfo = JSON.parse(decodeURIComponent(option.item)) this.source = option.source; if (this.source == 1) { this.expressId = this.orderInfo.delivery[0].express_id diff --git a/pages/news3/setOutRecords.vue b/pages/news3/setOutRecords.vue index a563015..aa2de14 100644 --- a/pages/news3/setOutRecords.vue +++ b/pages/news3/setOutRecords.vue @@ -179,7 +179,7 @@ // 调货记录 onCondiments(e) { uni.navigateTo({ - url: "/pages/news3/seasoningCondimentsRecord?item=" + JSON.stringify(e) + url: "/pages/news3/seasoningCondimentsRecord?item=" + encodeURIComponent(JSON.stringify(e)) }) }, async getList(type) { diff --git a/pages/news3/shopOrder.vue b/pages/news3/shopOrder.vue index e0b57e4..d9345c2 100644 --- a/pages/news3/shopOrder.vue +++ b/pages/news3/shopOrder.vue @@ -343,7 +343,7 @@ }, goJump(path, value, index) { uni.navigateTo({ - url: path + '?item=' + JSON.stringify(value) + '&source=' + index, + url: path + '?item=' + encodeURIComponent(JSON.stringify(value)) + '&source=' + index, }) }, getListAfter() { diff --git a/pages/news3/shopOrderDetails.vue b/pages/news3/shopOrderDetails.vue index dd1b11d..bdcc2b4 100644 --- a/pages/news3/shopOrderDetails.vue +++ b/pages/news3/shopOrderDetails.vue @@ -285,7 +285,7 @@ }; }, onLoad(option) { - this.order_id = JSON.parse(option.item).order_id + this.order_id = JSON.parse(decodeURIComponent(option.item)).order_id this.userInfo = uni.getStorageSync('userInfo'); }, onShow() { @@ -327,7 +327,7 @@ }, goJump(path, value, index) { uni.navigateTo({ - url: path + '?item=' + JSON.stringify(value) + '&source=' + index, + url: path + '?item=' + encodeURIComponent(JSON.stringify(value)) + '&source=' + index, }) }, // 删除订单 @@ -592,7 +592,7 @@ /* 收货地址 */ .shipping-address { - height: 130upx; + // height: 130upx; background: #FFFFFF; border-radius: 4px 4px 4px 4px; opacity: 1; diff --git a/pages/news3/updateAddr.vue b/pages/news3/updateAddr.vue index 078007c..3f01706 100644 --- a/pages/news3/updateAddr.vue +++ b/pages/news3/updateAddr.vue @@ -75,9 +75,8 @@ }; }, onLoad(optios) { - console.log(JSON.parse(optios.item)) if (optios.item) { - this.orderInfo = JSON.parse(optios.item); + this.orderInfo = JSON.parse(decodeURIComponent(optios.item)); this.cityInfo.province = this.orderInfo.address.region.province; this.cityInfo.city = this.orderInfo.address.region.city; this.cityInfo.area = this.orderInfo.address.region.region; diff --git a/pages/news3/updatePrice.vue b/pages/news3/updatePrice.vue index 4ab2ff7..feffaf9 100644 --- a/pages/news3/updatePrice.vue +++ b/pages/news3/updatePrice.vue @@ -129,7 +129,7 @@ } }, onLoad(option) { - this.orderInfo = JSON.parse(option.item) + this.orderInfo = JSON.parse(decodeURIComponent(option.item)) this.expressPrice = this.orderInfo.express_price || 0 } diff --git a/pages/order/detail.vue b/pages/order/detail.vue index b60cae5..89b1b1d 100644 --- a/pages/order/detail.vue +++ b/pages/order/detail.vue @@ -700,7 +700,7 @@ // 点击去退款 onRefund(orderId, order, item) { uni.navigateTo({ - url: '/pages/order/refund/index?orderId=' + orderId + '&order=' + JSON.stringify(order) + + url: '/pages/order/refund/index?orderId=' + orderId + '&order=' + encodeURIComponent(JSON.stringify(order)) + "&deliveryStatus=" + item.delivery_status + '&receiptStatus=' + item.receipt_status }) }, diff --git a/pages/order/refund/freight.vue b/pages/order/refund/freight.vue index 9e3345c..0e3ff4d 100644 --- a/pages/order/refund/freight.vue +++ b/pages/order/refund/freight.vue @@ -18,7 +18,7 @@ -