fix: 收敛模板编辑发布契约并还原餐饮页面视觉
No files matched your search
|
After Width: | Height: | Size: 2.5 KiB |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#d97706" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M12 6v6l4 2"/></svg>
|
||||
|
After Width: | Height: | Size: 238 B |
|
After Width: | Height: | Size: 1.1 KiB |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#f97316" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><path d="M14 2v6h6M9 15l2 2 4-4"/></svg>
|
||||
|
After Width: | Height: | Size: 287 B |
|
After Width: | Height: | Size: 2.0 KiB |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#f97316" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m11 17 2 2a2 2 0 1 0 3-3M14 14l3 3a2 2 0 1 0 3-3l-5-5M8 17l3 3a2 2 0 0 0 3-3M2 12l3-7 5 1 4-1 7 3 1 4-3 2M5 14l-3-2M5 14l3 3M10 6 7 9a2 2 0 0 0 3 3l3-3"/></svg>
|
||||
|
After Width: | Height: | Size: 346 B |
|
After Width: | Height: | Size: 105 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#10b981" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22s8-4 8-11V5l-8-3-8 3v6c0 7 8 11 8 11z"/><path d="m9 12 2 2 4-4"/></svg>
|
||||
|
After Width: | Height: | Size: 263 B |
|
After Width: | Height: | Size: 1.6 KiB |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#3b82f6" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m12 3 1.9 5.8L20 11l-6.1 2.2L12 19l-1.9-5.8L4 11l6.1-2.2L12 3zM20 2v4M18 4h4M3 17v4M1 19h4"/></svg>
|
||||
|
After Width: | Height: | Size: 285 B |
|
After Width: | Height: | Size: 2.4 KiB |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#3b82f6" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="5.5" cy="17.5" r="3.5"/><circle cx="18.5" cy="17.5" r="3.5"/><path d="m15 6 2 4h3M12 17.5l-5-8H4m3 0h9l-4 8 5-8M9 6h3"/></svg>
|
||||
|
After Width: | Height: | Size: 315 B |
|
After Width: | Height: | Size: 2.4 KiB |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#f97316" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="5.5" cy="17.5" r="3.5"/><circle cx="18.5" cy="17.5" r="3.5"/><path d="m15 6 2 4h3M12 17.5l-5-8H4m3 0h9l-4 8 5-8M9 6h3"/></svg>
|
||||
|
After Width: | Height: | Size: 315 B |
|
After Width: | Height: | Size: 3.4 KiB |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#f97316" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M12 6v6l4 2"/></svg>
|
||||
|
After Width: | Height: | Size: 238 B |
|
After Width: | Height: | Size: 1.7 KiB |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#f97316" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 16v-2.4a3 3 0 0 1 6 0V16a3 3 0 0 1-6 0Zm10-8V5.6a3 3 0 0 1 6 0V8a3 3 0 0 1-6 0Z"/><path d="M7 21h0M17 13h0"/></svg>
|
||||
|
After Width: | Height: | Size: 304 B |
|
After Width: | Height: | Size: 674 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#f97316" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M10 6h11M10 12h11M10 18h11M3 5h1v2M3 11h2l-2 2h2M3 17h2v2H3"/></svg>
|
||||
|
After Width: | Height: | Size: 254 B |
@@ -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;
|
||||
}
|
||||
@@ -4,7 +4,10 @@ const { openPage } = require("../../utils/navigation");
|
||||
Page({
|
||||
data: {
|
||||
brand: {},
|
||||
trustItems: [],
|
||||
credentials: [],
|
||||
cases: [],
|
||||
promises: [],
|
||||
presentation: {},
|
||||
records: [],
|
||||
error: "",
|
||||
},
|
||||
@@ -13,7 +16,19 @@ Page({
|
||||
.then((workspace) =>
|
||||
this.setData({
|
||||
brand: workspace.brand || {},
|
||||
trustItems: workspace.trustItems || [],
|
||||
presentation: workspace.brand?.visualPresentation?.profile || {},
|
||||
credentials: (workspace.trustItems || []).filter((item) => item.type === "credential"),
|
||||
cases: (workspace.trustItems || [])
|
||||
.filter((item) => item.type === "case")
|
||||
.map((item) => ({
|
||||
...item,
|
||||
entries: (item.config?.entries || []).map((entry, index) => ({
|
||||
...entry,
|
||||
index,
|
||||
tone: index % 3,
|
||||
})),
|
||||
})),
|
||||
promises: (workspace.trustItems || []).filter((item) => item.type === "promise"),
|
||||
records: [],
|
||||
}),
|
||||
)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"navigationBarTitleText": "我的订单",
|
||||
"navigationBarTitleText": "主理人",
|
||||
"navigationBarBackgroundColor": "#FBF7F1",
|
||||
"navigationBarTextStyle": "black",
|
||||
"usingComponents": {
|
||||
|
||||
@@ -1 +1,35 @@
|
||||
<view class="page"><view wx:if="{{error}}" class="runtime-error">{{error}}</view><block wx:else><acheng-profile brand="{{brand}}" presentation="{{brand.visualPresentation.profile}}" records-count="{{records.length}}" bind:call="call" bind:copy="copyWechat" bind:records="recordsPage" /><block wx:for="{{trustItems}}" wx:key="title"><view wx:if="{{item.type === 'coverage' || item.type === 'credential' || item.type === 'case' || item.type === 'promise'}}" class="card"><text class="card-title">{{item.title}}</text><text wx:if="{{item.summary}}">{{item.summary}}</text><text>{{item.content}}</text></view></block></block></view>
|
||||
<view class="page">
|
||||
<view wx:if="{{error}}" class="runtime-error">{{error}}</view>
|
||||
<block wx:else>
|
||||
<acheng-profile brand="{{brand}}" credentials="{{credentials}}" presentation="{{presentation}}" />
|
||||
<view wx:for="{{cases}}" wx:key="id" class="case-card">
|
||||
<view class="section-heading"><image class="heading-icon" src="/assets/owner/handshake.png" /><text>{{item.title}}</text></view>
|
||||
<text wx:if="{{item.summary}}" class="summary">{{item.summary}}</text>
|
||||
<view wx:if="{{item.entries.length}}" class="case-list">
|
||||
<view wx:for="{{item.entries}}" wx:for-item="entry" wx:key="index" class="case-row tone-{{entry.tone}}">
|
||||
<view class="case-badge">{{entry.badge}}</view>
|
||||
<view class="case-copy"><text class="case-title">{{entry.title}}</text><text wx:if="{{entry.detail}}" class="case-detail">{{entry.detail}}</text></view>
|
||||
<text wx:if="{{entry.result}}" class="case-result">{{entry.result}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<text wx:elif="{{item.content}}" class="content">{{item.content}}</text>
|
||||
</view>
|
||||
<view wx:for="{{promises}}" wx:key="id" class="promise-card">
|
||||
<view class="section-heading"><image class="promise-icon" src="/assets/owner/clock.png" /><text>{{item.title}}</text></view>
|
||||
<text wx:if="{{item.summary}}" class="summary">{{item.summary}}</text>
|
||||
<view wx:if="{{item.config.commitments.length}}" class="commitment-list">
|
||||
<view wx:for="{{item.config.commitments}}" wx:for-item="commitment" wx:key="label" class="commitment">
|
||||
<view class="dot"/><view class="commitment-copy"><text class="commitment-label">{{commitment.label}}:</text><text>{{commitment.detail}}</text><text wx:if="{{commitment.highlight}}" class="highlight">{{commitment.highlight}}</text></view>
|
||||
</view>
|
||||
</view>
|
||||
<text wx:elif="{{item.content}}" class="content">{{item.content}}</text>
|
||||
</view>
|
||||
<view class="utilities">
|
||||
<view wx:if="{{brand.contactPhone || brand.contactWechat}}" class="contact-actions">
|
||||
<button wx:if="{{brand.contactPhone}}" bindtap="call">电话联系</button>
|
||||
<button wx:if="{{brand.contactWechat}}" bindtap="copyWechat">复制微信</button>
|
||||
</view>
|
||||
<view class="records-entry" bindtap="recordsPage"><text>{{presentation.recordsTitle || '我的咨询记录'}}</text><text>{{records.length}} {{presentation.recordsCountUnit || '条记录'}} ›</text></view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
@@ -1,197 +1,195 @@
|
||||
.page {
|
||||
min-height: 100vh;
|
||||
padding: 28rpx 32rpx 56rpx;
|
||||
background: #f7f5f1;
|
||||
color: #252525;
|
||||
box-sizing: border-box;
|
||||
padding: 32rpx 32rpx 64rpx;
|
||||
background: #fafaf9;
|
||||
color: #292524;
|
||||
}
|
||||
.runtime-error {
|
||||
margin: 48rpx 0;
|
||||
padding: 28rpx;
|
||||
border: 1rpx solid #e6ded5;
|
||||
border-radius: 14rpx;
|
||||
border-radius: 24rpx;
|
||||
background: #fff;
|
||||
color: #8a6846;
|
||||
font-size: 25rpx;
|
||||
color: #9a3412;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
.case-card,
|
||||
.promise-card {
|
||||
margin-top: 32rpx;
|
||||
padding: 32rpx;
|
||||
border: 1rpx solid #f5f5f4;
|
||||
border-radius: 48rpx;
|
||||
background: #fff;
|
||||
box-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.04);
|
||||
}
|
||||
.section-heading {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16rpx;
|
||||
color: #1c1917;
|
||||
font-size: 28rpx;
|
||||
font-weight: 700;
|
||||
}
|
||||
.heading-icon {
|
||||
width: 32rpx;
|
||||
height: 32rpx;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.summary {
|
||||
display: block;
|
||||
margin: 8rpx 0 24rpx;
|
||||
color: #78716c;
|
||||
font-size: 22rpx;
|
||||
line-height: 1.6;
|
||||
}
|
||||
.contact-card {
|
||||
padding: 34rpx 30rpx;
|
||||
background: #202221;
|
||||
color: #fff;
|
||||
border-radius: 18rpx;
|
||||
.content {
|
||||
display: block;
|
||||
margin-top: 16rpx;
|
||||
font-size: 22rpx;
|
||||
line-height: 1.65;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
.identity {
|
||||
.case-list {
|
||||
margin-top: 24rpx;
|
||||
}
|
||||
.case-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 20rpx;
|
||||
margin-top: 16rpx;
|
||||
padding: 20rpx;
|
||||
border: 1rpx solid #f5f5f4;
|
||||
border-radius: 32rpx;
|
||||
background: #fafaf9;
|
||||
}
|
||||
.avatar {
|
||||
width: 88rpx;
|
||||
height: 88rpx;
|
||||
border: 2rpx solid #8a6846;
|
||||
border-radius: 50%;
|
||||
.case-row:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
.case-badge {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: #d9c8b2;
|
||||
font: 42rpx serif;
|
||||
}
|
||||
.founder {
|
||||
display: block;
|
||||
font: 34rpx serif;
|
||||
}
|
||||
.role {
|
||||
display: block;
|
||||
margin-top: 8rpx;
|
||||
color: #d9c8b2;
|
||||
font-size: 22rpx;
|
||||
}
|
||||
.contact-line {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-top: 22rpx;
|
||||
padding-top: 18rpx;
|
||||
border-top: 1rpx solid rgba(255, 255, 255, 0.12);
|
||||
color: #aaa;
|
||||
font-size: 23rpx;
|
||||
}
|
||||
.contact-line > view {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10rpx;
|
||||
color: #fff;
|
||||
}
|
||||
.contact-line button {
|
||||
margin: 0;
|
||||
padding: 0 14rpx;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
color: #d9c8b2;
|
||||
font-size: 21rpx;
|
||||
}
|
||||
.records-entry,
|
||||
.info-card {
|
||||
margin-top: 20rpx;
|
||||
padding: 28rpx;
|
||||
background: #fff;
|
||||
border: 1rpx solid #e6ded5;
|
||||
border-radius: 16rpx;
|
||||
}
|
||||
.records-entry {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
font-size: 26rpx;
|
||||
}
|
||||
.records-entry text:last-child {
|
||||
color: #8a6846;
|
||||
}
|
||||
.card-title {
|
||||
display: block;
|
||||
flex-shrink: 0;
|
||||
width: 56rpx;
|
||||
height: 56rpx;
|
||||
border-radius: 24rpx;
|
||||
background: #ffedd5;
|
||||
color: #ea580c;
|
||||
font-size: 24rpx;
|
||||
font-weight: 700;
|
||||
font-size: 27rpx;
|
||||
}
|
||||
.proof-grid {
|
||||
display: flex;
|
||||
gap: 12rpx;
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
.proof-grid view {
|
||||
.case-copy {
|
||||
flex: 1;
|
||||
padding: 18rpx 8rpx;
|
||||
text-align: center;
|
||||
border-radius: 18rpx;
|
||||
background: #fff;
|
||||
border: 1rpx solid #f2d9c6;
|
||||
min-width: 0;
|
||||
}
|
||||
.proof-grid text {
|
||||
.case-title {
|
||||
display: block;
|
||||
color: #7a6a60;
|
||||
font-size: 18rpx;
|
||||
color: #1c1917;
|
||||
font-size: 22rpx;
|
||||
font-weight: 700;
|
||||
line-height: 1.5;
|
||||
}
|
||||
.proof-grid .proof-icon {
|
||||
color: #e87532;
|
||||
font-size: 30rpx;
|
||||
.case-detail {
|
||||
display: block;
|
||||
margin-top: 4rpx;
|
||||
color: #a8a29e;
|
||||
font-size: 20rpx;
|
||||
line-height: 1.5;
|
||||
}
|
||||
.promise {
|
||||
margin-top: 18rpx;
|
||||
padding: 22rpx;
|
||||
border-radius: 20rpx;
|
||||
background: #fff3d8;
|
||||
color: #8c5c39;
|
||||
font-size: 21rpx;
|
||||
.case-result {
|
||||
flex-shrink: 0;
|
||||
max-width: 110rpx;
|
||||
padding: 4rpx 16rpx;
|
||||
border-radius: 99rpx;
|
||||
background: #ecfdf5;
|
||||
color: #059669;
|
||||
font-size: 20rpx;
|
||||
line-height: 1.5;
|
||||
text-align: center;
|
||||
}
|
||||
.tone-1 .case-badge {
|
||||
background: #dbeafe;
|
||||
color: #2563eb;
|
||||
}
|
||||
.tone-1 .case-result {
|
||||
background: #eff6ff;
|
||||
color: #2563eb;
|
||||
}
|
||||
.tone-2 .case-badge {
|
||||
background: #f3e8ff;
|
||||
color: #9333ea;
|
||||
}
|
||||
.tone-2 .case-result {
|
||||
background: #faf5ff;
|
||||
color: #9333ea;
|
||||
}
|
||||
.promise-card {
|
||||
border-color: #fde68a;
|
||||
background: rgba(255, 251, 235, 0.8);
|
||||
color: #78350f;
|
||||
box-shadow: none;
|
||||
}
|
||||
.promise-card .section-heading {
|
||||
gap: 12rpx;
|
||||
color: #78350f;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
.promise-icon {
|
||||
width: 28rpx;
|
||||
height: 28rpx;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.commitment-list {
|
||||
margin-top: 16rpx;
|
||||
}
|
||||
.commitment {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 16rpx;
|
||||
margin-top: 12rpx;
|
||||
color: #78350f;
|
||||
font-size: 22rpx;
|
||||
line-height: 1.6;
|
||||
}
|
||||
.note,
|
||||
.bullet {
|
||||
display: block;
|
||||
margin-top: 16rpx;
|
||||
color: #77736b;
|
||||
font-size: 24rpx;
|
||||
line-height: 1.75;
|
||||
.dot {
|
||||
flex-shrink: 0;
|
||||
width: 12rpx;
|
||||
height: 12rpx;
|
||||
margin-top: 12rpx;
|
||||
border-radius: 50%;
|
||||
background: #f59e0b;
|
||||
}
|
||||
.entry-icon {
|
||||
width: 64rpx;
|
||||
height: 64rpx;
|
||||
border-radius: 12rpx;
|
||||
background: rgba(138, 104, 70, 0.1);
|
||||
color: #8a6846;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.records-entry {
|
||||
align-items: center;
|
||||
gap: 18rpx;
|
||||
}
|
||||
.entry-copy {
|
||||
.commitment-copy {
|
||||
flex: 1;
|
||||
}
|
||||
.entry-copy text {
|
||||
display: block;
|
||||
}
|
||||
.entry-copy text:last-child {
|
||||
margin-top: 8rpx;
|
||||
color: #77736b;
|
||||
font-size: 21rpx;
|
||||
}
|
||||
.count {
|
||||
color: #8a6846;
|
||||
font-size: 22rpx;
|
||||
}
|
||||
.card-title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12rpx;
|
||||
color: #202221;
|
||||
}
|
||||
.note {
|
||||
padding: 20rpx;
|
||||
background: #f7f5f1;
|
||||
border: 1rpx solid #e6ded5;
|
||||
border-radius: 12rpx;
|
||||
}
|
||||
.note-title {
|
||||
display: block;
|
||||
margin-bottom: 6rpx;
|
||||
color: #202221;
|
||||
.commitment-label {
|
||||
font-weight: 700;
|
||||
}
|
||||
.bullet {
|
||||
padding-left: 8rpx;
|
||||
.highlight {
|
||||
margin-left: 8rpx;
|
||||
color: #ea580c;
|
||||
font-weight: 700;
|
||||
}
|
||||
.contact-line button {
|
||||
.utilities {
|
||||
margin-top: 32rpx;
|
||||
}
|
||||
.contact-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 6rpx;
|
||||
height: 44rpx;
|
||||
line-height: 44rpx;
|
||||
white-space: nowrap;
|
||||
gap: 16rpx;
|
||||
}
|
||||
.contact-line button t-icon {
|
||||
display: inline-flex;
|
||||
vertical-align: middle;
|
||||
.contact-actions button {
|
||||
flex: 1;
|
||||
margin: 0;
|
||||
border-radius: 24rpx;
|
||||
background: #fff7ed;
|
||||
color: #c2410c;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
.page {
|
||||
padding-bottom: 150rpx;
|
||||
.records-entry {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 28rpx 4rpx;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
.records-entry text:last-child {
|
||||
color: #78716c;
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
<view class="page">
|
||||
<view wx:if="{{error}}" class="runtime-error">{{error}}</view>
|
||||
<acheng-home wx:else brand="{{brand}}" presentation="{{presentation}}" trust-content="{{trustContent}}" offerings="{{offerings}}" bind:select="selectOffering" bind:inquiry="goInquiry" bind:offerings="goWorks" bind:service="goService" />
|
||||
<acheng-home wx:else brand="{{brand}}" presentation="{{presentation}}" trust-items="{{trustItems}}" offerings="{{offerings}}" bind:select="selectOffering" bind:inquiry="goInquiry" bind:offerings="goWorks" bind:service="goService" />
|
||||
</view>
|
||||
@@ -31,14 +31,15 @@ Page({
|
||||
// 字段全部来自后台已发布的咨询表单,模板只负责呈现。
|
||||
fields: [],
|
||||
values: {},
|
||||
displayValues: {},
|
||||
formId: "",
|
||||
submitting: false,
|
||||
formError: "",
|
||||
presentation: {},
|
||||
},
|
||||
onLoad(options) {
|
||||
this.offeringId = options.offeringId || "";
|
||||
loadWorkspaceWithFallback()
|
||||
this.offeringId = options?.offeringId || "";
|
||||
return loadWorkspaceWithFallback()
|
||||
.then((workspace) => {
|
||||
this.forms = workspace.inquiryForms || [];
|
||||
this.setData({ presentation: workspace.brand?.visualPresentation?.inquiry || {} });
|
||||
@@ -54,8 +55,15 @@ Page({
|
||||
forms.find((item) => item.target === "brand") ||
|
||||
forms[0];
|
||||
const formId = form?.key || form?.id || "";
|
||||
if (formId !== this.data.formId)
|
||||
this.setData({ formId, fields: form?.fields || [], values: {} });
|
||||
if (formId !== this.data.formId) {
|
||||
// 原型中的类型选项为按钮网格,人数/日期和预算/配送各占半行;数据与文案仍来自已发布表单。
|
||||
const fields = (form?.fields || []).map((field) => ({
|
||||
...field,
|
||||
useChips: field.key === "type" && (field.type === "select" || field.type === "radio"),
|
||||
halfWidth: ["people", "date", "budget", "delivery"].includes(field.key),
|
||||
}));
|
||||
this.setData({ formId, fields, values: {}, displayValues: {} });
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
// 本页是 tabBar 页,从详情页进入时参数经 openPage 暂存,而不是通过 onLoad 传入。
|
||||
@@ -90,10 +98,21 @@ Page({
|
||||
switchToForm() {
|
||||
this.setData({ subView: "form" });
|
||||
},
|
||||
chooseChip(e) {
|
||||
const { key, value } = e.currentTarget.dataset;
|
||||
this.setData({ ["values." + key]: value });
|
||||
},
|
||||
choose(e) {
|
||||
const field = this.data.fields.find((item) => item.key === e.currentTarget.dataset.key);
|
||||
const option = field?.options?.[Number(e.detail.value)];
|
||||
if (option) this.setData({ ["values." + field.key]: option.value });
|
||||
if (option)
|
||||
this.setData({
|
||||
["values." + field.key]: option.value,
|
||||
["displayValues." + field.key]: option.label,
|
||||
});
|
||||
},
|
||||
checkboxChange(e) {
|
||||
this.setData({ ["values." + e.currentTarget.dataset.key]: e.detail.value });
|
||||
},
|
||||
input(e) {
|
||||
this.setData({ ["values." + e.currentTarget.dataset.key]: e.detail.value });
|
||||
@@ -101,7 +120,11 @@ Page({
|
||||
submit() {
|
||||
const { values, formId, fields } = this.data;
|
||||
const missing = fields.find(
|
||||
(field) => field.required && (values[field.key] === undefined || values[field.key] === ""),
|
||||
(field) =>
|
||||
field.required &&
|
||||
(values[field.key] === undefined ||
|
||||
values[field.key] === "" ||
|
||||
(Array.isArray(values[field.key]) && !values[field.key].length)),
|
||||
);
|
||||
if (missing) return this.setData({ formError: "请填写" + missing.label });
|
||||
if (!formId) return this.setData({ formError: "咨询表单暂不可用,请稍后重试" });
|
||||
|
||||
@@ -4,12 +4,16 @@
|
||||
<view class="form-card">
|
||||
<text class="form-title">{{presentation.title || '咨询 / 预订'}}</text>
|
||||
<text wx:if="{{presentation.subtitle}}" class="form-desc">{{presentation.subtitle}}</text>
|
||||
<view wx:for="{{fields}}" wx:key="key" class="field">
|
||||
<text class="label">{{item.label}} <b wx:if="{{item.required}}">*</b></text>
|
||||
<picker wx:if="{{item.type === 'select' || item.type === 'radio'}}" range="{{item.options}}" range-key="label" data-key="{{item.key}}" bindchange="choose"><view class="picker">{{values[item.key] || '请选择' + item.label}}</view></picker>
|
||||
<view class="form-fields">
|
||||
<view wx:for="{{fields}}" wx:key="key" class="field {{item.halfWidth ? 'field-half' : ''}}">
|
||||
<text class="label">{{item.label}} <text wx:if="{{item.required}}" class="required">*</text></text>
|
||||
<view wx:if="{{item.useChips}}" class="type-grid"><view wx:for="{{item.options}}" wx:for-item="option" wx:key="value" class="type-option {{values[item.key] === option.value ? 'selected' : ''}}" data-key="{{item.key}}" data-value="{{option.value}}" bindtap="chooseChip">{{option.label}}</view></view>
|
||||
<picker wx:elif="{{item.type === 'select' || item.type === 'radio'}}" range="{{item.options}}" range-key="label" data-key="{{item.key}}" bindchange="choose"><view class="picker">{{displayValues[item.key] || '请选择' + item.label}}</view></picker>
|
||||
<picker wx:elif="{{item.type === 'date'}}" mode="date" value="{{values[item.key]}}" data-key="{{item.key}}" bindchange="input"><view class="picker">{{values[item.key] || '请选择日期'}}</view></picker>
|
||||
<textarea wx:elif="{{item.type === 'textarea'}}" value="{{values[item.key]}}" data-key="{{item.key}}" bindinput="input" placeholder="{{item.placeholder || '请填写' + item.label}}" />
|
||||
<input wx:else type="{{item.type === 'number' ? 'number' : 'text'}}" value="{{values[item.key]}}" data-key="{{item.key}}" bindinput="input" placeholder="{{item.placeholder || '请填写' + item.label}}" />
|
||||
<checkbox-group wx:elif="{{item.type === 'multi-select' || item.type === 'checkbox'}}" data-key="{{item.key}}" bindchange="checkboxChange"><label wx:for="{{item.options}}" wx:for-item="option" wx:key="value"><checkbox value="{{option.value}}" />{{option.label}}</label></checkbox-group>
|
||||
<input wx:else type="{{item.type === 'number' || item.type === 'phone' || item.type === 'tel' ? 'number' : 'text'}}" value="{{values[item.key]}}" data-key="{{item.key}}" bindinput="input" placeholder="{{item.placeholder || '请填写' + item.label}}" />
|
||||
</view>
|
||||
</view>
|
||||
<view wx:if="{{formError}}" class="error">! {{formError}}</view>
|
||||
<view wx:if="{{presentation.promise}}" class="promise"><text>{{presentation.promise}}</text></view>
|
||||
@@ -23,7 +27,7 @@
|
||||
<view class="history-head"><text class="record-id">单号 #{{item.id}}</text><text class="record-status">{{item.status}}</text></view>
|
||||
<text class="history-title">{{item.title}}</text>
|
||||
<text wx:for="{{item.summary}}" wx:for-item="line" wx:key="key">{{line.label}}:{{line.value}}</text>
|
||||
<view wx:if="{{item.replyNote}}" class="reply"><b>处理回复:</b>{{item.replyNote}}</view>
|
||||
<view wx:if="{{item.replyNote}}" class="reply"><text class="reply-label">处理回复:</text>{{item.replyNote}}</view>
|
||||
<view class="history-foot">提交时间:{{item.createdAt}}</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
.page {
|
||||
min-height: 100vh;
|
||||
padding: 28rpx 32rpx 150rpx;
|
||||
padding: 32rpx 32rpx 64rpx;
|
||||
background: #f7f5f1;
|
||||
color: #292725;
|
||||
}
|
||||
@@ -18,7 +18,7 @@
|
||||
.sub-tab {
|
||||
flex: 1;
|
||||
padding: 18rpx 4rpx;
|
||||
border-radius: 14rpx;
|
||||
border-radius: 24rpx;
|
||||
text-align: center;
|
||||
}
|
||||
.sub-tab.active {
|
||||
@@ -27,35 +27,45 @@
|
||||
box-shadow: 0 4rpx 10rpx rgba(60, 45, 30, 0.08);
|
||||
}
|
||||
.form-card {
|
||||
padding: 30rpx 28rpx;
|
||||
padding: 32rpx;
|
||||
border: 1rpx solid #eee9e3;
|
||||
border-radius: 28rpx;
|
||||
border-radius: 48rpx;
|
||||
background: #fff;
|
||||
box-shadow: 0 8rpx 20rpx rgba(60, 45, 30, 0.035);
|
||||
}
|
||||
.form-title {
|
||||
display: block;
|
||||
color: #282522;
|
||||
font-size: 30rpx;
|
||||
font-size: 28rpx;
|
||||
font-weight: 700;
|
||||
}
|
||||
.form-desc {
|
||||
display: block;
|
||||
margin-top: 8rpx;
|
||||
color: #8e877f;
|
||||
font-size: 19rpx;
|
||||
font-size: 22rpx;
|
||||
}
|
||||
.form-fields {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
||||
gap: 28rpx 16rpx;
|
||||
margin-top: 28rpx;
|
||||
}
|
||||
.field {
|
||||
margin-top: 26rpx;
|
||||
grid-column: span 2;
|
||||
min-width: 0;
|
||||
}
|
||||
.field-half {
|
||||
grid-column: span 1;
|
||||
}
|
||||
.label {
|
||||
display: block;
|
||||
margin-bottom: 12rpx;
|
||||
color: #4b4640;
|
||||
font-size: 21rpx;
|
||||
font-size: 24rpx;
|
||||
font-weight: 700;
|
||||
}
|
||||
.label b {
|
||||
.required {
|
||||
color: #e35237;
|
||||
}
|
||||
.type-grid {
|
||||
@@ -66,10 +76,10 @@
|
||||
.type-option {
|
||||
padding: 17rpx 6rpx;
|
||||
border: 1rpx solid #e5e0da;
|
||||
border-radius: 14rpx;
|
||||
border-radius: 24rpx;
|
||||
background: #fbfaf8;
|
||||
color: #686159;
|
||||
font-size: 18rpx;
|
||||
font-size: 22rpx;
|
||||
text-align: center;
|
||||
}
|
||||
.type-option.selected {
|
||||
@@ -92,26 +102,28 @@ textarea,
|
||||
min-height: 76rpx;
|
||||
padding: 20rpx;
|
||||
border: 1rpx solid #e6e0d9;
|
||||
border-radius: 14rpx;
|
||||
border-radius: 24rpx;
|
||||
background: #fbfaf8;
|
||||
color: #59534c;
|
||||
font-size: 19rpx;
|
||||
font-size: 22rpx;
|
||||
line-height: 1.5;
|
||||
}
|
||||
textarea {
|
||||
min-height: 120rpx;
|
||||
}
|
||||
.picker {
|
||||
white-space: normal;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.error {
|
||||
margin-top: 22rpx;
|
||||
padding: 16rpx;
|
||||
border: 1rpx solid #f4c5bc;
|
||||
border-radius: 14rpx;
|
||||
border-radius: 24rpx;
|
||||
background: #fff2f0;
|
||||
color: #c34131;
|
||||
font-size: 19rpx;
|
||||
font-size: 22rpx;
|
||||
}
|
||||
.promise {
|
||||
display: flex;
|
||||
@@ -123,7 +135,7 @@ textarea {
|
||||
border-radius: 16rpx;
|
||||
background: #faf9f7;
|
||||
color: #7b746c;
|
||||
font-size: 18rpx;
|
||||
font-size: 22rpx;
|
||||
line-height: 1.5;
|
||||
}
|
||||
.promise:first-letter {
|
||||
@@ -165,7 +177,7 @@ textarea {
|
||||
border-radius: 16rpx;
|
||||
background: #f18029;
|
||||
color: #fff;
|
||||
font-size: 21rpx;
|
||||
font-size: 24rpx;
|
||||
line-height: 70rpx;
|
||||
}
|
||||
.history-card {
|
||||
@@ -178,7 +190,7 @@ textarea {
|
||||
border-radius: 24rpx;
|
||||
background: #fff;
|
||||
color: #716a62;
|
||||
font-size: 19rpx;
|
||||
font-size: 22rpx;
|
||||
line-height: 1.5;
|
||||
}
|
||||
.history-head {
|
||||
@@ -190,7 +202,7 @@ textarea {
|
||||
.record-id {
|
||||
color: #a39c94;
|
||||
font-family: monospace;
|
||||
font-size: 18rpx;
|
||||
font-size: 22rpx;
|
||||
}
|
||||
.record-status {
|
||||
padding: 5rpx 12rpx;
|
||||
@@ -207,11 +219,11 @@ textarea {
|
||||
.reply {
|
||||
padding: 16rpx;
|
||||
border: 1rpx solid #f5d8bc;
|
||||
border-radius: 14rpx;
|
||||
border-radius: 24rpx;
|
||||
background: #fff8ef;
|
||||
color: #6f5744;
|
||||
}
|
||||
.reply b {
|
||||
.reply-label {
|
||||
color: #e2762c;
|
||||
}
|
||||
.history-foot {
|
||||
|
||||
@@ -1,18 +1,71 @@
|
||||
const { loadWorkspaceWithFallback } = require("../../utils/runtime-workspace");
|
||||
const { openPage } = require("../../utils/navigation");
|
||||
// 每种内容对应一个固定视觉区域,按已配置记录优先选择,避免旧记录遮住编辑结果。
|
||||
function selectSlot(items, type) {
|
||||
return (
|
||||
items
|
||||
.filter((item) => item.type === type)
|
||||
.sort(
|
||||
(a, b) =>
|
||||
Number(Object.keys(b.config || {}).length > 0) -
|
||||
Number(Object.keys(a.config || {}).length > 0),
|
||||
)[0] || null
|
||||
);
|
||||
}
|
||||
Page({
|
||||
data: { brand: {}, presentation: {}, trustItems: [], loading: true },
|
||||
data: {
|
||||
brand: {},
|
||||
presentation: {},
|
||||
schedule: null,
|
||||
coverage: null,
|
||||
process: null,
|
||||
loading: true,
|
||||
error: false,
|
||||
},
|
||||
onLoad() {
|
||||
loadWorkspaceWithFallback()
|
||||
.then((workspace) =>
|
||||
this.load();
|
||||
},
|
||||
load() {
|
||||
this.setData({ loading: true, error: false });
|
||||
return loadWorkspaceWithFallback()
|
||||
.then((workspace) => {
|
||||
const items = workspace.trustItems || [];
|
||||
const schedule = selectSlot(items, "schedule");
|
||||
const coverage = selectSlot(items, "coverage");
|
||||
const process = selectSlot(items, "process");
|
||||
const config = schedule?.config || {};
|
||||
const rows = [
|
||||
{
|
||||
title: config.weekdayLabel,
|
||||
detail: config.weekdayDetail,
|
||||
hours: config.weekdayHours,
|
||||
tag: config.weekdayTag,
|
||||
tone: "orange",
|
||||
},
|
||||
{
|
||||
title: config.weekendLabel,
|
||||
detail: config.weekendDetail,
|
||||
hours: config.weekendHours,
|
||||
tag: config.weekendTag,
|
||||
tone: "blue",
|
||||
},
|
||||
].filter((row) => row.title && row.detail);
|
||||
const steps = Array.isArray(process?.config?.steps)
|
||||
? process.config.steps
|
||||
.filter((step) => step.title && step.detail)
|
||||
.map((step, index) => ({ ...step, index }))
|
||||
: [];
|
||||
this.setData({
|
||||
brand: workspace.brand || {},
|
||||
presentation: workspace.brand?.visualPresentation?.service || {},
|
||||
trustItems: workspace.trustItems || [],
|
||||
schedule: rows.length ? { ...schedule, rows } : null,
|
||||
coverage:
|
||||
coverage?.config?.pickupDetail && coverage?.config?.deliveryDetail ? coverage : null,
|
||||
process: steps.length ? { ...process, steps } : null,
|
||||
loading: false,
|
||||
}),
|
||||
)
|
||||
.catch(() => this.setData({ loading: false }));
|
||||
});
|
||||
})
|
||||
.catch(() => this.setData({ loading: false, error: true }));
|
||||
},
|
||||
inquire() {
|
||||
openPage("/pages/inquiry/index");
|
||||
|
||||
@@ -1,7 +1,16 @@
|
||||
<view class="page service-page">
|
||||
<block wx:for="{{trustItems}}" wx:key="title">
|
||||
<view wx:if="{{item.type === 'schedule'}}" class="service-card"><view class="card-head"><view class="head-title"><text class="icon">◷</text><text>{{item.title}}</text></view></view><view class="schedule schedule-primary"><view class="schedule-main"><view class="schedule-title"><text class="dot orange"></text><text>{{item.summary || item.title}}</text></view><text class="schedule-line">{{item.content}}</text></view></view></view>
|
||||
<view wx:if="{{item.type === 'coverage'}}" class="service-card"><view class="card-title"><text class="icon">⌁</text><text>{{item.title}}</text></view><view class="delivery-grid"><view class="delivery-item"><text class="delivery-title orange-text">{{presentation.coverageLabel || '服务范围'}}</text><text>{{item.content}}</text></view></view></view>
|
||||
<view wx:if="{{item.type === 'process'}}" class="service-card process-card"><view class="card-title"><text class="icon">☷</text><text>{{item.title}}</text></view><text wx:if="{{item.summary}}" class="card-sub">{{item.summary}}</text><view class="steps"><view wx:for="{{item.lines}}" wx:for-item="step" wx:key="*this" class="step"><text class="step-no">{{index + 1}}</text><view><text class="step-title">{{presentation.stepLabel || '步骤'}} {{index + 1}}</text><text>{{step}}</text></view></view></view><view class="process-foot"><text>{{item.content}}</text><button bindtap="inquire">{{presentation.processAction || '立即咨询'}} <text>→</text></button></view></view>
|
||||
<view wx:if="{{loading}}" class="empty-state">正在加载出摊服务…</view>
|
||||
<view wx:elif="{{error}}" class="empty-state">服务信息加载失败<button bindtap="load">重试</button></view>
|
||||
<block wx:else>
|
||||
<view wx:if="{{schedule}}" class="service-card schedule-card">
|
||||
<view class="card-head"><view class="head-title"><image class="icon" src="../../assets/service/clock.png" /><text>{{schedule.title}}</text></view><text wx:if="{{schedule.config.status}}" class="status-pill">{{schedule.config.status}}</text></view>
|
||||
<view wx:for="{{schedule.rows}}" wx:for-item="row" wx:key="tone" class="schedule {{row.tone === 'blue' ? 'schedule-weekend' : 'schedule-primary'}}">
|
||||
<view class="schedule-row-head"><view class="schedule-title"><text class="dot {{row.tone}}"></text><text>{{row.title}}</text></view><text wx:if="{{row.tag}}" class="schedule-tag {{row.tone === 'blue' ? 'blue-tag' : 'orange-tag'}}">{{row.tag}}</text></view>
|
||||
<text class="schedule-line">{{row.detail}}</text><text wx:if="{{row.hours}}" class="schedule-muted">{{row.hours}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view wx:if="{{coverage}}" class="service-card coverage-card"><view class="simple-title"><image class="icon" src="../../assets/service/bike.png" /><text>{{coverage.title}}</text></view><view class="delivery-grid"><view class="delivery-item"><view class="delivery-title"><image class="small-icon" src="../../assets/service/footprints.png" /><text>{{coverage.config.pickupTitle}}</text></view><text>{{coverage.config.pickupDetail}}</text></view><view class="delivery-item"><view class="delivery-title"><image class="small-icon" src="../../assets/service/bike-blue.png" /><text>{{coverage.config.deliveryTitle}}</text></view><text>{{coverage.config.deliveryDetail}}</text></view></view></view>
|
||||
<view wx:if="{{process}}" class="service-card process-card"><view class="simple-title"><image class="icon" src="../../assets/service/list.png" /><text>{{process.title}}</text></view><text wx:if="{{process.config.intro}}" class="card-sub">{{process.config.intro}}</text><view class="steps"><view wx:for="{{process.steps}}" wx:for-item="step" wx:key="index" class="step"><text class="step-no">{{index + 1}}</text><view><text class="step-title">{{step.title}}</text><text>{{step.detail}}</text></view></view></view><view class="process-foot"><view><text wx:if="{{process.config.minimumNote}}">{{process.config.minimumNote}}</text><text wx:if="{{process.config.minimumNote && process.config.refundNote}}" class="divider">|</text><text wx:if="{{process.config.refundNote}}">{{process.config.refundNote}}</text></view><button bindtap="inquire">{{presentation.processAction || '立即咨询'}} <text>→</text></button></view></view>
|
||||
<view wx:if="{{!schedule && !coverage && !process}}" class="empty-state">出摊服务信息正在完善中</view>
|
||||
</block>
|
||||
</view>
|
||||
@@ -1,14 +1,14 @@
|
||||
.page {
|
||||
min-height: 100vh;
|
||||
padding: 28rpx 32rpx 150rpx;
|
||||
padding: 32rpx 32rpx 64rpx;
|
||||
background: #f7f5f1;
|
||||
color: #292725;
|
||||
}
|
||||
.service-card {
|
||||
margin-bottom: 24rpx;
|
||||
padding: 30rpx 28rpx;
|
||||
margin-bottom: 28rpx;
|
||||
padding: 32rpx;
|
||||
border: 1rpx solid #eee9e3;
|
||||
border-radius: 28rpx;
|
||||
border-radius: 48rpx;
|
||||
background: #fff;
|
||||
box-shadow: 0 8rpx 20rpx rgba(60, 45, 30, 0.035);
|
||||
}
|
||||
@@ -20,9 +20,17 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.simple-title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16rpx;
|
||||
color: #302d29;
|
||||
font-size: 28rpx;
|
||||
font-weight: 700;
|
||||
}
|
||||
.card-head {
|
||||
justify-content: space-between;
|
||||
padding-bottom: 22rpx;
|
||||
padding-bottom: 24rpx;
|
||||
border-bottom: 1rpx solid #eeeae5;
|
||||
}
|
||||
.head-title,
|
||||
@@ -46,13 +54,10 @@
|
||||
font-size: 20rpx;
|
||||
}
|
||||
.schedule {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 12rpx;
|
||||
margin-top: 22rpx;
|
||||
padding: 22rpx 18rpx;
|
||||
margin-top: 20rpx;
|
||||
padding: 24rpx;
|
||||
border: 1rpx solid #f1ddd0;
|
||||
border-radius: 20rpx;
|
||||
border-radius: 32rpx;
|
||||
}
|
||||
.schedule-primary {
|
||||
background: #fffaf6;
|
||||
@@ -67,7 +72,7 @@
|
||||
.schedule-title {
|
||||
gap: 12rpx;
|
||||
color: #272522;
|
||||
font-size: 22rpx;
|
||||
font-size: 24rpx;
|
||||
font-weight: 700;
|
||||
}
|
||||
.dot {
|
||||
@@ -88,13 +93,13 @@
|
||||
margin-top: 12rpx;
|
||||
margin-left: 26rpx;
|
||||
color: #655e56;
|
||||
font-size: 20rpx;
|
||||
font-size: 22rpx;
|
||||
line-height: 1.45;
|
||||
}
|
||||
.schedule-muted {
|
||||
margin-top: 5rpx;
|
||||
color: #9a948c;
|
||||
font-size: 18rpx;
|
||||
font-size: 22rpx;
|
||||
}
|
||||
.schedule-tag {
|
||||
height: max-content;
|
||||
@@ -114,22 +119,22 @@
|
||||
.delivery-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 18rpx;
|
||||
margin-top: 22rpx;
|
||||
gap: 20rpx;
|
||||
margin-top: 24rpx;
|
||||
}
|
||||
.delivery-item {
|
||||
padding: 20rpx;
|
||||
padding: 24rpx;
|
||||
border: 1rpx solid #eeeae5;
|
||||
border-radius: 20rpx;
|
||||
border-radius: 32rpx;
|
||||
background: #fbfaf8;
|
||||
color: #777169;
|
||||
font-size: 19rpx;
|
||||
font-size: 22rpx;
|
||||
line-height: 1.6;
|
||||
}
|
||||
.delivery-title {
|
||||
display: block;
|
||||
margin-bottom: 8rpx;
|
||||
font-size: 22rpx;
|
||||
font-size: 24rpx;
|
||||
font-weight: 700;
|
||||
}
|
||||
.orange-text {
|
||||
@@ -142,10 +147,10 @@
|
||||
display: block;
|
||||
margin-top: 12rpx;
|
||||
color: #8b857e;
|
||||
font-size: 19rpx;
|
||||
font-size: 22rpx;
|
||||
}
|
||||
.steps {
|
||||
margin: 24rpx 0 0 14rpx;
|
||||
margin: 28rpx 0 0 16rpx;
|
||||
padding-left: 26rpx;
|
||||
border-left: 3rpx solid #f7cda9;
|
||||
}
|
||||
@@ -155,7 +160,7 @@
|
||||
gap: 18rpx;
|
||||
margin-bottom: 26rpx;
|
||||
color: #79736c;
|
||||
font-size: 19rpx;
|
||||
font-size: 22rpx;
|
||||
line-height: 1.55;
|
||||
}
|
||||
.step:last-child {
|
||||
@@ -173,24 +178,24 @@
|
||||
border-radius: 50%;
|
||||
background: #ef7c26;
|
||||
color: #fff;
|
||||
font-size: 18rpx;
|
||||
font-size: 24rpx;
|
||||
font-weight: 700;
|
||||
}
|
||||
.step-title {
|
||||
display: block;
|
||||
margin-bottom: 5rpx;
|
||||
color: #3d3934;
|
||||
font-size: 22rpx;
|
||||
font-size: 24rpx;
|
||||
font-weight: 700;
|
||||
}
|
||||
.process-foot {
|
||||
justify-content: space-between;
|
||||
gap: 12rpx;
|
||||
margin-top: 28rpx;
|
||||
padding-top: 22rpx;
|
||||
margin-top: 32rpx;
|
||||
padding-top: 24rpx;
|
||||
border-top: 1rpx solid #eeeae5;
|
||||
color: #777169;
|
||||
font-size: 18rpx;
|
||||
font-size: 22rpx;
|
||||
line-height: 1.5;
|
||||
}
|
||||
.strong {
|
||||
@@ -215,3 +220,31 @@
|
||||
margin-left: 8rpx;
|
||||
font-size: 26rpx;
|
||||
}
|
||||
|
||||
.schedule-row-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 8rpx;
|
||||
}
|
||||
.icon {
|
||||
width: 32rpx;
|
||||
height: 32rpx;
|
||||
flex: none;
|
||||
}
|
||||
.small-icon {
|
||||
width: 28rpx;
|
||||
height: 28rpx;
|
||||
margin-right: 12rpx;
|
||||
flex: none;
|
||||
}
|
||||
.delivery-title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
color: #1c1917;
|
||||
}
|
||||
.empty-state {
|
||||
padding: 64rpx 0;
|
||||
text-align: center;
|
||||
color: #78716c;
|
||||
}
|
||||
@@ -134,7 +134,8 @@
|
||||
{
|
||||
"key": "identity",
|
||||
"title": "摊位与主理人",
|
||||
"description": "让访客知道谁在出餐、在哪里可以找到你。",
|
||||
"description": "配置主理人姓名与身份,介绍、头像和联系方式在品牌资料中编辑。",
|
||||
"page": "profile",
|
||||
"target": "brand",
|
||||
"fields": [
|
||||
{
|
||||
@@ -145,13 +146,6 @@
|
||||
"required": true,
|
||||
"placeholder": "例如:阿成"
|
||||
},
|
||||
{
|
||||
"key": "portrait",
|
||||
"binding": "brand.config.avatarUrl",
|
||||
"label": "主理人照片",
|
||||
"help": "使用清晰、真实的照片,让顾客知道是谁在认真做餐。",
|
||||
"input": "image"
|
||||
},
|
||||
{
|
||||
"key": "title",
|
||||
"binding": "brand.config.title",
|
||||
@@ -161,29 +155,29 @@
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"key": "slogan",
|
||||
"binding": "brand.config.slogan",
|
||||
"label": "想对顾客说的一句话",
|
||||
"input": "textarea",
|
||||
"maxLength": 80
|
||||
},
|
||||
{
|
||||
"key": "studioAddress",
|
||||
"binding": "brand.config.studioAddress",
|
||||
"label": "出摊地点或服务范围",
|
||||
"key": "badge",
|
||||
"binding": "brand.config.visualPresentation.profile.badge",
|
||||
"label": "写真角标",
|
||||
"input": "text",
|
||||
"required": true
|
||||
"help": "显示在主理人写真上,可填写经验或服务定位。"
|
||||
},
|
||||
{
|
||||
"key": "phone",
|
||||
"binding": "brand.config.phone",
|
||||
"label": "公开联系电话",
|
||||
"input": "phone"
|
||||
"key": "storyLead",
|
||||
"binding": "brand.config.visualPresentation.profile.storyLead",
|
||||
"label": "故事引言",
|
||||
"input": "textarea",
|
||||
"help": "故事开头的强调段落,下面的正文使用品牌简介。"
|
||||
},
|
||||
{
|
||||
"key": "wechat",
|
||||
"binding": "brand.config.wechat",
|
||||
"label": "公开微信号",
|
||||
"key": "recordsTitle",
|
||||
"binding": "brand.config.visualPresentation.profile.recordsTitle",
|
||||
"label": "记录入口文案",
|
||||
"input": "text"
|
||||
},
|
||||
{
|
||||
"key": "recordsCountUnit",
|
||||
"binding": "brand.config.visualPresentation.profile.recordsCountUnit",
|
||||
"label": "记录数量单位",
|
||||
"input": "text"
|
||||
}
|
||||
]
|
||||
@@ -192,6 +186,7 @@
|
||||
"key": "home",
|
||||
"title": "首页出摊信息",
|
||||
"description": "说明今天在哪里、何时营业,以及餐品有什么特点。",
|
||||
"page": "home",
|
||||
"target": "brand",
|
||||
"fields": [
|
||||
{
|
||||
@@ -216,18 +211,6 @@
|
||||
"input": "text",
|
||||
"placeholder": "例如:17:00 - 22:30 · 今日营业中"
|
||||
},
|
||||
{
|
||||
"key": "coverageContent",
|
||||
"binding": "brand.config.visualPresentation.profile.coverageContent",
|
||||
"label": "取餐与配送说明",
|
||||
"input": "textarea"
|
||||
},
|
||||
{
|
||||
"key": "coverageTitle",
|
||||
"binding": "brand.config.visualPresentation.profile.coverageTitle",
|
||||
"label": "服务方式标题",
|
||||
"input": "text"
|
||||
},
|
||||
{
|
||||
"key": "worksEyebrow",
|
||||
"binding": "brand.config.visualPresentation.home.worksEyebrow",
|
||||
@@ -251,23 +234,10 @@
|
||||
{
|
||||
"key": "service",
|
||||
"title": "出摊服务页说明",
|
||||
"description": "设置出摊服务页的区块标题和咨询入口文字;具体时间、范围和流程内容在信任内容中维护。",
|
||||
"description": "设置出摊服务页的咨询按钮;日程、取餐配送和流程在对应内容编辑器中维护。",
|
||||
"page": "service",
|
||||
"target": "brand",
|
||||
"fields": [
|
||||
{
|
||||
"key": "coverageLabel",
|
||||
"binding": "brand.config.visualPresentation.service.coverageLabel",
|
||||
"label": "服务范围标签",
|
||||
"input": "text",
|
||||
"placeholder": "例如:取餐与配送"
|
||||
},
|
||||
{
|
||||
"key": "stepLabel",
|
||||
"binding": "brand.config.visualPresentation.service.stepLabel",
|
||||
"label": "流程步骤标签",
|
||||
"input": "text",
|
||||
"placeholder": "例如:第"
|
||||
},
|
||||
{
|
||||
"key": "processAction",
|
||||
"binding": "brand.config.visualPresentation.service.processAction",
|
||||
@@ -281,6 +251,7 @@
|
||||
"key": "menu",
|
||||
"title": "菜单页说明",
|
||||
"description": "帮助顾客理解日常餐品和团体定制的选择方式。",
|
||||
"page": "offerings",
|
||||
"target": "brand",
|
||||
"fields": [
|
||||
{
|
||||
@@ -309,6 +280,7 @@
|
||||
"key": "booking",
|
||||
"title": "预订与定制",
|
||||
"description": "告诉顾客提交信息后会如何确认餐品和时间。",
|
||||
"page": "inquiry",
|
||||
"target": "inquiry",
|
||||
"fields": [
|
||||
{
|
||||
@@ -344,6 +316,7 @@
|
||||
"key": "dishDetail",
|
||||
"title": "餐品与服务详情",
|
||||
"description": "每项餐品或服务单独填写;没有内容的详情区块不会展示。",
|
||||
"page": "detail",
|
||||
"target": "offering",
|
||||
"fields": [
|
||||
{
|
||||
@@ -394,7 +367,12 @@
|
||||
"label": "餐品特色",
|
||||
"input": "list",
|
||||
"itemValueKey": "value",
|
||||
"itemFields": [{ "key": "value", "label": "特色" }]
|
||||
"itemFields": [
|
||||
{
|
||||
"key": "value",
|
||||
"label": "特色"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"key": "crafts",
|
||||
@@ -402,7 +380,12 @@
|
||||
"label": "制作方式",
|
||||
"input": "list",
|
||||
"itemValueKey": "value",
|
||||
"itemFields": [{ "key": "value", "label": "制作说明" }]
|
||||
"itemFields": [
|
||||
{
|
||||
"key": "value",
|
||||
"label": "制作说明"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"key": "materialsList",
|
||||
@@ -410,8 +393,14 @@
|
||||
"label": "食材与搭配",
|
||||
"input": "list",
|
||||
"itemFields": [
|
||||
{ "key": "name", "label": "食材或搭配" },
|
||||
{ "key": "spec", "label": "说明" }
|
||||
{
|
||||
"key": "name",
|
||||
"label": "食材或搭配"
|
||||
},
|
||||
{
|
||||
"key": "spec",
|
||||
"label": "说明"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -420,6 +409,7 @@
|
||||
"key": "detailCopy",
|
||||
"title": "详情页说明",
|
||||
"description": "解释价格、餐品内容和咨询后会怎样处理。",
|
||||
"page": "detail",
|
||||
"target": "brand",
|
||||
"fields": [
|
||||
{
|
||||
@@ -477,6 +467,7 @@
|
||||
"key": "successCopy",
|
||||
"title": "提交成功页",
|
||||
"description": "顾客提交后看到的确认信息与后续预期。",
|
||||
"page": "success",
|
||||
"target": "brand",
|
||||
"fields": [
|
||||
{
|
||||
@@ -516,6 +507,7 @@
|
||||
"key": "recordsCopy",
|
||||
"title": "咨询记录页",
|
||||
"description": "顾客查看预订与咨询处理进度时看到的内容。",
|
||||
"page": "records",
|
||||
"target": "brand",
|
||||
"fields": [
|
||||
{
|
||||
@@ -555,36 +547,297 @@
|
||||
"trustContentTypes": [
|
||||
{
|
||||
"type": "schedule",
|
||||
"label": "出摊与营业安排",
|
||||
"help": "说明固定出摊时间、临时营业安排或接受预订的时段。",
|
||||
"placeholder": "例如:周一至周五 17:00 - 22:30",
|
||||
"required": true
|
||||
"label": "每周出摊安排",
|
||||
"adminFields": {
|
||||
"title": "安排标题",
|
||||
"summary": "主要时段(周一至周五)",
|
||||
"content": "其他时段与补充安排(周末等)",
|
||||
"summaryHelp": "此摘要作为出摊服务页的主要时段展示。",
|
||||
"summaryPlaceholder": "周一至周五 17:00 - 22:30"
|
||||
},
|
||||
"configFields": [
|
||||
{
|
||||
"key": "status",
|
||||
"binding": "trust.config.status",
|
||||
"label": "状态标签",
|
||||
"input": "text",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"key": "weekdayLabel",
|
||||
"binding": "trust.config.weekdayLabel",
|
||||
"label": "工作日标题",
|
||||
"input": "text",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"key": "weekdayTag",
|
||||
"binding": "trust.config.weekdayTag",
|
||||
"label": "工作日标签",
|
||||
"input": "text",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"key": "weekdayDetail",
|
||||
"binding": "trust.config.weekdayDetail",
|
||||
"label": "工作日地点",
|
||||
"input": "textarea",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"key": "weekdayHours",
|
||||
"binding": "trust.config.weekdayHours",
|
||||
"label": "工作日营业时间",
|
||||
"input": "text",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"key": "weekendLabel",
|
||||
"binding": "trust.config.weekendLabel",
|
||||
"label": "周末标题",
|
||||
"input": "text",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"key": "weekendTag",
|
||||
"binding": "trust.config.weekendTag",
|
||||
"label": "周末标签",
|
||||
"input": "text",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"key": "weekendDetail",
|
||||
"binding": "trust.config.weekendDetail",
|
||||
"label": "周末白天安排",
|
||||
"input": "textarea",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"key": "weekendHours",
|
||||
"binding": "trust.config.weekendHours",
|
||||
"label": "周末晚间安排",
|
||||
"input": "text",
|
||||
"required": false
|
||||
}
|
||||
],
|
||||
"hideStandardFields": ["summary", "content"],
|
||||
"pages": ["service"],
|
||||
"help": "分别编辑工作日和周末两张日程小卡,不再使用摘要或正文拼接时间。",
|
||||
"placeholder": "例如:\n周一至周五 17:00 - 22:30\n周六、周日承接团体单与夜市流动出摊",
|
||||
"required": true,
|
||||
"maxPublishedItems": 1
|
||||
},
|
||||
{
|
||||
"type": "coverage",
|
||||
"label": "取餐与配送范围",
|
||||
"adminFields": {
|
||||
"title": "范围标题",
|
||||
"summary": "方式摘要",
|
||||
"content": "取餐与配送说明"
|
||||
},
|
||||
"configFields": [
|
||||
{
|
||||
"key": "pickupTitle",
|
||||
"binding": "trust.config.pickupTitle",
|
||||
"label": "现场自取标题",
|
||||
"input": "text",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"key": "pickupDetail",
|
||||
"binding": "trust.config.pickupDetail",
|
||||
"label": "现场自取说明",
|
||||
"input": "textarea",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"key": "deliveryTitle",
|
||||
"binding": "trust.config.deliveryTitle",
|
||||
"label": "校内配送标题",
|
||||
"input": "text",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"key": "deliveryDetail",
|
||||
"binding": "trust.config.deliveryDetail",
|
||||
"label": "校内配送说明",
|
||||
"input": "textarea",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"hideStandardFields": ["summary", "content"],
|
||||
"pages": ["service"],
|
||||
"help": "说明服务地点、取餐方式和可配送范围。",
|
||||
"placeholder": "例如:支持校内宿舍楼下配送",
|
||||
"required": true
|
||||
"required": true,
|
||||
"maxPublishedItems": 1
|
||||
},
|
||||
{
|
||||
"type": "process",
|
||||
"label": "定制餐品流程",
|
||||
"help": "每行写一步,从提出需求到完成交付。",
|
||||
"adminFields": {
|
||||
"title": "流程标题",
|
||||
"summary": "流程摘要",
|
||||
"content": "流程步骤"
|
||||
},
|
||||
"configFields": [
|
||||
{
|
||||
"key": "steps",
|
||||
"binding": "trust.config.steps",
|
||||
"label": "流程步骤",
|
||||
"input": "list",
|
||||
"itemFields": [
|
||||
{
|
||||
"key": "title",
|
||||
"label": "步骤标题",
|
||||
"input": "text",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"key": "detail",
|
||||
"label": "步骤说明",
|
||||
"input": "textarea",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"key": "intro",
|
||||
"binding": "trust.config.intro",
|
||||
"label": "流程介绍",
|
||||
"input": "text"
|
||||
},
|
||||
{
|
||||
"key": "minimumNote",
|
||||
"binding": "trust.config.minimumNote",
|
||||
"label": "起订说明",
|
||||
"input": "text"
|
||||
},
|
||||
{
|
||||
"key": "refundNote",
|
||||
"binding": "trust.config.refundNote",
|
||||
"label": "退改说明",
|
||||
"input": "text"
|
||||
}
|
||||
],
|
||||
"hideStandardFields": ["summary", "content"],
|
||||
"pages": ["service"],
|
||||
"help": "每个步骤分别填写标题和说明,按列表顺序展示。",
|
||||
"placeholder": "例如:提交需求\n确认菜单\n制作交付",
|
||||
"required": true
|
||||
"required": true,
|
||||
"maxPublishedItems": 1
|
||||
},
|
||||
{
|
||||
"type": "credential",
|
||||
"label": "食品安全与制作标准",
|
||||
"help": "填写让顾客放心的资质、卫生或制作标准。"
|
||||
"adminFields": {
|
||||
"title": "证明标题",
|
||||
"summary": "标准摘要",
|
||||
"content": "资质与制作说明"
|
||||
},
|
||||
"pages": ["profile"],
|
||||
"help": "填写让顾客放心的资质、卫生或制作标准。",
|
||||
"configFields": [
|
||||
{
|
||||
"key": "standards",
|
||||
"binding": "trust.config.standards",
|
||||
"label": "资质与卫生小卡",
|
||||
"input": "list",
|
||||
"itemFields": [
|
||||
{
|
||||
"key": "title",
|
||||
"label": "小卡标题",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"key": "detail",
|
||||
"label": "小卡说明",
|
||||
"required": true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{ "type": "case", "label": "客户案例与反馈", "help": "填写代表性订单、活动案例或客户评价。" },
|
||||
{ "type": "promise", "label": "回复与服务承诺", "help": "说明回复时间、退改规则或服务承诺。" }
|
||||
{
|
||||
"type": "case",
|
||||
"label": "客户案例与反馈",
|
||||
"adminFields": {
|
||||
"title": "案例标题",
|
||||
"summary": "案例摘要",
|
||||
"content": "案例与客户反馈"
|
||||
},
|
||||
"pages": ["home", "profile"],
|
||||
"help": "填写代表性订单、活动案例或客户评价。",
|
||||
"configFields": [
|
||||
{
|
||||
"key": "entries",
|
||||
"binding": "trust.config.entries",
|
||||
"label": "合作案例条目",
|
||||
"input": "list",
|
||||
"itemFields": [
|
||||
{
|
||||
"key": "badge",
|
||||
"label": "左侧简称",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"key": "title",
|
||||
"label": "案例名称",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"key": "detail",
|
||||
"label": "交付说明"
|
||||
},
|
||||
{
|
||||
"key": "result",
|
||||
"label": "右侧结果标签"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "promise",
|
||||
"label": "回复与服务承诺",
|
||||
"adminFields": {
|
||||
"title": "承诺标题",
|
||||
"summary": "承诺摘要",
|
||||
"content": "服务承诺详情"
|
||||
},
|
||||
"pages": ["home", "profile"],
|
||||
"help": "说明回复时间、退改规则或服务承诺。",
|
||||
"configFields": [
|
||||
{
|
||||
"key": "commitments",
|
||||
"binding": "trust.config.commitments",
|
||||
"label": "回复承诺条目",
|
||||
"input": "list",
|
||||
"itemFields": [
|
||||
{
|
||||
"key": "label",
|
||||
"label": "情境或时段",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"key": "detail",
|
||||
"label": "承诺说明",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"key": "highlight",
|
||||
"label": "强调文字"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"sampleContent": {
|
||||
"food": {
|
||||
"templateKey": "food",
|
||||
"inquiryFormName": "餐品预订与定制表单",
|
||||
"offerings": [
|
||||
{
|
||||
"kind": "package",
|
||||
@@ -600,8 +853,129 @@
|
||||
}
|
||||
],
|
||||
"trustContent": [
|
||||
{ "type": "credential", "title": "关于主理人", "content": "示例内容,待品牌主理人完善。" },
|
||||
{ "type": "process", "title": "从预订到取餐", "content": "示例内容,待品牌主理人完善。" }
|
||||
{
|
||||
"type": "schedule",
|
||||
"title": "每周出摊固定日程",
|
||||
"content": "",
|
||||
"config": {
|
||||
"status": "准时出摊",
|
||||
"weekdayLabel": "周一至周五(晚餐 + 夜宵档)",
|
||||
"weekdayTag": "常规固定点",
|
||||
"weekdayDetail": "地点:二号校门外小吃商业街 #07 号铺位",
|
||||
"weekdayHours": "营业:17:00 - 22:30(下雨搭防雨防风棚正常营业)",
|
||||
"weekendLabel": "周六、周日(全天接团体单 + 夜市流动)",
|
||||
"weekendTag": "活动专车",
|
||||
"weekendDetail": "白天专供:球赛、班级春游、社团集训、答辩餐",
|
||||
"weekendHours": "晚间:18:00 - 23:00 体育馆南侧流动出摊"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "coverage",
|
||||
"title": "取餐与配送范围",
|
||||
"content": "",
|
||||
"config": {
|
||||
"pickupTitle": "摊位现场自取",
|
||||
"pickupDetail": "小程序提前留餐,报手机尾号即拿,附赠特制加厚保温袋,不用排长龙。",
|
||||
"deliveryTitle": "校内楼下配送",
|
||||
"deliveryDetail": "满 3 份即可送至宿舍楼栋或实验楼门前,阿成骑专用恒温保温箱电动车直送。"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "process",
|
||||
"title": "定制餐品 4 步流程",
|
||||
"content": "",
|
||||
"config": {
|
||||
"intro": "专为班长、社长、活动干事设计的极简排菜流程",
|
||||
"steps": [
|
||||
{
|
||||
"title": "提交基本需求",
|
||||
"detail": "选择活动类型(如生日会、社团换届、答辩加餐)、预估人数与预算。"
|
||||
},
|
||||
{
|
||||
"title": "15 分钟内核算菜单",
|
||||
"detail": "阿成微信直接联系,提供荤素搭配明细与个性化需求(免辣、清真配料等)。"
|
||||
},
|
||||
{
|
||||
"title": "当日新鲜烹饪打包",
|
||||
"detail": "提前 2 小时生鲜采买,铁锅现炒,独立封盒并标注姓名 / 楼栋。"
|
||||
},
|
||||
{
|
||||
"title": "保温直达交付",
|
||||
"detail": "约定时间准时送抵指定场地,确认菜品温度与数量无误后结算。"
|
||||
}
|
||||
],
|
||||
"minimumNote": "起订门槛:6 份起",
|
||||
"refundNote": "退改:出餐前 2 小时全退"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "credential",
|
||||
"title": "食品安全与制作标准",
|
||||
"content": "示例内容,请根据实际资质和制作标准完善。",
|
||||
"config": {
|
||||
"standards": [
|
||||
{
|
||||
"title": "当天采购",
|
||||
"detail": "按当天需求采买"
|
||||
},
|
||||
{
|
||||
"title": "现做现出餐",
|
||||
"detail": "按约定时间制作"
|
||||
},
|
||||
{
|
||||
"title": "食具清洁消毒",
|
||||
"detail": "每日清洁与消毒"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "case",
|
||||
"title": "他们都在阿成这订过餐",
|
||||
"summary": "感谢大学城各学院与社团伙伴的信任",
|
||||
"content": "校街舞社年度专场 · 52 人份\n信息学院科创竞赛 · 连签 5 天\n7 号楼庆功宴 · 8 人定制",
|
||||
"config": {
|
||||
"entries": [
|
||||
{
|
||||
"badge": "舞",
|
||||
"title": "校街舞社年度专场(52 人份)",
|
||||
"detail": "保温箱直达大礼堂后台,贴名分装",
|
||||
"result": "零延误签收"
|
||||
},
|
||||
{
|
||||
"badge": "科",
|
||||
"title": "信息学院科创竞赛封闭备赛",
|
||||
"detail": "每日荤素轮换,附赠每日滋补老汤",
|
||||
"result": "连签 5 天"
|
||||
},
|
||||
{
|
||||
"badge": "寝",
|
||||
"title": "7 号楼庆功宴(8 人定制)",
|
||||
"detail": "定制双拼厚肉饭",
|
||||
"result": "定制餐品"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "promise",
|
||||
"title": "阿成的真实回复承诺",
|
||||
"content": "备料期 15 分钟内联系,出摊高峰 1 小时内回复。",
|
||||
"config": {
|
||||
"commitments": [
|
||||
{
|
||||
"label": "非出摊备料期",
|
||||
"detail": "提交咨询后通过微信或电话沟通。",
|
||||
"highlight": "15 分钟内"
|
||||
},
|
||||
{
|
||||
"label": "出摊晚高峰",
|
||||
"detail": "正在出餐,稍有延迟,会抽空回复。",
|
||||
"highlight": "1 小时内"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
@@ -610,12 +984,30 @@
|
||||
"type": "select",
|
||||
"required": true,
|
||||
"options": [
|
||||
{ "label": "日常留餐", "value": "日常留餐" },
|
||||
{ "label": "宿舍开黑餐", "value": "宿舍开黑餐" },
|
||||
{ "label": "社团 / 班级活动", "value": "社团 / 班级活动" },
|
||||
{ "label": "生日聚会", "value": "生日聚会" },
|
||||
{ "label": "考试周加餐", "value": "考试周加餐" },
|
||||
{ "label": "其他需求", "value": "其他需求" }
|
||||
{
|
||||
"label": "日常留餐",
|
||||
"value": "日常留餐"
|
||||
},
|
||||
{
|
||||
"label": "宿舍开黑餐",
|
||||
"value": "宿舍开黑餐"
|
||||
},
|
||||
{
|
||||
"label": "社团 / 班级活动",
|
||||
"value": "社团 / 班级活动"
|
||||
},
|
||||
{
|
||||
"label": "生日聚会",
|
||||
"value": "生日聚会"
|
||||
},
|
||||
{
|
||||
"label": "考试周加餐",
|
||||
"value": "考试周加餐"
|
||||
},
|
||||
{
|
||||
"label": "其他需求",
|
||||
"value": "其他需求"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -624,23 +1016,52 @@
|
||||
"type": "select",
|
||||
"required": true,
|
||||
"options": [
|
||||
{ "label": "1 人(单点)", "value": "1 人(单点)" },
|
||||
{ "label": "2-4 人(寝室小聚)", "value": "2-4 人(寝室小聚)" },
|
||||
{ "label": "5-10 人(部门小聚)", "value": "5-10 人(部门小聚)" },
|
||||
{ "label": "10-30 人(社团活动)", "value": "10-30 人(社团活动)" },
|
||||
{ "label": "30 人以上(大型活动)", "value": "30 人以上(大型活动)" }
|
||||
{
|
||||
"label": "1 人(单点)",
|
||||
"value": "1 人(单点)"
|
||||
},
|
||||
{
|
||||
"label": "2-4 人(寝室小聚)",
|
||||
"value": "2-4 人(寝室小聚)"
|
||||
},
|
||||
{
|
||||
"label": "5-10 人(部门小聚)",
|
||||
"value": "5-10 人(部门小聚)"
|
||||
},
|
||||
{
|
||||
"label": "10-30 人(社团活动)",
|
||||
"value": "10-30 人(社团活动)"
|
||||
},
|
||||
{
|
||||
"label": "30 人以上(大型活动)",
|
||||
"value": "30 人以上(大型活动)"
|
||||
}
|
||||
]
|
||||
},
|
||||
{ "key": "date", "label": "用餐日期", "type": "date", "required": true },
|
||||
{
|
||||
"key": "date",
|
||||
"label": "用餐日期",
|
||||
"type": "date",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"key": "budget",
|
||||
"label": "人均预算",
|
||||
"type": "select",
|
||||
"required": false,
|
||||
"options": [
|
||||
{ "label": "15 元左右 / 人(实惠)", "value": "15 元左右 / 人(实惠)" },
|
||||
{ "label": "18-22 元 / 人(荤素双拼)", "value": "18-22 元 / 人(荤素双拼)" },
|
||||
{ "label": "25 元以上 / 人(高规格定制)", "value": "25 元以上 / 人(高规格定制)" }
|
||||
{
|
||||
"label": "15 元左右 / 人(实惠)",
|
||||
"value": "15 元左右 / 人(实惠)"
|
||||
},
|
||||
{
|
||||
"label": "18-22 元 / 人(荤素双拼)",
|
||||
"value": "18-22 元 / 人(荤素双拼)"
|
||||
},
|
||||
{
|
||||
"label": "25 元以上 / 人(高规格定制)",
|
||||
"value": "25 元以上 / 人(高规格定制)"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -649,9 +1070,18 @@
|
||||
"type": "select",
|
||||
"required": false,
|
||||
"options": [
|
||||
{ "label": "摊位自取(报手机尾号即拿)", "value": "摊位自取(报手机尾号即拿)" },
|
||||
{ "label": "送至宿舍楼下(满 3 份)", "value": "送至宿舍楼下(满 3 份)" },
|
||||
{ "label": "送至指定教室 / 场地", "value": "送至指定教室 / 场地" }
|
||||
{
|
||||
"label": "摊位自取(报手机尾号即拿)",
|
||||
"value": "摊位自取(报手机尾号即拿)"
|
||||
},
|
||||
{
|
||||
"label": "送至宿舍楼下(满 3 份)",
|
||||
"value": "送至宿舍楼下(满 3 份)"
|
||||
},
|
||||
{
|
||||
"label": "送至指定教室 / 场地",
|
||||
"value": "送至指定教室 / 场地"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -661,7 +1091,12 @@
|
||||
"required": false,
|
||||
"placeholder": "例:现炒牛肉饭 1 份,微辣多浇卤汁,不要香菜"
|
||||
},
|
||||
{ "key": "phone", "label": "联系手机", "type": "phone", "required": true }
|
||||
{
|
||||
"key": "phone",
|
||||
"label": "联系手机",
|
||||
"type": "phone",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"capabilityKey": "booking"
|
||||
}
|
||||
|
||||