feat: 收口多品牌与模板构建基础
This commit is contained in:
1 parent
0425a1c672
commit
77224ea51f
317 files changed
+11290
-1158
No files matched your search
@@ -0,0 +1,18 @@
|
||||
const { loadWorkspaceWithFallback } = require("../../utils/runtime-workspace");
|
||||
Page({
|
||||
data: { brand: {}, presentation: {}, loading: true },
|
||||
onLoad() {
|
||||
loadWorkspaceWithFallback()
|
||||
.then((workspace) =>
|
||||
this.setData({
|
||||
brand: workspace.brand || {},
|
||||
presentation: workspace.brand?.visualPresentation?.home || {},
|
||||
loading: false,
|
||||
}),
|
||||
)
|
||||
.catch(() => this.setData({ loading: false }));
|
||||
},
|
||||
inquire() {
|
||||
wx.navigateTo({ url: "/pages/inquiry/index" });
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "出摊服务",
|
||||
"usingComponents": {}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
<view class="page service-page">
|
||||
<view class="service-card">
|
||||
<view class="card-head"><view class="head-title"><text class="icon">◷</text><text>每周出摊固定日程</text></view><text class="status-pill">准时出摊</text></view>
|
||||
<view class="schedule schedule-primary"><view class="schedule-main"><view class="schedule-title"><text class="dot orange"></text><text>周一至周五(晚餐 + 夜宵档)</text></view><text class="schedule-line">⌖ 地点:二号校门外小吃商业街 #07 号铺位</text><text class="schedule-muted">营业:17:00 - 22:30(下雨搭防雨防风棚正常营业)</text></view><text class="schedule-tag orange-tag">常规固定点</text></view>
|
||||
<view class="schedule schedule-weekend"><view class="schedule-main"><view class="schedule-title"><text class="dot blue"></text><text>周六、周日(全天接团体单 + 夜市流动)</text></view><text class="schedule-line">▣ 白天专供:球赛、班级春游、社团集训、答辩餐</text><text class="schedule-muted">晚间:18:00 - 23:00 体育馆南侧流动出摊</text></view><text class="schedule-tag blue-tag">活动专车</text></view>
|
||||
</view>
|
||||
<view class="service-card"><view class="card-title"><text class="icon">⌁</text><text>取餐与配送范围</text></view><view class="delivery-grid"><view class="delivery-item"><text class="delivery-title orange-text">♧ 摊位现场自取</text><text>小程序提前留餐,报手机尾号即拿,附赠特制加厚保温袋,不用排长龙。</text></view><view class="delivery-item"><text class="delivery-title blue-text">♢ 校内楼下配送</text><text>满 3 份即可送至宿舍楼栋或实验楼门前,阿成骑专用恒温保温箱电动车直送。</text></view></view></view>
|
||||
<view class="service-card process-card"><view class="card-title"><text class="icon">☷</text><text>定制餐品 4 步流程</text></view><text class="card-sub">专为班长、社长、活动干事设计的极简排菜流程</text><view class="steps"><view class="step"><text class="step-no">1</text><view><text class="step-title">提交基本需求</text><text>选择活动类型(如生日会、社团换届、答辩加餐)、预估人数与预算。</text></view></view><view class="step"><text class="step-no">2</text><view><text class="step-title">15 分钟内核算菜单</text><text>阿成微信直接联系,提供荤素搭配明细与个性化需求(免辣、清真配料等)。</text></view></view><view class="step"><text class="step-no">3</text><view><text class="step-title">当日新鲜烹饪打包</text><text>提前 2 小时生鲜采买,铁锅现炒,独立封盒并标注姓名 / 楼栋。</text></view></view><view class="step"><text class="step-no">4</text><view><text class="step-title">保温直达交付</text><text>约定时间准时送抵指定场地,确认菜品温度与数量无误后结算。</text></view></view></view><view class="process-foot"><text>起订门槛:<text class="strong">6 份起</text><text class="divider">|</text>退改:<text class="strong">出餐前 2 小时全退</text></text><button bindtap="inquire">立即咨询 <text>→</text></button></view></view>
|
||||
</view>
|
||||
@@ -0,0 +1,217 @@
|
||||
.page {
|
||||
min-height: 100vh;
|
||||
padding: 28rpx 32rpx 150rpx;
|
||||
background: #f7f5f1;
|
||||
color: #292725;
|
||||
}
|
||||
.service-card {
|
||||
margin-bottom: 24rpx;
|
||||
padding: 30rpx 28rpx;
|
||||
border: 1rpx solid #eee9e3;
|
||||
border-radius: 28rpx;
|
||||
background: #fff;
|
||||
box-shadow: 0 8rpx 20rpx rgba(60, 45, 30, 0.035);
|
||||
}
|
||||
.card-head,
|
||||
.card-title,
|
||||
.head-title,
|
||||
.schedule-title,
|
||||
.process-foot {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.card-head {
|
||||
justify-content: space-between;
|
||||
padding-bottom: 22rpx;
|
||||
border-bottom: 1rpx solid #eeeae5;
|
||||
}
|
||||
.head-title,
|
||||
.card-title {
|
||||
gap: 14rpx;
|
||||
color: #302d29;
|
||||
font-size: 28rpx;
|
||||
font-weight: 700;
|
||||
}
|
||||
.icon {
|
||||
color: #ed7d25;
|
||||
font-size: 34rpx;
|
||||
font-weight: 400;
|
||||
}
|
||||
.status-pill {
|
||||
padding: 7rpx 16rpx;
|
||||
border: 1rpx solid #bce4d1;
|
||||
border-radius: 999rpx;
|
||||
background: #effaf4;
|
||||
color: #16834c;
|
||||
font-size: 20rpx;
|
||||
}
|
||||
.schedule {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 12rpx;
|
||||
margin-top: 22rpx;
|
||||
padding: 22rpx 18rpx;
|
||||
border: 1rpx solid #f1ddd0;
|
||||
border-radius: 20rpx;
|
||||
}
|
||||
.schedule-primary {
|
||||
background: #fffaf6;
|
||||
}
|
||||
.schedule-weekend {
|
||||
border-color: #e6e9ef;
|
||||
background: #fafbfc;
|
||||
}
|
||||
.schedule-main {
|
||||
min-width: 0;
|
||||
}
|
||||
.schedule-title {
|
||||
gap: 12rpx;
|
||||
color: #272522;
|
||||
font-size: 22rpx;
|
||||
font-weight: 700;
|
||||
}
|
||||
.dot {
|
||||
width: 14rpx;
|
||||
height: 14rpx;
|
||||
border-radius: 50%;
|
||||
flex: none;
|
||||
}
|
||||
.orange {
|
||||
background: #f27d27;
|
||||
}
|
||||
.blue {
|
||||
background: #4b84d8;
|
||||
}
|
||||
.schedule-line,
|
||||
.schedule-muted {
|
||||
display: block;
|
||||
margin-top: 12rpx;
|
||||
margin-left: 26rpx;
|
||||
color: #655e56;
|
||||
font-size: 20rpx;
|
||||
line-height: 1.45;
|
||||
}
|
||||
.schedule-muted {
|
||||
margin-top: 5rpx;
|
||||
color: #9a948c;
|
||||
font-size: 18rpx;
|
||||
}
|
||||
.schedule-tag {
|
||||
height: max-content;
|
||||
padding: 6rpx 10rpx;
|
||||
border-radius: 6rpx;
|
||||
font-size: 17rpx;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.orange-tag {
|
||||
background: #fff0e4;
|
||||
color: #bd5d1b;
|
||||
}
|
||||
.blue-tag {
|
||||
background: #eaf2ff;
|
||||
color: #2e63a6;
|
||||
}
|
||||
.delivery-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 18rpx;
|
||||
margin-top: 22rpx;
|
||||
}
|
||||
.delivery-item {
|
||||
padding: 20rpx;
|
||||
border: 1rpx solid #eeeae5;
|
||||
border-radius: 20rpx;
|
||||
background: #fbfaf8;
|
||||
color: #777169;
|
||||
font-size: 19rpx;
|
||||
line-height: 1.6;
|
||||
}
|
||||
.delivery-title {
|
||||
display: block;
|
||||
margin-bottom: 8rpx;
|
||||
font-size: 22rpx;
|
||||
font-weight: 700;
|
||||
}
|
||||
.orange-text {
|
||||
color: #eb7926;
|
||||
}
|
||||
.blue-text {
|
||||
color: #3473c2;
|
||||
}
|
||||
.card-sub {
|
||||
display: block;
|
||||
margin-top: 12rpx;
|
||||
color: #8b857e;
|
||||
font-size: 19rpx;
|
||||
}
|
||||
.steps {
|
||||
margin: 24rpx 0 0 14rpx;
|
||||
padding-left: 26rpx;
|
||||
border-left: 3rpx solid #f7cda9;
|
||||
}
|
||||
.step {
|
||||
position: relative;
|
||||
display: flex;
|
||||
gap: 18rpx;
|
||||
margin-bottom: 26rpx;
|
||||
color: #79736c;
|
||||
font-size: 19rpx;
|
||||
line-height: 1.55;
|
||||
}
|
||||
.step:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.step-no {
|
||||
position: absolute;
|
||||
left: -40rpx;
|
||||
top: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 30rpx;
|
||||
height: 30rpx;
|
||||
border-radius: 50%;
|
||||
background: #ef7c26;
|
||||
color: #fff;
|
||||
font-size: 18rpx;
|
||||
font-weight: 700;
|
||||
}
|
||||
.step-title {
|
||||
display: block;
|
||||
margin-bottom: 5rpx;
|
||||
color: #3d3934;
|
||||
font-size: 22rpx;
|
||||
font-weight: 700;
|
||||
}
|
||||
.process-foot {
|
||||
justify-content: space-between;
|
||||
gap: 12rpx;
|
||||
margin-top: 28rpx;
|
||||
padding-top: 22rpx;
|
||||
border-top: 1rpx solid #eeeae5;
|
||||
color: #777169;
|
||||
font-size: 18rpx;
|
||||
line-height: 1.5;
|
||||
}
|
||||
.strong {
|
||||
color: #34312d;
|
||||
}
|
||||
.divider {
|
||||
margin: 0 8rpx;
|
||||
color: #d0cbc4;
|
||||
}
|
||||
.process-foot button {
|
||||
height: 62rpx;
|
||||
margin: 0;
|
||||
padding: 0 22rpx;
|
||||
border-radius: 16rpx;
|
||||
background: #f18029;
|
||||
color: #fff;
|
||||
font-size: 20rpx;
|
||||
line-height: 62rpx;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.process-foot button text {
|
||||
margin-left: 8rpx;
|
||||
font-size: 26rpx;
|
||||
}
|
||||
Reference in new issue
Block a user