feat(store): benefit coupon usage rules and show env photos on store detail
CI / verify (pull_request) Has been cancelled

Add benefitUsageRule on store create/edit (HQ + partner) and C-end detail between intro and env gallery.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-27 23:25:18 +08:00
parent ea8152ebf3
commit fc03905777
10 changed files with 119 additions and 6 deletions
@@ -29,6 +29,7 @@ type Store = {
district?: string;
phone?: string;
intro?: string | null;
benefitUsageRule?: string | null;
coverUrl?: string | null;
carouselUrls?: string[] | null;
media?: StoreMedia[] | null;
@@ -173,6 +174,7 @@ export default function StoreDetailPage() {
]);
const intro = store.intro?.trim() || '';
const benefitRule = store.benefitUsageRule?.trim() || '';
function previewEnv(index: number) {
if (!envPhotos.length) return;
@@ -248,6 +250,13 @@ export default function StoreDetailPage() {
</View>
) : null}
{benefitRule ? (
<View className="store-detail-section">
<Text className="store-detail-section-title">使</Text>
<Text className="store-detail-intro">{benefitRule}</Text>
</View>
) : null}
{envPhotos.length > 0 ? (
<View className="store-detail-section">
<Text className="store-detail-section-title"></Text>