Feat:订单退款,礼品下单
This commit is contained in:
@@ -155,50 +155,7 @@ export default {
|
||||
giftBg: '',
|
||||
id: '',
|
||||
activePeriod: 0,
|
||||
detail: {
|
||||
title: '【正牌爆售】30天29晚臻享特色小院/庵食套餐',
|
||||
price: 3888,
|
||||
images: [
|
||||
'https://cdn.jsdelivr.net/gh/trae-ai/assets-placeholder/hotel-1.jpg',
|
||||
'https://cdn.jsdelivr.net/gh/trae-ai/assets-placeholder/hotel-2.jpg',
|
||||
'https://cdn.jsdelivr.net/gh/trae-ai/assets-placeholder/hotel-3.jpg'
|
||||
],
|
||||
periods: [
|
||||
{ batch: 1, range: '6/13-6/15' },
|
||||
{ batch: 2, range: '6/16-6/18' },
|
||||
{ batch: 3, range: '6/19-6/21' },
|
||||
{ batch: 4, range: '6/22-6/24' }
|
||||
],
|
||||
combos: [
|
||||
{ img: 'https://cdn.jsdelivr.net/gh/trae-ai/assets-placeholder/room-1.jpg', text: '温泉泡汤·双人早餐' },
|
||||
{ img: 'https://cdn.jsdelivr.net/gh/trae-ai/assets-placeholder/room-2.jpg', text: '茶室体验·手作禅食' },
|
||||
{ img: 'https://cdn.jsdelivr.net/gh/trae-ai/assets-placeholder/room-3.jpg', text: '山景露台·下午茶' },
|
||||
{ img: 'https://cdn.jsdelivr.net/gh/trae-ai/assets-placeholder/room-4.jpg', text: '夜间电影·星空灯' },
|
||||
{ img: 'https://cdn.jsdelivr.net/gh/trae-ai/assets-placeholder/room-5.jpg', text: '精品床品·加湿香氛' },
|
||||
{ img: 'https://cdn.jsdelivr.net/gh/trae-ai/assets-placeholder/room-6.jpg', text: '小院烧烤·庭院篝火' }
|
||||
],
|
||||
highlights: [
|
||||
'小院临海风光,步行可达观景台',
|
||||
'馆内私厨,提供本地特色庵食',
|
||||
'房间带露台,景观视野绝佳',
|
||||
'每期限定名额,错峰享受更安静'
|
||||
],
|
||||
rules: [
|
||||
'需至少提前3日预订,节假日价格略有浮动',
|
||||
'不可与其他优惠同享;支持改期一次',
|
||||
'如遇不可抗因素,支持无损退款',
|
||||
'入住需持有效身份证件,遵守园区规定'
|
||||
],
|
||||
fees: [
|
||||
{ name: '下单即赠惊喜', value: '免费' },
|
||||
{ name: '入住加床', value: 'x' },
|
||||
{ name: '儿童入园', value: 'x' }
|
||||
],
|
||||
gallery: [
|
||||
'https://cdn.jsdelivr.net/gh/trae-ai/assets-placeholder/courtyard-1.jpg',
|
||||
'https://cdn.jsdelivr.net/gh/trae-ai/assets-placeholder/courtyard-2.jpg'
|
||||
]
|
||||
},
|
||||
detail: {},
|
||||
calendar: [],
|
||||
currentWeek: [],
|
||||
rules: "",
|
||||
@@ -223,6 +180,12 @@ export default {
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
toGift(){
|
||||
uni.navigateTo({
|
||||
// + '&couponId=' + coupId
|
||||
url: '/pkg_user/views/gift/gift?cartId=' + this.id + '&isGroupBuy=1'
|
||||
})
|
||||
},
|
||||
handleDateSelected(dateRange) {
|
||||
console.log(dateRange, 'dateRange');
|
||||
|
||||
@@ -300,7 +263,25 @@ export default {
|
||||
},
|
||||
|
||||
contactService() {
|
||||
uni.showToast({ title: '已为您接入管家', icon: 'none' })
|
||||
uni.showModal({
|
||||
title: '商家电话',
|
||||
content: this.detail.phone || '暂无电话',
|
||||
confirmText: '立即拨打',
|
||||
cancelText: '取消',
|
||||
success: (res) => {
|
||||
if (res.confirm && this.detail.phone) {
|
||||
uni.makePhoneCall({
|
||||
phoneNumber: this.detail.phone,
|
||||
fail: () => {
|
||||
uni.showToast({
|
||||
title: '拨打电话失败',
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
bookNow() {
|
||||
uni.navigateTo({ url: '/pkg_product/views/submitOrder?id=' + this.id + '&orderStartDate=' + this.rangeDate.startDate + '&orderEndDate=' + this.rangeDate.endDate })
|
||||
|
||||
Reference in New Issue
Block a user