|
@ -97,6 +97,7 @@ |
|
|
</view> |
|
|
</view> |
|
|
<!-- 底部按钮 --> |
|
|
<!-- 底部按钮 --> |
|
|
<view class="btn-box flex-center"> |
|
|
<view class="btn-box flex-center"> |
|
|
|
|
|
<view style="width: 180rpx;" class="flex-between"> |
|
|
<button id="contact" open-type="contact" bindcontact="handleContact" session-from="sessionFrom"> |
|
|
<button id="contact" open-type="contact" bindcontact="handleContact" session-from="sessionFrom"> |
|
|
<view class="icon-container"> |
|
|
<view class="icon-container"> |
|
|
<view class="icon-item"> |
|
|
<view class="icon-item"> |
|
@ -105,15 +106,24 @@ |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</button> |
|
|
</button> |
|
|
|
|
|
<view class="icon-container"> |
|
|
|
|
|
<view class="icon-item" style="position: relative;width: 80rpx;" @click="goCartPage()"> |
|
|
|
|
|
<image src="https://static.ticket.sz-trip.com/uploads/20250820/17eeecf12ba9fdc56bce3b84fd5fb45f.png" mode="aspectFill"></image> |
|
|
|
|
|
<text>购物车</text> |
|
|
|
|
|
<view class="cartNum" v-if="cartNum">{{cartNum}}</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
<view class="btn" @click="showCartPopup">加入购物车</view> |
|
|
<view class="btn" @click="showCartPopup">加入购物车</view> |
|
|
</view> |
|
|
</view> |
|
|
<!-- 购物车图标 --> |
|
|
<!-- 购物车图标 --> |
|
|
<view class="add-cart-icon" @click="goCartPage()"> |
|
|
<!-- <view class="add-cart-icon" @click="goCartPage()"> |
|
|
<uni-badge class="uni-badge-left-margin" :text="cartNum" absolute="rightTop" :offset="[-3, -3]" size="small" |
|
|
<uni-badge class="uni-badge-left-margin" :text="cartNum" absolute="rightTop" :offset="[-3, -3]" size="small" |
|
|
:custom-style="{background:'#DC2525',color:'#ffffff'}"> |
|
|
:custom-style="{background:'#DC2525',color:'#ffffff'}"> |
|
|
<image src="https://static.ticket.sz-trip.com/uploads/20250611/f8c2078ad76754a0b0251f9b65784dc2.png"></image> |
|
|
<image src="https://static.ticket.sz-trip.com/uploads/20250611/f8c2078ad76754a0b0251f9b65784dc2.png"></image> |
|
|
</uni-badge> |
|
|
</uni-badge> |
|
|
</view> |
|
|
</view> --> |
|
|
|
|
|
|
|
|
<!-- 预订须知的弹窗 --> |
|
|
<!-- 预订须知的弹窗 --> |
|
|
<uni-popup ref="popupRule" type="bottom" :safe-area="false"> |
|
|
<uni-popup ref="popupRule" type="bottom" :safe-area="false"> |
|
@ -301,6 +311,7 @@ |
|
|
title: this.info.title |
|
|
title: this.info.title |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
this.shareParam = {title: this.info.title, imageUrl: this.info.headimg} |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
@ -440,6 +451,21 @@ |
|
|
|
|
|
|
|
|
// 预定选择日期分时 |
|
|
// 预定选择日期分时 |
|
|
changeSku(itemSku,goods) { |
|
|
changeSku(itemSku,goods) { |
|
|
|
|
|
// 如果是产品酒景套餐,进入酒景套餐下单页 |
|
|
|
|
|
console.log(itemSku, goods) |
|
|
|
|
|
if(goods.is_package == 1) { |
|
|
|
|
|
let orderInfo = [{ |
|
|
|
|
|
pInfo: goods, |
|
|
|
|
|
sInfo: {...itemSku, buyNum: 1}, |
|
|
|
|
|
}] |
|
|
|
|
|
|
|
|
|
|
|
this.$store.commit("changeFoodOrderList", orderInfo); |
|
|
|
|
|
uni.navigateTo({ |
|
|
|
|
|
url: '/subPackages/food/order' |
|
|
|
|
|
}); |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
this.skuInfo = itemSku |
|
|
this.skuInfo = itemSku |
|
|
this.selectGoods = goods |
|
|
this.selectGoods = goods |
|
|
this.getPriceCal(itemSku,goods) |
|
|
this.getPriceCal(itemSku,goods) |
|
@ -1308,4 +1334,20 @@ |
|
|
button::after { |
|
|
button::after { |
|
|
border: none; |
|
|
border: none; |
|
|
} |
|
|
} |
|
|
|
|
|
.cartNum{ |
|
|
|
|
|
width: 28rpx; |
|
|
|
|
|
height: 28rpx; |
|
|
|
|
|
background: #DC2525; |
|
|
|
|
|
border-radius: 50%; |
|
|
|
|
|
border: 1px solid #DC2525; |
|
|
|
|
|
font-weight: normal; |
|
|
|
|
|
font-size: 23rpx; |
|
|
|
|
|
color: #FFFFFF; |
|
|
|
|
|
display: flex; |
|
|
|
|
|
align-items: center; |
|
|
|
|
|
justify-content: center; |
|
|
|
|
|
position: absolute; |
|
|
|
|
|
top: -10rpx; |
|
|
|
|
|
right: -6rpx; |
|
|
|
|
|
} |
|
|
</style> |
|
|
</style> |
|
|