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 4b11c0d..fbe8184 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -64,6 +64,8 @@ const mainRoutes = {
{ path: '/course-courseChapter', component: _import('modules/course/courseChapter'), name: 'course-courseChapter', meta: { title: '课程目录章节列表', isTab: true } },
{ 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 @@
官方社区
-
+
Git源码
前端
@@ -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/book/talkBook-add-or-update.vue b/src/views/modules/book/talkBook-add-or-update.vue
index f85192c..f5668e1 100644
--- a/src/views/modules/book/talkBook-add-or-update.vue
+++ b/src/views/modules/book/talkBook-add-or-update.vue
@@ -36,12 +36,15 @@
-
+
+ :action="baseUrl + '/oss/fileoss'" :file-list="videoList"
+ :on-error="onvideoEror"
+ :before-upload="beforeuploadVideo"
+ :on-success="videoSuccess" accept=".mp4"
+ :on-remove="videoRemove" :show-file-list="true">
上传文件
@@ -161,7 +164,7 @@
trigger: "blur"
}]
},
-
+ VideoLoadingFlag:false,
// 富文本编辑器配置
editorOption: {
modules: {
@@ -462,7 +465,22 @@
// setTimeout( () => {this.progressFlag = false}, 1000) // 一秒后关闭进度条
}
},
-
+ // 上传失败
+ onvideoEror(err, file, fileList){
+ console.log(err,'err')
+ this.VideoLoadingFlag = false
+ // this.$message.error('上传失败')
+ this.$notify.error({
+ title: '错误',
+ message: '上传失败',
+ duration: 0
+ });
+
+ },
+ // 视频上传成功前
+ beforeuploadVideo(){
+ this.VideoLoadingFlag = true
+ },
videoSuccess(res, file) {
console.log(res, 'res')
if (res.msg == "success") {
@@ -483,6 +501,7 @@
} else {
this.$message.error("上传失败");
}
+ this.VideoLoadingFlag = false
},
videoRemove(file, fileList) {
diff --git a/src/views/modules/course/chapter-add-or-update.vue b/src/views/modules/course/chapter-add-or-update.vue
index 0ce95e6..1d208e6 100644
--- a/src/views/modules/course/chapter-add-or-update.vue
+++ b/src/views/modules/course/chapter-add-or-update.vue
@@ -66,7 +66,6 @@
:inactive-value="0"
active-text="是"
inactive-text="否"
-
>
@@ -91,8 +90,57 @@
>
+
+
+
+
+
视频/音频ID:
+
+
+
+
+ 排序:
+
+
+
+
+
+
+
+
+
+
+
删除
+
+
+
+
+ 添加一条音/视频
+