diff --git a/src/views/market/orders/index.vue b/src/views/market/orders/index.vue index 62e4f16..c8fc7c9 100644 --- a/src/views/market/orders/index.vue +++ b/src/views/market/orders/index.vue @@ -186,7 +186,8 @@ export default { pageNum:1, pageSize:10, total:1, - typeId:0 + ordersId:3, + productId:3 }, arr:[], type:[], @@ -318,14 +319,15 @@ export default { }, pay(row){ + console.log(row) - updateByordersState1(row.ordersId,row.productId).then( - res =>{ - this.$message.success(res.msg) + updateByordersState1(this.orders).then(res =>{ + this.orders.ordersId=this.orders.ordersId; + this.orders.productId=this.orders.productId; + window.open("http://21.12.0.10:80/prod-api/market/alipay/pay?productName="+row.productName +"&ordersNum="+row.ordersNum+"&ordersPrice="+row.ordersPrice) + this.$message.success('付款成功') } ) - window.open("http://21.12.0.10:80/prod-api/market/alipay/pay?productName="+row.productName +"&ordersNum="+row.ordersNum+"&ordersPrice="+row.ordersPrice) - this.$message.success('付款成功') },