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

@@ -1,3 +1,7 @@
Component({
properties: { brand: { type: Object, value: {} }, variant: { type: String, value: "default" } },
properties: {
brand: { type: Object, value: {} },
presentation: { type: Object, value: {} },
variant: { type: String, value: "default" },
},
});
@@ -1 +1 @@
<view class="founder"><image class="avatar" src="{{brand.avatarUrl || 'https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?auto=format&fit=crop&w=240&h=240&q=80'}}"/><view><text class="founder-name">{{brand.founder}}</text><text class="founder-title">{{brand.title}}</text><text class="quote">“{{brand.slogan}}”</text></view><text class="badge">亲自主理量房</text></view>
<view class="founder"><image wx:if="{{brand.avatarUrl}}" class="avatar" src="{{brand.avatarUrl}}"/><view wx:else class="avatar avatar-placeholder">{{brand.founder}}</view><view><text class="founder-name">{{brand.founder}}</text><text class="founder-title">{{brand.title}}</text><text class="quote">“{{brand.slogan}}”</text></view><text wx:if="{{presentation.founderBadge}}" class="badge">{{presentation.founderBadge}}</text></view>
@@ -12,6 +12,15 @@
border-radius: 50%;
object-fit: cover;
}
.avatar-placeholder {
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
background: #eee;
color: #777;
font-size: 24rpx;
}
.founder-name {
display: block;
font: 34rpx serif;
@@ -12,7 +12,7 @@ Component({
choose(e) {
const field = this.data.fields.find((item) => item.key === e.currentTarget.dataset.key);
const option = field?.options?.[e.detail.value];
if (option) this.triggerEvent("input", { key: field.key, value: option.value });
if (option) this.triggerEvent("input", { key: field.key, value: option.value ?? option });
},
dateChange(e) {
this.triggerEvent("input", { key: e.currentTarget.dataset.key, value: e.detail.value });
@@ -1,5 +1,8 @@
Component({
properties: { item: { type: Object, value: {} } },
properties: {
item: { type: Object, value: {} },
presentation: { type: Object, value: {} },
},
methods: {
inquire() {
this.triggerEvent("inquire");
@@ -1 +1 @@
<view class="detail"><image class="hero" src="{{item.image}}" mode="aspectFill"/><view class="content"><text class="category">{{item.category}} · {{item.tag}}</text><text class="title">{{item.name}}</text><text class="series">{{item.series}}</text><text class="price">{{item.priceRange}}</text><text class="desc">{{item.desc}}</text><view class="chips"><text wx:for="{{item.keywords}}" wx:key="*this">{{item}}</text></view></view><view class="bar"><button bindtap="inquire">预约测量 / 获取方案</button></view></view>
<view class="detail"><view class="hero-wrap"><image class="hero" src="{{item.detailHero || item.image}}" mode="aspectFill"/><view class="hero-shade"></view><view class="hero-copy"><text>{{item.category}} · {{item.area}}</text><text>{{item.name}}</text><text>{{item.series}}</text></view></view><view class="content"><view class="price-card"><view><text>{{presentation.priceLabel}}</text><text>{{item.priceRange}}</text></view><view><text>{{presentation.spaceLabel}}</text><text>{{item.spaceType}}</text></view></view><view class="detail-section"><text class="section-title">{{presentation.backgroundTitle}}</text><text class="body">{{item.details.background || item.desc}}</text></view><view wx:if="{{item.details.designConcept}}" class="detail-section"><text class="section-title">{{presentation.conceptTitle}}</text><text class="body warm">{{item.details.designConcept}}</text></view><view wx:if="{{item.details.crafts.length}}" class="detail-section"><text class="section-title">{{presentation.craftsTitle}}</text><view wx:for="{{item.details.crafts}}" wx:key="*this" class="craft"><text>0{{index + 1}}</text><text>{{item}}</text></view></view><view wx:if="{{item.details.materialsList.length}}" class="detail-section"><text class="section-title">{{presentation.materialsTitle}}</text><view class="materials"><view wx:for="{{item.details.materialsList}}" wx:key="name"><text>{{item.name}}</text><text>{{item.spec}}</text></view></view></view><view class="chips"><text wx:for="{{item.keywords}}" wx:key="*this">{{item}}</text></view></view><view class="bar"><button bindtap="inquire">{{presentation.inquiryAction}}</button><text>{{presentation.inquiryHint}}</text></view></view>
@@ -9,9 +9,138 @@
height: 600rpx;
display: block;
}
.hero-wrap {
position: relative;
height: 520rpx;
overflow: hidden;
background: #202221;
}
.hero-wrap .hero {
height: 100%;
}
.hero-shade {
position: absolute;
inset: 0;
background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.78));
}
.hero-copy {
position: absolute;
right: 40rpx;
bottom: 32rpx;
left: 40rpx;
color: #fff;
}
.hero-copy text {
display: block;
}
.hero-copy text:first-child {
color: #d9c8b2;
font-size: 20rpx;
}
.hero-copy text:nth-child(2) {
margin-top: 12rpx;
font: 38rpx serif;
}
.hero-copy text:last-child {
margin-top: 8rpx;
color: rgba(255, 255, 255, 0.72);
font-size: 23rpx;
}
.content {
padding: 42rpx 40rpx;
}
.price-card {
display: flex;
justify-content: space-between;
gap: 24rpx;
padding: 26rpx;
border: 1rpx solid #e6ded5;
border-radius: 16rpx;
background: #fff;
}
.price-card view:last-child {
text-align: right;
}
.price-card text {
display: block;
}
.price-card text:first-child {
color: #77736b;
font-size: 20rpx;
}
.price-card text:last-child {
margin-top: 8rpx;
color: #8a6846;
font: 25rpx serif;
}
.detail-section {
margin-top: 38rpx;
}
.section-title {
display: block;
padding-left: 16rpx;
border-left: 5rpx solid #8a6846;
color: #202221;
font: 27rpx serif;
}
.body {
display: block;
margin-top: 16rpx;
padding: 24rpx;
border: 1rpx solid #e6ded5;
border-radius: 14rpx;
background: #fff;
color: #252525;
font-size: 23rpx;
line-height: 1.8;
}
.warm {
background: #efece6;
}
.craft {
display: flex;
gap: 18rpx;
margin-top: 14rpx;
padding: 20rpx;
border: 1rpx solid #e6ded5;
border-radius: 12rpx;
background: #fff;
color: #252525;
font-size: 22rpx;
line-height: 1.65;
}
.craft text:first-child {
flex: 0 0 auto;
color: #8a6846;
font-family: monospace;
font-weight: 700;
}
.materials {
margin-top: 16rpx;
overflow: hidden;
border: 1rpx solid #e6ded5;
border-radius: 12rpx;
background: #fff;
}
.materials view {
display: flex;
justify-content: space-between;
gap: 24rpx;
padding: 20rpx;
color: #252525;
font-size: 21rpx;
line-height: 1.5;
}
.materials view + view {
border-top: 1rpx solid #e6ded5;
}
.materials text:first-child {
flex: 0 0 auto;
color: #77736b;
}
.materials text:last-child {
text-align: right;
}
.category {
font-size: 21rpx;
color: #8a6846;
@@ -65,3 +194,10 @@
color: #fff;
border-radius: 0;
}
.bar text {
display: block;
margin-top: 10rpx;
color: #77736b;
text-align: center;
font-size: 19rpx;
}
@@ -1,6 +1,7 @@
Component({
properties: {
offerings: { type: Array, value: [] },
presentation: { type: Object, value: {} },
variant: { type: String, value: "default" },
},
methods: {
@@ -1 +1 @@
<view class="section"><view class="section-head"><view><text class="eyebrow dark">SELECTED WORKS</text><text class="section-title">精选门系统作品</text></view><text class="more" bindtap="more">查看全部 →</text></view><view wx:for="{{offerings}}" wx:key="id" class="work-card" data-id="{{item.id}}" bindtap="open"><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="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="more">{{presentation.worksAction}}</text></view><view wx:for="{{offerings}}" wx:key="id" class="work-card" data-id="{{item.id}}" bindtap="open"><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>
@@ -1,5 +1,9 @@
Component({
properties: { brand: { type: Object, value: {} }, recordsCount: { type: Number, value: 0 } },
properties: {
brand: { type: Object, value: {} },
presentation: { type: Object, value: {} },
recordsCount: { type: Number, value: 0 },
},
methods: {
call() {
this.triggerEvent("call");
@@ -1 +1 @@
<view class="profile"><view class="contact-card"><view class="identity"><view class="avatar">林</view><view><text class="founder">{{brand.founder}}</text><text class="role">{{brand.title}}</text></view></view><view class="line"><text>专线电话</text><view><text>{{brand.phone}}</text><button bindtap="call">呼叫</button></view></view><view class="line"><text>工作室微信</text><view><text>{{brand.wechat}}</text><button bindtap="copy">复制</button></view></view><view class="line"><text>实体工坊</text><text>{{brand.studioAddress}}</text></view></view><view class="entry" bindtap="records"><text>我的量房与定制咨询</text><text>{{recordsCount}} 条记录 ›</text></view></view>
<view class="profile"><view class="contact-card"><view class="identity"><image wx:if="{{brand.avatarUrl}}" class="avatar" src="{{brand.avatarUrl}}" mode="aspectFill"/><view wx:else class="avatar">{{brand.founder}}</view><view><text class="founder">{{brand.founder}}</text><text class="role">{{brand.title}}</text></view></view><view class="line"><text>{{presentation.phoneLabel || '联系电话'}}</text><view><text>{{brand.phone}}</text><button bindtap="call">{{presentation.callAction || '呼叫'}}</button></view></view><view class="line"><text>{{presentation.wechatLabel || '微信'}}</text><view><text>{{brand.wechat}}</text><button bindtap="copy">{{presentation.copyAction || '复制'}}</button></view></view><view class="line"><text>{{presentation.addressLabel || '工作地址'}}</text><text>{{brand.studioAddress}}</text></view></view><view class="entry" bindtap="records"><text>{{presentation.recordsTitle || '我的咨询记录'}}</text><text>{{recordsCount}} {{presentation.recordsCountUnit || '条记录'}} ›</text></view></view>
@@ -1,5 +1,8 @@
Component({
properties: { records: { type: Array, value: [] } },
properties: {
records: { type: Array, value: [] },
presentation: { type: Object, value: {} },
},
methods: {
create() {
this.triggerEvent("create");
@@ -1 +1 @@
<view class="records"><view wx:if="{{!records.length}}" class="empty"><text class="empty-title">还没有咨询记录</text><text>预约一次私享沟通,让我们从你的空间开始。</text><button bindtap="create">开始咨询</button></view><view wx:else><view class="record" wx:for="{{records}}" wx:key="id"><view class="record-head"><text>{{item.type}}</text><text class="status">{{item.status}}</text></view><text class="project">{{item.project}} · {{item.offeringName}}</text><text class="meta">档案编号 {{item.id}} {{item.createdAt}}</text><view wx:if="{{item.timeline.length}}" class="timeline"><view wx:for="{{item.timeline}}" wx:key="createdAt" class="timeline-item"><text class="timeline-dot">●</text><text>{{item.status}} · {{item.createdAt}}</text></view></view></view></view></view>
<view class="records"><view wx:if="{{!records.length}}" class="empty"><text class="empty-title">{{presentation.emptyTitle}}</text><text>{{presentation.emptyDescription}}</text><button bindtap="create">{{presentation.emptyAction}}</button></view><view wx:else><view class="record" wx:for="{{records}}" wx:key="id"><view class="record-head"><text>{{item.type}}</text><text class="status">{{item.status}}</text></view><text class="project">{{item.project}} · {{item.offeringName}}</text><text class="meta">档案编号 {{item.id}} {{item.createdAt}}</text><view wx:if="{{item.timeline.length}}" class="timeline"><view wx:for="{{item.timeline}}" wx:key="createdAt" class="timeline-item"><text class="timeline-dot">●</text><text>{{item.status}} · {{item.createdAt}}</text></view></view></view></view></view>
@@ -1,5 +1,8 @@
Component({
properties: { record: { type: Object, value: {} } },
properties: {
record: { type: Object, value: {} },
presentation: { type: Object, value: {} },
},
methods: {
records() {
this.triggerEvent("records");
@@ -1 +1 @@
<view class="success"><view class="mark">✓</view><text class="eyebrow">PRIVATE CONSULTATION</text><text class="title">已收到你的咨询</text><text class="intro">主理人会根据你的项目资料,整理初步判断并在 1 个工作日内与你联系。</text><view class="summary"><view><text>档案编号</text><text>{{record.id}}</text></view><view><text>定制类型</text><text>{{record.type}}</text></view><view><text>当前状态</text><text>{{record.status}}</text></view></view><button bindtap="records">查看咨询记录</button><button class="secondary" bindtap="home">返回首页</button></view>
<view class="success"><view class="mark">✓</view><text class="eyebrow">{{presentation.eyebrow}}</text><text class="title">{{presentation.title}}</text><text class="intro">{{presentation.intro}}</text><view class="summary"><view><text>档案编号</text><text>{{record.id}}</text></view><view><text>定制类型</text><text>{{record.type}}</text></view><view><text>当前状态</text><text>{{record.status}}</text></view></view><button bindtap="records">{{presentation.recordsAction}}</button><button class="secondary" bindtap="home">{{presentation.homeAction}}</button></view>
@@ -1,3 +1,7 @@
Component({
properties: { content: { type: Object, value: {} }, variant: { type: String, value: "default" } },
properties: {
content: { type: Object, value: {} },
presentation: { type: Object, value: {} },
variant: { type: String, value: "default" },
},
});
@@ -1 +1 @@
<view class="trust"><text class="eyebrow">林境门作品质宣言</text><text class="section-title light">拒绝流水线拼装</text><view wx:for="{{content.pillars}}" wx:key="title"><text class="work-name light">{{item.title}}</text><text class="body light-body">{{item.desc}}</text></view></view>
<view class="trust"><text class="eyebrow">{{presentation.manifestoEyebrow}}</text><text class="section-title light">{{presentation.manifestoTitle}}</text><view wx:for="{{content.pillars}}" wx:key="title"><text class="work-name light">{{item.title}}</text><text class="body light-body">{{item.desc}}</text></view></view>
@@ -1,3 +1,7 @@
Component({
properties: { content: { type: Object, value: {} }, variant: { type: String, value: "default" } },
properties: {
content: { type: Object, value: {} },
presentation: { type: Object, value: {} },
variant: { type: String, value: "default" },
},
});
@@ -1 +1,11 @@
<view class="intro"><text class="eyebrow dark">主理人工艺与信任凭证</text><text class="section-title">14 年,只做门与空间的关系</text><text class="body">{{content.bio}}</text><view class="stats"><view wx:for="{{content.stats}}" wx:key="value"><text class="stat-value">{{item.value}}</text><text class="stat-label">{{item.label}}</text><text class="body">{{item.sub}}</text></view></view></view>
<view class="trust-section">
<view class="trust-head"><text class="eyebrow">{{presentation.proofEyebrow || '信任凭证'}}</text></view>
<view class="stats">
<view wx:for="{{content.stats}}" wx:key="value" class="stat-card"><text class="stat-value">{{item.value}}</text><text class="stat-label">{{item.label}}</text><text class="stat-sub">{{item.sub}}</text></view>
</view>
<view class="manifesto">
<view class="manifesto-head"><text>{{presentation.manifestoEyebrow}}</text><text>{{presentation.manifestoTitle}}</text></view>
<view wx:for="{{content.pillars}}" wx:key="title" class="pillar"><view class="pillar-icon">{{item.icon === 'tree' ? '木' : item.icon === 'ruler' ? '尺' : '盾'}}</view><view><text class="pillar-title">{{item.title}}</text><text class="pillar-desc">{{item.desc}}</text></view></view>
</view>
<view class="flow-card"><text class="flow-eyebrow">{{presentation.flowEyebrow}}</text><text class="flow-title">{{presentation.flowTitle}}</text><view class="flow-grid"><view wx:for="{{content.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>
@@ -1,7 +1,11 @@
.intro {
margin-top: 22rpx;
padding: 28rpx;
background: #fff;
.trust-section {
padding: 0 40rpx 42rpx;
}
.trust-head {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 20rpx;
}
.eyebrow {
display: block;
@@ -9,26 +13,21 @@
font-size: 20rpx;
letter-spacing: 3rpx;
}
.section-title {
display: block;
margin-top: 12rpx;
font: 40rpx serif;
}
.body {
display: block;
margin-top: 12rpx;
color: #77736b;
font-size: 25rpx;
line-height: 1.7;
.trust-link {
color: #8a6846;
font-size: 21rpx;
}
.stats {
display: grid;
grid-template-columns: 1fr 1fr;
margin-top: 24rpx;
gap: 16rpx;
margin-bottom: 18rpx;
}
.stats view {
padding: 16rpx 0;
border-top: 1rpx solid #e6ded5;
.stat-card {
padding: 22rpx;
background: #fff;
border: 1rpx solid #e6ded5;
border-radius: 16rpx;
}
.stat-value {
display: block;
@@ -38,4 +37,123 @@
.stat-label {
display: block;
font-size: 22rpx;
margin-top: 4rpx;
font-weight: 600;
}
.stat-sub {
display: block;
margin-top: 6rpx;
color: #77736b;
font-size: 18rpx;
line-height: 1.5;
}
.manifesto {
padding: 28rpx;
border-radius: 20rpx;
background: #202221;
color: #fff;
}
.manifesto-head {
display: flex;
justify-content: space-between;
padding-bottom: 18rpx;
margin-bottom: 20rpx;
border-bottom: 1rpx solid rgba(255, 255, 255, 0.12);
color: #d9c8b2;
font-size: 20rpx;
}
.manifesto-head text:last-child {
color: rgba(255, 255, 255, 0.5);
font-size: 18rpx;
}
.pillar {
display: flex;
gap: 16rpx;
margin-top: 20rpx;
}
.pillar-icon {
width: 44rpx;
height: 44rpx;
flex: 0 0 44rpx;
display: flex;
align-items: center;
justify-content: center;
border-radius: 8rpx;
background: rgba(138, 104, 70, 0.3);
color: #d9c8b2;
font-size: 18rpx;
}
.pillar-title,
.pillar-desc {
display: block;
}
.pillar-title {
font-size: 22rpx;
}
.pillar-desc {
margin-top: 5rpx;
color: rgba(255, 255, 255, 0.62);
font-size: 18rpx;
line-height: 1.55;
}
.flow-card {
margin-top: 22rpx;
padding: 32rpx 24rpx;
border: 1rpx solid #e6ded5;
border-radius: 20rpx;
background: #efece6;
text-align: center;
}
.flow-eyebrow,
.flow-title,
.flow-sub {
display: block;
}
.flow-eyebrow {
color: #8a6846;
font-size: 18rpx;
letter-spacing: 2rpx;
}
.flow-title {
margin-top: 6rpx;
font: 30rpx serif;
}
.flow-sub {
margin-top: 8rpx;
color: #77736b;
font-size: 18rpx;
}
.flow-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16rpx;
margin-top: 26rpx;
text-align: left;
}
.flow-item {
padding: 18rpx;
border: 1rpx solid #e6ded5;
border-radius: 14rpx;
background: #fff;
}
.flow-step,
.flow-name,
.flow-desc {
display: block;
}
.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;
}