Merge branch 'feat/appointment-goods'

This commit is contained in:
pikachu1995@126.com
2026-10-21 15:16:48 +08:00
11 changed files with 235 additions and 88 deletions

View File

@@ -9,7 +9,7 @@ $home-layout-padding: 16rpx;
.layout { .layout {
padding: $home-layout-padding; padding: $home-layout-padding;
margin: 8rpx 0; margin: 0;
background: #fff; background: #fff;
} }
.layout, .layout,

View File

@@ -50,7 +50,7 @@ const wrapperStyle = computed(() => {
return { return {
background: res.bgColor || "#FFFFFF", background: res.bgColor || "#FFFFFF",
padding: `20rpx ${res.paddingX ?? 0}rpx`, padding: `20rpx ${res.paddingX ?? 0}rpx`,
marginBottom: `${res.pageGap ?? 10}rpx`, marginBottom: `${res.pageGap ?? 0}rpx`,
borderRadius: `${res.borderRadius ?? 0}rpx`, borderRadius: `${res.borderRadius ?? 0}rpx`,
overflow: "hidden", overflow: "hidden",
}; };

View File

@@ -18,7 +18,7 @@ const blankStyle = computed(() => {
return { return {
background: bg, background: bg,
height: `${res.height ?? 10}rpx`, height: `${res.height ?? 10}rpx`,
margin: `0 ${res.paddingX ?? 0}rpx ${res.pageGap ?? 10}rpx`, margin: `0 ${res.paddingX ?? 0}rpx ${res.pageGap ?? 0}rpx`,
}; };
}); });
</script> </script>

View File

