Commit b0bd15b5 authored by youjie's avatar youjie

酒店支付

parent 0478109e
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
iconPath: '', iconPath: '',
title: '', title: '',
alpha: 0, alpha: 0,
width: 30, width: 20,
height: 30, height: 30,
callout:{ callout:{
content:'¥ 99999起', content:'¥ 99999起',
...@@ -118,8 +118,6 @@ ...@@ -118,8 +118,6 @@
padding: 5, padding: 5,
display: 'ALWAYS', display: 'ALWAYS',
}, },
joinCluster: true,
clusterId: 10,
}, },
bubble:[ bubble:[
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638761641584224459.png', 'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638761641584224459.png',
......
...@@ -336,7 +336,6 @@ ...@@ -336,7 +336,6 @@
roomType: 0, roomType: 0,
CustomerId: 0, //同行Id CustomerId: 0, //同行Id
DirectCustomerId: 0, //直客Id DirectCustomerId: 0, //直客Id
CreateBy: 0, //同业联系人
Remarks: '', //备注 Remarks: '', //备注
}, },
showtime: false, showtime: false,
...@@ -838,18 +837,17 @@ ...@@ -838,18 +837,17 @@
if (this.customer && this.customer.erpBaseInfo && this.customer.erpBaseInfo.employeeId) { if (this.customer && this.customer.erpBaseInfo && this.customer.erpBaseInfo.employeeId) {
that.orderMsg.EmployeeIdStr = this.customer.erpBaseInfo.employeeId; that.orderMsg.EmployeeIdStr = this.customer.erpBaseInfo.employeeId;
} }
// this.orderMsg.OrderSource = 7
// #endif // #endif
// #ifdef MP-AG // #ifdef MP-AG
CreateBy = this.CreateBy CreateBy = this.CreateBy
that.orderMsg.CustomerId = this.customer.customerId that.orderMsg.CustomerId = this.customer.customerId
// this.orderMsg.OrderSource = 5 // if (this.customer && this.customer.salesBaseInfo && this.customer.salesBaseInfo.employeeId) {
if (this.customer && this.customer.salesBaseInfo && this.customer.salesBaseInfo.employeeId) { // this.orderMsg.EmployeeIdStr = this.customer.salesBaseInfo.employeeId
this.orderMsg.EmployeeIdStr = this.customer.salesBaseInfo.employeeId // }
} that.orderMsg.EmployeeIdStr = CreateBy
// #endif // #endif
that.orderMsg.CreateBy = CreateBy
let CouponAllotIds = '' let CouponAllotIds = ''
if(this.useCouponIds.length>0){ if(this.useCouponIds.length>0){
CouponAllotIds = this.useCouponIds.join(',') CouponAllotIds = this.useCouponIds.join(',')
......
...@@ -34,10 +34,8 @@ ...@@ -34,10 +34,8 @@
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638766174213789755.png" /> src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638766174213789755.png" />
</view> </view>
<view class="orderIforRzTime column col"> <view class="orderIforRzTime column col">
<view>入住:<text>{{getDate(orderData.parmResultRoomInfo.CheckInDate)}} <view>入住:<text>{{getDate(orderData.parmResultRoomInfo.CheckInDate)}} {{ getWeek(orderData.parmResultRoomInfo.CheckInDate) }} 14:00后</text></view>
{{ getWeek(orderData.parmResultRoomInfo.CheckInDate) }} 14:00后</text></view> <view style="margin-top: 28rpx;">离店:<text>{{getDate(orderData.parmResultRoomInfo.CheckOutDate)}} {{ getWeek(orderData.parmResultRoomInfo.CheckOutDate) }} 12:00前</text></view>
<view style="margin-top: 28rpx;">离店:<text>{{getDate(orderData.parmResultRoomInfo.CheckOutDate)}}
{{ getWeek(orderData.parmResultRoomInfo.CheckOutDate) }} 12:00前</text></view>
</view> </view>
<view class="orderIforRzNum"> <view class="orderIforRzNum">
{{getDay(orderData.parmResultRoomInfo.CheckInDate.slice(0, 10),orderData.parmResultRoomInfo.CheckOutDate.slice(0, 10))}} {{getDay(orderData.parmResultRoomInfo.CheckInDate.slice(0, 10),orderData.parmResultRoomInfo.CheckOutDate.slice(0, 10))}}
...@@ -316,7 +314,7 @@ ...@@ -316,7 +314,7 @@
this.apipost("GetCodeByOrderNo_post", payMsg, (res) => { this.apipost("GetCodeByOrderNo_post", payMsg, (res) => {
if (res.resultCode == 1) { if (res.resultCode == 1) {
this.orderInfo = JSON.parse(res.data.sPayInfo) this.orderInfo = JSON.parse(res.data.sPayInfo)
this.goPayHandler(); this.goPayHandler(res.data);
} else { } else {
uni.showToast({ uni.showToast({
title: res.message, title: res.message,
...@@ -334,6 +332,41 @@ ...@@ -334,6 +332,41 @@
this.submit = false this.submit = false
}); });
}, },
goPayHandler(item) {
let OrderNo=item.OrderNo;
let that = this;
uni.requestPayment({
provider: "wxpay",
timeStamp: this.orderInfo.timeStamp,
nonceStr: this.orderInfo.nonceStr,
package: this.orderInfo.package,
signType: this.orderInfo.signType,
paySign: this.orderInfo.sign,
success: function(res) {
that.submit = false;
uni.showToast({
title: "支付成功",
});
setTimeout(() => {
// (that.getPrice(that.orderMsg.TotalPrice) - that
// .currentCoupon.discountMoney).toFixed(2) +
// "&isFrom=5
uni.redirectTo({
url: "/pages/jiuzhai/paysuccess?PreferPrice=" +
(that.orderData.model.TotalPrice-that.orderData.model.DiscountMoney).toFixed(2) +
"&isFrom=5",
});
}, 100);
},
fail: function(err) {
that.submit = false;
uni.showToast({
title: "支付失败",
icon: "none",
});
},
});
},
goCancel() { goCancel() {
if (this.submitCancel) return if (this.submitCancel) return
this.submitCancel = true this.submitCancel = true
......
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