style: 调整认证到期日期样式 1. 设置左对齐 2. 添加上方16rpx间距
This commit is contained in:
parent
66b36b0207
commit
f5132c277a
@ -9,48 +9,49 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<image class="banner" :src="breweryInfo.brandCover"></image>
|
<!-- 品牌广告图片 -->
|
||||||
|
<view class="banner-container">
|
||||||
|
<image class="banner" :src="breweryInfo.brandCover" mode="aspectFill"></image>
|
||||||
|
<view class="banner-overlay"></view>
|
||||||
|
</view>
|
||||||
<view class="brand-header">
|
<view class="brand-header">
|
||||||
<view style="padding:0 24rpx">
|
<view style="padding:0 24rpx">
|
||||||
<view class="flex align-start justify-between margin-bottom-xl">
|
<view class="flex align-start justify-between margin-bottom-xl">
|
||||||
<view class="flex align-center">
|
<view class="flex align-center">
|
||||||
<image :src="breweryInfo.brandLogo" style="width: 72rpx;height: 72rpx;margin-right: 36rpx;">
|
<image :src="breweryInfo.brandLogo" class="brand-logo" mode="aspectFill"></image>
|
||||||
</image>
|
|
||||||
<view class="flex flex-col">
|
<view class="flex flex-col">
|
||||||
<text class="margin-bottom-xs"
|
<text class="brand-name">{{ breweryInfo.brandName}}</text>
|
||||||
style="color: #0B0E26;font-size: 32rpx;">{{ breweryInfo.brandName}}</text>
|
<text class="brand-location">{{breweryInfo.country}}·{{breweryInfo.province}}·{{breweryInfo.city}}</text>
|
||||||
<text class=""
|
|
||||||
style="color: #5E5F60;font-size: 24rpx;">{{breweryInfo.country}}·{{breweryInfo.province}}·{{breweryInfo.city}}</text>
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="flex align-center">
|
<view class="action-buttons">
|
||||||
<text v-if="!isFavor" class="cuIcon-like"
|
<view class="favor-btn" @click="favorBreweryFun(1)" v-if="!isFavor">
|
||||||
style="font-size: 50rpx;color: #0B0E26;margin-right: 30rpx;"
|
<image src="/static/heart-add.png" class="favor-icon" mode="aspectFit"></image>
|
||||||
@click="favorBreweryFun(1)"></text>
|
</view>
|
||||||
<text v-else class="cuIcon-likefill" style="font-size: 50rpx;color: pink;margin-right: 30rpx;"
|
<view class="favor-btn" @click="favorBreweryFun(2)" v-else>
|
||||||
@click="favorBreweryFun(2)"></text>
|
<image src="/static/heart-tick.png" class="favor-icon" mode="aspectFit"></image>
|
||||||
<image src="/static/send.png" style="width: 50rpx;height: 50rpx;" @click="share"></image>
|
</view>
|
||||||
|
<view class="share-btn" @click="share">
|
||||||
|
<image src="/static/send.png" class="share-icon" mode="aspectFit"></image>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<view class="flex justify-between align-center">
|
<view class="brand-stats">
|
||||||
<view style="width: 226rpx;text-align: center;">
|
<view class="stat-item">
|
||||||
<view class="margin-bottom-xs" style="font-size: 36rpx;">{{ beerTotal}}</view>
|
<text class="stat-value">{{ beerTotal}}</text>
|
||||||
<view style="font-size: 24rpx;">在售酒款</view>
|
<text class="stat-label">在售酒款</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="solid-left solid-right" style="width: 226rpx;text-align: center;">
|
<view class="stat-item">
|
||||||
<view class="margin-bottom-xs" style="font-size: 36rpx;">
|
<text class="stat-value">{{ breweryInfo.buildingDate && breweryInfo.buildingDate.substr(0,4)}}</text>
|
||||||
{{ breweryInfo.buildingDate && breweryInfo.buildingDate.substr(0,4)}}
|
<text class="stat-label">since</text>
|
||||||
</view>
|
|
||||||
<view style="font-size: 24rpx;">since</view>
|
|
||||||
</view>
|
</view>
|
||||||
<view style="width: 226rpx;text-align: center;">
|
<view class="stat-item">
|
||||||
<view class="margin-bottom-xs" style="font-size: 36rpx;">{{myCoin || '--'}}</view>
|
<text class="stat-value">{{myCoin || '--'}}</text>
|
||||||
<view style="font-size: 24rpx;">啤酒币</view>
|
<text class="stat-label">啤酒币</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view style="color: #A1A1A1;font-size: 24rpx;margin-top:28rpx;text-indent: 2em;">
|
<view class="brand-desc">
|
||||||
{{breweryInfo.desc}}
|
{{breweryInfo.desc}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -504,6 +505,7 @@
|
|||||||
right: 0;
|
right: 0;
|
||||||
z-index: 999;
|
z-index: 999;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
|
// color: #f9f9f9
|
||||||
|
|
||||||
.nav-content {
|
.nav-content {
|
||||||
height: 44px;
|
height: 44px;
|
||||||
@ -528,23 +530,142 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.banner {
|
.banner-container {
|
||||||
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 724rpx;
|
height: 0;
|
||||||
|
padding-bottom: 75%; /* 4:3 比例 (3/4 = 0.75 = 75%) */
|
||||||
margin-top: v-bind('statusBarHeight + 44 + "px"');
|
margin-top: v-bind('statusBarHeight + 44 + "px"');
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
|
.banner {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
object-fit: cover;
|
||||||
|
}
|
||||||
|
|
||||||
|
.banner-overlay {
|
||||||
|
position: absolute;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
height: 200rpx;
|
||||||
|
background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.brand-header {
|
.brand-header {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
padding: 40rpx 32rpx;
|
||||||
padding: 20rpx 32rpx;
|
|
||||||
box-sizing: border-box;
|
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
border-radius: 30rpx;
|
border-radius: 30rpx 0 0 0;
|
||||||
margin-top: -150rpx;
|
margin-top: -150rpx;
|
||||||
margin-bottom: 20rpx;
|
margin-bottom: 20rpx;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
|
box-shadow: 0 -10rpx 30rpx rgba(0, 0, 0, 0.05);
|
||||||
|
|
||||||
|
.brand-logo {
|
||||||
|
width: 88rpx;
|
||||||
|
height: 88rpx;
|
||||||
|
margin-right: 24rpx;
|
||||||
|
border-radius: 50%;
|
||||||
|
object-fit: cover;
|
||||||
|
box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.brand-name {
|
||||||
|
color: #0B0E26;
|
||||||
|
font-size: 36rpx;
|
||||||
|
font-weight: 600;
|
||||||
|
margin-bottom: 12rpx;
|
||||||
|
line-height: 1.4;
|
||||||
|
}
|
||||||
|
|
||||||
|
.brand-location {
|
||||||
|
color: #5E5F60;
|
||||||
|
font-size: 24rpx;
|
||||||
|
line-height: 1.4;
|
||||||
|
}
|
||||||
|
|
||||||
|
.action-buttons {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 16rpx;
|
||||||
|
|
||||||
|
.favor-btn, .share-btn {
|
||||||
|
width: 72rpx;
|
||||||
|
height: 72rpx;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
background: #F5F5F5;
|
||||||
|
border-radius: 50%;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
transform: scale(0.95);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.favor-icon, .share-icon {
|
||||||
|
width: 36rpx;
|
||||||
|
height: 36rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.brand-stats {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
margin: 40rpx 0;
|
||||||
|
padding: 32rpx 0;
|
||||||
|
border-top: 1px solid rgba(0, 0, 0, 0.05);
|
||||||
|
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
|
||||||
|
|
||||||
|
.stat-item {
|
||||||
|
flex: 1;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
&:not(:last-child):after {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
top: 50%;
|
||||||
|
transform: translateY(-50%);
|
||||||
|
width: 1px;
|
||||||
|
height: 40rpx;
|
||||||
|
background: rgba(0, 0, 0, 0.05);
|
||||||
|
}
|
||||||
|
|
||||||
|
.stat-value {
|
||||||
|
font-size: 40rpx;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #0B0E26;
|
||||||
|
margin-bottom: 12rpx;
|
||||||
|
line-height: 1.2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stat-label {
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #9C9BA6;
|
||||||
|
line-height: 1.4;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.brand-desc {
|
||||||
|
color: #666666;
|
||||||
|
font-size: 26rpx;
|
||||||
|
line-height: 1.8;
|
||||||
|
text-indent: 2em;
|
||||||
|
margin: 0 8rpx;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.content-box {
|
.content-box {
|
||||||
|
@ -342,7 +342,7 @@
|
|||||||
// 跳转到品牌详情
|
// 跳转到品牌详情
|
||||||
toBrand(item) {
|
toBrand(item) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages/index/brand?breweryId=${item.breweryId}`
|
url: `/pages/index/brandHome?breweryId=${item.breweryId}`
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 处理图片加载错误
|
// 处理图片加载错误
|
||||||
|
@ -46,10 +46,11 @@
|
|||||||
<!-- 门店资料部分 -->
|
<!-- 门店资料部分 -->
|
||||||
<view v-if="currentTab === 1" class="section">
|
<view v-if="currentTab === 1" class="section">
|
||||||
<view class="info-list">
|
<view class="info-list">
|
||||||
<view class="info-item">
|
<view class="info-item" @click="showStoreEditTip">
|
||||||
<text>所在地区</text>
|
<text>所在地区</text>
|
||||||
<view class="right-content">
|
<view class="right-content">
|
||||||
<text class="info-text">{{form.city || '--'}}</text>
|
<text class="info-text">{{form.city || '--'}}</text>
|
||||||
|
<text class="cuIcon-right"></text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="info-item" @click="toAddress">
|
<view class="info-item" @click="toAddress">
|
||||||
@ -59,10 +60,11 @@
|
|||||||
<text class="cuIcon-right"></text>
|
<text class="cuIcon-right"></text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="info-item">
|
<view class="info-item" @click="showStoreEditTip">
|
||||||
<text>门店名称</text>
|
<text>门店名称</text>
|
||||||
<view class="right-content">
|
<view class="right-content">
|
||||||
<text class="info-text">{{form.barName}}</text>
|
<text class="info-text">{{form.barName}}</text>
|
||||||
|
<text class="cuIcon-right"></text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="info-item">
|
<view class="info-item">
|
||||||
@ -163,6 +165,18 @@
|
|||||||
<view class="close-btn" @click="closePreview">关闭</view>
|
<view class="close-btn" @click="closePreview">关闭</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
<!-- 门店信息修改提示弹窗 -->
|
||||||
|
<view class="store-edit-modal" v-if="showStoreEditModal" @click.stop>
|
||||||
|
<view class="modal-content">
|
||||||
|
<view class="modal-title">温馨提示</view>
|
||||||
|
<view class="modal-desc">门店信息修改需联系客服</view>
|
||||||
|
<view class="modal-buttons">
|
||||||
|
<view class="btn cancel-btn" @click="closeStoreEditModal">关闭</view>
|
||||||
|
<view class="btn confirm-btn" @click="toContactService">联系客服</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -257,6 +271,8 @@
|
|||||||
.text-gray {
|
.text-gray {
|
||||||
color: #999999;
|
color: #999999;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
|
text-align: left;
|
||||||
|
margin-top: 8rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.text-blue {
|
.text-blue {
|
||||||
@ -637,6 +653,67 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.store-edit-modal {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
background: rgba(0, 0, 0, 0.6);
|
||||||
|
z-index: 999;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
|
||||||
|
.modal-content {
|
||||||
|
width: 600rpx;
|
||||||
|
background: #FFFFFF;
|
||||||
|
border-radius: 24rpx;
|
||||||
|
padding: 48rpx 32rpx;
|
||||||
|
|
||||||
|
.modal-title {
|
||||||
|
font-size: 36rpx;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #333333;
|
||||||
|
text-align: center;
|
||||||
|
margin-bottom: 24rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-desc {
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #666666;
|
||||||
|
text-align: center;
|
||||||
|
margin-bottom: 48rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-buttons {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
gap: 24rpx;
|
||||||
|
|
||||||
|
.btn {
|
||||||
|
flex: 1;
|
||||||
|
height: 88rpx;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
font-size: 32rpx;
|
||||||
|
border-radius: 44rpx;
|
||||||
|
|
||||||
|
&.cancel-btn {
|
||||||
|
background: #F5F5F5;
|
||||||
|
color: #666666;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.confirm-btn {
|
||||||
|
background: #19367A;
|
||||||
|
color: #FFFFFF;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
@ -683,6 +760,7 @@
|
|||||||
showVerifyCode: false,
|
showVerifyCode: false,
|
||||||
counting: false,
|
counting: false,
|
||||||
countdown: 60,
|
countdown: 60,
|
||||||
|
showStoreEditModal: false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@ -1083,6 +1161,21 @@
|
|||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
// 显示门店信息修改提示弹窗
|
||||||
|
showStoreEditTip() {
|
||||||
|
this.showStoreEditModal = true;
|
||||||
|
},
|
||||||
|
// 关闭门店信息修改提示弹窗
|
||||||
|
closeStoreEditModal() {
|
||||||
|
this.showStoreEditModal = false;
|
||||||
|
},
|
||||||
|
// 联系客服
|
||||||
|
toContactService() {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pagesMy/addAiad'
|
||||||
|
});
|
||||||
|
this.closeStoreEditModal();
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user