Commit 96eabf6f authored by Mac's avatar Mac

修改支付传的内容

parent f467178f
......@@ -176,7 +176,7 @@
v-if='item.IsApplyForCancel!=1 && (item.OrderStatus==1||item.OrderStatus==2 ||item.OrderStatus==3 ) && getquxiao(item)'>
取消
</view>
<view class="zailaiyidan" v-if="item.OrderStatus == 1" @click.stop="queren(item),payindex = index">
<view class="zailaiyidan" v-if="item.OrderStatus == 1" @click.stop="queren(item,index)">
未付款
</view>
......@@ -452,10 +452,22 @@
url: '/pages/jiuzhai/allorderdetails?OrderId='+item.OrderId
})
},
queren(data){
queren(data,index){
this.payindex = index
console.log(data,222,index)
let url='/api/WeChatPay/GetDmcPayInfo'
let GoodsName = data.OrderTypeName+data.CreateDate
GoodsName = GoodsName.slice(0, 10)
let GoodsName = ''
if(data.OrderType==1){
GoodsName = data.HotelList[0].HotelName
}else if(data.OrderType==2){
GoodsName = data.DiningList[0].MealName
}else if(data.OrderType==3){
GoodsName = data.TicketList[0].TicketName
}else if(data.OrderType==4){
GoodsName = data.CarList[0].DepartAddress+'-'+data.CarList[0].ArriveCityName
}
GoodsName = GoodsName.slice(0, 10)
this.request2({
url: url,
data: {
......
......@@ -451,7 +451,16 @@
queren(data){
let url='/api/WeChatPay/GetDmcPayInfo'
let GoodsName = data.OrderTypeName+data.CreateDate
let GoodsName = ''
if(data.OrderType==1){
GoodsName = data.HotelList[0].HotelName
}else if(data.OrderType==2){
GoodsName = data.DiningList[0].MealName
}else if(data.OrderType==3){
GoodsName = data.TicketList[0].TicketName
}else if(data.OrderType==4){
GoodsName = data.CarList[0].DepartAddress+'-'+data.CarList[0].ArriveCityName
}
GoodsName = GoodsName.slice(0, 10)
this.request2({
url: url,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment