改为常量判断方式

This commit is contained in:
wangxiaowei
2026-01-07 17:33:42 +08:00
parent aee0537ac6
commit 4c173c3bbe

View File

@ -91,13 +91,13 @@
</view>
<view class="tabs">
<wd-tabs ref="tabsRef" v-model="tab" swipeable slidable="always" @change="Room.handleChangeTab" :lazy="false" :duration="0">
<wd-tab title="茶室预定" v-if="storeType != 2"></wd-tab>
<wd-tab title="茶室预定" v-if="storeType == StoreType.Direct"></wd-tab>
<wd-tab title="团购套餐"></wd-tab>
<wd-tab title="抖音兑换" v-if="storeType != 2"></wd-tab>
<wd-tab title="抖音兑换" v-if="storeType == StoreType.Direct"></wd-tab>
</wd-tabs>
<view class="mx-30rpx mt-34rpx">
<view class="text-24rpx flex items-center justify-end mb-20rpx" v-if="storeType != 2">
<view class="text-24rpx flex items-center justify-end mb-20rpx" v-if="storeType == StoreType.Direct && tab == 0">
<view class="flex items-center mr-12rpx">
<view class="bg-[#C9C9C9] w-20rpx h-20rpx rounded-10rpx mr-10rpx"></view>
<view>过期</view>
@ -253,6 +253,8 @@
handleInit: async () => {
const userStore = useUserStore()
userInfo.value = userStore.userInfo
console.log("🚀 ~ uni.getStorageSync('latitude'):", uni.getStorageSync('latitude'))
console.log("🚀 ~ uni.getStorageSync('longitude'):", uni.getStorageSync('longitude'))
const res = await getTeaRoomDetail({
id: teaRoomId.value,