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