diff --git a/manifest.json b/manifest.json
index e8a569e..af0de38 100644
--- a/manifest.json
+++ b/manifest.json
@@ -50,9 +50,12 @@
"quickapp" : {},
/* 小程序特有相关 */
"mp-weixin" : {
- "appid" : "",
+ "appid" : "wx5be1fe6ef11841cd",
"setting" : {
- "urlCheck" : false
+ "urlCheck" : false,
+ "es6" : true,
+ "postcss" : true,
+ "minified" : true
},
"usingComponents" : true,
"lazyCodeLoading" : "requiredComponents",
diff --git a/package-lock.json b/package-lock.json
index 922878f..8d61998 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -2,6 +2,11 @@
"requires": true,
"lockfileVersion": 1,
"dependencies": {
+ "mobile-calendar-simple": {
+ "version": "2.4.0",
+ "resolved": "https://registry.npmmirror.com/mobile-calendar-simple/-/mobile-calendar-simple-2.4.0.tgz",
+ "integrity": "sha512-67Dg/pxQ7EK2uxGrjv4tLOBx+upIErxdtTC27o+luGFmhBtZ3+k1C2DGIzzJYhAF/YsMG9zkSl9XZY0TEt/HOg=="
+ },
"ydui-district": {
"version": "1.1.0",
"resolved": "https://registry.npmmirror.com/ydui-district/-/ydui-district-1.1.0.tgz",
diff --git a/pages.json b/pages.json
index fc44256..3d654b3 100644
--- a/pages.json
+++ b/pages.json
@@ -192,6 +192,30 @@
"style": {
"navigationBarTitleText": "全部订单"
}
+ },
+ {
+ "path": "homestay/index",
+ "style": {
+ "navigationBarTitleText": "特色民宿"
+ }
+ },
+ {
+ "path": "homestay/detail",
+ "style": {
+ "navigationBarTitleText": "特色民宿"
+ }
+ },
+ {
+ "path": "homestay/policy",
+ "style": {
+ "navigationBarTitleText": "设施/政策"
+ }
+ },
+ {
+ "path": "homestay/order",
+ "style": {
+ "navigationBarTitleText": "订单填写"
+ }
}
]
}],
diff --git a/static/js/CommonFunction.js b/static/js/CommonFunction.js
index e702cfa..f204a66 100644
--- a/static/js/CommonFunction.js
+++ b/static/js/CommonFunction.js
@@ -242,6 +242,10 @@ Vue.prototype.gotoDetailByType = item => {
case 'line':
url = '/subPackages/line/lineDetail?id=' + item.id
break;
+ case 'room':
+ url = '/subPackages/homestay/detail?id=958396'
+ // || item.scene_id || item.id
+ break;
default:
break;
}
diff --git a/store/modules/user.js b/store/modules/user.js
index 2e2f80b..9f6a62f 100644
--- a/store/modules/user.js
+++ b/store/modules/user.js
@@ -14,7 +14,6 @@ export default {
coupon: "",//景点下单选择优惠券
eshoppingCart: [],//自提产品购物车下单数据
sshoppingCart: [],//邮寄产品购物车下单数据
-
ticketOrderList: [], // 门票类下单
foodOrderList: [], // 农家烟火下单
techanOrderList: [], // 邮寄自提下单
@@ -73,10 +72,6 @@ export default {
changeOrderSCart(state, data){
state.sshoppingCart = data
},
- //meetRoomReserve修改会议预定信息
- changeMeetRoomReserve(state, data){
- state.meetRoomReserve = data
- },
// 线路下单
changeLineInfo(state, data){
state.lineInfo = data
diff --git a/subPackages/homestay/detail.vue b/subPackages/homestay/detail.vue
new file mode 100644
index 0000000..5791754
--- /dev/null
+++ b/subPackages/homestay/detail.vue
@@ -0,0 +1,742 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ {{swiperCurrent}}/{{info.listimg.length}}
+
+
+
+
+
+
+
+
+ {{info.title}}
+
+
+
+
+ {{tag}}
+
+
+
+ 设施/政策
+
+
+
+
+
+
+ {{info.address}}
+
+
+
+ 地图
+
+
+
+
+ 电话
+
+
+
+
+
+
+
+
+ {{new Date(selectDate.startDay).Format('MM-dd')}}
+ {{ ShowDateDay(new Date(selectDate.startDay).getDay()) }}
+ 入住
+
+
+ 共{{selectDate.differDays}}晚
+
+
+ {{new Date(selectDate.endDay).Format('MM-dd')}}
+ {{ShowDateDay(new Date(selectDate.endDay).getDay()) }}
+ 离店
+
+
+
+
+
+
+
+
+
+
+ {{item.sku_name}}
+
+
+
+
+ {{item.sku_model.bed_type}} | {{item.sku_model.area}}
+ | {{item.sku_model.window}} | 可入住{{item.sku_model.max_room_num}}人
+ | {{item.sku_model.breakfast}}
+
+
+
+ {{item.price/100}}
+ 预订
+
+
+
+
+
+
+ 查看剩余房型
+
+
+
+
+
+
+ 酒店介绍
+
+
+
+ 设施与政策
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/subPackages/homestay/index.vue b/subPackages/homestay/index.vue
new file mode 100644
index 0000000..63c34d8
--- /dev/null
+++ b/subPackages/homestay/index.vue
@@ -0,0 +1,133 @@
+
+
+
+
+
+
+
+ {{item.title}}
+
+ {{tagItem}}
+
+ {{item.province_name}}{{item.city_name}}{{item.area_name}}{{item.address}}
+ {{item.price / 100}}
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/subPackages/homestay/order.vue b/subPackages/homestay/order.vue
new file mode 100644
index 0000000..682b063
--- /dev/null
+++ b/subPackages/homestay/order.vue
@@ -0,0 +1,730 @@
+
+
+
+
+
+ {{skuInfo.sku_name}}
+
+ 房型信息
+
+
+
+
+
+ {{skuInfo.sku_model.bed_type}} | {{skuInfo.sku_model.area}}
+ | {{skuInfo.sku_model.window}} | 可入住{{skuInfo.sku_model.max_room_num}}人
+ | {{skuInfo.sku_model.breakfast}}
+
+
+
+
+
+ {{new Date(selectDate.startDay).Format('MM-dd')}}
+ {{ ShowDateDay(new Date(selectDate.startDay).getDay()) }}
+
+ 入住
+
+
+ 共{{selectDate.differDays}}晚
+
+
+
+ {{new Date(selectDate.endDay).Format('MM-dd')}}
+ {{ShowDateDay(new Date(selectDate.endDay).getDay()) }}
+ 离店
+
+
+
+
+
+
+
+
+
+
+
+ 酒店需至少提前1天预约,预约成功后不可更改。如未提前电话预约,届时因满房造成无法办理入住,敬请谅解。
+
+
+
+
+
+
+
+
+
+ 证件要求:需身份证登记入住
+
+
+
+
+
+
+
+
+
+ 预订信息
+ 姓名需与证件一致
+
+
+
+ 房间数
+
+
+ -
+
+ +
+
+
+
+
+ 房间{{index+1}}
+
+
+
+ 联系电话
+
+
+
+
+
+
+
+
+
+
+ 优惠券
+
+ 选择优惠券
+
+ -¥{{coupon.CouponActivity.discounts/100}}
+
+
+
+
+
+
+
+
+
+
+ 合计:
+ {{ total() / 100 }}
+
+
+ 立即预订
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/subPackages/homestay/policy.vue b/subPackages/homestay/policy.vue
new file mode 100644
index 0000000..914bd3a
--- /dev/null
+++ b/subPackages/homestay/policy.vue
@@ -0,0 +1,103 @@
+
+
+
+ {{info.title}}
+
+
+ 联系电话:{{info.tel}}
+
+
+
+
+
+
+
+ 服务设施
+
+
+
+ 入住须知
+
+
+
+
+
+
+
+
diff --git a/subPackages/homestay/selectCalendar.vue b/subPackages/homestay/selectCalendar.vue
new file mode 100644
index 0000000..a4a9f6e
--- /dev/null
+++ b/subPackages/homestay/selectCalendar.vue
@@ -0,0 +1,76 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/subPackages/order/orderCoupon.vue b/subPackages/order/orderCoupon.vue
index 5f7e6d2..8d67e63 100644
--- a/subPackages/order/orderCoupon.vue
+++ b/subPackages/order/orderCoupon.vue
@@ -86,7 +86,7 @@
this.getList();
},
onLoad(options) {
- this.allPrice = (options.allprice)
+ this.allPrice = options.allprice
this.sku_ids = options.sku_ids
this.needDefault = options.needDefault
console.log('11111',options);
diff --git a/subPackages/order/trades.vue b/subPackages/order/trades.vue
index df00b45..1f3c89b 100644
--- a/subPackages/order/trades.vue
+++ b/subPackages/order/trades.vue
@@ -27,27 +27,27 @@
choseType(item)">
- 订单号:{{ item.order_id }}
- {{ item.status_text }}
+ 订单编号:{{ item.order_id }}
+ {{ item.state_text }}
-
-
-
+
+
+
- {{ pro.goods_title }}
- {{ pro.specifications_name }}
+ {{ pro.product_title }}
+ {{ pro.sku_name }}
- ¥{{ pro.pay_money / 100 }}
- x{{ pro.num }}
+ ¥{{ pro.product_price / 100 }}
+ x{{ pro.product_num }}
合计
- ¥{{ item.pay_money / 100 }}
+ {{ item.total_money / 100 }}
refund(item.order_id, key)" v-if="item.status == 'PAYMENT_SUCCESSFULLY'">
@@ -74,32 +74,32 @@
finished: false,
list: [],
typeList: [{
- id: 'ALL',
- name: '全部'
+ name: '全部',
+ id: 'ALL'
},
{
- id: 'WAIT_PAYMENT',
- name: '待付款'
+ name: '待付款',
+ id: 'WAIT_PAYMENT'
},
{
- id: 'PAYMENT_SUCCESSFULLY',
- name: '待使用'
+ name: '待发货',
+ id: 'WAIT_POST'
},
{
- id: 'PAYMENT_SUCCESSFULLY',
- name: '待发货'
+ name: '待使用',
+ id: ''
},
{
- id: 'POST',
- name: '待收货'
+ name: '待出行',
+ id: 'WAIT_USE'
},
- // {
- // id: 'WAIT_COMMENT',
- // name: '待评价'
- // },
{
- id: 'WAIT_REFUND,REFUND_SUCCESS,REFUND_REFUSAL,REFUND_ERROR,REFUND_PART',
- name: '退款/售后'
+ name: '待收货',
+ id: 'WAIT_DELIVERY'
+ },
+ {
+ name: '退款/售后',
+ id: 'NEED_REFUND'
}
],
typeIndex: 0,
@@ -309,16 +309,16 @@
},
getList() {
let data = {
- status: this.typeList[this.typeIndex].id == 'ALL' ? '' : this.typeList[this.typeIndex].true_id ||
+ state: this.typeList[this.typeIndex].id == 'ALL' ? '' : this.typeList[this.typeIndex].true_id ||
this.typeList[this.typeIndex].id,
offset: this.list.length,
limit: 5,
- name: this.keywords,
+ keywords: this.keywords,
type: this.typeList[this.typeIndex].name == '待使用' ? 1 : (this.typeList[this.typeIndex].name ==
'待发货' ? 2 : '')
};
- this.Post(data, '/api/order/orderList').then(res => {
- this.list = [...this.list, ...res.data]
+ this.Post(data, '/api/order/list').then(res => {
+ this.list = [...this.list, ...res.data.list]
if (res.data.length < 5) {
this.finished = true;
}
@@ -457,7 +457,7 @@
font-size: 27rpx;
font-family: PingFang SC;
font-weight: bold;
- color: #C3282E;
+ color: #6A8A27;
}
.trade-item-head-name {
@@ -521,7 +521,7 @@
padding: 0 20rpx;
font-weight: 500;
font-size: 24rpx;
- color: #C3282E;
+ color: #6A8A27;
margin-top: 20rpx;
}
@@ -535,7 +535,7 @@
.trade-item-pro-price-pri {
font-size: 27rpx;
- color: #C3282E;
+ color: #6A8A27;
font-weight: 500;
color: #333333;
}
@@ -560,7 +560,11 @@
.trade-item-info text {
font-size: 36rpx;
font-weight: bold;
- color: rgba(238, 0, 0, 1);
+ color: rgba(195, 40, 46, 1);
+ }
+ .trade-item-info text::before {
+ font-size: 26rpx;
+ content: '¥';
}
.trade-item-btns {
@@ -585,7 +589,7 @@
.trade-item-btns .pay-btn {
color: #FFFFFF;
- background: #C3282E;
+ background: #6A8A27;
border: none;
padding: 10rpx 16rpx;
}