2025-03-30 18:00:11 +08:00
|
|
|
|
<template>
|
|
|
|
|
<view class="page-content">
|
|
|
|
|
<scroll-view scroll-x class="bg-white nav">
|
|
|
|
|
<view class="flex text-center">
|
|
|
|
|
<view class="cu-item flex-sub tab" :class="tabCur == 0?'active cur':''" @tap="tabSelect" :data-id="0">
|
|
|
|
|
酒款
|
|
|
|
|
</view>
|
|
|
|
|
<view class="cu-item flex-sub tab" :class="tabCur == 1?'active cur':''" @tap="tabSelect" :data-id="1">
|
|
|
|
|
品牌
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</scroll-view>
|
2025-04-04 13:00:55 +08:00
|
|
|
|
<view v-if="!isLogin" class="flex align-center justify-center" style="height: calc(100vh - 100rpx);">
|
|
|
|
|
<view class="flex flex-col align-center">
|
|
|
|
|
<text style="color: #747783;font-size: 28rpx;margin-bottom: 30rpx;">登录后查看我的关注</text>
|
|
|
|
|
<button class="cu-btn" style="color: #FFFFFF; background-color: #4E63E0;" @click="toLogin">去登录</button>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<template v-else>
|
2025-04-05 10:01:09 +08:00
|
|
|
|
<view v-if="!isVerified && !isVerifying" class="flex align-center justify-center" style="height: calc(100vh - 100rpx);">
|
2025-04-04 13:00:55 +08:00
|
|
|
|
<view class="flex flex-col align-center">
|
|
|
|
|
<text style="color: #747783;font-size: 28rpx;margin-bottom: 30rpx;">请先完成门店认证</text>
|
|
|
|
|
<button class="cu-btn" style="color: #FFFFFF; background-color: #4E63E0;" @click="toVerify">去认证</button>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2025-04-05 10:01:09 +08:00
|
|
|
|
<view v-else-if="isVerifying" class="flex align-center justify-center" style="height: calc(100vh - 100rpx);">
|
|
|
|
|
<view class="flex flex-col align-center">
|
|
|
|
|
<text style="color: #747783;font-size: 28rpx;margin-bottom: 30rpx;">您的门店正在认证中,请耐心等待</text>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2025-04-04 13:00:55 +08:00
|
|
|
|
<template v-else>
|
|
|
|
|
<view v-if="tabCur == 0" class="my-container">
|
|
|
|
|
<template v-if="favoriteBeerList.length > 0">
|
|
|
|
|
<scroll-view style="height: 100%;" enable-flex scroll-y @scrolltolower="changeBeerPage">
|
2025-04-07 21:12:12 +08:00
|
|
|
|
<view class="beer-list">
|
|
|
|
|
<view class="beer-item" v-for="(item, index) in favoriteBeerList" :key="index" @click="toBeer(item)">
|
|
|
|
|
<view class="beerCard flex align-center">
|
|
|
|
|
<image :src="item.cover" class="beer-cover" mode="aspectFill"></image>
|
|
|
|
|
<view class="flex-1 beer-info">
|
|
|
|
|
<view class="beer-name">{{item.beerName}}</view>
|
|
|
|
|
<view class="beer-style">{{ item.beerStyles}}</view>
|
|
|
|
|
<view class="brand-info flex align-center">
|
|
|
|
|
<image :src="item.brandLogo" class="brand-logo" mode="aspectFill"></image>
|
|
|
|
|
<text class="brand-name">{{ item.brandName}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="rating-info flex align-center">
|
|
|
|
|
<text class="rating">
|
|
|
|
|
<text class="cuIcon-favorfill"></text>
|
|
|
|
|
{{ item.beerOverallRating || '5.0'}}
|
|
|
|
|
</text>
|
|
|
|
|
<text class="review-count">{{item.beerReviewsCount || '0'}} 条评论</text>
|
|
|
|
|
</view>
|
2025-04-04 13:00:55 +08:00
|
|
|
|
</view>
|
2025-04-07 21:12:12 +08:00
|
|
|
|
<view class="action-box">
|
|
|
|
|
<image src="/static/heart-remove.svg" class="cancel-icon" mode="aspectFit" @click.stop="cancelFavBeer(item)"></image>
|
2025-04-04 13:00:55 +08:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2025-03-30 18:00:11 +08:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2025-04-04 13:00:55 +08:00
|
|
|
|
<view class="cu-load" :class="favoriteBeerList.length == totalBeer ? 'over' :'more'"></view>
|
|
|
|
|
</scroll-view>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-else>
|
2025-04-07 21:12:12 +08:00
|
|
|
|
<view class="empty-state">
|
|
|
|
|
<text class="cuIcon-like empty-icon"></text>
|
|
|
|
|
<text class="empty-text">暂无关注的酒款</text>
|
|
|
|
|
</view>
|
2025-04-04 13:00:55 +08:00
|
|
|
|
</template>
|
|
|
|
|
</view>
|
|
|
|
|
<view v-if="tabCur == 1" class="my-brandSide">
|
|
|
|
|
<template v-if="favoriteBreweryList.length > 0">
|
2025-04-07 21:12:12 +08:00
|
|
|
|
<scroll-view style="height: 100%;" scroll-y="true">
|
|
|
|
|
<view v-for="(item, index) in favoriteBreweryList" :key="index" class="brandSide-box" @tap="toBrand(item)">
|
|
|
|
|
<view class="flex align-center justify-start">
|
|
|
|
|
<image :src="item.brandLogo || '/static/default-brewery.png'" class="logo" mode="aspectFill" lazy-load></image>
|
|
|
|
|
<view class="info">
|
2025-04-04 13:00:55 +08:00
|
|
|
|
<view class="title">{{ item.brandName }}</view>
|
2025-04-07 21:12:12 +08:00
|
|
|
|
<view class="desc">全系列{{item.productCount || 'XXX'}}款产品在售</view>
|
2025-04-04 13:00:55 +08:00
|
|
|
|
</view>
|
2025-03-30 18:00:11 +08:00
|
|
|
|
</view>
|
2025-04-07 21:12:12 +08:00
|
|
|
|
<view class="action-box">
|
|
|
|
|
<image src="/static/heart-remove.svg" class="cancel-icon" mode="aspectFit" @click.stop="cancelFavBrewery(item)"></image>
|
|
|
|
|
</view>
|
2025-03-30 18:00:11 +08:00
|
|
|
|
</view>
|
2025-04-04 13:00:55 +08:00
|
|
|
|
</scroll-view>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-else>
|
2025-04-07 21:12:12 +08:00
|
|
|
|
<view class="empty-state">
|
|
|
|
|
<text class="empty-text">暂无关注的品牌</text>
|
|
|
|
|
</view>
|
2025-04-04 13:00:55 +08:00
|
|
|
|
</template>
|
|
|
|
|
</view>
|
2025-03-30 18:00:11 +08:00
|
|
|
|
</template>
|
2025-04-04 13:00:55 +08:00
|
|
|
|
</template>
|
|
|
|
|
<loginPopup ref="loginRef" @loginSuccess="loginSuccess"></loginPopup>
|
2025-03-30 18:00:11 +08:00
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import {
|
|
|
|
|
listMyFavoriteBeer,
|
|
|
|
|
listMyFavoriteBrewery
|
|
|
|
|
} from '@/api/user.js'
|
|
|
|
|
import {
|
|
|
|
|
favorBeer,
|
|
|
|
|
favorBrewery
|
|
|
|
|
} from '@/api/bar.js'
|
2025-04-04 13:00:55 +08:00
|
|
|
|
import loginPopup from '@/components/loginPopup.vue'
|
2025-03-30 18:00:11 +08:00
|
|
|
|
export default {
|
2025-04-04 13:00:55 +08:00
|
|
|
|
components: {
|
|
|
|
|
loginPopup
|
|
|
|
|
},
|
2025-03-30 18:00:11 +08:00
|
|
|
|
data() {
|
|
|
|
|
return {
|
2025-04-04 13:00:55 +08:00
|
|
|
|
isLogin: false,
|
|
|
|
|
isVerified: false,
|
2025-04-05 10:01:09 +08:00
|
|
|
|
isVerifying: false,
|
2025-03-30 18:00:11 +08:00
|
|
|
|
tabCur: 0,
|
2025-04-07 21:12:12 +08:00
|
|
|
|
scrollLeft: 0,
|
|
|
|
|
favoriteBeerList: [],
|
|
|
|
|
favoriteBreweryList: [],
|
|
|
|
|
totalBeer: 0,
|
|
|
|
|
totalBrewery: 0,
|
|
|
|
|
loading: false,
|
|
|
|
|
refreshing: false,
|
2025-03-30 18:00:11 +08:00
|
|
|
|
beerQuery: {
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
pageSize: 10
|
|
|
|
|
},
|
|
|
|
|
breweryQuery: {
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
pageSize: 10
|
2025-04-07 21:12:12 +08:00
|
|
|
|
}
|
2025-03-30 18:00:11 +08:00
|
|
|
|
};
|
|
|
|
|
},
|
2025-04-04 13:00:55 +08:00
|
|
|
|
onShow() {
|
|
|
|
|
this.checkLoginStatus()
|
|
|
|
|
},
|
2025-03-30 18:00:11 +08:00
|
|
|
|
onLoad() {
|
2025-04-07 16:09:15 +08:00
|
|
|
|
// 测试接口
|
|
|
|
|
console.log('开始测试接口...')
|
|
|
|
|
|
|
|
|
|
// 测试获取酒款收藏列表
|
|
|
|
|
listMyFavoriteBeer({
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
pageSize: 10
|
|
|
|
|
}).then(res => {
|
|
|
|
|
console.log('酒款收藏列表测试成功:', res)
|
|
|
|
|
}).catch(err => {
|
|
|
|
|
console.error('获取酒款收藏列表失败:', err)
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
// 测试获取品牌收藏列表
|
|
|
|
|
listMyFavoriteBrewery({
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
pageSize: 10
|
|
|
|
|
}).then(res => {
|
|
|
|
|
console.log('品牌收藏列表测试成功:', res)
|
|
|
|
|
}).catch(err => {
|
|
|
|
|
console.error('获取品牌收藏列表失败:', err)
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
// 测试取消收藏接口(需要有效的ID)
|
|
|
|
|
// favorBeer({
|
|
|
|
|
// beerId: 'xxx', // 需要替换为实际的beerId
|
|
|
|
|
// status: 2
|
|
|
|
|
// }).then(res => {
|
|
|
|
|
// console.log('取消酒款收藏测试成功:', res)
|
|
|
|
|
// }).catch(err => {
|
|
|
|
|
// console.error('取消酒款收藏失败:', err)
|
|
|
|
|
// })
|
|
|
|
|
|
|
|
|
|
// favorBrewery({
|
|
|
|
|
// breweryId: 'xxx', // 需要替换为实际的breweryId
|
|
|
|
|
// status: 2
|
|
|
|
|
// }).then(res => {
|
|
|
|
|
// console.log('取消品牌收藏测试成功:', res)
|
|
|
|
|
// }).catch(err => {
|
|
|
|
|
// console.error('取消品牌收藏失败:', err)
|
|
|
|
|
// })
|
|
|
|
|
|
|
|
|
|
// 原有的数据加载
|
|
|
|
|
this.getFavoriteBeerList()
|
|
|
|
|
this.getFavoriteBreweryList()
|
|
|
|
|
|
2025-04-04 13:00:55 +08:00
|
|
|
|
// 监听需要登录的事件
|
|
|
|
|
uni.$on('needLogin', () => {
|
|
|
|
|
this.toLogin()
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
onUnload() {
|
|
|
|
|
// 移除事件监听
|
|
|
|
|
uni.$off('needLogin')
|
2025-03-30 18:00:11 +08:00
|
|
|
|
},
|
|
|
|
|
methods: {
|
2025-04-04 13:00:55 +08:00
|
|
|
|
// 检查登录状态
|
|
|
|
|
checkLoginStatus() {
|
|
|
|
|
const token = uni.getStorageSync('token')
|
|
|
|
|
const userInfo = uni.getStorageSync('userInfo')
|
2025-04-05 10:01:09 +08:00
|
|
|
|
const barInfo = uni.getStorageSync('barInfo')
|
|
|
|
|
|
|
|
|
|
// 重置状态
|
|
|
|
|
this.isLogin = false
|
|
|
|
|
this.isVerified = false
|
|
|
|
|
this.isVerifying = false
|
|
|
|
|
this.favoriteBeerList = []
|
|
|
|
|
this.favoriteBreweryList = []
|
|
|
|
|
this.beerQuery.pageNum = 1
|
|
|
|
|
this.breweryQuery.pageNum = 1
|
|
|
|
|
|
|
|
|
|
// 检查登录状态
|
2025-04-05 15:28:47 +08:00
|
|
|
|
if (!token || !userInfo) {
|
2025-04-05 10:01:09 +08:00
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.isLogin = true
|
|
|
|
|
|
|
|
|
|
// 检查认证状态
|
|
|
|
|
if (barInfo) {
|
2025-04-07 17:33:39 +08:00
|
|
|
|
if (barInfo.authState === 1) {
|
2025-04-05 10:01:09 +08:00
|
|
|
|
// 已认证
|
|
|
|
|
this.isVerified = true
|
|
|
|
|
this.isVerifying = false
|
2025-04-07 17:33:39 +08:00
|
|
|
|
} else if (barInfo.authState === 2) {
|
2025-04-05 10:01:09 +08:00
|
|
|
|
// 认证中
|
|
|
|
|
this.isVerified = false
|
|
|
|
|
this.isVerifying = true
|
|
|
|
|
} else {
|
|
|
|
|
// 未认证
|
|
|
|
|
this.isVerified = false
|
|
|
|
|
this.isVerifying = false
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
// 兼容旧版本,使用userInfo中的isVerified
|
|
|
|
|
this.isVerified = userInfo?.isVerified === 1
|
|
|
|
|
this.isVerifying = false
|
|
|
|
|
}
|
2025-04-04 13:00:55 +08:00
|
|
|
|
|
2025-04-05 10:01:09 +08:00
|
|
|
|
// 如果已登录且已认证或正在认证中,获取关注列表
|
|
|
|
|
if (this.isVerified || this.isVerifying) {
|
2025-04-04 13:00:55 +08:00
|
|
|
|
this.getFavoriteBeerList()
|
|
|
|
|
this.getFavoriteBreweryList()
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// 去登录
|
|
|
|
|
toLogin() {
|
|
|
|
|
this.$refs.loginRef.open()
|
|
|
|
|
},
|
|
|
|
|
// 去认证
|
|
|
|
|
toVerify() {
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: '/pages/index/registration'
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
// 登录成功
|
|
|
|
|
loginSuccess() {
|
2025-04-05 10:01:09 +08:00
|
|
|
|
// 重新检查登录状态
|
|
|
|
|
this.checkLoginStatus()
|
2025-04-04 13:00:55 +08:00
|
|
|
|
},
|
2025-04-07 21:12:12 +08:00
|
|
|
|
// 切换tab
|
2025-03-30 18:00:11 +08:00
|
|
|
|
tabSelect(e) {
|
2025-04-07 16:09:15 +08:00
|
|
|
|
this.tabCur = e.currentTarget.dataset.id
|
2025-04-07 21:12:12 +08:00
|
|
|
|
this.scrollLeft = (e.currentTarget.dataset.id - 1) * 60
|
2025-03-30 18:00:11 +08:00
|
|
|
|
},
|
|
|
|
|
// 获取收藏的酒款列表
|
|
|
|
|
getFavoriteBeerList() {
|
2025-04-07 16:09:15 +08:00
|
|
|
|
if(this.loading) return
|
|
|
|
|
this.loading = true
|
2025-04-04 13:00:55 +08:00
|
|
|
|
|
2025-03-30 18:00:11 +08:00
|
|
|
|
listMyFavoriteBeer(this.beerQuery).then(res => {
|
|
|
|
|
this.totalBeer = res.total
|
|
|
|
|
if (res.rows && res.rows.length > 0) {
|
|
|
|
|
res.rows.forEach(it => {
|
|
|
|
|
this.favoriteBeerList.push(it)
|
|
|
|
|
})
|
|
|
|
|
}
|
2025-04-07 16:09:15 +08:00
|
|
|
|
}).finally(() => {
|
|
|
|
|
this.loading = false
|
|
|
|
|
this.refreshing = false
|
2025-03-30 18:00:11 +08:00
|
|
|
|
})
|
|
|
|
|
},
|
2025-04-07 21:12:12 +08:00
|
|
|
|
// 获取收藏的品牌列表
|
2025-03-30 18:00:11 +08:00
|
|
|
|
getFavoriteBreweryList() {
|
|
|
|
|
listMyFavoriteBrewery(this.breweryQuery).then(res => {
|
2025-04-07 21:12:12 +08:00
|
|
|
|
this.favoriteBreweryList = res.rows || []
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
// 取消收藏酒款
|
|
|
|
|
cancelFavBeer(item) {
|
|
|
|
|
uni.showModal({
|
|
|
|
|
title: '提示',
|
|
|
|
|
content: '确定取消收藏该酒款吗?',
|
|
|
|
|
success: (res) => {
|
|
|
|
|
if (res.confirm) {
|
|
|
|
|
favorBeer({
|
|
|
|
|
beerId: item.beerId,
|
|
|
|
|
status: 2
|
|
|
|
|
}).then(() => {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: '取消成功',
|
|
|
|
|
icon: 'success'
|
|
|
|
|
})
|
|
|
|
|
// 重置数据
|
|
|
|
|
this.favoriteBeerList = []
|
|
|
|
|
this.beerQuery.pageNum = 1
|
|
|
|
|
this.getFavoriteBeerList()
|
|
|
|
|
})
|
|
|
|
|
}
|
2025-03-30 18:00:11 +08:00
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
2025-04-07 21:12:12 +08:00
|
|
|
|
// 取消收藏品牌
|
|
|
|
|
cancelFavBrewery(item) {
|
|
|
|
|
uni.showModal({
|
|
|
|
|
title: '提示',
|
|
|
|
|
content: '确定取消关注该品牌吗?',
|
|
|
|
|
success: (res) => {
|
|
|
|
|
if (res.confirm) {
|
|
|
|
|
favorBrewery({
|
|
|
|
|
breweryId: item.breweryId,
|
|
|
|
|
status: 2
|
|
|
|
|
}).then(() => {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: '取消成功',
|
|
|
|
|
icon: 'success'
|
|
|
|
|
})
|
|
|
|
|
// 重置数据
|
|
|
|
|
this.favoriteBreweryList = []
|
|
|
|
|
this.breweryQuery.pageNum = 1
|
|
|
|
|
this.getFavoriteBreweryList()
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
2025-03-30 18:00:11 +08:00
|
|
|
|
},
|
|
|
|
|
// 跳转到酒款详情
|
|
|
|
|
toBeer(item) {
|
|
|
|
|
uni.navigateTo({
|
2025-04-07 21:12:12 +08:00
|
|
|
|
url: `/pages/index/review?beerId=${item.beerId}`
|
2025-03-30 18:00:11 +08:00
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
// 跳转到品牌详情
|
|
|
|
|
toBrand(item) {
|
|
|
|
|
uni.navigateTo({
|
2025-04-07 23:58:45 +08:00
|
|
|
|
url: `/pages/index/brandHome?breweryId=${item.breweryId}`
|
2025-03-30 18:00:11 +08:00
|
|
|
|
})
|
|
|
|
|
},
|
2025-04-07 18:36:18 +08:00
|
|
|
|
// 处理图片加载错误
|
2025-04-07 21:12:12 +08:00
|
|
|
|
handleImageError() {
|
|
|
|
|
console.log('图片加载失败');
|
|
|
|
|
},
|
|
|
|
|
// 切换酒款页码
|
|
|
|
|
changeBeerPage() {
|
|
|
|
|
if (this.loading) return;
|
|
|
|
|
if (this.favoriteBeerList.length >= this.totalBeer) return;
|
|
|
|
|
this.beerQuery.pageNum++;
|
|
|
|
|
this.getFavoriteBeerList();
|
2025-04-07 16:09:15 +08:00
|
|
|
|
}
|
2025-03-30 18:00:11 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
.page-content {
|
2025-03-31 14:32:08 +08:00
|
|
|
|
background: #F9F9F9;
|
2025-03-30 18:00:11 +08:00
|
|
|
|
height: 100vh;
|
|
|
|
|
|
2025-04-04 13:00:55 +08:00
|
|
|
|
.nav {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
|
|
|
|
position: fixed;
|
|
|
|
|
top: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
right: 0;
|
|
|
|
|
z-index: 100;
|
|
|
|
|
padding: 0 32rpx;
|
|
|
|
|
background: #FFFFFF;
|
|
|
|
|
height: 88rpx;
|
|
|
|
|
box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.04);
|
|
|
|
|
|
|
|
|
|
.tab {
|
|
|
|
|
position: relative;
|
|
|
|
|
width: calc((100% - 56rpx) / 2); // 两等分宽度(减去间距)
|
|
|
|
|
margin: 0 14rpx; // 统一的间距
|
|
|
|
|
height: 100%;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
font-size: 32rpx;
|
|
|
|
|
color: #1A1A1A;
|
|
|
|
|
font-weight: normal;
|
|
|
|
|
transition: all 0.3s ease;
|
2025-03-30 18:00:11 +08:00
|
|
|
|
|
2025-04-04 13:00:55 +08:00
|
|
|
|
&.active {
|
|
|
|
|
color: #4E63E0;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
|
content: '';
|
|
|
|
|
position: absolute;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
left: 50%;
|
|
|
|
|
transform: translateX(-50%);
|
|
|
|
|
width: 48rpx;
|
|
|
|
|
height: 4rpx;
|
|
|
|
|
background: #4E63E0;
|
|
|
|
|
border-radius: 2rpx;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-03-30 18:00:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.my-container {
|
|
|
|
|
padding: 28rpx 36rpx;
|
2025-04-07 21:12:12 +08:00
|
|
|
|
margin-top: 88rpx;
|
2025-04-04 13:00:55 +08:00
|
|
|
|
height: calc(100vh - 88rpx);
|
2025-03-30 18:00:11 +08:00
|
|
|
|
|
2025-04-07 21:12:12 +08:00
|
|
|
|
.beer-list {
|
|
|
|
|
.beer-item {
|
|
|
|
|
margin-bottom: 24rpx;
|
|
|
|
|
|
|
|
|
|
.beerCard {
|
|
|
|
|
border-radius: 12rpx;
|
|
|
|
|
background: #FFFFFF;
|
|
|
|
|
padding: 24rpx;
|
|
|
|
|
box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.05);
|
|
|
|
|
transition: all 0.3s ease;
|
2025-03-30 18:00:11 +08:00
|
|
|
|
|
2025-04-07 21:12:12 +08:00
|
|
|
|
&:active {
|
|
|
|
|
transform: scale(0.98);
|
|
|
|
|
}
|
2025-03-30 18:00:11 +08:00
|
|
|
|
|
2025-04-07 21:12:12 +08:00
|
|
|
|
.beer-cover {
|
|
|
|
|
width: 144rpx;
|
|
|
|
|
height: 204rpx;
|
|
|
|
|
margin-right: 20rpx;
|
|
|
|
|
border-radius: 12rpx;
|
2025-03-30 18:00:11 +08:00
|
|
|
|
object-fit: cover;
|
|
|
|
|
}
|
|
|
|
|
|
2025-04-07 21:12:12 +08:00
|
|
|
|
.beer-info {
|
|
|
|
|
.beer-name {
|
|
|
|
|
font-size: 32rpx;
|
|
|
|
|
color: #1E2019;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
margin-bottom: 12rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.beer-style {
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
color: rgba(30, 32, 25, 0.8);
|
|
|
|
|
margin-bottom: 12rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.brand-info {
|
|
|
|
|
margin-bottom: 12rpx;
|
|
|
|
|
|
|
|
|
|
.brand-logo {
|
|
|
|
|
width: 30rpx;
|
|
|
|
|
height: 30rpx;
|
|
|
|
|
margin-right: 12rpx;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.brand-name {
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
color: #1E2019;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.rating-info {
|
|
|
|
|
.rating {
|
|
|
|
|
background: #F5F5F5;
|
|
|
|
|
padding: 8rpx 16rpx;
|
|
|
|
|
border-radius: 16rpx;
|
|
|
|
|
color: #5F5F63;
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
margin-right: 16rpx;
|
2025-03-30 18:00:11 +08:00
|
|
|
|
|
2025-04-07 21:12:12 +08:00
|
|
|
|
.cuIcon-favorfill {
|
|
|
|
|
color: #FFBC11;
|
|
|
|
|
font-size: 30rpx;
|
|
|
|
|
margin-right: 4rpx;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.review-count {
|
|
|
|
|
color: #5F5F63;
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-03-30 18:00:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
2025-04-07 21:12:12 +08:00
|
|
|
|
.action-box {
|
2025-03-30 18:00:11 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
2025-04-07 21:12:12 +08:00
|
|
|
|
.cancel-icon {
|
|
|
|
|
width: 40rpx;
|
|
|
|
|
height: 40rpx;
|
|
|
|
|
margin-right: 32rpx;
|
|
|
|
|
color: #030303;
|
|
|
|
|
filter: invert(0%) sepia(0%) saturate(0%) hue-rotate(324deg) brightness(0%) contrast(100%);
|
2025-03-30 18:00:11 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-04-07 21:12:12 +08:00
|
|
|
|
|
|
|
|
|
.empty-state {
|
|
|
|
|
height: 100%;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
padding: 60rpx;
|
|
|
|
|
|
|
|
|
|
.empty-image {
|
|
|
|
|
width: 240rpx;
|
|
|
|
|
height: 240rpx;
|
|
|
|
|
margin-bottom: 20rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.empty-text {
|
|
|
|
|
color: #747783;
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-03-30 18:00:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.my-brandSide {
|
|
|
|
|
padding: 28rpx 36rpx;
|
2025-04-07 21:12:12 +08:00
|
|
|
|
margin-top: 88rpx;
|
2025-04-07 18:36:18 +08:00
|
|
|
|
height: calc(100vh - 88rpx);
|
2025-04-07 21:12:12 +08:00
|
|
|
|
background: #F9F9F9;
|
2025-03-30 18:00:11 +08:00
|
|
|
|
|
|
|
|
|
.brandSide-box {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
2025-04-07 21:12:12 +08:00
|
|
|
|
padding: 32rpx 24rpx;
|
|
|
|
|
margin-bottom: 24rpx;
|
|
|
|
|
background: #FFFFFF;
|
|
|
|
|
border-radius: 12rpx;
|
|
|
|
|
box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.05);
|
|
|
|
|
|
|
|
|
|
.logo {
|
|
|
|
|
width: 108rpx;
|
|
|
|
|
height: 108rpx;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
margin-right: 28rpx;
|
|
|
|
|
background-color: #f5f5f5;
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
}
|
2025-04-07 18:36:18 +08:00
|
|
|
|
|
2025-04-07 21:12:12 +08:00
|
|
|
|
.info {
|
2025-04-07 18:36:18 +08:00
|
|
|
|
flex: 1;
|
2025-04-07 21:12:12 +08:00
|
|
|
|
min-width: 0;
|
2025-04-07 18:36:18 +08:00
|
|
|
|
|
2025-04-07 21:12:12 +08:00
|
|
|
|
.title {
|
|
|
|
|
font-size: 32rpx;
|
|
|
|
|
color: #19191B;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
margin-bottom: 12rpx;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
white-space: nowrap;
|
2025-04-07 18:36:18 +08:00
|
|
|
|
}
|
|
|
|
|
|
2025-04-07 21:12:12 +08:00
|
|
|
|
.desc {
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
color: #9C9BA6;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.action-box {
|
|
|
|
|
.cancel-icon {
|
|
|
|
|
width: 40rpx;
|
|
|
|
|
height: 40rpx;
|
|
|
|
|
margin-right: 32rpx;
|
|
|
|
|
color: #030303;
|
|
|
|
|
filter: invert(0%) sepia(0%) saturate(0%) hue-rotate(324deg) brightness(0%) contrast(100%);
|
2025-04-07 18:36:18 +08:00
|
|
|
|
}
|
2025-03-30 18:00:11 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2025-04-07 21:12:12 +08:00
|
|
|
|
|
|
|
|
|
.empty-state {
|
|
|
|
|
height: 100%;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
padding: 60rpx;
|
|
|
|
|
|
|
|
|
|
.empty-text {
|
|
|
|
|
color: #747783;
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-03-30 18:00:11 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|