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)