diff --git a/config/index.js b/config/index.js index 7d3a216..bec3ded 100644 --- a/config/index.js +++ b/config/index.js @@ -23,7 +23,7 @@ module.exports = { }, // Various Dev Server settings - host: '192.168.110.157', // can be overwritten by process.env.HOST + host: '192.168.110.162', // can be overwritten by process.env.HOST port: 8001, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined autoOpenBrowser: true, errorOverlay: true, diff --git a/src/components/imgPrev.vue b/src/components/imgPrev.vue new file mode 100644 index 0000000..9562b7c --- /dev/null +++ b/src/components/imgPrev.vue @@ -0,0 +1,98 @@ + + + + + \ No newline at end of file diff --git a/src/router/index.js b/src/router/index.js index 15d4798..fbe8184 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -65,6 +65,7 @@ const mainRoutes = { { path: '/course-courseVideo', component: _import('modules/course/courseVideo'), name: 'course-courseVideo', meta: { title: '课程目录章节视频列表', isTab: true } }, { path: '/course-sociologyList', component: _import('modules/course/sociologyList'), name: 'course-sociologyList', meta: { title: '国学标签列表', isTab: true } }, { path: '/userCourse', component: _import('modules/user/userCourse'), name: 'userCourse', meta: { title: '用户课程列表', isTab: true } }, + { path: '/workOrder', component: _import('modules/workOrderLIst'), name: 'workOrder', meta: { title: '工单列表', isTab: true } }, ], beforeEnter (to, from, next) { let token = Vue.cookie.get('token') diff --git a/src/utils/imgPre.js b/src/utils/imgPre.js new file mode 100644 index 0000000..0cbc199 --- /dev/null +++ b/src/utils/imgPre.js @@ -0,0 +1,25 @@ +var modal = document.getElementById("modal"); + +var modalImg = document.getElementById("modalImage"); + +var images = document.querySelectorAll(".zoomable"); + +// 遍历为每个图片元素添加事件监听器 +images.forEach(function (image) { + image.addEventListener("click", function () { + modal.style.display = "block"; + modalImg.src = this.src; + }); +}); + +var span = document.querySelector(".close"); + +span.addEventListener("click", function () { + modal.style.display = "none"; +}); + +modal.addEventListener("click", function (event) { + if (event.target == modal) { + modal.style.display = "none"; + } +}); diff --git a/src/views/main-navbar.vue b/src/views/main-navbar.vue index c683d1f..677ef0d 100644 --- a/src/views/main-navbar.vue +++ b/src/views/main-navbar.vue @@ -28,7 +28,7 @@ 官方社区 - + 前端 @@ -59,12 +59,12 @@ export default { data () { return { - updatePassowrdVisible: false + updatePassowrdVisible: false } }, components: { UpdatePassword - }, + }, computed: { navbarLayoutType: { get () { return this.$store.state.common.navbarLayoutType } @@ -82,7 +82,7 @@ } }, methods: { - // 修改密码 + // 修改密码 updatePasswordHandle () { this.updatePassowrdVisible = true this.$nextTick(() => { diff --git a/src/views/modules/workOrderLIst.vue b/src/views/modules/workOrderLIst.vue new file mode 100644 index 0000000..cdafda9 --- /dev/null +++ b/src/views/modules/workOrderLIst.vue @@ -0,0 +1,315 @@ + + + + +