瀏覽代碼

commit -m 订单模块接口联调

zhengjinyi 3 年之前
父節點
當前提交
45d395a23c
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      pages/user/order/create-order.vue

+ 4 - 2
pages/user/order/create-order.vue

@@ -218,6 +218,7 @@
 				console.log('infodata',data)
 				this.productParam.userId = this.cartParam.userId = this.postageParam.userId = userInfo.userId ? userInfo.userId : 0
 				this.confirmParam.clubId = userInfo.clubId ? userInfo.clubId : 0
+				console.log('userInfo',this.productParam.userId)
 				if(option.type =='prodcut'){
 					this.confirmType = 1
 					this.productParam.productCount = data.data.productCount
@@ -306,12 +307,13 @@
 					}
 				})
 			},
-			getAddressData(){//获取地址信息
+			async getAddressData(){//获取地址信息
+				const userInfo = await this.$api.getStorage()
 				this.UserService.QueryAddressList(
 					{
 						pageNum:1,
 						pageSize:1,
-						userId:this.productParam.userId,
+						userId:userInfo.userId,
 					}
 				).then(response =>{
 					let data = response.data