Files
shanxia2.0/miniprogram/pages/common/biz-placeholder.vue
T
2026-07-17 21:59:47 +08:00

60 lines
1.5 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<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>