洋浦学校八大中心 德育管理前端

init
gongdi 3 years ago
parent e719cb301e
commit a924eb7a89

@ -6,6 +6,23 @@
<script> <script>
export default { export default {
name: 'App', name: 'App',
// beforeCreate(){
// //
// let count = 0;
// let imgs = [
// //requirebuild
// require('assets/images/secondPageTop01.png'),
// require('assets/images/secondPageTop02.png'),
// require('assets/images/topImgPartyBuild.png')
// ]
// for (let img of imgs) {
// let image = new Image();
// image.onload = () => {
// count++;
// };
// image.src = img;
// }
// },
data(){ data(){
return{} return{}
}, },

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

@ -25,7 +25,7 @@
}, },
methods: { methods: {
showMessage(){ showMessage(){
this.$emit('showMessage') //this.$emit('showMessage')
}, },
getImgSrc: function (personId) { getImgSrc: function (personId) {
if (personId && personId != '') { if (personId && personId != '') {
@ -64,7 +64,7 @@
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
cursor:pointer; /*cursor:pointer;*/
.ant-avatar { .ant-avatar {
width: 32px; width: 32px;
height: 32px; height: 32px;

@ -23,6 +23,11 @@ Vue.use(Modal)
Vue.use(vueBus) Vue.use(vueBus)
Vue.component('vueScroll', vuescroll) Vue.component('vueScroll', vuescroll)
Vue.component('my-icon', MyIcon) Vue.component('my-icon', MyIcon)
import { imgsPreloader } from './utils/imgPreloader.js';
import imgPreloaderList from './utils/imgPreloaderList.js';
//图片预加载
imgsPreloader(imgPreloaderList);
var vue = new Vue({ var vue = new Vue({
router, router,
store, store,

@ -825,7 +825,6 @@ const menuConfigDS = [
}, },
] ]
//洋浦学校菜单 //洋浦学校菜单
const menuConfigYP = [ const menuConfigYP = [
{ {
@ -872,6 +871,7 @@ const menuConfigYP = [
path: "/partyCenter", path: "/partyCenter",
name: "partyCenterPage", name: "partyCenterPage",
imgUrl: "./3D/builds-b2/3d-res/texture/party-building.png", imgUrl: "./3D/builds-b2/3d-res/texture/party-building.png",
partyUrl:"./3D/builds-b2/3d-res/texture/party-building-red.png",
component: () => import("./pages/secondPages/secondPageBox.vue"), component: () => import("./pages/secondPages/secondPageBox.vue"),
children: [ children: [
{ {
@ -890,6 +890,7 @@ const menuConfigYP = [
path: "/adminCenter", path: "/adminCenter",
name: "adminCenterPage", name: "adminCenterPage",
imgUrl: "./3D/builds-b2/3d-res/texture/admin.png", imgUrl: "./3D/builds-b2/3d-res/texture/admin.png",
partyUrl:"./3D/builds-b2/3d-res/texture/admin-red.png",
component: () => import("./pages/secondPages/secondPageBox.vue"), component: () => import("./pages/secondPages/secondPageBox.vue"),
children: [ children: [
{ {
@ -907,7 +908,8 @@ const menuConfigYP = [
iconType: "icon-bukashenqing", iconType: "icon-bukashenqing",
path: "/safeCenter", path: "/safeCenter",
name: "safeCenterPage", name: "safeCenterPage",
imgUrl: "./3D/builds-b2/3d-res/texture/one.png", imgUrl: "./3D/builds-b2/3d-res/texture/safe.png",
partyUrl:"./3D/builds-b2/3d-res/texture/safe-red.png",
component: () => import("./pages/secondPages/secondPageBox.vue"), component: () => import("./pages/secondPages/secondPageBox.vue"),
children: [ children: [
{ {
@ -946,7 +948,8 @@ const menuConfigYP = [
iconType: "icon-pingtaiyingyongqingkuang", iconType: "icon-pingtaiyingyongqingkuang",
path: "/teachingCenter", path: "/teachingCenter",
name: "teachingCenterPage", name: "teachingCenterPage",
imgUrl: "./3D/builds-b2/3d-res/texture/three.png", imgUrl: "./3D/builds-b2/3d-res/texture/teaching.png",
partyUrl:"./3D/builds-b2/3d-res/texture/teaching-red.png",
component: () => import("./pages/secondPages/secondPageBox.vue"), component: () => import("./pages/secondPages/secondPageBox.vue"),
children: [ children: [
{ {
@ -1021,6 +1024,7 @@ const menuConfigYP = [
path: "/moralEducationCenter", path: "/moralEducationCenter",
name: "moralEducationCenterPage", name: "moralEducationCenterPage",
imgUrl: "./3D/builds-b2/3d-res/texture/de-yu.png", imgUrl: "./3D/builds-b2/3d-res/texture/de-yu.png",
partyUrl:"./3D/builds-b2/3d-res/texture/deyu-red.png",
component: () => import("./pages/secondPages/secondPageBox.vue"), component: () => import("./pages/secondPages/secondPageBox.vue"),
children: [ children: [
{ {
@ -1035,12 +1039,12 @@ const menuConfigYP = [
name: "virtueBodyHealthArtManagementPage", name: "virtueBodyHealthArtManagementPage",
component: () => import("./pages/moralEducationCenter/virtueBodyHealthArtManagement.vue"), component: () => import("./pages/moralEducationCenter/virtueBodyHealthArtManagement.vue"),
}, },
{ // {
title: "家长服务管理", // title: "家长服务管理",
path: "/moralEducationCenter/parentalServicesManagement", // path: "/moralEducationCenter/parentalServicesManagement",
name: "parentalServicesManagementPage", // name: "parentalServicesManagementPage",
component: () => import("./pages/moralEducationCenter/parentalServicesManagement.vue"), // component: () => import("./pages/moralEducationCenter/parentalServicesManagement.vue"),
}, // },
] ]
}, },
{ {
@ -1050,6 +1054,7 @@ const menuConfigYP = [
path: "/teacherAdminCenter", path: "/teacherAdminCenter",
name: "teacherAdminCenterPage", name: "teacherAdminCenterPage",
imgUrl: "./3D/builds-b2/3d-res/texture/teacher.png", imgUrl: "./3D/builds-b2/3d-res/texture/teacher.png",
partyUrl:"./3D/builds-b2/3d-res/texture/teacher-red.png",
component: () => import("./pages/secondPages/secondPageBox.vue"), component: () => import("./pages/secondPages/secondPageBox.vue"),
children: [ children: [
{ {
@ -1096,6 +1101,7 @@ const menuConfigYP = [
name: "monitorCenterPage", name: "monitorCenterPage",
iconType: "icon-zichanfenleitongji", iconType: "icon-zichanfenleitongji",
imgUrl: "./3D/builds-b2/3d-res/texture/two.png", imgUrl: "./3D/builds-b2/3d-res/texture/two.png",
partyUrl: "./3D/builds-b2/3d-res/texture/two-red.png",
component: () => import("./pages/secondPages/secondPageBox.vue"), component: () => import("./pages/secondPages/secondPageBox.vue"),
children: [ children: [
{ {
@ -1119,36 +1125,44 @@ const menuConfigYP = [
path: "/serviceCenter", path: "/serviceCenter",
name: "serviceCenterPage", name: "serviceCenterPage",
imgUrl: "./3D/builds-b2/3d-res/texture/six.png", imgUrl: "./3D/builds-b2/3d-res/texture/six.png",
partyUrl:"./3D/builds-b2/3d-res/texture/six-red.png",
component: () => import("./pages/secondPages/secondPageBox.vue"), component: () => import("./pages/secondPages/secondPageBox.vue"),
children: [ children: [
{ {
title: "校园之窗", title: "",
path: "/serviceCenter/schoolWindow", path: "/moralEducationCenter/parentalServicesManagement",
name: "schoolWindowPage", name: "parentalServicesManagementPage",
disable: true,
component: () => import("./pages/serviceCenter/serviceCenter.vue"),
},
{
title: "本周营养餐",
path: "/serviceCenter/schoolNutritiousMeal",
name: "schoolNutritiousMealPage",
disable: true,
component: () => import("./pages/serviceCenter/serviceCenter.vue"),
},
{
title: "校车管理",
path: "/serviceCenter/schoolBus",
name: "schoolBusPage",
disable: true,
component: () => import("./pages/serviceCenter/serviceCenter.vue"),
},
{
title: "招生通道",
path: "/serviceCenter/schoolAdmissionChannel",
name: "schoolAdmissionChannelPage",
disable: true, disable: true,
component: () => import("./pages/serviceCenter/serviceCenter.vue"), component: () => import("./pages/moralEducationCenter/parentalServicesManagement.vue"),
}, },
// {
// title: "校园之窗",
// path: "/serviceCenter/schoolWindow",
// name: "schoolWindowPage",
// disable: true,
// component: () => import("./pages/serviceCenter/serviceCenter.vue"),
// },
// {
// title: "本周营养餐",
// path: "/serviceCenter/schoolNutritiousMeal",
// name: "schoolNutritiousMealPage",
// disable: true,
// component: () => import("./pages/serviceCenter/serviceCenter.vue"),
// },
// {
// title: "校车管理",
// path: "/serviceCenter/schoolBus",
// name: "schoolBusPage",
// disable: true,
// component: () => import("./pages/serviceCenter/serviceCenter.vue"),
// },
// {
// title: "招生通道",
// path: "/serviceCenter/schoolAdmissionChannel",
// name: "schoolAdmissionChannelPage",
// disable: true,
// component: () => import("./pages/serviceCenter/serviceCenter.vue"),
// },
] ]
}, },
] ]
@ -1262,7 +1276,7 @@ const careerMenu = [
{id: 7, title: "测评报告", icon: "icon-cepingbaogao", logo: require("./assets/images/application/shy/测评报告.png")}, {id: 7, title: "测评报告", icon: "icon-cepingbaogao", logo: require("./assets/images/application/shy/测评报告.png")},
] ]
const menuConfig = menuConfigDS; const menuConfig = menuConfigYP;
export { export {
menuConfig, menuConfig,

@ -20,8 +20,8 @@
<style scoped lang="scss"> <style scoped lang="scss">
@import "../../../assets/scss/style"; @import "../../../assets/scss/style";
.login-box-style{ .login-box-style{
width: 673px; width: 600px;
height: 401px; height: 400px;
box-shadow:inset 0px 0px 30px 0px rgba(32,116,247,0.3); box-shadow:inset 0px 0px 30px 0px rgba(32,116,247,0.3);
border:2px solid #1379c8; border:2px solid #1379c8;
position:relative; position:relative;

@ -1,15 +1,47 @@
<template> <template>
<div class="menu-item-style" @click="menuClick"> <div class="menu-item-style" @click="menuClick">
<div class="menu-img-style"> <div class="menu-img-style">
<img :src="menu.imgUrl"/> <img :src="imgUrl"/>
</div> </div>
<div class="menu-name-style">{{menu.title}}</div> <div class="menu-name-style">{{menu.title}}</div>
</div> </div>
</template> </template>
<script> <script>
export default{ export default{
data(){ data(){
return {} return {
isPartyPage: false,
partyImg: require('../../../assets/images/partyImage/party-building.png'),
partyRedImg: require('../../../assets/images/partyImage/party-building-red.png'),
adminImg: require('../../../assets/images/partyImage/admin.png'),
adminRedImg: require('../../../assets/images/partyImage/admin-red.png'),
safeImg: require('../../../assets/images/partyImage/safe.png'),
safeRedImg: require('../../../assets/images/partyImage/safe-red.png'),
teachingImg: require('../../../assets/images/partyImage/teaching.png'),
teachingRedImg: require('../../../assets/images/partyImage/teaching-red.png'),
deyuImg: require('../../../assets/images/partyImage/de-yu.png'),
deyuRedImg: require('../../../assets/images/partyImage/de-yu-red.png'),
teacherImg: require('../../../assets/images/partyImage/teacher.png'),
teacherRedImg: require('../../../assets/images/partyImage/teacher-red.png'),
dataImg: require('../../../assets/images/partyImage/data.png'),
dataRedImg: require('../../../assets/images/partyImage/data-red.png'),
serviceImg: require('../../../assets/images/partyImage/service.png'),
serviceRedImg: require('../../../assets/images/partyImage/service-red.png'),
imgUrl: ""
}
},
watch: {
$route: {
handler(val, oldval){
if (val.path === '/partyCenter/party') {
this.isPartyPage = true;
} else {
this.isPartyPage = false;
}
this.changeMenu();
},
}
}, },
props: { props: {
menu: { menu: {
@ -17,9 +49,42 @@
default: {} default: {}
} }
}, },
mounted(){
this.changeMenu();
},
methods: { methods: {
menuClick: function () { menuClick: function () {
this.$emit("menuClick", this.menu) this.$emit("menuClick", this.menu)
},
changeMenu:function () {
switch (this.$props.menu.name) {
case "partyCenterPage":
this.imgUrl = this.isPartyPage?this.partyRedImg:this.partyImg;
break;
case "adminCenterPage":
this.imgUrl = this.isPartyPage?this.adminRedImg:this.adminImg;
break;
case "safeCenterPage":
this.imgUrl = this.isPartyPage?this.safeRedImg:this.safeImg;
break;
case "teachingCenterPage":
this.imgUrl = this.isPartyPage?this.teachingRedImg:this.teachingImg;
break;
case "moralEducationCenterPage":
this.imgUrl = this.isPartyPage?this.deyuRedImg:this.deyuImg;
break;
case "teacherAdminCenterPage":
this.imgUrl = this.isPartyPage?this.teacherRedImg:this.teacherImg;
break;
case "monitorCenterPage":
this.imgUrl = this.isPartyPage?this.dataRedImg:this.dataImg;
break;
case "serviceCenterPage":
this.imgUrl = this.isPartyPage?this.serviceRedImg:this.serviceImg;
break;
default:
break;
}
} }
} }
} }

@ -87,8 +87,6 @@
menuClick: function (menu) { menuClick: function (menu) {
let identity_id = this.Cookie.get("identity_id"); let identity_id = this.Cookie.get("identity_id");
let person_id = this.Cookie.get("person_id"); let person_id = this.Cookie.get("person_id");
console.log("person_id:", person_id)
console.log("identity_id:", identity_id)
if (identity_id && identity_id !== "") { if (identity_id && identity_id !== "") {
if (parseInt(identity_id) === 5) { if (parseInt(identity_id) === 5) {
this.$router.push({path: menu.path}) this.$router.push({path: menu.path})

@ -107,6 +107,7 @@
this.topImgUrl = topImgPartyBuild this.topImgUrl = topImgPartyBuild
this.isPartyCenter = true this.isPartyCenter = true
} else { } else {
this.topImgUrl = topImg01
this.isPartyCenter = false this.isPartyCenter = false
} }
}, },

@ -23,19 +23,19 @@ const loginGuard = (to, from, next, options) => {
const hasToken = getToken(); const hasToken = getToken();
//localStorage和cookie均校验 //localStorage和cookie均校验
if (hasToken && user && user.personId) { if (hasToken && user && user.personId) {
// if(toPath === "/teachingCenter"){ if(toPath === "/teachingCenter"){
// //跳转教学中心 //跳转教学中心
// window.location.href="https://cloud.edusoa.com/DataCenter/TeachCenter.html"; window.location.href="https://www.edusoa.com/dsideal_yy/DataCenter/TeachCenter.html";
// return; return;
// } }
// if(toPath === "/resourcesCenter"){ if(toPath === "/resourcesCenter"){
// //跳转教学中心 //跳转教学中心
// window.location.href="https://cloud.edusoa.com/DataCenter/ResourceCenter.html"; window.location.href="https://www.edusoa.com/dsideal_yy/DataCenter/ResourceCenter.html";
// return; return;
// } }
if(toPath === "/monitorCenter/information"){ if(toPath === "/monitorCenter/information"){
//跳转教学中心 //跳转教学中心
window.location.href="https://cloud.edusoa.com/DataCenter/DataCenter.html"; window.location.href="https://www.edusoa.com/dsideal_yy/DataCenter/DataCenter.html";
return; return;
} }

@ -0,0 +1,22 @@
/**
* Created by GD on 2022/9/19.
*/
const imgPreloader = url => {
return new Promise((resolve, reject) => {
let image = new Image();
image.src = url;
image.onload = () => {
resolve();
};
image.onerror = () => {
reject();
};
});
};
export const imgsPreloader = imgs => {
let promiseArr = [];
imgs.forEach(element => {
promiseArr.push(imgPreloader(element));
});
return Promise.all(promiseArr);
};

@ -0,0 +1,8 @@
/**
* Created by GD on 2022/9/19.
*/
export default [
require('../assets/images/secondPageTop01.png'),
require('../assets/images/secondPageTop02.png'),
require('../assets/images/topImgPartyBuild.png')
];
Loading…
Cancel
Save