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 @@
|
||||
const { loadWorkspaceWithFallback } = require("../../utils/runtime-workspace");
|
||||
Page({
|
||||
data: { brand: {}, templateKey: "", presentation: {}, navigation: [], loading: true },
|
||||
onLoad() {
|
||||
loadWorkspaceWithFallback()
|
||||
.then((workspace) =>
|
||||
this.setData({
|
||||
brand: workspace.brand || {},
|
||||
templateKey: workspace.visualTemplate?.key || "",
|
||||
presentation: workspace.brand?.visualPresentation?.home || {},
|
||||
navigation: workspace.navigation || [],
|
||||
loading: false,
|
||||
}),
|
||||
)
|
||||
.catch(() => this.setData({ loading: false }));
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "出摊服务",
|
||||
"usingComponents": { "runtime-tab-bar": "/components/runtime-tab-bar/runtime-tab-bar" }
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="page"><view class="head"><text class="eyebrow">出摊与服务</text><text class="title">今天在哪里,怎么取餐</text><text class="sub">{{brand.hours || '营业时间以当天通知为准'}}</text></view><view class="card"><text class="card-title">固定出摊与取餐</text><text>{{brand.studioAddress || brand.address || '校园生活区附近'}}</text><text>支持摊位自取、校内配送,以及班级和社团活动定制。</text></view><view class="card"><text class="card-title">定制餐品流程</text><text>1. 提交人数、时间和口味需求</text><text>2. 主理人确认菜单与取餐方式</text><text>3. 当天现做并按约定时间交付</text></view><runtime-tab-bar template-key="{{templateKey}}" active="service" /></view>
|
||||
@@ -0,0 +1,42 @@
|
||||
.page {
|
||||
min-height: 100vh;
|
||||
padding: 28rpx 32rpx 150rpx;
|
||||
background: #fff8f0;
|
||||
color: #29231f;
|
||||
}
|
||||
.head {
|
||||
padding: 38rpx 4rpx 28rpx;
|
||||
}
|
||||
.eyebrow {
|
||||
display: block;
|
||||
color: #c65c28;
|
||||
font-size: 22rpx;
|
||||
}
|
||||
.title {
|
||||
display: block;
|
||||
margin-top: 12rpx;
|
||||
font-size: 42rpx;
|
||||
font-weight: 800;
|
||||
}
|
||||
.sub {
|
||||
display: block;
|
||||
margin-top: 12rpx;
|
||||
color: #7a6a60;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
.card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 14rpx;
|
||||
margin-bottom: 22rpx;
|
||||
padding: 28rpx;
|
||||
border: 1rpx solid #f2d9c6;
|
||||
border-radius: 24rpx;
|
||||
background: #fff;
|
||||
line-height: 1.7;
|
||||
}
|
||||
.card-title {
|
||||
color: #4f3020;
|
||||
font-size: 29rpx;
|
||||
font-weight: 700;
|
||||
}
|
||||
Reference in new issue
Block a user