Commit deb6fc59 authored by youjie's avatar youjie

修复bug

parent 7f0f027c
...@@ -190,7 +190,7 @@ ...@@ -190,7 +190,7 @@
// } // }
}, },
// 酒店详情
getOrderDetail(id) { getOrderDetail(id) {
let msg = { let msg = {
orderId: id, orderId: id,
...@@ -247,6 +247,7 @@ ...@@ -247,6 +247,7 @@
} }
); );
}, },
// 酒店支付
submitB2COrderHandler(){ submitB2COrderHandler(){
let userInfo = uni.getStorageSync("mall_UserInfo"); let userInfo = uni.getStorageSync("mall_UserInfo");
let model = this.orderData.parmResultRoomInfo let model = this.orderData.parmResultRoomInfo
......
This diff is collapsed.
...@@ -688,6 +688,7 @@ ...@@ -688,6 +688,7 @@
}, 1000); }, 1000);
} }
},err=> { },err=> {
this.DidaHotelRoomDetails = {};
this.loading = false this.loading = false
uni.hideLoading() uni.hideLoading()
uni.showToast({ uni.showToast({
......
...@@ -78,9 +78,6 @@ ...@@ -78,9 +78,6 @@
}, },
onLoad(options) { onLoad(options) {
this.apimc = this.$uiConfig.mainColor; this.apimc = this.$uiConfig.mainColor;
if (options && options.Name) {
this.searchObj.KeyWords = options.KeyWords;
}
}, },
created() { created() {
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
...@@ -146,14 +143,6 @@ ...@@ -146,14 +143,6 @@
this.status = "nomore"; this.status = "nomore";
} }
}, },
chosenMorewhere(obj) {
if (obj.IsCheck == 0) {
obj.IsCheck = 1;
} else {
obj.IsCheck = 0;
}
this.research();
},
change(item) { change(item) {
this.searchObj = { this.searchObj = {
...this.searchObj, ...this.searchObj,
...@@ -181,9 +170,7 @@ ...@@ -181,9 +170,7 @@
//获取列表数据 //获取列表数据
getList(type) { getList(type) {
if (this.showLoading) return if (this.showLoading) return
uni.showLoading({ uni.showLoading();
title: "加载中",
});
this.showLoading = true; this.showLoading = true;
if (type == 1) { if (type == 1) {
this.HotelList = []; this.HotelList = [];
......
...@@ -171,9 +171,6 @@ ...@@ -171,9 +171,6 @@
}, },
onLoad(options) { onLoad(options) {
this.mc = this.$uiConfig.mainColor; this.mc = this.$uiConfig.mainColor;
if (options && options.Name) {
this.searchObj.Name = options.Name;
}
if (options && options.msg) { if (options && options.msg) {
this.searchObj = JSON.parse(decodeURIComponent(options.msg)) this.searchObj = JSON.parse(decodeURIComponent(options.msg))
this.pageTitle = this.searchObj.CityName this.pageTitle = this.searchObj.CityName
...@@ -329,7 +326,7 @@ ...@@ -329,7 +326,7 @@
async getList(type) { async getList(type) {
if(this.showLoading) return if(this.showLoading) return
this.showLoading = true this.showLoading = true
uni.showLoading({ title: "加载中" , mask: true}); uni.showLoading();
this.searchObj.QStars = this.tempRateAndPrice.rate.toString(); this.searchObj.QStars = this.tempRateAndPrice.rate.toString();
if (type == 1||this.searchObj.pageIndex==1) { if (type == 1||this.searchObj.pageIndex==1) {
this.HotelList = []; this.HotelList = [];
...@@ -357,9 +354,7 @@ ...@@ -357,9 +354,7 @@
length = this.HotelList.length length = this.HotelList.length
} }
this.setMarkers(res.data.pageData) this.setMarkers(res.data.pageData)
this.page_count = res.data.pageCount; this.page_count = res.data.pageCount;
this.prevCurrent = length-1 this.prevCurrent = length-1
if((length-1)==this.current){ if((length-1)==this.current){
this.nextCurrent = 0 this.nextCurrent = 0
...@@ -373,11 +368,11 @@ ...@@ -373,11 +368,11 @@
); );
}, },
async setMarkers(pageData){ async setMarkers(pageData){
if(pageData.length==0)return if(pageData.length==0) return
for (let i = 0; i < pageData.length; i++) { for (let i = 0; i < pageData.length; i++) {
this.includePoints.push({ this.includePoints.push({
latitude: pageData[i].latitude+ i * 0.00001, latitude: pageData[i].latitude,
longitude: pageData[i].longitude+ i * 0.00001, longitude: pageData[i].longitude,
}) })
let obj = JSON.parse(JSON.stringify(this.markersObj)) let obj = JSON.parse(JSON.stringify(this.markersObj))
obj = { obj = {
......
...@@ -278,17 +278,17 @@ ...@@ -278,17 +278,17 @@
RatePlanList: null, RatePlanList: null,
HotelMealTypes: [], HotelMealTypes: [],
orderMsg: { orderMsg: {
ArrivalTime: '14:00', //预计到达时间 ArrivalTime: '', //预计到达时间
EmployeeIdStr: "", //销售id EmployeeIdStr: "", //销售id
CheckInDate: "", //到店时间 CheckInDate: "", //到店时间
RatePlanID: "", RatePlanID: "",
CheckOutDate: "", //离店时间 CheckOutDate: "", //离店时间
RoomCount: "", //房间数量 RoomCount: "", //房间数量
guestLastName: "", //英文姓 guestLastName: "", //英文姓
guestFirstName: "无误", //英文名 guestFirstName: "", //英文名
guestAddress: "", guestAddress: "",
guestPhoneNumber: "13344445555", guestPhoneNumber: "",
guestEmail: "123@qq.com", //Email guestEmail: "", //Email
BookingID: "", BookingID: "",
HotelName: "", //酒店名称 HotelName: "", //酒店名称
HotelPic: "", //酒店封面 HotelPic: "", //酒店封面
......
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