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,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;
}