From f725c41d0c6eda23912ad7d0f687bbf99e8cdc61 Mon Sep 17 00:00:00 2001 From: "tianyi@bogon" Date: Sat, 11 Nov 2023 22:33:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/addHangOrder.vue | 2 +- pages/index/order.vue | 2 +- pages/inventory/goodsList1.vue | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/index/addHangOrder.vue b/pages/index/addHangOrder.vue index 3f01f9c..f3f4c84 100644 --- a/pages/index/addHangOrder.vue +++ b/pages/index/addHangOrder.vue @@ -633,7 +633,7 @@ obj.saleId = item.saleDetailDTOList[i].saleId dataList.push(obj) } - uni.setStorageSync('carList1',dataList) + uni.setStorageSync('carList1',JSON.stringify(dataList)) uni.switchTab({ url: '/pages/inventory/goodsList1' }) diff --git a/pages/index/order.vue b/pages/index/order.vue index 907bf9e..677290c 100644 --- a/pages/index/order.vue +++ b/pages/index/order.vue @@ -121,7 +121,7 @@ obj.wholesalePrice = item.saleDetailDTOList[i].wholesalePrice dataList.push(obj) } - uni.setStorageSync('carList1',dataList) + uni.setStorageSync('carList1',JSON.stringify(dataList)) uni.switchTab({ url: '/pages/inventory/goodsList1' }) diff --git a/pages/inventory/goodsList1.vue b/pages/inventory/goodsList1.vue index d1a2078..2b25eb8 100644 --- a/pages/inventory/goodsList1.vue +++ b/pages/inventory/goodsList1.vue @@ -340,7 +340,7 @@ this.kdyName = JSON.parse(JSON.stringify(this.kdyName)) this.lbgName = JSON.parse(JSON.stringify(this.lbgName)) if(uni.getStorageSync('carList1')){ - this.carList1 = uni.getStorageSync('carList1') + this.carList1 = JSON.parse(uni.getStorageSync('carList1')) this.remark = this.carList1[0].remark this.saleId = this.carList1[0].saleId }else{ @@ -624,7 +624,7 @@ icon: 'none' }) setTimeout(res => { - uni.navigateTo({ + uni.redirectTo({ url: "/pages/index/order" }) }, 500)