feat: 收口多品牌与模板构建基础
This commit is contained in:
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;
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
Component({
|
||||
properties: {
|
||||
active: { type: String, value: "home" },
|
||||
navigation: { type: Array, value: [] },
|
||||
},
|
||||
data: {
|
||||
tabs: [],
|
||||
},
|
||||
methods: {
|
||||
navigate(e) {
|
||||
const tab = e.currentTarget.dataset.tab;
|
||||
if (!tab || tab.key === this.data.active) return;
|
||||
wx.navigateTo({ url: tab.page });
|
||||
},
|
||||
},
|
||||
observers: {
|
||||
navigation(navigation) {
|
||||
this.setData({
|
||||
tabs: Array.isArray(navigation)
|
||||
? navigation.map((item) => ({
|
||||
...item,
|
||||
page: item.page && item.page.startsWith("/") ? item.page : `/${item.page || ""}`,
|
||||
}))
|
||||
: [],
|
||||
});
|
||||
},
|
||||
},
|
||||
lifetimes: {
|
||||
attached() {
|
||||
this.setData({ tabs: this.data.navigation || [] });
|
||||
},
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1 @@
|
||||
{ "component": true }
|
||||
@@ -0,0 +1 @@
|
||||
<view class="runtime-tab-bar"><view wx:for="{{tabs}}" wx:key="key" class="tab {{active === item.key ? 'active' : ''}}" data-tab="{{item}}" bindtap="navigate"><text class="icon">{{item.key === 'home' ? '⌂' : item.key === 'dishes' ? '♨' : item.key === 'service' ? '⌖' : item.key === 'owner' ? '♙' : item.key === 'booking' ? '✉' : '◈'}}</text><text>{{item.label}}</text></view></view>
|
||||
@@ -0,0 +1,32 @@
|
||||
.runtime-tab-bar {
|
||||
position: fixed;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
z-index: 20;
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
padding: 10rpx 6rpx calc(10rpx + env(safe-area-inset-bottom));
|
||||
border-top: 1rpx solid #eee5dc;
|
||||
background: rgba(255, 255, 255, 0.97);
|
||||
box-shadow: 0 -8rpx 24rpx rgba(48, 32, 20, 0.08);
|
||||
}
|
||||
.tab {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
flex: 1;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 4rpx;
|
||||
color: #9a8d83;
|
||||
font-size: 19rpx;
|
||||
}
|
||||
.icon {
|
||||
height: 34rpx;
|
||||
font-size: 31rpx;
|
||||
line-height: 34rpx;
|
||||
}
|
||||
.tab.active {
|
||||
color: #e87532;
|
||||
font-weight: 700;
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
Component({
|
||||
properties: {
|
||||
brand: { type: Object, value: {} },
|
||||
presentation: { type: Object, value: {} },
|
||||
offerings: { type: Array, value: [] },
|
||||
},
|
||||
methods: {
|
||||
open(e) {
|
||||
this.triggerEvent("open", { id: e.currentTarget.dataset.id });
|
||||
},
|
||||
inquire() {
|
||||
this.triggerEvent("inquire");
|
||||
},
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1 @@
|
||||
{ "component": true }
|
||||
@@ -0,0 +1 @@
|
||||
<view class="page"><view class="head"><text class="eyebrow">{{brand.name}}</text><text class="title">{{presentation.title || '今日菜单'}}</text><text class="subtitle">{{presentation.subtitle || '现做现吃,支持提前预留和团体定制'}}</text></view><view class="tip">米饭免费续,口味和忌口都可以在预约时备注</view><view class="list"><view wx:for="{{offerings}}" wx:key="id" class="dish" data-id="{{item.id}}" bindtap="open"><image src="{{item.image}}" mode="aspectFill"/><view class="copy"><text class="name">{{item.name}}</text><text class="desc">{{item.desc}}</text><view class="bottom"><text class="price">{{item.priceRange}}</text><text class="action">查看详情 ›</text></view></view></view></view><button class="cta" bindtap="inquire">团体活动 / 定制餐咨询</button></view>
|
||||
@@ -0,0 +1,93 @@
|
||||
.page {
|
||||
min-height: 100vh;
|
||||
padding: 28rpx;
|
||||
background: #fff8f0;
|
||||
color: #29231f;
|
||||
}
|
||||
.eyebrow {
|
||||
display: block;
|
||||
color: #d2652b;
|
||||
font-size: 19rpx;
|
||||
letter-spacing: 2rpx;
|
||||
}
|
||||
.title {
|
||||
display: block;
|
||||
margin-top: 8rpx;
|
||||
font-size: 42rpx;
|
||||
font-weight: 700;
|
||||
}
|
||||
.subtitle {
|
||||
display: block;
|
||||
margin-top: 8rpx;
|
||||
color: #8c7b70;
|
||||
font-size: 22rpx;
|
||||
}
|
||||
.tip {
|
||||
margin-top: 22rpx;
|
||||
padding: 18rpx 20rpx;
|
||||
border: 1rpx solid #f8d7b4;
|
||||
border-radius: 18rpx;
|
||||
background: #fff7df;
|
||||
color: #8c5c39;
|
||||
font-size: 21rpx;
|
||||
}
|
||||
.list {
|
||||
margin-top: 18rpx;
|
||||
}
|
||||
.dish {
|
||||
display: flex;
|
||||
gap: 18rpx;
|
||||
margin-bottom: 16rpx;
|
||||
padding: 14rpx;
|
||||
border: 1rpx solid #f2e2d6;
|
||||
border-radius: 22rpx;
|
||||
background: #fff;
|
||||
}
|
||||
.dish image {
|
||||
width: 196rpx;
|
||||
height: 196rpx;
|
||||
flex: none;
|
||||
border-radius: 16rpx;
|
||||
background: #f3e7de;
|
||||
}
|
||||
.copy {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
flex: 1;
|
||||
flex-direction: column;
|
||||
}
|
||||
.name {
|
||||
font-size: 26rpx;
|
||||
font-weight: 700;
|
||||
line-height: 1.45;
|
||||
}
|
||||
.desc {
|
||||
margin-top: 10rpx;
|
||||
color: #8c7b70;
|
||||
font-size: 20rpx;
|
||||
line-height: 1.5;
|
||||
}
|
||||
.bottom {
|
||||
display: flex;
|
||||
align-items: end;
|
||||
justify-content: space-between;
|
||||
margin-top: auto;
|
||||
}
|
||||
.price {
|
||||
color: #dc6429;
|
||||
font-size: 25rpx;
|
||||
font-weight: 700;
|
||||
}
|
||||
.action {
|
||||
color: #d2652b;
|
||||
font-size: 20rpx;
|
||||
}
|
||||
.cta {
|
||||
margin: 22rpx 0 0;
|
||||
height: 76rpx;
|
||||
border-radius: 20rpx;
|
||||
background: #e87532;
|
||||
color: #fff;
|
||||
font-size: 24rpx;
|
||||
line-height: 76rpx;
|
||||
}
|
||||
@@ -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 @@
|
||||
{ "component": true }
|
||||
@@ -0,0 +1 @@
|
||||
<view class="page"><view class="profile-card"><image src="{{brand.avatarUrl}}" mode="aspectFill"/><text class="name">{{brand.founder}}</text><text class="title">{{brand.title}}</text><text class="bio">{{brand.slogan}}</text><view class="contact"><button bindtap="call">电话联系</button><button bindtap="copy">复制微信</button></view></view><view class="card"><text class="card-title">{{presentation.coverageTitle || '出摊与配送'}}</text><text>{{brand.studioAddress || brand.address}}</text><text>{{presentation.coverageContent || '支持校园摊位自取、宿舍配送和班级活动定制。'}}</text></view><view class="card" bindtap="records"><text class="card-title">我的预约记录</text><text>{{recordsCount}} 条记录 ›</text></view></view>
|
||||
@@ -0,0 +1,72 @@
|
||||
.page {
|
||||
min-height: 100vh;
|
||||
padding: 28rpx;
|
||||
background: #fff8f0;
|
||||
color: #29231f;
|
||||
}
|
||||
.profile-card {
|
||||
padding: 36rpx 28rpx;
|
||||
text-align: center;
|
||||
border-radius: 28rpx;
|
||||
background: #3b2118;
|
||||
color: #fff;
|
||||
}
|
||||
.profile-card image {
|
||||
width: 132rpx;
|
||||
height: 132rpx;
|
||||
border: 5rpx solid #ffbd8e;
|
||||
border-radius: 50%;
|
||||
}
|
||||
.name,
|
||||
.title,
|
||||
.bio,
|
||||
.card-title,
|
||||
.card text {
|
||||
display: block;
|
||||
}
|
||||
.name {
|
||||
margin-top: 18rpx;
|
||||
font-size: 36rpx;
|
||||
font-weight: 700;
|
||||
}
|
||||
.title {
|
||||
margin-top: 6rpx;
|
||||
color: #ffc79f;
|
||||
font-size: 22rpx;
|
||||
}
|
||||
.bio {
|
||||
margin-top: 16rpx;
|
||||
color: #ffe5d2;
|
||||
font-size: 23rpx;
|
||||
line-height: 1.6;
|
||||
}
|
||||
.contact {
|
||||
display: flex;
|
||||
gap: 14rpx;
|
||||
margin-top: 24rpx;
|
||||
}
|
||||
.contact button {
|
||||
flex: 1;
|
||||
height: 70rpx;
|
||||
border-radius: 18rpx;
|
||||
background: #e87532;
|
||||
color: #fff;
|
||||
font-size: 22rpx;
|
||||
line-height: 70rpx;
|
||||
}
|
||||
.card {
|
||||
margin-top: 18rpx;
|
||||
padding: 26rpx;
|
||||
border: 1rpx solid #f2d9c6;
|
||||
border-radius: 22rpx;
|
||||
background: #fff;
|
||||
color: #7a6a60;
|
||||
font-size: 22rpx;
|
||||
line-height: 1.7;
|
||||
}
|
||||
.card-title {
|
||||
margin-bottom: 10rpx;
|
||||
color: #4b2b1d;
|
||||
font-size: 27rpx;
|
||||
font-weight: 700;
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
Component({
|
||||
properties: {
|
||||
brand: { type: Object, value: {} },
|
||||
presentation: { type: Object, value: {} },
|
||||
hero: { type: Object, value: {} },
|
||||
trustContent: { type: Object, value: {} },
|
||||
offerings: { type: Array, value: [] },
|
||||
},
|
||||
methods: {
|
||||
selectOffering(event) {
|
||||
this.triggerEvent("select", { id: event.currentTarget.dataset.id });
|
||||
},
|
||||
goWorks() {
|
||||
this.triggerEvent("works");
|
||||
},
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1 @@
|
||||
{ "component": true }
|
||||
@@ -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="{{brand.heroImage}}" 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,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,194 @@
|
||||
.profile {
|
||||
min-height: 100vh;
|
||||
padding: 28rpx 32rpx 56rpx;
|
||||
background: #f7f5f1;
|
||||
color: #252525;
|
||||
}
|
||||
.founder-card {
|
||||
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-top: 20rpx;
|
||||
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;
|
||||
}
|
||||
Reference in new issue
Block a user