Pārlūkot izejas kodu

修改商品详情立即下单异常

1004749546@qq.com 4 gadi atpakaļ
vecāks
revīzija
4de6e20581
3 mainītis faili ar 6 papildinājumiem un 2 dzēšanām
  1. 2 1
      pages/goods/goodsDetail.vue
  2. 3 1
      pages/order/order.vue
  3. 1 0
      pages/toOrder/index.vue

+ 2 - 1
pages/goods/goodsDetail.vue

@@ -103,7 +103,8 @@
 			},
 			// 立即下单
 			toOrder(){
-				this.$u.vuex("vuex_toOrderList",[{id:this.id,buyQty:this.nums,goods:this.goodContent}])
+				// console.log(this.goodContent,this.id,'pppppppp')
+				this.$u.vuex("vuex_toOrderList",[{id:this.id,buyQty:this.nums,goodsNo:this.goodContent.goodsNo,goods:this.goodContent}])
 				uni.redirectTo({
 					url:"/pages/toOrder/index"
 				})

+ 3 - 1
pages/order/order.vue

@@ -41,7 +41,9 @@
 										<text style="margin-right: 20upx;">
 											支付剩余
 										</text>
-										<u-count-down @end="getRow" style="margin-right: 20upx;" separator ="zh" :timestamp="filterTime(item.orderTime)" :show-days="false" :show-hours="false"></u-count-down>
+										<u-count-down @end="getRow" 
+										style="margin-right: 20upx;" separator ="zh" 
+										:timestamp="filterTime(item.orderTime)" :show-days="false" :show-hours="false"></u-count-down>
 									<u-button :custom-style="btnStyle" @click="toPay(item)"  shape="circle" type="error" size="medium">去支付</u-button>
 								</view>
 								<view v-if="item.orderState=='WAIT_SEND'||item.orderState=='SEND_PART'" class="text-right">

+ 1 - 0
pages/toOrder/index.vue

@@ -130,6 +130,7 @@
 		},
 		onLoad() {
 			this.goodsList = this.$store.state.vuex_toOrderList
+			// console.log(this.goodsList,'llllllllllll')
 			// 监听设置密码是否成功
 			uni.$once('setPswSuccess', this.setPsw)
 		},