feat(decorate): 首页金刚区替换为各级运营与合伙中心并支持待开发内容展示
这个提交包含在:
@@ -14,16 +14,34 @@
|
||||
content: '',
|
||||
});
|
||||
|
||||
const defaultPendingContent = `<div style="padding: 60px 20px 40px; text-align: center; font-family: sans-serif;">
|
||||
<div style="width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%; background: #FAF5EB; border: 1px solid #E5D3B3; display: flex; align-items: center; justify-content: center;">
|
||||
<span style="font-size: 34px; line-height: 76px;">⏳</span>
|
||||
</div>
|
||||
<div style="font-size: 20px; font-weight: bold; color: #262626; margin-bottom: 12px; letter-spacing: 1px;">待开发,敬请期待</div>
|
||||
<div style="font-size: 14px; color: #8C8C8C; line-height: 1.6; max-width: 280px; margin: 0 auto;">该业务板块正在加速筹备建设中<br/>更多专属权益即将上线</div>
|
||||
</div>`;
|
||||
|
||||
async function getRichTextContent(id) {
|
||||
const { code, data } = await sheep.$api.data.richtext(id);
|
||||
if (code === 1) {
|
||||
state.content = data.content;
|
||||
if (state.title === '') {
|
||||
state.title = data.title;
|
||||
uni.setNavigationBarTitle({
|
||||
title: state.title,
|
||||
});
|
||||
if (!id) {
|
||||
state.content = defaultPendingContent;
|
||||
return;
|
||||
}
|
||||
try {
|
||||
const { code, data } = await sheep.$api.data.richtext(id);
|
||||
if (code === 1 && data?.content) {
|
||||
state.content = data.content;
|
||||
if (state.title === '') {
|
||||
state.title = data.title;
|
||||
uni.setNavigationBarTitle({
|
||||
title: state.title,
|
||||
});
|
||||
}
|
||||
} else {
|
||||
state.content = defaultPendingContent;
|
||||
}
|
||||
} catch (e) {
|
||||
state.content = defaultPendingContent;
|
||||
}
|
||||
}
|
||||
onLoad((options) => {
|
||||
|
||||
@@ -276,8 +276,11 @@
|
||||
}
|
||||
|
||||
.menu-title {
|
||||
font-size: 30rpx;
|
||||
font-size: 24rpx;
|
||||
color: #333;
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
line-height: 1.2;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
在新工单中引用
屏蔽一个用户