格式化首页,调整流程参数非必传
This commit is contained in:
parent
8ecd234353
commit
b46e29c5e6
@ -48,9 +48,9 @@ import { getByYwIdAndYwTypeApi } from "@/api/base/lcglSpApi";
|
||||
const props = withDefaults(defineProps<{
|
||||
ywId: string,
|
||||
ywType: string,
|
||||
showSqr: boolean,
|
||||
showSpr: boolean,
|
||||
showCsr: boolean,
|
||||
showSqr?: boolean,
|
||||
showSpr?: boolean,
|
||||
showCsr?: boolean,
|
||||
}>(), {
|
||||
ywId: '',
|
||||
ywType: '',
|
||||
|
||||
@ -3,11 +3,11 @@
|
||||
<view class="content-container">
|
||||
<!-- 用户信息卡片 -->
|
||||
<view class="user-info-card" v-if="curXs">
|
||||
<view class="banner-content">
|
||||
<image src="/static/base/home/2211.png" class="banner-img"></image>
|
||||
<view class="banner-overlay">
|
||||
</view>
|
||||
</view>
|
||||
<view class="banner-content">
|
||||
<image src="/static/base/home/2211.png" class="banner-img"></image>
|
||||
<view class="banner-overlay">
|
||||
</view>
|
||||
</view>
|
||||
<!-- 学生信息 -->
|
||||
<XsPicker :is-bar="false" @change="switchXs" />
|
||||
|
||||
@ -24,13 +24,8 @@
|
||||
<view class="title-line"></view>
|
||||
</view>
|
||||
<view class="grid-menu">
|
||||
<view
|
||||
v-for="(item, index) in menuItems"
|
||||
:key="index"
|
||||
v-show="hasPermissionDirect(item.permissionKey)"
|
||||
class="grid-item"
|
||||
@click="handleMenuClick(item)"
|
||||
>
|
||||
<view v-for="(item, index) in menuItems" :key="index" v-show="hasPermissionDirect(item.permissionKey)"
|
||||
class="grid-item" @click="handleMenuClick(item)">
|
||||
<view class="grid-icon-container">
|
||||
<view class="icon-background"></view>
|
||||
<image :src="item.icon" class="grid-icon"></image>
|
||||
@ -48,12 +43,7 @@
|
||||
</view>
|
||||
|
||||
<view class="notice-list">
|
||||
<view
|
||||
v-for="(notice, index) in announcements"
|
||||
:key="index"
|
||||
class="notice-item"
|
||||
@click="goToDetail(notice)"
|
||||
>
|
||||
<view v-for="(notice, index) in announcements" :key="index" class="notice-item" @click="goToDetail(notice)">
|
||||
<view class="notice-icon">
|
||||
<u-icon name="bell" size="20" color="#4A90E2"></u-icon>
|
||||
</view>
|
||||
@ -182,10 +172,10 @@ const menuItems = ref([
|
||||
permissionKey: "school-cjcx", // 成绩查询权限编码
|
||||
},
|
||||
{
|
||||
title: "在线请假",
|
||||
icon: "/static/base/home/draft-line.png",
|
||||
path: "/pages/base/qj/index",
|
||||
permissionKey: "school-zxqj", // 在线请假权限编码
|
||||
title: "在线请假",
|
||||
icon: "/static/base/home/draft-line.png",
|
||||
path: "/pages/base/qj/index",
|
||||
permissionKey: "school-zxqj", // 在线请假权限编码
|
||||
},
|
||||
// TODO:需求待协商硬件对接
|
||||
// {
|
||||
@ -267,15 +257,15 @@ const announcements = ref<any>([])
|
||||
let curXs = computed(() => getCurXs)
|
||||
|
||||
let pageParams = ref({
|
||||
page: 1,
|
||||
rows: 10,
|
||||
page: 1,
|
||||
rows: 10,
|
||||
appCode: getAppCode
|
||||
})
|
||||
|
||||
const goToGlxs = () => {
|
||||
uni.navigateTo({
|
||||
url: "/pages/base/home/glxs",
|
||||
});
|
||||
uni.navigateTo({
|
||||
url: "/pages/base/home/glxs",
|
||||
});
|
||||
}
|
||||
|
||||
// 处理菜单点击
|
||||
@ -299,10 +289,10 @@ function switchXs(xs: any) {
|
||||
|
||||
// 跳转到详情页面
|
||||
function goToDetail(notice: any) {
|
||||
setData(notice)
|
||||
uni.navigateTo({
|
||||
url: '/pages/base/home/detail'
|
||||
})
|
||||
setData(notice)
|
||||
uni.navigateTo({
|
||||
url: '/pages/base/home/detail'
|
||||
})
|
||||
}
|
||||
|
||||
const getArticleList = async () => {
|
||||
@ -320,9 +310,9 @@ const getArticleList = async () => {
|
||||
getNoticeListApi(params).then(res => {
|
||||
announcements.value = res.rows;
|
||||
})
|
||||
.catch((error) => {
|
||||
// 接口调用失败
|
||||
});
|
||||
.catch((error) => {
|
||||
// 接口调用失败
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
@ -441,11 +431,11 @@ watch(curXs, (newXs, oldXs) => {
|
||||
overflow: hidden;
|
||||
|
||||
.banner-content {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
|
||||
.banner-img {
|
||||
width: 100%;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user