门票详情

lu_quan_dev
han 11 months ago
parent 748d6d7ed2
commit c4c85b43da
  1. 22
      pages.json
  2. 2
      static/css/common.scss
  3. 6
      subPageB/Homestay/homestaydetail/homestaydetail.vue
  4. 127
      subPageC/bookHotel/bookHotel.vue

@ -482,11 +482,11 @@
}
},
{
"path": "bookHotel/bookHotel",
"style": {
"navigationBarTitleText": "订单填写"
}
},
"path": "bookHomestay/bookHomestay",
"style": {
"navigationBarTitleText": "订单填写"
}
},
{
"path": "order/order",
"style": {
@ -498,6 +498,18 @@
"style": {
"navigationBarTitleText": "订单详情"
}
},
{
"path": "orderHomestay/order",
"style": {
"navigationBarTitleText": "订单列表"
}
},
{
"path": "order/orderDetail",
"style": {
"navigationBarTitleText": "订单列表"
}
}
]
}

@ -498,6 +498,7 @@ page {
}
.arraw {
width: 30rpx;
height: 30rpx;
margin: 0 10rpx;
}
}
@ -506,6 +507,7 @@ page {
font-size: 24rpx;
color: #0983ff;
}
.v-form-content{font-size: 28rpx;}
/* 订单提交俺就 */
.v-order-submit {
box-sizing: border-box;

@ -166,13 +166,11 @@
};
this.$Request.get(this.$config.getHomestayDetail, data, null, null, false, null).then((res) => {
this.info = res.data
this.pic_list = info.otelPhoto;
this.pic_list = this.info.hotelPhoto;
});
},
bookIt(val) {
var data = {
hotelId: this.info.id,
hotelName: this.info.hotelName
@ -184,7 +182,7 @@
}
const ticket = encodeURIComponent(JSON.stringify(parame));
uni.navigateTo({
url: "/subPageC/bookHotel/bookHotel?ticket=" + ticket
url: "/subPageC/bookHomestay/bookHomestay?ticket=" + ticket
});
// this.judgeLogin((resa) => {});

@ -1,127 +0,0 @@
<template>
<view class="v-pages-bg bgcolor p-b-24">
<form @submit="formSubmit" @reset="formReset">
<view class="v-card small container-fluid m-t-24">
{{orderInfo.startDate1}}{{orderInfo.dayNum}}{{orderInfo.endDate1}}
<view class="card-form">
{{orderInfo.houseName}}
</view>
</view>
<view class="v-card small container-fluid m-t-24">
<view class="card-title">
<view class="text"><text>入住信息</text></view>
</view>
<uni-row>
<uni-col :span="6">
<view class="content-box-label">房间数量</view>
</uni-col>
<uni-col class="content-box-col" :span="18">
<uni-easyinput :inputBorder="false" v-model="formData.name" placeholder="请输入房间数量" />
</uni-col>
</uni-row>
<uni-row>
<uni-col :span="6">
<view class="content-box-label">入住人</view>
</uni-col>
<uni-col class="content-box-col" :span="18">
<uni-easyinput :inputBorder="false" v-model="formData.phoneNumber" placeholder="请输入入住人姓名" />
</uni-col>
</uni-row>
<uni-row>
<uni-col :span="6">
<view class="content-box-label">身份证</view>
</uni-col>
<uni-col class="content-box-col" :span="18">
<uni-easyinput :inputBorder="false" v-model="formData.idtype" placeholder="请输入身份证号码" />
</uni-col>
</uni-row>
<uni-row>
<uni-col :span="6">
<view class="content-box-label">联系手机</view>
</uni-col>
<uni-col class="content-box-col" :span="18">
<uni-easyinput :inputBorder="false" v-model="formData.idCardNumber" placeholder="请输入手机号码" />
</uni-col>
</uni-row>
</view>
<view class="v-card small container-fluid m-t-24">
<view class="card-title">
<view class="text"><text>发票服务</text></view>
</view>
<view>如需发票请向酒店前台索取</view>
</view>
<view class="v-card small container-fluid m-t-24">
<view class="card-title">
<view class="text"><text>下单说明</text></view>
</view>
<view>订单需等待商家确认后才生效订单确认结果以平台订单信息为准</view>
</view>
<view class="v-order-submit row flex-align-center">
<view class="col price">
<text class="pre">总价</text>
<text class="text">&yen;</text>
<text class="number">{{orderInfo.housePrice}}</text>
</view>
<view class="btn" @click="orderSubmit">提交订单</view>
</view>
</form>
</view>
</template>
<script>
export default {
data() {
return {
orderInfo: {},
formData: {
name: undefined,
phoneNumber: undefined,
idtype: undefined,
idCardNumber: undefined,
}
}
},
onLoad(options) {
const ticket = JSON.parse(decodeURIComponent(options.ticket));
this.orderInfo = ticket
},
methods: {
orderSubmit() {
const userInfo = uni.getStorageSync("userInfo");
const extConfig = uni.getExtConfigSync ? uni.getExtConfigSync() : {};
let appId = extConfig.app_id
console.log("safsd", appId)
const params = {
openid: userInfo.openid,
appid: appId,
tenantId: this.tentId,
};
var data = {
"hotelId": this.orderInfo.hotelId,
"hotelName": this.orderInfo.hotelName,
"orderAmount": this.orderInfo.housePrice,
"checkTime": this.orderInfo.startDate,
"checkOutTime": this.orderInfo.endDate,
"bedId": this.orderInfo.id,
"roomsNums": "1",
"mobile": "15512225250",
"openid": "111",
"appid": "2",
"tenantId": "1",
"checkInPersonInfoDTOList": [this.formData]
};
console.log(data)
this.$Request.post(this.$config.createHotelOrder, data, 'json', null, false, null).then((res) => {
});
}
}
}
</script>
<style lang="scss" scoped>
</style>
Loading…
Cancel
Save