添加茶艺师收藏功能
This commit is contained in:
@ -89,9 +89,9 @@
|
||||
></wd-swiper>
|
||||
</view>
|
||||
|
||||
<view class="text-36rpx text-[#303133] leading-50rpx mx-30rpx mt-40rpx mb-32rpx font-bold">热门场景</view>
|
||||
<view class="text-36rpx text-[#303133] leading-50rpx mx-30rpx mt-40rpx mb-32rpx font-bold" v-if="setting.status == 1">热门场景</view>
|
||||
|
||||
<view class="package-row px-30rpx">
|
||||
<view class="package-row px-30rpx" v-if="setting.status == 1">
|
||||
<view class="grid grid-cols-3 gap-x-0 gap-y-20rpx">
|
||||
<view
|
||||
v-for="(item, idx) in teaPackageList"
|
||||
@ -120,7 +120,7 @@
|
||||
</view>
|
||||
|
||||
<!-- 专属定制 -->
|
||||
<view class="flex justify-center mt-24rpx" @click="router.navigateTo(`/bundle_b/pages/tea-specialist/list`)">
|
||||
<view class="flex justify-center mt-24rpx" @click="router.navigateTo(`/bundle_b/pages/tea-specialist/list`)" v-if="setting.status == 1">
|
||||
<wd-img :src="`${OSS}images/home/home_image_19.png`" width="690rpx" height="200rpx" mode="scaleToFill" />
|
||||
</view>
|
||||
</view>
|
||||
@ -208,6 +208,7 @@
|
||||
import { getHomeTeaStoreList } from '@/api/tea-room'
|
||||
import { useUserStore } from '@/store'
|
||||
import { useToast } from 'wot-design-uni'
|
||||
import { getSetting } from '@/api/tea-specialist'
|
||||
|
||||
const OSS = inject('OSS')
|
||||
const navbarHeight = inject('navbarHeight')
|
||||
@ -253,6 +254,9 @@
|
||||
// 显示第2种优惠券弹窗
|
||||
const showCoupon2 = ref<boolean>(false)
|
||||
|
||||
// 获取设置
|
||||
const setting = ref<any>({})
|
||||
|
||||
onShow(async () => {
|
||||
// if (canLocation) {
|
||||
// const location = await handleGetLocationCity(latitude.value, longitude.value)
|
||||
@ -382,6 +386,7 @@
|
||||
* 初始化首页数据
|
||||
*/
|
||||
handleInit: () => {
|
||||
|
||||
getHomeBannerList().then(res => {
|
||||
swiperList.value = res.list.map(item => item.address)
|
||||
})
|
||||
@ -390,6 +395,10 @@
|
||||
getTeaPackageList().then(res => {
|
||||
teaPackageList.value = res
|
||||
})
|
||||
|
||||
getSetting().then(res => {
|
||||
setting.value = res
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
@ -57,10 +57,10 @@
|
||||
<view class="font-bold text-36rpx leading-50rpx"> {{ isLogin ? user.coupon_count : '- -' }}</view>
|
||||
<view class="text-24rpx leading-34rpx">优惠券</view>
|
||||
</view>
|
||||
<!-- <view class="w-160rpx text-[#303133] text-center" @click="router.navigateTo('/bundle/collect/collect')">
|
||||
<view class="w-160rpx text-[#303133] text-center" @click="router.navigateTo('/bundle/collect/collect')">
|
||||
<view class="font-bold text-36rpx leading-50rpx"> {{ isLogin ? user.collect_count : '- -' }}</view>
|
||||
<view class="text-24rpx leading-34rpx">收藏</view>
|
||||
</view> -->
|
||||
</view>
|
||||
</view>
|
||||
<view class="relative">
|
||||
<view class="w-378rpx h-148rpx">
|
||||
|
||||
Reference in New Issue
Block a user