提交
This commit is contained in:
1 parent
8be55c08e9
commit
a903fcf6d4
75 files changed
+9547
-124
No files matched your search
@@ -0,0 +1,59 @@
|
||||
<script setup>
|
||||
import { ref } from 'vue'
|
||||
import { onLoad } from '@dcloudio/uni-app'
|
||||
|
||||
const title = ref('业务页')
|
||||
const moduleTitle = ref('')
|
||||
const code = ref('')
|
||||
|
||||
onLoad((query) => {
|
||||
title.value = decodeURIComponent(query?.title || '业务页')
|
||||
moduleTitle.value = decodeURIComponent(query?.module || '')
|
||||
code.value = decodeURIComponent(query?.code || '')
|
||||
})
|
||||
|
||||
const goBack = () => {
|
||||
uni.navigateBack({
|
||||
fail: () => uni.switchTab({ url: '/pages/workbench/workbench' })
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<view class="mp-page">
|
||||
<view class="mp-header">
|
||||
<view class="biz-placeholder__nav" @click="goBack">
|
||||
<text class="biz-placeholder__back">← 工作台</text>
|
||||
</view>
|
||||
<text class="mp-header__title" style="margin-top: 16rpx">{{ title }}</text>
|
||||
<text v-if="moduleTitle" class="mp-header__meta">{{ moduleTitle }}</text>
|
||||
</view>
|
||||
<view class="mp-placeholder">
|
||||
<view class="mp-placeholder__icon" />
|
||||
<text class="mp-placeholder__title">{{ title }}</text>
|
||||
<text class="mp-placeholder__desc">
|
||||
P0 壳层已就绪,业务列表/详情将在后续阶段(P1–P4)实现。
|
||||
</text>
|
||||
<text v-if="code" class="biz-placeholder__code">菜单编码:{{ code }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.biz-placeholder__nav {
|
||||
min-height: 44rpx;
|
||||
}
|
||||
|
||||
.biz-placeholder__back {
|
||||
color: #fff;
|
||||
font-size: 26rpx;
|
||||
opacity: 0.95;
|
||||
}
|
||||
|
||||
.biz-placeholder__code {
|
||||
display: block;
|
||||
margin-top: 12rpx;
|
||||
font-size: 22rpx;
|
||||
color: #9aa8a1;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,11 @@
|
||||
# 小程序 UI Pattern(P0 占位说明)
|
||||
|
||||
完整 Pattern 对照 Demo:
|
||||
|
||||
- `mobile-ui/shanxia-mp-pattern-list.html` — 列表
|
||||
- `mobile-ui/shanxia-mp-pattern-view.html` — 查看详情
|
||||
- `mobile-ui/shanxia-mp-pattern-form.html` — 表单
|
||||
- `mobile-ui/shanxia-mp-pattern-feedback.html` — 弹窗反馈
|
||||
|
||||
P0 已提供壳层样式 `styles/mp-shell.scss` 与业务占位页 `biz-placeholder.vue`。
|
||||
列表/详情/表单可复用组件将在 **P1 首个业务页** 落地时抽取,避免空壳组件无调用方。
|
||||
Reference in new issue
Block a user