zhangdan 4 年之前
父節點
當前提交
0c809e780d
共有 2 個文件被更改,包括 13 次插入7 次删除
  1. 6 1
      pages/index/order.vue
  2. 7 6
      store/index.js

+ 6 - 1
pages/index/order.vue

@@ -177,9 +177,12 @@
 				pageInfo:null,
 				pageInfo:null,
 				isHasRider:null ,// 是否有绑定的骑手或3公里有可分配的骑手
 				isHasRider:null ,// 是否有绑定的骑手或3公里有可分配的骑手
 				isHasOrder:false,
 				isHasOrder:false,
+				// orderCreateTime:'',
+				// orderId:''
 			}
 			}
 		},
 		},
 		onLoad() {
 		onLoad() {
+			console.log(this.$store.state.vuex_orderInfo,'===============时间id')
 			this.pageInit()
 			this.pageInit()
 			wx.getSystemInfo({success: (res)=>{
 			wx.getSystemInfo({success: (res)=>{
 				if(res.statusBarHeight){
 				if(res.statusBarHeight){
@@ -444,7 +447,9 @@
 				orderInfoSave(params).then(res=>{
 				orderInfoSave(params).then(res=>{
 					if(res.status==200){
 					if(res.status==200){
 						this.getOrderNum()
 						this.getOrderNum()
-						this.$u.vuex('vuex_orderInfo',res.data)
+						this.$store.state.vuex_orderInfo=res.data
+						// this.$u.vuex('vuex_orderInfo',res.data)
+						console.log(this.$store.state.vuex_orderInfo,'===============时间id')
 						// this.orderId=res.data?res.data.id:''
 						// this.orderId=res.data?res.data.id:''
 						// this.orderCreateTime=res.data? res.data.createDate:""
 						// this.orderCreateTime=res.data? res.data.createDate:""
 						// setTimeout(()=>{
 						// setTimeout(()=>{

+ 7 - 6
store/index.js

@@ -21,7 +21,6 @@ let saveStateKeys = [
 	'vuex_orderNo',
 	'vuex_orderNo',
 	'vuex_orderStatus',
 	'vuex_orderStatus',
 	'vuex_userInfoData',
 	'vuex_userInfoData',
-	'vuex_orderInfo',
 ];
 ];
 
 
 // 保存变量到本地存储中
 // 保存变量到本地存储中
@@ -106,10 +105,10 @@ const store = new Vuex.Store({
 		vuex_bizId: lifeData.vuex_bizId ? lifeData.vuex_bizId : '',// 设备编号
 		vuex_bizId: lifeData.vuex_bizId ? lifeData.vuex_bizId : '',// 设备编号
 		vuex_orderNo: lifeData.vuex_orderNo ? lifeData.vuex_orderNo : '',// 订单编号
 		vuex_orderNo: lifeData.vuex_orderNo ? lifeData.vuex_orderNo : '',// 订单编号
 		vuex_orderStatus: lifeData.vuex_orderStatus ? lifeData.vuex_orderStatus : '',// 订单状态
 		vuex_orderStatus: lifeData.vuex_orderStatus ? lifeData.vuex_orderStatus : '',// 订单状态
-		vuex_orderInfo:lifeData.vuex_orderInfo?lifeData.vuex_orderInfo:{
-			id:'',
-			createDate:''
-		},
+		// vuex_orderInfo:lifeData.vuex_orderInfo?lifeData.vuex_orderInfo:{
+		// 	id:'',
+		// 	createDate:''
+		// },
 		// 购物车及下单
 		// 购物车及下单
 		vuex_cartList: [],
 		vuex_cartList: [],
 		vuex_cartNums: 0,
 		vuex_cartNums: 0,
@@ -127,7 +126,9 @@ const store = new Vuex.Store({
 		vuex_isClick: false,
 		vuex_isClick: false,
 		// 大转盘
 		// 大转盘
 		vuex_LuckDraw: null,
 		vuex_LuckDraw: null,
-		vuex_LuckDrawTimes: 0
+		vuex_LuckDrawTimes: 0,
+		// 订单信息
+		vuex_orderInfo:null
 	},
 	},
 	mutations: {
 	mutations: {
 		$uStore(state, payload) {
 		$uStore(state, payload) {