feat: 收口多品牌与模板构建基础
This commit is contained in:
1 parent
0425a1c672
commit
77224ea51f
317 files changed
+11290
-1158
No files matched your search
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user