feat: 收口多品牌与模板构建基础

This commit is contained in:
que01 committed 2026-09-25 02:55:46 +08:00
1 parent 0425a1c672
commit 77224ea51f
317 files changed
+11290 -1158

No files matched your search

@@ -0,0 +1,19 @@
Component({
properties: {
brand: { type: Object, value: {} },
presentation: { type: Object, value: {} },
trustContent: { type: Object, value: {} },
offerings: { type: Array, value: [] },
},
methods: {
openOffering(e) {
this.triggerEvent("select", { id: e.currentTarget.dataset.id });
},
openInquiry() {
this.triggerEvent("inquiry");
},
openOfferings() {
this.triggerEvent("offerings");
},
},
});
@@ -0,0 +1 @@
{ "component": true }
@@ -0,0 +1 @@
<view class="page"><view class="brand-card"><view class="identity"><image src="{{brand.avatarUrl}}" mode="aspectFill"/><view><text class="name">{{brand.founder}}</text><text class="title">{{brand.title}}</text><text class="slogan">“{{brand.slogan}}”</text></view></view><view class="notice"><text class="notice-title">{{presentation.stallTitle || '今日出摊点'}}</text><text>{{brand.studioAddress || brand.address}}</text><text class="notice-time">{{presentation.stallTime || '今日营业中'}}</text></view><view class="actions"><button bindtap="openInquiry">预约 / 定制</button><button class="muted" bindtap="openOfferings">今日菜单</button></view></view><view class="section-head"><view><text class="eyebrow">{{presentation.worksEyebrow || '本周学生票选招牌'}}</text><text class="heading">{{presentation.worksTitle || '现做现吃,认真管饱'}}</text></view><text class="more" bindtap="openOfferings">全部餐品 ›</text></view><view class="dish-grid"><view wx:for="{{offerings}}" wx:key="id" class="dish" data-id="{{item.id}}" bindtap="openOffering"><image src="{{item.image}}" mode="aspectFill"/><view class="dish-copy"><text class="dish-name">{{item.name}}</text><text class="dish-sub">{{item.desc}}</text><text class="price">{{item.priceRange}}</text></view></view></view><view class="promise"><text class="eyebrow light">{{presentation.manifestoEyebrow || '阿成的开档底线'}}</text><text class="promise-title">{{presentation.manifestoTitle || '真材实料,当天现做'}}</text><view wx:for="{{trustContent.pillars}}" wx:key="title" class="promise-item"><text>✓</text><text>{{item.title}}</text></view></view></view>
@@ -0,0 +1,177 @@
.page {
min-height: 100vh;
padding: 20rpx 28rpx 48rpx;
background: #fff8f0;
color: #29231f;
}
.brand-card {
padding: 28rpx;
border: 1rpx solid #f2d9c6;
border-radius: 28rpx;
background: #fff;
box-shadow: 0 12rpx 30rpx rgba(145, 75, 33, 0.08);
}
.identity {
display: flex;
gap: 20rpx;
align-items: center;
}
.identity image {
width: 96rpx;
height: 96rpx;
border: 4rpx solid #ffd9bb;
border-radius: 50%;
background: #fff1e5;
}
.name,
.title,
.slogan,
.notice-title,
.notice text,
.eyebrow,
.heading,
.more,
.dish-name,
.dish-sub,
.price,
.promise-title,
.promise-item text {
display: block;
}
.name {
font-size: 32rpx;
font-weight: 700;
}
.title {
margin-top: 6rpx;
color: #a2613b;
font-size: 21rpx;
}
.slogan {
margin-top: 10rpx;
color: #7a6a60;
font-size: 21rpx;
}
.notice {
position: relative;
margin-top: 24rpx;
padding: 20rpx;
border: 1rpx solid #f8d7b4;
border-radius: 20rpx;
background: #fff7df;
color: #6b4a35;
font-size: 22rpx;
line-height: 1.6;
}
.notice-title {
font-weight: 700;
color: #4f3020;
}
.notice-time {
position: absolute;
right: 18rpx;
top: 18rpx;
color: #c65c28;
font-size: 19rpx;
}
.actions {
display: flex;
gap: 14rpx;
margin-top: 20rpx;
}
.actions button {
flex: 1;
height: 76rpx;
border-radius: 20rpx;
background: #e87532;
color: #fff;
font-size: 24rpx;
line-height: 76rpx;
}
.actions .muted {
background: #fff0e5;
color: #b85e2c;
}
.section-head {
display: flex;
justify-content: space-between;
align-items: end;
margin: 34rpx 4rpx 18rpx;
}
.eyebrow {
color: #d2652b;
font-size: 19rpx;
letter-spacing: 2rpx;
}
.heading {
margin-top: 8rpx;
font-size: 34rpx;
font-weight: 700;
}
.more {
color: #d2652b;
font-size: 21rpx;
}
.dish-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16rpx;
}
.dish {
overflow: hidden;
border: 1rpx solid #f2e2d6;
border-radius: 22rpx;
background: #fff;
}
.dish image {
display: block;
width: 100%;
height: 220rpx;
background: #f3e7de;
}
.dish-copy {
padding: 18rpx;
}
.dish-name {
font-size: 24rpx;
font-weight: 700;
line-height: 1.4;
}
.dish-sub {
margin-top: 6rpx;
color: #8c7b70;
font-size: 19rpx;
line-height: 1.4;
}
.price {
margin-top: 14rpx;
color: #dc6429;
font-size: 24rpx;
font-weight: 700;
}
.promise {
margin-top: 28rpx;
padding: 28rpx;
border-radius: 24rpx;
background: #3b2118;
color: #fff;
}
.light {
color: #ffc79f;
}
.promise-title {
margin-top: 8rpx;
font-size: 30rpx;
font-weight: 700;
}
.promise-item {
display: flex;
gap: 12rpx;
margin-top: 18rpx;
color: #ffe5d2;
font-size: 21rpx;
}
.promise-item text:first-child {
color: #ff9a5a;
font-weight: 700;
}