60 lines
1.5 KiB
Vue
60 lines
1.5 KiB
Vue
<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>
|