feat:店铺折扣

This commit is contained in:
dzc committed 2026-09-30 15:07:51 +08:00
1 parent db77d2eeed
commit 569884e804
3 files changed
+26 -6

No files matched your search

+22 -1
View File
@@ -193,7 +193,12 @@ const toBranchDetail = async (b: any) => {
<tm-icon name="store-2-line" color="#9BBDF6" :size="28" />
</view>
<view class="flex-1 min-w-0 m-l-14rpx">
<text class="sub-text-26 show-line">{{ b.name }}</text>
<view class="flex items-center">
<text class="sub-text-26 show-line flex-1 min-w-0">{{ b.name }}</text>
<view v-if="b.discountsPrice" class="promo-pill m-l-8rpx flex-none">
{{ b.discountsPrice }}
</view>
</view>
<view v-if="b.addressDes || b.phone" class="m-t-2rpx">
<text class="second-text-22 show-line">{{ b.addressDes || b.phone }}</text>
</view>
@@ -236,6 +241,22 @@ const toBranchDetail = async (b: any) => {
line-height: 1.4;
}
/* 分店行内的优惠价格胶囊:几何对齐 brand-pill,配色对齐 promo-bar;
discountsPrice 是运营自由文案,限宽单行截断避免撑破紧凑行 */
.promo-pill {
max-width: 320rpx;
padding: 4rpx 14rpx;
border-radius: 999rpx;
background: #fff1f0;
color: #f63a36;
font-size: 20rpx;
font-weight: 500;
line-height: 1.5;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.branch-toggle {
display: flex;
align-items: center;
-1
View File
@@ -2,7 +2,6 @@
<crud-layout mainIsScroll bg="/static/page/blue-bg.png">
<template #main-top>
<view class="flex items-center py-3 px-5">
asdfasdf
<view class="flex items-center" v-if="state.userInfo?.sysUser?.userId" @tap="doUserArea">
<image v-if="state.userInfo?.sysUser?.avatar" class="size-100rpx rounded-full"
:src="filePath(state.userInfo.sysUser.avatar)" mode="aspectFill" />