fix: 收敛模板编辑发布契约并还原餐饮页面视觉

This commit is contained in:
que01 committed 2026-10-08 13:36:59 +08:00
1 parent 20bcb43534
commit f4061a24bd
102 files changed
+4510 -870

No files matched your search

@@ -1 +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 wx:if="{{presentation.stallTime}}" class="notice-time">{{presentation.stallTime}}</text><text wx:for="{{trustItems}}" wx:if="{{item.type === 'schedule'}}" wx:key="title" class="notice-desc">{{item.content}}</text></view><view class="actions"><button bindtap="openInquiry">咨询 / 预订</button><button class="muted" bindtap="openOfferings">查看餐品</button></view></view><view class="scene-wrap"><view class="section-head"><text class="eyebrow">{{brand.name}}</text></view><image src="{{brand.heroImage}}" mode="aspectFill" bindtap="openService"/></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 wx:for="{{trustItems}}" wx:if="{{item.type === 'promise' || item.type === 'case'}}" wx:key="title" class="promise"><text class="eyebrow light">{{item.title}}</text><text class="promise-title">{{item.summary}}</text><text class="quote">{{item.content}}</text></view></view>
<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 wx:if="{{presentation.stallTime}}" class="notice-time">{{presentation.stallTime}}</text></view><view class="actions"><button bindtap="openInquiry">咨询 / 预订</button><button class="muted" bindtap="openOfferings">查看餐品</button></view></view><view class="scene-wrap"><view class="section-head"><text class="eyebrow">{{brand.name}}</text></view><image class="scene" src="{{brand.heroImage}}" mode="aspectFill" bindtap="openService"/></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 wx:for="{{trustItems}}" wx:if="{{item.type === 'promise' || item.type === 'case'}}" wx:key="title" class="promise"><text class="eyebrow light">{{item.title}}</text><text wx:if="{{item.summary}}" class="promise-title">{{item.summary}}</text><text class="quote">{{item.content}}</text></view></view>
@@ -1,18 +1,7 @@
Component({
properties: {
brand: { type: Object, value: {} },
credentials: { type: Array, value: [] },
presentation: { type: Object, value: {} },
recordsCount: { type: Number, value: 0 },
},
methods: {
call() {
this.triggerEvent("call");
},
copy() {
this.triggerEvent("copy");
},
records() {
this.triggerEvent("records");
},
},
});
@@ -1 +1,23 @@
<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 wx:if="{{presentation.coverageContent}}">{{presentation.coverageContent}}</text></view><view class="card" bindtap="records"><text class="card-title">我的预约记录</text><text>{{recordsCount}} 条记录 ›</text></view></view>
<view class="profile-card">
<view class="portrait">
<image wx:if="{{brand.avatarUrl}}" src="{{brand.avatarUrl}}" mode="aspectFill" />
<view class="identity">
<text wx:if="{{presentation.badge}}" class="badge">{{presentation.badge}}</text>
<text class="name">{{brand.founder || brand.name}}</text>
<text wx:if="{{brand.title}}" class="title">{{brand.title}}</text>
</view>
</view>
<view wx:if="{{brand.description || presentation.storyLead || credentials.length}}" class="story">
<text wx:if="{{presentation.storyLead}}" class="story-lead">{{presentation.storyLead}}</text>
<text wx:if="{{brand.description}}" class="bio">{{brand.description}}</text>
<block wx:for="{{credentials}}" wx:key="id">
<view wx:if="{{item.config.standards.length}}" class="standards">
<view wx:for="{{item.config.standards}}" wx:for-item="standard" wx:for-index="standardIndex" wx:key="title" class="standard">
<image class="standard-icon" src="/assets/owner/{{standardIndex % 3 === 0 ? 'file-check' : standardIndex % 3 === 1 ? 'shield-check' : 'sparkles'}}.png" />
<text class="standard-title">{{standard.title}}</text><text wx:if="{{standard.detail}}" class="standard-detail">{{standard.detail}}</text>
</view>
</view>
<view wx:else class="credential-copy"><text class="credential-title">{{item.title}}</text><text wx:if="{{item.summary}}" class="bio">{{item.summary}}</text><text wx:if="{{item.content}}" class="bio">{{item.content}}</text></view>
</block>
</view>
</view>
@@ -1,72 +1,114 @@
.page {
min-height: 100vh;
padding: 28rpx;
background: #fff8f0;
color: #29231f;
}
.profile-card {
padding: 36rpx 28rpx;
text-align: center;
border-radius: 28rpx;
background: #3b2118;
overflow: hidden;
border: 1rpx solid #f5f5f4;
border-radius: 48rpx;
background: #fff;
box-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.04);
}
.portrait {
position: relative;
height: 416rpx;
background: #e7e5e4;
}
.portrait image {
width: 100%;
height: 100%;
object-position: top;
}
.identity {
position: absolute;
inset: 0;
display: flex;
flex-direction: column;
justify-content: flex-end;
align-items: flex-start;
padding: 32rpx;
background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2), transparent);
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;
.badge {
margin-bottom: 8rpx;
padding: 4rpx 16rpx;
border-radius: 99rpx;
background: #f97316;
color: #fff;
font-size: 20rpx;
font-weight: 700;
}
.name {
margin-top: 18rpx;
font-size: 36rpx;
display: block;
font-size: 32rpx;
font-weight: 700;
}
.title {
margin-top: 6rpx;
color: #ffc79f;
display: block;
margin-top: 4rpx;
color: #e7e5e4;
font-size: 22rpx;
}
.story {
padding: 32rpx;
}
.story-lead {
display: block;
margin-bottom: 20rpx;
color: #1c1917;
font-size: 28rpx;
font-weight: 500;
line-height: 1.6;
white-space: pre-wrap;
}
.bio {
margin-top: 16rpx;
color: #ffe5d2;
font-size: 23rpx;
line-height: 1.6;
display: block;
color: #44403c;
font-size: 24rpx;
line-height: 1.65;
white-space: pre-wrap;
}
.contact {
display: flex;
gap: 14rpx;
margin-top: 24rpx;
.standards {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 16rpx;
margin-top: 32rpx;
padding-top: 24rpx;
border-top: 1rpx solid #f5f5f4;
}
.contact button {
flex: 1;
height: 70rpx;
border-radius: 18rpx;
background: #e87532;
color: #fff;
.standard {
padding: 20rpx 8rpx;
text-align: center;
border: 1rpx solid #f5f5f4;
border-radius: 32rpx;
background: #fafaf9;
}
.standard-icon {
display: block;
width: 40rpx;
height: 40rpx;
margin: 0 auto 8rpx;
}
.standard-title,
.standard-detail {
display: block;
}
.standard-title {
color: #292524;
font-size: 22rpx;
line-height: 70rpx;
font-weight: 700;
}
.card {
margin-top: 18rpx;
padding: 26rpx;
border: 1rpx solid #f2d9c6;
border-radius: 22rpx;
background: #fff;
color: #7a6a60;
font-size: 22rpx;
line-height: 1.7;
.standard-detail {
margin-top: 4rpx;
color: #a8a29e;
font-size: 18rpx;
line-height: 1.5;
}
.card-title {
margin-bottom: 10rpx;
color: #4b2b1d;
font-size: 27rpx;
.credential-copy {
margin-top: 24rpx;
padding-top: 24rpx;
border-top: 1rpx solid #f5f5f4;
}
.credential-title {
display: block;
margin-bottom: 8rpx;
font-size: 24rpx;
font-weight: 700;
}