@@ -205,7 +205,7 @@ const wrapperStyle = computed(() => {
return { return {
background: res.bgColor || "#FFFFFF", background: res.bgColor || "#FFFFFF",
padding: `20rpx ${res.paddingX ?? 0}rpx`, padding: `20rpx ${res.paddingX ?? 0}rpx`,
marginBottom: `${res.pageGap ?? 10}rpx`, marginBottom: `${res.pageGap ?? 0}rpx`,
borderRadius: `${res.borderRadius ?? 0}rpx`, borderRadius: `${res.borderRadius ?? 0}rpx`,
overflow: "hidden", overflow: "hidden",
}; };

View File

@@ -9,7 +9,7 @@
/> />
<view v-else class="integral-head-title" :style="headTitleStyle">{{ title }}</view> <view v-else class="integral-head-title" :style="headTitleStyle">{{ title }}</view>
<view class="integral-head-space"></view> <view class="integral-head-space"></view>
<view class="integral-head-more" :style="moreStyle">更多 &gt;</view> <view class="integral-head-more" :style="moreStyle">{{ "更多 >" }}</view>
</view> </view>
<!-- 老数据:原始四列样式 --> <!-- 老数据:原始四列样式 -->
<view v-if="!styled" class="join-box"> <view v-if="!styled" class="join-box">
@@ -125,7 +125,7 @@ const wrapperStyle = computed(() => {
return { return {
background: res.bgColor || "#FFFFFF", background: res.bgColor || "#FFFFFF",
padding: `0 ${res.paddingX ?? 0}rpx`, padding: `0 ${res.paddingX ?? 0}rpx`,
marginBottom: `${res.pageGap ?? 10}rpx`, marginBottom: `${res.pageGap ?? 0}rpx`,
borderRadius: `${res.borderRadius ?? 0}rpx`, borderRadius: `${res.borderRadius ?? 0}rpx`,
overflow: "hidden", overflow: "hidden",
}; };

View File

@@ -20,7 +20,7 @@ const wrapperStyle = computed(() => {
return { return {
background: bg, background: bg,
padding: `0 ${res.paddingX ?? 0}rpx`, padding: `0 ${res.paddingX ?? 0}rpx`,
marginBottom: `${res.pageGap ?? 10}rpx`, marginBottom: `${res.pageGap ?? 0}rpx`,
}; };
}); });

View File

@@ -12,7 +12,7 @@
:direction="directionValue" :direction="directionValue"
:bg-color="styled ? 'transparent' : item.bk_color" :bg-color="styled ? 'transparent' : item.bk_color"
:color="item.color" :color="item.color"
:text="texts" :text="noticeText"
@click="clickNotice" @click="clickNotice"
></u-notice-bar> ></u-notice-bar>
</view> </view>
@@ -67,8 +67,19 @@ const texts = computed(() =>
titleList.value.map((t: any) => String(t.context)) titleList.value.map((t: any) => String(t.context))
); );
function clickNotice(index: number) { // uView-plus 的 notice-bar 在横向滚动(direction="row")时要求 text 为字符串,竖向(column)可为数组
const target = titleList.value[index]; const noticeText = computed(() => {
if (directionValue.value === "row") {
return texts.value.join(" ");
}
return texts.value;
});
function clickNotice(index?: number) {
const target =
typeof index === "number"
? titleList.value[index] || titleList.value[0]
: titleList.value[0];
if (target && target.url) { if (target && target.url) {
modelNavigateTo(target); modelNavigateTo(target);
} }

View File

@@ -1,5 +1,5 @@
<template> <template>
<div class="layout" :style="wrapperStyle"> <view v-if="hasData" class="layout" :style="wrapperStyle">
<!-- 拼团:红橙渐变头部 + 左图右文商品行(参考 CRMEB) --> <!-- 拼团:红橙渐变头部 + 左图右文商品行(参考 CRMEB) -->
<view v-if="isPintuan" class="pt-card"> <view v-if="isPintuan" class="pt-card">
<view class="pt-head" :style="ptHeadStyle"> <view class="pt-head" :style="ptHeadStyle">
@@ -20,7 +20,7 @@
<text class="pt-success">{{ firstItem.groupSuccess }}</text> <text class="pt-success">{{ firstItem.groupSuccess }}</text>
</template> </template>
<view class="pt-space"></view> <view class="pt-space"></view>
<view class="pt-more" @click="goToDetail('PINTUAN')">更多 &gt;</view> <view class="pt-more" @click="goToDetail('PINTUAN')">{{ "更多 >" }}</view>
</view> </view>
<view class="pt-body"> <view class="pt-body">
<!-- 样式一:纵向商品行 --> <!-- 样式一:纵向商品行 -->
@@ -226,7 +226,7 @@
<text v-else class="lv-head-title">{{ firstItem.title || "精彩直播" }}</text> <text v-else class="lv-head-title">{{ firstItem.title || "精彩直播" }}</text>
<text class="lv-head-sub" :style="titleStyle">{{ firstItem.title1 || "精彩抢先看" }}</text> <text class="lv-head-sub" :style="titleStyle">{{ firstItem.title1 || "精彩抢先看" }}</text>
<view class="lv-space"></view> <view class="lv-space"></view>
<text class="lv-more" :style="moreStyle" @click="goToDetail('LIVE')">更多 &gt;</text> <text class="lv-more" :style="moreStyle" @click="goToDetail('LIVE')">{{ "更多 >" }}</text>
</view> </view>
<view class="lv-head-en">Exciting live streaming</view> <view class="lv-head-en">Exciting live streaming</view>
<!-- 单行:横向滑动卡片 --> <!-- 单行:横向滑动卡片 -->
@@ -299,7 +299,7 @@
<text class="sk-divider"></text> <text class="sk-divider"></text>
<text class="sk-head-sub" :style="titleStyle">{{ firstItem.title1 || "邀请你的好友来参与" }}</text> <text class="sk-head-sub" :style="titleStyle">{{ firstItem.title1 || "邀请你的好友来参与" }}</text>
<view class="sk-space"></view> <view class="sk-space"></view>
<text class="sk-go" @click="goToDetail('SECKILL')">GO &gt;</text> <text class="sk-go" @click="goToDetail('SECKILL')">{{ "GO >" }}</text>
</view> </view>
<!-- 样式一:横向滑动 --> <!-- 样式一:横向滑动 -->
<scroll-view <scroll-view
@@ -374,7 +374,7 @@
<text class="sk-divider"></text> <text class="sk-divider"></text>
<text class="sk-head-sub" :style="titleStyle">{{ firstItem.title1 || "邀请好友来砍价" }}</text> <text class="sk-head-sub" :style="titleStyle">{{ firstItem.title1 || "邀请好友来砍价" }}</text>
<view class="sk-space"></view> <view class="sk-space"></view>
<text class="sk-go" @click="goToDetail('KANJIA')">GO &gt;</text> <text class="sk-go" @click="goToDetail('KANJIA')">{{ "GO >" }}</text>
</view> </view>
<!-- 样式一:横向滑动 --> <!-- 样式一:横向滑动 -->
<scroll-view <scroll-view
@@ -440,7 +440,7 @@
<view v-if="styled && (options.icon || options.moreUrl)" class="promo-head"> <view v-if="styled && (options.icon || options.moreUrl)" class="promo-head">
<image v-if="options.icon" class="promo-head-icon" :src="options.icon" mode="aspectFit" /> <image v-if="options.icon" class="promo-head-icon" :src="options.icon" mode="aspectFit" />
<view class="promo-head-space"></view> <view class="promo-head-space"></view>
<view v-if="options.moreUrl" class="promo-more" :style="moreStyle" @click="goMore">更多 &gt;</view> <view v-if="options.moreUrl" class="promo-more" :style="moreStyle" @click="goMore">{{ "更多 >" }}</view>
</view> </view>
<div class="join-list" :style="gapStyle"> <div class="join-list" :style="gapStyle">
<div <div
@@ -506,7 +506,7 @@
</div> </div>
</div> </div>
</template> </template>
</div> </view>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { ref, onMounted, onUnmounted, computed } from "vue"; import { ref, onMounted, onUnmounted, computed } from "vue";
@@ -533,8 +533,15 @@ const isPintuan = computed(() => firstItem.value.type === "PINTUAN");
const isLive = computed(() => firstItem.value.type === "LIVE"); const isLive = computed(() => firstItem.value.type === "LIVE");
const isSeckill = computed(() => firstItem.value.type === "SECKILL"); const isSeckill = computed(() => firstItem.value.type === "SECKILL");
const isKanjia = computed(() => firstItem.value.type === "KANJIA"); const isKanjia = computed(() => firstItem.value.type === "KANJIA");
function isRealGoods(item: any) {
if (!item) return false;
const img = item.thumbnail || item.goodsImage || "";
if (!img || img.startsWith("/demo/") || img.startsWith("demo/")) return false;
return true;
}
const seckillData = computed(() => { const seckillData = computed(() => {
const data = (firstItem.value && firstItem.value.data) || []; const data = ((firstItem.value && firstItem.value.data) || []).filter(isRealGoods);
return layoutStyle.value === "2" ? data.slice(0, 4) : data.slice(0, 6); return layoutStyle.value === "2" ? data.slice(0, 4) : data.slice(0, 6);
}); });
// 老数据未保存过样式时,给个红→白渐变兜底背景 // 老数据未保存过样式时,给个红→白渐变兜底背景
@@ -578,12 +585,31 @@ const liveData = computed(() => {
}); });
}); });
const displayData = computed(() => { const displayData = computed(() => {
const data = (firstItem.value && firstItem.value.data) || []; const data = ((firstItem.value && firstItem.value.data) || []).filter(isRealGoods);
if (layoutStyle.value === "3" || layoutStyle.value === "4") { if (layoutStyle.value === "3" || layoutStyle.value === "4") {
return data.slice(0, 6); return data.slice(0, 6);
} }
return data.slice(0, 2); return data.slice(0, 2);
}); });
// 无活动数据时整块不渲染,避免展示空标题/空卡片
const hasData = computed(() => {
if (isPintuan.value) {
return displayData.value.length > 0;
}
if (isSeckill.value) {
return seckillData.value.length > 0;
}
if (isKanjia.value) {
return seckillData.value.length > 0;
}
if (isLive.value) {
return liveData.value.length > 0;
}
return displayList.value.some(
(item: any) => item.data && item.data.filter(isRealGoods).length > 0
);
});
const headTitleImage = computed(() => const headTitleImage = computed(() =>
props.res?.headTitleType === "image" ? props.res.headTitleImage : "" props.res?.headTitleType === "image" ? props.res.headTitleImage : ""
); );

