style: 调整认证到期日期样式 1. 设置左对齐 2. 添加上方16rpx间距

This commit is contained in:
davy 2025-04-07 23:58:45 +08:00
parent 66b36b0207
commit f5132c277a
3 changed files with 251 additions and 37 deletions

View File

@ -9,48 +9,49 @@
</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 style="padding:0 24rpx">
<view class="flex align-start justify-between margin-bottom-xl">
<view class="flex align-center">
<image :src="breweryInfo.brandLogo" style="width: 72rpx;height: 72rpx;margin-right: 36rpx;">
</image>
<image :src="breweryInfo.brandLogo" class="brand-logo" mode="aspectFill"></image>
<view class="flex flex-col">
<text class="margin-bottom-xs"
style="color: #0B0E26;font-size: 32rpx;">{{ breweryInfo.brandName}}</text>
<text class=""
style="color: #5E5F60;font-size: 24rpx;">{{breweryInfo.country}}·{{breweryInfo.province}}·{{breweryInfo.city}}</text>
<text class="brand-name">{{ breweryInfo.brandName}}</text>
<text class="brand-location">{{breweryInfo.country}}·{{breweryInfo.province}}·{{breweryInfo.city}}</text>
</view>
</view>
<view class="flex align-center">
<text v-if="!isFavor" class="cuIcon-like"
style="font-size: 50rpx;color: #0B0E26;margin-right: 30rpx;"
@click="favorBreweryFun(1)"></text>
<text v-else class="cuIcon-likefill" style="font-size: 50rpx;color: pink;margin-right: 30rpx;"
@click="favorBreweryFun(2)"></text>
<image src="/static/send.png" style="width: 50rpx;height: 50rpx;" @click="share"></image>
<view class="action-buttons">
<view class="favor-btn" @click="favorBreweryFun(1)" v-if="!isFavor">
<image src="/static/heart-add.png" class="favor-icon" mode="aspectFit"></image>
</view>
<view class="favor-btn" @click="favorBreweryFun(2)" v-else>
<image src="/static/heart-tick.png" class="favor-icon" mode="aspectFit"></image>
</view>
<view class="flex justify-between align-center">
<view style="width: 226rpx;text-align: center;">
<view class="margin-bottom-xs" style="font-size: 36rpx;">{{ beerTotal}}</view>
<view style="font-size: 24rpx;">在售酒款</view>
</view>
<view class="solid-left solid-right" style="width: 226rpx;text-align: center;">
<view class="margin-bottom-xs" style="font-size: 36rpx;">
{{ breweryInfo.buildingDate && breweryInfo.buildingDate.substr(0,4)}}
</view>
<view style="font-size: 24rpx;">since</view>
</view>
<view style="width: 226rpx;text-align: center;">
<view class="margin-bottom-xs" style="font-size: 36rpx;">{{myCoin || '--'}}</view>
<view style="font-size: 24rpx;">啤酒币</view>
<view class="share-btn" @click="share">
<image src="/static/send.png" class="share-icon" mode="aspectFit"></image>
</view>
</view>
</view>
<view style="color: #A1A1A1;font-size: 24rpx;margin-top:28rpx;text-indent: 2em;">
<view class="brand-stats">
<view class="stat-item">
<text class="stat-value">{{ beerTotal}}</text>
<text class="stat-label">在售酒款</text>
</view>
<view class="stat-item">
<text class="stat-value">{{ breweryInfo.buildingDate && breweryInfo.buildingDate.substr(0,4)}}</text>
<text class="stat-label">since</text>
</view>
<view class="stat-item">
<text class="stat-value">{{myCoin || '--'}}</text>
<text class="stat-label">啤酒币</text>
</view>
</view>
</view>
<view class="brand-desc">
{{breweryInfo.desc}}
</view>
</view>
@ -504,6 +505,7 @@
right: 0;
z-index: 999;
background: transparent;
// color: #f9f9f9
.nav-content {
height: 44px;
@ -528,23 +530,142 @@
}
}
.banner {
.banner-container {
position: relative;
width: 100%;
height: 724rpx;
height: 0;
padding-bottom: 75%; /* 4:3 比例 (3/4 = 0.75 = 75%) */
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 {
position: relative;
width: 100%;
height: 100%;
padding: 20rpx 32rpx;
box-sizing: border-box;
padding: 40rpx 32rpx;
background-color: #fff;
border-radius: 30rpx;
border-radius: 30rpx 0 0 0;
margin-top: -150rpx;
margin-bottom: 20rpx;
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 {

View File

@ -342,7 +342,7 @@
//
toBrand(item) {
uni.navigateTo({
url: `/pages/index/brand?breweryId=${item.breweryId}`
url: `/pages/index/brandHome?breweryId=${item.breweryId}`
})
},
//

View File

@ -46,10 +46,11 @@
<!-- 门店资料部分 -->
<view v-if="currentTab === 1" class="section">
<view class="info-list">
<view class="info-item">
<view class="info-item" @click="showStoreEditTip">
<text>所在地区</text>
<view class="right-content">
<text class="info-text">{{form.city || '--'}}</text>
<text class="cuIcon-right"></text>
</view>
</view>
<view class="info-item" @click="toAddress">
@ -59,10 +60,11 @@
<text class="cuIcon-right"></text>
</view>
</view>
<view class="info-item">
<view class="info-item" @click="showStoreEditTip">
<text>门店名称</text>
<view class="right-content">
<text class="info-text">{{form.barName}}</text>
<text class="cuIcon-right"></text>
</view>
</view>
<view class="info-item">
@ -163,6 +165,18 @@
<view class="close-btn" @click="closePreview">关闭</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>
</template>
@ -257,6 +271,8 @@
.text-gray {
color: #999999;
font-size: 28rpx;
text-align: left;
margin-top: 8rpx;
}
.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>
@ -683,6 +760,7 @@
showVerifyCode: false,
counting: false,
countdown: 60,
showStoreEditModal: false,
};
},
computed: {
@ -1083,6 +1161,21 @@
uni.hideLoading();
});
},
//
showStoreEditTip() {
this.showStoreEditModal = true;
},
//
closeStoreEditModal() {
this.showStoreEditModal = false;
},
//
toContactService() {
uni.navigateTo({
url: '/pagesMy/addAiad'
});
this.closeStoreEditModal();
},
}
}
</script>