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,24 @@
Component({
properties: {
brand: { type: Object, value: {} },
presentation: { type: Object, value: {} },
hero: { type: Object, value: {} },
trustContent: { type: Object, value: {} },
offerings: { type: Array, value: [] },
},
data: { resolvedHeroImage: "" },
observers: {
"brand.heroImage, hero.image"(brandHeroImage, heroImage) {
if (!heroImage && !brandHeroImage) return;
this.setData({ resolvedHeroImage: heroImage || brandHeroImage });
},
},
methods: {
selectOffering(event) {
this.triggerEvent("select", { id: event.currentTarget.dataset.id });
},
goWorks() {
this.triggerEvent("works");
},
},
});
@@ -0,0 +1,8 @@
<view class="page">
<view class="founder-card"><image class="avatar" src="{{brand.avatarUrl}}" mode="aspectFill"/><view class="founder-copy"><text class="founder-name">{{brand.founder}}</text><text class="founder-title">{{brand.title}}</text><text class="quote">“{{brand.slogan}}”</text></view><text class="badge">{{presentation.founderBadge}}</text></view>
<view class="hero" bindtap="goWorks"><image class="hero-image" src="{{resolvedHeroImage}}" mode="aspectFill"/><view class="hero-shade"/><view class="hero-copy"><text class="eyebrow">{{hero.eyebrow}}</text><text class="hero-title">{{hero.title}}</text><text class="hero-slogan">{{hero.slogan}}</text><text class="hero-button">{{hero.cta}}</text></view></view>
<view class="intro"><text class="eyebrow dark">{{presentation.proofEyebrow}}</text><text class="section-title">{{presentation.proofTitle}}</text><text class="body">{{trustContent.bio}}</text><view class="stats"><view wx:for="{{trustContent.stats}}" wx:key="value"><text class="stat-value">{{item.value}}</text><text class="stat-label">{{item.label}}</text><text class="stat-sub">{{item.sub}}</text></view></view></view>
<view class="trust"><text class="eyebrow">{{presentation.manifestoEyebrow}}</text><text class="section-title light">{{presentation.manifestoTitle}}</text><view wx:for="{{trustContent.pillars}}" wx:key="title" class="pillar"><text class="pillar-title">{{item.title}}</text><text class="pillar-desc">{{item.desc}}</text></view></view>
<view class="section"><view class="section-head"><view><text class="eyebrow dark">{{presentation.worksEyebrow}}</text><text class="section-title">{{presentation.worksTitle}}</text></view><text class="more" bindtap="goWorks">{{presentation.worksAction}}</text></view><view wx:for="{{offerings}}" wx:key="id" class="work-card" data-id="{{item.id}}" bindtap="selectOffering"><image src="{{item.image}}" mode="aspectFill"/><view class="work-info"><text class="work-category">{{item.category}} · {{item.area}}</text><text class="work-name">{{item.name}}</text><text class="work-desc">{{item.series}} · {{item.keywords[0]}} · {{item.keywords[1]}}</text></view></view></view>
<view class="flow"><text class="flow-eyebrow">{{presentation.flowEyebrow}}</text><text class="flow-title">{{presentation.flowTitle}}</text><view class="flow-grid"><view wx:for="{{trustContent.serviceFlow}}" wx:key="step" class="flow-item"><text class="flow-step">{{item.step}}</text><text class="flow-name">{{item.name}}</text><text class="flow-desc">{{item.desc}}</text></view></view></view>
</view>
@@ -0,0 +1,261 @@
.page {
background: #f7f5f1;
color: #252525;
padding-bottom: 30rpx;
}
.founder-card {
position: relative;
display: flex;
gap: 20rpx;
align-items: flex-start;
margin: 32rpx 40rpx 20rpx;
padding: 28rpx;
border: 1rpx solid #e6ded5;
border-radius: 28rpx;
background: #fff;
}
.avatar {
width: 112rpx;
height: 112rpx;
flex: 0 0 112rpx;
border: 4rpx solid #d9c8b2;
border-radius: 50%;
}
.founder-copy {
min-width: 0;
padding-right: 78rpx;
}
.founder-name,
.founder-title,
.quote,
.eyebrow,
.hero-title,
.hero-slogan,
.section-title,
.body,
.stat-value,
.stat-label,
.stat-sub,
.pillar-title,
.pillar-desc,
.work-category,
.work-name,
.work-desc,
.flow-eyebrow,
.flow-title,
.flow-step,
.flow-name,
.flow-desc {
display: block;
}
.founder-name {
font: 30rpx serif;
}
.founder-title {
margin-top: 6rpx;
color: #77736b;
font-size: 20rpx;
}
.quote {
margin-top: 14rpx;
font: 21rpx serif;
}
.badge {
position: absolute;
top: 24rpx;
right: 20rpx;
padding: 8rpx 12rpx;
border-radius: 20rpx;
background: #f3ede6;
color: #8a6846;
font-size: 18rpx;
}
.hero {
position: relative;
height: 400rpx;
margin: 0 40rpx 42rpx;
overflow: hidden;
border-radius: 28rpx;
}
.hero-image {
width: 100%;
height: 100%;
}
.hero-shade {
position: absolute;
inset: 0;
background: linear-gradient(180deg, rgba(20, 22, 21, 0.1), rgba(20, 22, 21, 0.82));
}
.hero-copy {
position: absolute;
right: 28rpx;
bottom: 28rpx;
left: 28rpx;
color: #fff;
}
.eyebrow {
margin-bottom: 14rpx;
color: #d9c8b2;
font-size: 18rpx;
letter-spacing: 3rpx;
}
.dark {
color: #8a6846;
}
.hero-title,
.section-title {
font: 34rpx serif;
}
.hero-slogan {
margin-top: 10rpx;
font-size: 21rpx;
}
.hero-button {
position: absolute;
right: 0;
bottom: 0;
padding: 12rpx 16rpx;
border: 1rpx solid rgba(255, 255, 255, 0.3);
color: #d9c8b2;
font-size: 19rpx;
}
.intro,
.section {
padding: 0 40rpx 48rpx;
}
.body {
color: #77736b;
font-size: 24rpx;
line-height: 1.8;
}
.stats {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16rpx;
margin-top: 22rpx;
}
.stats view {
padding: 22rpx;
border: 1rpx solid #e6ded5;
border-radius: 20rpx;
background: #fff;
}
.stat-value {
color: #8a6846;
font: 38rpx serif;
}
.stat-label {
margin-top: 4rpx;
font-size: 22rpx;
font-weight: 600;
}
.stat-sub {
margin-top: 6rpx;
color: #77736b;
font-size: 18rpx;
line-height: 1.5;
}
.trust {
padding: 42rpx 40rpx;
background: #202221;
color: #fff;
}
.light {
color: #fff;
}
.pillar {
margin-top: 24rpx;
}
.pillar-title {
color: #fff;
font: 28rpx serif;
}
.pillar-desc {
margin-top: 8rpx;
color: #c6c2ba;
font-size: 22rpx;
line-height: 1.65;
}
.section-head {
display: flex;
align-items: end;
justify-content: space-between;
margin-bottom: 22rpx;
}
.more {
color: #8a6846;
font-size: 21rpx;
}
.work-card {
margin-bottom: 24rpx;
overflow: hidden;
border: 1rpx solid #e6ded5;
border-radius: 28rpx;
background: #fff;
}
.work-card image {
width: 100%;
height: 300rpx;
}
.work-info {
padding: 24rpx;
}
.work-category {
color: #8a6846;
font-size: 19rpx;
}
.work-name {
margin: 10rpx 0;
font: 28rpx serif;
}
.work-desc {
color: #77736b;
font-size: 22rpx;
line-height: 1.6;
}
.flow {
margin: 0 40rpx 42rpx;
padding: 30rpx 24rpx;
border: 1rpx solid #e6ded5;
border-radius: 20rpx;
background: #efece6;
text-align: center;
}
.flow-eyebrow {
color: #8a6846;
font-size: 18rpx;
letter-spacing: 2rpx;
}
.flow-title {
margin-top: 6rpx;
font: 30rpx serif;
}
.flow-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16rpx;
margin-top: 24rpx;
text-align: left;
}
.flow-item {
padding: 18rpx;
border: 1rpx solid #e6ded5;
border-radius: 14rpx;
background: #fff;
}
.flow-step {
color: #8a6846;
font-size: 18rpx;
font-weight: 700;
}
.flow-name {
margin-top: 5rpx;
font-size: 21rpx;
font-weight: 600;
}
.flow-desc {
margin-top: 6rpx;
color: #77736b;
font-size: 17rpx;
line-height: 1.5;
}
@@ -0,0 +1,43 @@
Component({
properties: {
brand: { type: Object, value: {} },
presentation: { type: Object, value: {} },
offerings: { type: Array, value: [] },
},
data: {
activeCategory: "全部案例",
categories: ["全部案例", "入户大门", "庭院围墙门", "室内户内门", "装饰隐形门"],
visibleOfferings: [],
},
observers: {
offerings(offerings) {
this.filterOfferings(offerings, this.data.activeCategory);
},
},
lifetimes: {
attached() {
this.filterOfferings(this.data.offerings, this.data.activeCategory);
},
},
methods: {
filterOfferings(offerings, category) {
const normalizedCategory = (item) =>
item.category || item.presentation?.categoryLabel || item.presentation?.categoryKey || "";
const visibleOfferings = (offerings || []).filter(
(item) => category === "全部案例" || normalizedCategory(item) === category,
);
this.setData({ visibleOfferings });
},
chooseCategory(event) {
const activeCategory = event.currentTarget.dataset.category;
this.setData({ activeCategory });
this.filterOfferings(this.data.offerings, activeCategory);
},
open(event) {
this.triggerEvent("open", { id: event.currentTarget.dataset.id });
},
more() {
this.triggerEvent("more");
},
},
});
@@ -0,0 +1 @@
<view class="page linjing-works"><view class="works-intro"><text class="eyebrow">{{presentation.worksEyebrow || 'SELECTED WORKS'}}</text><text class="title">{{presentation.worksTitle || '案例与体系'}}</text><text class="subtitle">{{presentation.subtitle || '从建筑入口到室内秩序,呈现每一扇门的完整构造。'}}</text></view><view class="category-line"><text wx:for="{{categories}}" wx:key="*this" class="category-tab {{activeCategory === item ? 'active' : ''}}" data-category="{{item}}" bindtap="chooseCategory">{{item}}</text></view><view wx:if="{{!visibleOfferings.length}}" class="empty">暂无该类别案例</view><view class="works-list"><view wx:for="{{visibleOfferings}}" wx:key="id" class="work" data-id="{{item.id}}" bindtap="open"><image src="{{item.image || item.coverUrl}}" mode="aspectFill"/><view class="work-copy"><text class="category">{{item.category || item.presentation.categoryLabel}}</text><text class="name">{{item.name}}</text><text class="series">{{item.series || item.summary}}</text><view class="meta"><text>{{item.area || 'PRIVATE RESIDENCE'}}</text><text>查看项目 →</text></view></view></view></view><view class="closing"><text>每一套门系统,都是建筑秩序的一部分。</text><text class="more" bindtap="more">预约一次私宅门系统沟通 →</text></view></view>
@@ -0,0 +1,117 @@
.page {
min-height: 100vh;
padding: 56rpx 36rpx 150rpx;
background: #202221;
color: #f4f0e8;
}
.works-intro {
padding: 12rpx 4rpx 42rpx;
}
.eyebrow {
display: block;
color: #c5ad8b;
font-size: 18rpx;
letter-spacing: 4rpx;
}
.title {
display: block;
margin-top: 18rpx;
font-family: serif;
font-size: 56rpx;
line-height: 1.15;
}
.subtitle {
display: block;
max-width: 620rpx;
margin-top: 18rpx;
color: #bcb8b0;
font-size: 22rpx;
line-height: 1.7;
}
.category-line {
display: flex;
gap: 22rpx;
overflow: hidden;
padding: 18rpx 0;
border-top: 1rpx solid #444641;
border-bottom: 1rpx solid #444641;
color: #aaa69d;
font-size: 19rpx;
white-space: nowrap;
}
.category-tab {
flex: none;
padding-bottom: 8rpx;
}
.category-tab.active {
color: #e8d9c2;
border-bottom: 2rpx solid #c5ad8b;
}
.empty {
padding: 60rpx 0;
color: #aaa69d;
font-size: 22rpx;
text-align: center;
}
.works-list {
margin-top: 28rpx;
}
.work {
overflow: hidden;
margin-bottom: 24rpx;
border: 1rpx solid #444641;
background: #292b29;
}
.work image {
display: block;
width: 100%;
height: 360rpx;
filter: saturate(0.75);
}
.work-copy {
padding: 22rpx 24rpx 24rpx;
}
.category {
display: block;
color: #bba585;
font-size: 18rpx;
letter-spacing: 2rpx;
}
.name {
display: block;
margin-top: 10rpx;
color: #f3eee5;
font-family: serif;
font-size: 30rpx;
line-height: 1.35;
}
.series {
display: block;
margin-top: 9rpx;
color: #aaa69d;
font-size: 20rpx;
line-height: 1.5;
}
.meta {
display: flex;
justify-content: space-between;
margin-top: 20rpx;
color: #888b84;
font-size: 17rpx;
letter-spacing: 1rpx;
}
.meta text:last-child {
color: #d5c09c;
}
.closing {
padding: 38rpx 4rpx;
color: #aaa69d;
font-size: 21rpx;
line-height: 1.7;
}
.closing .more {
display: block;
margin-top: 22rpx;
color: #d5c09c;
font-size: 20rpx;
}
@@ -0,0 +1,18 @@
Component({
properties: {
brand: { type: Object, value: {} },
presentation: { type: Object, value: {} },
recordsCount: { type: Number, value: 0 },
},
methods: {
call() {
this.triggerEvent("call");
},
copy() {
this.triggerEvent("copy");
},
records() {
this.triggerEvent("records");
},
},
});
@@ -0,0 +1,6 @@
{
"component": true,
"usingComponents": {
"t-icon": "/miniprogram_npm/tdesign-miniprogram/icon/icon"
}
}
@@ -0,0 +1,26 @@
<view class="profile">
<view class="founder-card">
<view class="identity">
<image class="avatar" src="{{brand.avatarUrl}}" mode="aspectFill" />
<view><text class="founder">{{brand.founder}}</text><text class="role">{{brand.title}}</text></view>
</view>
<view class="contact-lines">
<view class="contact-line"><text class="label">{{presentation.phoneLabel}}</text><view class="contact-action"><text class="value">{{brand.phone}}</text><button bindtap="call"><t-icon name="call" size="24rpx" />{{presentation.callAction}}</button></view></view>
<view class="contact-line"><text class="label">{{presentation.wechatLabel}}</text><view class="contact-action"><text class="value accent">{{brand.wechat}}</text><button bindtap="copy"><t-icon name="file-copy" size="24rpx" />{{presentation.copyAction}}</button></view></view>
<view class="contact-line address"><text class="label">{{presentation.addressLabel}}</text><text class="address-value">{{brand.studioAddress}}</text></view>
</view>
</view>
<view class="records-card" bindtap="records">
<view class="entry-icon"><t-icon name="logo-notion" size="34rpx" /></view>
<view class="entry-copy"><text>{{presentation.recordsTitle}}</text><text>{{presentation.recordsSubtitle}}</text></view>
<view class="entry-count"><text>{{recordsCount}} {{presentation.recordsCountUnit}}</text><t-icon name="chevron-right" size="30rpx" /></view>
</view>
<view class="info-card">
<view class="card-title"><t-icon name="map" size="32rpx" /><text>{{presentation.coverageTitle}}</text></view>
<view wx:for="{{brand.profilePresentation.coverage}}" wx:key="title" class="note"><text class="note-title">{{item.title}}</text><text>{{item.content}}</text></view>
</view>
<view class="info-card">
<view class="card-title"><t-icon name="secured" size="32rpx" /><text>{{presentation.warrantyTitle}}</text></view>
<view wx:for="{{brand.profilePresentation.warranty}}" wx:key="*this" class="warranty"><text class="dot">•</text><text>{{item}}</text></view>
</view>
</view>
@@ -0,0 +1,195 @@
.profile {
min-height: 100vh;
padding: 0;
background: #f7f5f1;
color: #252525;
}
.founder-card {
margin: 18rpx 28rpx 0;
padding: 34rpx 30rpx;
border-radius: 20rpx;
background: #202221;
color: #fff;
box-shadow: 0 12rpx 34rpx rgba(32, 34, 33, 0.12);
}
.identity {
display: flex;
align-items: center;
gap: 22rpx;
}
.avatar {
width: 92rpx;
height: 92rpx;
border: 2rpx solid #8a6846;
border-radius: 50%;
background: #343736;
}
.founder,
.role,
.label,
.value,
.address-value,
.entry-copy text,
.entry-count text,
.note-title,
.note text,
.warranty text {
display: block;
}
.founder {
font: 34rpx serif;
}
.role {
margin-top: 8rpx;
color: #d9c8b2;
font-size: 22rpx;
}
.contact-lines {
margin-top: 24rpx;
border-top: 1rpx solid rgba(255, 255, 255, 0.12);
}
.contact-line {
display: flex;
align-items: center;
justify-content: space-between;
gap: 20rpx;
padding-top: 18rpx;
margin-top: 18rpx;
border-top: 1rpx solid rgba(255, 255, 255, 0.1);
font-size: 22rpx;
}
.contact-line:first-child {
border-top: 0;
margin-top: 0;
}
.label {
flex: 0 0 auto;
color: rgba(255, 255, 255, 0.52);
}
.contact-action {
display: flex;
min-width: 0;
align-items: center;
gap: 12rpx;
}
.value {
color: #fff;
font-family: monospace;
white-space: nowrap;
}
.accent {
color: #d9c8b2;
}
.contact-action button {
display: flex;
align-items: center;
justify-content: center;
gap: 5rpx;
min-width: 86rpx;
height: 46rpx;
margin: 0;
padding: 0 12rpx;
border-radius: 9rpx;
background: rgba(255, 255, 255, 0.1);
color: #d9c8b2;
font-size: 20rpx;
line-height: 46rpx;
}
.address {
align-items: flex-start;
}
.address-value {
max-width: 410rpx;
color: rgba(255, 255, 255, 0.82);
line-height: 1.55;
text-align: right;
}
.records-card,
.info-card {
margin: 20rpx 28rpx 0;
border: 1rpx solid #e6ded5;
border-radius: 18rpx;
background: #fff;
box-shadow: 0 10rpx 30rpx -12rpx rgba(32, 34, 33, 0.08);
}
.records-card {
display: flex;
align-items: center;
gap: 18rpx;
padding: 26rpx;
}
.entry-icon {
display: flex;
align-items: center;
justify-content: center;
width: 66rpx;
height: 66rpx;
border-radius: 12rpx;
background: rgba(138, 104, 70, 0.1);
color: #8a6846;
}
.entry-copy {
flex: 1;
min-width: 0;
}
.entry-copy text:first-child {
color: #202221;
font-size: 25rpx;
font-weight: 600;
}
.entry-copy text:last-child {
margin-top: 7rpx;
color: #77736b;
font-size: 20rpx;
line-height: 1.4;
}
.entry-count {
display: flex;
align-items: center;
gap: 4rpx;
flex: 0 0 auto;
color: #8a6846;
font-size: 20rpx;
}
.info-card {
padding: 28rpx;
}
.card-title {
display: flex;
align-items: center;
gap: 12rpx;
color: #202221;
font-size: 26rpx;
font-weight: 700;
}
.card-title t-icon {
color: #8a6846;
}
.note {
margin-top: 18rpx;
padding: 20rpx;
border: 1rpx solid #e6ded5;
border-radius: 12rpx;
background: #f7f5f1;
color: #57534e;
font-size: 23rpx;
line-height: 1.7;
}
.note-title {
margin-bottom: 5rpx;
color: #202221;
font-size: 23rpx;
font-weight: 700;
}
.warranty {
display: flex;
gap: 10rpx;
margin-top: 16rpx;
color: #77736b;
font-size: 23rpx;
line-height: 1.65;
}
.dot {
flex: 0 0 auto;
color: #8a6846;
}