View File

@@ -20,7 +20,7 @@ const wrapperStyle = computed(() => {
return { return {
background: bg, background: bg,
padding: `0 ${res.paddingX ?? 12}rpx`, padding: `0 ${res.paddingX ?? 12}rpx`,
marginBottom: `${res.pageGap ?? 10}rpx`, marginBottom: `${res.pageGap ?? 0}rpx`,
borderRadius: `${res.borderRadius ?? 0}rpx`, borderRadius: `${res.borderRadius ?? 0}rpx`,
overflow: "hidden", overflow: "hidden",
}; };

View File

@@ -3,7 +3,7 @@
<view class="shop-head" v-if="headIcon || title || moreUrl"> <view class="shop-head" v-if="headIcon || title || moreUrl">
<image v-if="headIcon" class="shop-head-icon" :src="headIcon" mode="aspectFit" /> <image v-if="headIcon" class="shop-head-icon" :src="headIcon" mode="aspectFit" />
<view class="shop-title" :style="titleStyle">{{ title }}</view> <view class="shop-title" :style="titleStyle">{{ title }}</view>
<view v-if="moreUrl" class="shop-more" :style="moreStyle" @click="goMore">更多 &gt;</view> <view v-if="moreUrl" class="shop-more" :style="moreStyle" @click="goMore">{{ "更多 >" }}</view>
</view> </view>
<!-- 老数据:两列网格 --> <!-- 老数据:两列网格 -->
@@ -24,7 +24,7 @@
</view> </view>
</view> </view>
<!-- 样式一:店铺卡片(商品图背景 + Logo + 名称 + 类型标签) --> <!-- 样式一:店铺卡片(全景大片橱窗) -->
<view v-else-if="shopStyle === 'one'" class="shop-grid"> <view v-else-if="shopStyle === 'one'" class="shop-grid">
<view <view
class="shop-card" class="shop-card"
@@ -33,13 +33,22 @@
@click="goShop(item)" @click="goShop(item)"
> >
<image <image
v-if="(item.goodsImages && item.goodsImages.length) || item.storeBanner" v-if="!item.imgError && ((item.goodsImages && item.goodsImages.length) || item.storeBanner)"
class="shop-card-bg" class="shop-card-bg"
:style="logoStyle" :style="logoStyle"
:src="item.goodsImages && item.goodsImages.length ? item.goodsImages[0] : item.storeBanner" :src="item.goodsImages && item.goodsImages.length ? item.goodsImages[0] : item.storeBanner"
mode="aspectFill" mode="aspectFill"
@error="handleImgError(item)"
/>
<image
v-else-if="item.storeLogo"
class="shop-card-bg"
:style="logoStyle"
:src="item.storeLogo"
mode="aspectFill"
/> />
<view v-else class="shop-card-bg shop-card-bg-empty" :style="logoStyle"></view> <view v-else class="shop-card-bg shop-card-bg-empty" :style="logoStyle"></view>
<view class="shop-card-badge" v-if="isSelf(item)">自营</view>
<view class="shop-card-body"> <view class="shop-card-body">
<image <image
v-if="showLogo" v-if="showLogo"
@@ -52,7 +61,7 @@
</view> </view>
</view> </view>
<!-- 样式二:店铺卡片 + 商品列表 --> <!-- 样式二:店铺卡片 + 商品列表(大牌名店街 + 精品橱窗) -->
<view v-else class="shop-street-list"> <view v-else class="shop-street-list">
<view <view
class="shop-street-card" class="shop-street-card"
@@ -61,15 +70,17 @@
@click="goShop(item)" @click="goShop(item)"
> >
<view class="shop-street-head"> <view class="shop-street-head">
<image v-if="showLogo" class="shop-street-logo" :src="item.storeLogo" mode="aspectFit" /> <view class="shop-street-info">
<view v-if="showName" class="shop-street-name" :style="nameStyle">{{ item.storeName }}</view> <image v-if="showLogo" class="shop-street-logo" :src="item.storeLogo" mode="aspectFit" />
<image <view class="shop-street-meta">
v-if="(item.goods && item.goods.length) || item.storeBanner" <view class="shop-street-name-row">
class="shop-street-banner" <view v-if="showName" class="shop-street-name" :style="nameStyle">{{ item.storeName }}</view>
:style="logoStyle" <text class="shop-street-tag" v-if="isSelf(item)">自营</text>
:src="item.goods && item.goods.length ? item.goods[0].img : item.storeBanner" </view>
mode="aspectFill" <view class="shop-street-desc">热卖好物甄选中</view>
/> </view>
</view>
<view class="shop-street-enter">进店逛逛 &gt;</view>
</view> </view>
<view class="shop-street-goods"> <view class="shop-street-goods">
<view <view
@@ -77,10 +88,12 @@
v-for="(g, gi) in item.goods || []" v-for="(g, gi) in item.goods || []"
:key="gi" :key="gi"
> >
<image class="street-goods-img" :src="g.img" mode="aspectFill" /> <view class="street-goods-cover">
<image class="street-goods-img" :src="g.img" mode="aspectFill" />
</view>
<view class="street-goods-name">{{ g.name }}</view> <view class="street-goods-name">{{ g.name }}</view>
<view class="street-goods-price"> <view class="street-goods-price">
¥{{ goodsFormatPrice(g.price)[0] }}.{{ goodsFormatPrice(g.price)[1] }} <text class="street-goods-symbol">¥</text>{{ goodsFormatPrice(g.price)[0] }}.{{ goodsFormatPrice(g.price)[1] }}
</view> </view>
</view> </view>
</view> </view>
@@ -130,7 +143,7 @@ const wrapperStyle = computed(() => {
return { return {
background: res.bgColor || "#FFFFFF", background: res.bgColor || "#FFFFFF",
padding: `20rpx ${res.paddingX ?? 0}rpx`, padding: `20rpx ${res.paddingX ?? 0}rpx`,
marginBottom: `${res.pageGap ?? 10}rpx`, marginBottom: `${res.pageGap ?? 0}rpx`,
borderRadius: `${res.borderRadius ?? 0}rpx`, borderRadius: `${res.borderRadius ?? 0}rpx`,
overflow: "hidden", overflow: "hidden",
}; };
@@ -161,9 +174,8 @@ async function loadShops() {
loadGoodsImages(); loadGoodsImages();
} }
// 样式二:按店铺拉取商品(图片、名称、价格) // 按店铺拉取商品(样式一用第1张商品作为店铺封面图,样式二展示商品条)
function loadGoodsImages() { function loadGoodsImages() {
if (shopStyle.value !== "two") return;
shopList.value.forEach((shop: any, i: number) => { shopList.value.forEach((shop: any, i: number) => {
getGoodsList({ storeId: shop.id, pageNumber: 1, pageSize: 3 }).then((res: any) => { getGoodsList({ storeId: shop.id, pageNumber: 1, pageSize: 3 }).then((res: any) => {
const records = res?.data?.result?.records || res?.data?.result || []; const records = res?.data?.result?.records || res?.data?.result || [];
@@ -174,8 +186,10 @@ function loadGoodsImages() {
img: g.thumbnail || g.small || g.goodsImage, img: g.thumbnail || g.small || g.goodsImage,
})) }))
.filter((g: any) => g.img); .filter((g: any) => g.img);
shopList.value[i].goods = goods; if (shopList.value[i]) {
shopList.value[i].goodsImages = goods.map((g: any) => g.img); shopList.value[i].goods = goods;
shopList.value[i].goodsImages = goods.map((g: any) => g.img);
}
}).catch(() => {}); }).catch(() => {});
}); });
} }
@@ -186,6 +200,22 @@ watch(
{ immediate: true, deep: true } { immediate: true, deep: true }
); );
function isSelf(shop: any) {
if (!shop) return false;
return Boolean(
shop.selfOperated === true ||
shop.selfOperated === 'true' ||
shop.selfOperated === 1 ||
shop.selfOperated === '1' ||
(shop.storeName && shop.storeName.includes('自营')) ||
(shop.name && shop.name.includes('自营'))
);
}
function handleImgError(item: any) {
item.imgError = true;
}
function goShop(item: any) { function goShop(item: any) {
uni.navigateTo({ url: `/pages/product/shopPage?id=${item.id}` }); uni.navigateTo({ url: `/pages/product/shopPage?id=${item.id}` });
} }
@@ -222,7 +252,7 @@ function goMore() {
color: #999; color: #999;
} }
// 样式一:三列店铺卡片 // 样式一:三列店铺卡片(全景大片橱窗)
.shop-grid { .shop-grid {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
@@ -230,121 +260,201 @@ function goMore() {
gap: 16rpx; gap: 16rpx;
} }
.shop-card { .shop-card {
position: relative;
width: calc((100% - 32rpx) / 3); width: calc((100% - 32rpx) / 3);
border-radius: 12rpx; height: 224rpx;
border-radius: 16rpx;
overflow: hidden; overflow: hidden;
background: #f7f7f7; background: #f7f7f7;
box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.04);
} }
.shop-card-bg { .shop-card-bg {
position: absolute;
top: 0;
left: 0;
width: 100%; width: 100%;
height: 140rpx; height: 100%;
display: block; display: block;
background: #eee;
} }
.shop-card-bg-empty { .shop-card-bg-empty {
background: linear-gradient(135deg, #f5f5f5, #e8e8e8); background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
} }
.shop-card-badge {
position: absolute;
top: 10rpx;
right: 10rpx;
z-index: 2;
font-size: 20rpx;
color: #fff;
background: #e1251b;
padding: 2rpx 10rpx;
border-radius: 8rpx;
line-height: 1.3;
font-weight: 500;
box-shadow: 0 2rpx 6rpx rgba(0, 0, 0, 0.2);
}
.shop-card-body { .shop-card-body {
padding: 8rpx; position: absolute;
text-align: center; left: 0;
right: 0;
bottom: 0;
z-index: 2;
padding: 32rpx 12rpx 12rpx;
display: flex;
align-items: center;
gap: 8rpx;
background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.25) 35%, rgba(0, 0, 0, 0.72) 100%);
} }
.shop-card-logo { .shop-card-logo {
position: relative; flex-shrink: 0;
z-index: 1;
display: block; display: block;
width: 96rpx; width: 40rpx;
height: 32rpx; height: 40rpx;
margin: -16rpx auto 0; border-radius: 6rpx;
background: #fff; background: #fff;
padding: 2rpx;
box-shadow: 0 2rpx 6rpx rgba(0, 0, 0, 0.15);
} }
.shop-card-name { .shop-card-name {
font-size: 24rpx; flex: 1;
color: #333; min-width: 0;
font-size: 22rpx;
font-weight: 600;
color: #fff;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
margin-top: 6rpx; text-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.6);
} }
// 样式二:店铺卡片 + 商品列表
// 样式二:大牌名店街 + 精品橱窗
.shop-street-list { .shop-street-list {
padding: 0 24rpx; padding: 0 24rpx;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 16rpx; gap: 20rpx;
} }
.shop-street-card { .shop-street-card {
border-radius: 12rpx; border-radius: 20rpx;
overflow: hidden; overflow: hidden;
background: #f7f7f7; background: #fbfbfb;
border: 1px solid #f0f0f0;
box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.03);
} }
.shop-street-head { .shop-street-head {
position: relative;
display: flex; display: flex;
align-items: center; align-items: center;
height: 68rpx; justify-content: space-between;
padding: 0 16rpx; padding: 16rpx 20rpx;
box-sizing: border-box; background: #fff;
background: var(--theme-primary, #ff3c2a); border-bottom: 1px solid #f5f5f5;
overflow: hidden; }
.shop-street-info {
display: flex;
align-items: center;
gap: 16rpx;
min-width: 0;
flex: 1;
} }
.shop-street-logo { .shop-street-logo {
flex-shrink: 0; flex-shrink: 0;
width: 88rpx; width: 64rpx;
height: 32rpx; height: 64rpx;
padding: 2rpx 6rpx; padding: 4rpx;
box-sizing: border-box; box-sizing: border-box;
background: #fff; background: #fff;
border-radius: 4rpx; border-radius: 50%;
border: 1px solid #eee;
box-shadow: 0 2rpx 6rpx rgba(0, 0, 0, 0.05);
}
.shop-street-meta {
min-width: 0;
flex: 1;
}
.shop-street-name-row {
display: flex;
align-items: center;
gap: 10rpx;
} }
.shop-street-name { .shop-street-name {
max-width: calc(100% - 220rpx);
margin-left: 12rpx;
color: #fff;
font-size: 26rpx; font-size: 26rpx;
font-weight: 600; font-weight: 600;
color: #333;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
} }
.shop-street-banner { .shop-street-tag {
position: absolute; flex-shrink: 0;
top: 0; font-size: 18rpx;
right: 0; color: #fff;
width: 160rpx; background: #e1251b;
height: 68rpx; padding: 0 8rpx;
border-radius: 6rpx;
line-height: 28rpx;
font-weight: 500;
}
.shop-street-desc {
font-size: 20rpx;
color: #999;
margin-top: 4rpx;
}
.shop-street-enter {
flex-shrink: 0;
font-size: 20rpx;
font-weight: 500;
color: var(--theme-primary, #ff3c2a);
background: #fff;
border: 1px solid rgba(255, 60, 42, 0.25);
padding: 6rpx 16rpx;
border-radius: 24rpx;
box-shadow: 0 2rpx 4rpx rgba(255, 60, 42, 0.05);
margin-left: 16rpx;
} }
.shop-street-goods { .shop-street-goods {
display: flex; display: flex;
gap: 12rpx; gap: 16rpx;
padding: 12rpx; padding: 16rpx;
box-sizing: border-box; box-sizing: border-box;
} }
.street-goods-item { .street-goods-item {
flex: 1; flex: 1;
min-width: 0; min-width: 0;
border-radius: 8rpx; border-radius: 12rpx;
overflow: hidden; overflow: hidden;
background: #fff; background: #fff;
border: 1px solid #f2f2f2;
box-shadow: 0 2rpx 6rpx rgba(0, 0, 0, 0.02);
}
.street-goods-cover {
width: 100%;
aspect-ratio: 1 / 1;
overflow: hidden;
background: #fafafa;
} }
.street-goods-img { .street-goods-img {
width: 100%; width: 100%;
height: 116rpx; height: 100%;
display: block; display: block;
background: #eee;
} }
.street-goods-name { .street-goods-name {
padding: 8rpx 8rpx 0; padding: 8rpx 12rpx 0;
color: #282828; color: #333;
font-size: 22rpx; font-size: 22rpx;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
} }
.street-goods-price { .street-goods-price {
padding: 4rpx 8rpx 10rpx; padding: 4rpx 12rpx 12rpx;
color: var(--theme-primary, #ff3c2a); color: var(--theme-primary, #ff3c2a);
font-size: 22rpx; font-size: 24rpx;
font-weight: 600; font-weight: 700;
}
.street-goods-symbol {
font-size: 18rpx;
font-weight: normal;
margin-right: 2rpx;
} }
// 老数据两列网格(未配置样式时) // 老数据两列网格(未配置样式时)

View File

@@ -12,7 +12,7 @@
:style="moreStyle" :style="moreStyle"
@click="goMore" @click="goMore"
> >
{{ item.moreText || "更多" }} &gt; {{ (item.moreText || "更多") + " >" }}
</view> </view>
</view> </view>
<!-- 老数据:保持原样 --> <!-- 老数据:保持原样 -->