feat: 收口多品牌与模板构建基础
This commit is contained in:
1 parent
0425a1c672
commit
77224ea51f
317 files changed
+11290
-1158
No files matched your search
@@ -0,0 +1,36 @@
|
||||
const { customerRequest, customerTokenKey } = require("../../utils/request");
|
||||
const { loadWorkspaceWithFallback } = require("../../utils/runtime-workspace");
|
||||
|
||||
Page({
|
||||
data: { record: {}, presentation: {} },
|
||||
onLoad(options) {
|
||||
loadWorkspaceWithFallback()
|
||||
.then((workspace) =>
|
||||
this.setData({ presentation: workspace.brand?.visualPresentation?.success || {} }),
|
||||
)
|
||||
.catch(() => {});
|
||||
const record = wx.getStorageSync("latestInquirySubmission") || {};
|
||||
if (record.id === options.id) this.setData({ record });
|
||||
if (options.id && wx.getStorageSync(customerTokenKey())) {
|
||||
customerRequest("/customer/inquiry-submissions/" + encodeURIComponent(options.id))
|
||||
.then((submission) =>
|
||||
this.setData({
|
||||
record: {
|
||||
...record,
|
||||
id: submission.id,
|
||||
status: submission.status === "new" ? "待处理" : submission.status,
|
||||
createdAt: submission.createdAt,
|
||||
offeringName: submission.offering?.name || record.offeringName || "品牌合作",
|
||||
},
|
||||
}),
|
||||
)
|
||||
.catch(() => {});
|
||||
}
|
||||
},
|
||||
viewRecords() {
|
||||
wx.redirectTo({ url: "/pages/records/index" });
|
||||
},
|
||||
home() {
|
||||
wx.navigateTo({ url: "/pages/index/index" });
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"navigationBarTitleText": "预订已收到",
|
||||
"navigationBarBackgroundColor": "#F7F5F1",
|
||||
"navigationBarTextStyle": "black",
|
||||
"usingComponents": { "success-summary": "/components/modules/success-summary/success-summary" }
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="food-success"><success-summary record="{{record}}" presentation="{{presentation}}" bind:records="viewRecords" bind:home="home" /></view>
|
||||
@@ -0,0 +1,83 @@
|
||||
.page {
|
||||
min-height: 100vh;
|
||||
padding: 130rpx 48rpx;
|
||||
background: #f7f5f1;
|
||||
color: #252525;
|
||||
}
|
||||
.food-success {
|
||||
min-height: 100vh;
|
||||
padding: 32rpx;
|
||||
background: #fff8f0;
|
||||
}
|
||||
.food-success .primary {
|
||||
background: #e87532;
|
||||
}
|
||||
.food-success .secondary {
|
||||
border-color: #e87532;
|
||||
color: #c65c28;
|
||||
}
|
||||
.mark {
|
||||
width: 120rpx;
|
||||
height: 120rpx;
|
||||
border: 3rpx solid #8a6846;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: #8a6846;
|
||||
font-size: 70rpx;
|
||||
font-family: serif;
|
||||
}
|
||||
.eyebrow {
|
||||
display: block;
|
||||
margin-top: 70rpx;
|
||||
color: #8a6846;
|
||||
font-size: 20rpx;
|
||||
letter-spacing: 4rpx;
|
||||
}
|
||||
.title {
|
||||
display: block;
|
||||
margin-top: 18rpx;
|
||||
font-family: serif;
|
||||
font-size: 58rpx;
|
||||
}
|
||||
.intro {
|
||||
display: block;
|
||||
margin-top: 24rpx;
|
||||
color: #77736b;
|
||||
font-size: 28rpx;
|
||||
line-height: 1.8;
|
||||
}
|
||||
.summary {
|
||||
margin-top: 56rpx;
|
||||
padding: 10rpx 26rpx;
|
||||
background: #fff;
|
||||
}
|
||||
.summary view {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 26rpx 0;
|
||||
border-bottom: 1rpx solid #e6ded5;
|
||||
font-size: 27rpx;
|
||||
}
|
||||
.summary view:last-child {
|
||||
border-bottom: 0;
|
||||
}
|
||||
.summary text:last-child {
|
||||
color: #8a6846;
|
||||
}
|
||||
.primary,
|
||||
.secondary {
|
||||
margin-top: 28rpx;
|
||||
border-radius: 0;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
.primary {
|
||||
background: #252827;
|
||||
color: #fff;
|
||||
}
|
||||
.secondary {
|
||||
background: transparent;
|
||||
border: 1rpx solid #8a6846;
|
||||
color: #8a6846;
|
||||
}
|
||||
Reference in new issue
Block a user