feat(brand): 在品牌区域添加二维码展示功能
- 在 DrinkCard 组件中添加二维码图片显示 - 更新品牌区域样式以支持二维码展示 - 在卡片页面预加载二维码图片资源 - 实现画布中二维码的绘制功能,包括白色圆角背景 - 优化二维码路径规范化处理以确保正确加载 - 更新空状态操作逻辑,区分游客和已登录用户的按钮行为
This commit is contained in:
@@ -92,7 +92,9 @@
|
||||
<text class="brand-name">碰盏日记</text>
|
||||
<text class="brand-slogan">记录每一杯的故事</text>
|
||||
</view>
|
||||
<view class="brand-qr"></view>
|
||||
<view class="brand-qr">
|
||||
<image class="brand-qr-img" src="/static/qrcode.jpg" mode="aspectFill"></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -458,7 +460,13 @@ export default {
|
||||
width: 80rpx;
|
||||
height: 80rpx;
|
||||
border-radius: 12rpx;
|
||||
border: 1.5rpx solid rgba(232, 168, 56, 0.2);
|
||||
background: rgba(232, 168, 56, 0.04);
|
||||
background: #FFFFFF;
|
||||
overflow: hidden;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.brand-qr-img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: block;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user