diff --git a/.env.development b/.env.development
index d2297b04..272327e1 100644
--- a/.env.development
+++ b/.env.development
@@ -16,7 +16,7 @@ VUE_APP_CESOURCE_BASE_API = '/socialApi'
VUE_APP_STAT_BASE_API = '/statApi'
# BOE系统网址
-VUE_APP_BOE_WEB_URL = 'http://127.0.0.1'
+VUE_APP_BOE_WEB_URL = 'https://u-pre.boe.com'
# BOE 移动端url
VUE_APP_BOE_MOBILE_URL = 'http://127.0.0.1:8082/mobile'
diff --git a/src/api/modules/grateful.js b/src/api/modules/grateful.js
index 239389e3..41a5bda6 100644
--- a/src/api/modules/grateful.js
+++ b/src/api/modules/grateful.js
@@ -6,6 +6,8 @@ const baseURL = '/activityApi';
const saveOpinion = (data = {}) => ajax.postJson(baseURL, '/xboe/m/boe/opinion/save', data);
//工具列表
const toolList = (data = {}) => ajax.postJson(baseURL, '/xboe/m/boe/tools/list', data);
+//工具下载
+const toolDown = ({ urlStr, fileName }) => ajax.get('/systemapi', `/xboe/sys/xuploader/url/download?urlStr=${urlStr}&fileName=${fileName}`);
//通知列表
const noticeList = (data = {}) => ajax.postJson(baseURL, '/xboe/m/boe/notice/list', data);
//通知列表
@@ -24,6 +26,7 @@ const carouselList = (data = {}) => ajax.postJson(baseURL, '/xboe/m/boe/rotation
export {
saveOpinion,
toolList,
+ toolDown,
noticeList,
noticeDataById,
courselList,
diff --git a/src/views/grateful/GratefulHomePage.vue b/src/views/grateful/GratefulHomePage.vue
index 2bdc8634..8ee2e5be 100644
--- a/src/views/grateful/GratefulHomePage.vue
+++ b/src/views/grateful/GratefulHomePage.vue
@@ -73,28 +73,27 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ item.name.split('.')[0] }}
-
+ style="cursor: pointer;line-height: 22px;" class="title-line-ellipsis liList"
+ @click="downTool(item)">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.name.split('.')[0] }}
@@ -185,7 +184,7 @@
import apiCourseStudy from "@/api/modules/courseStudy.js";
import courseImage from "@/components/Course/courseImage.vue";
import { toScore, formatUserNumber } from "@/utils/tools.js";
-import { saveOpinion, noticeList, courselList, toolList, carouselList } from '@/api/modules/grateful.js'
+import { saveOpinion, noticeList, courselList, toolList, carouselList, toolDown } from '@/api/modules/grateful.js'
export default {
name: "Grateful",
components: {
@@ -242,6 +241,23 @@ export default {
this.getToolData()
},
methods: {
+ downTool(toolInfo) {
+ console.log(toolInfo);
+ toolDown({
+ urlStr: `${process.env.VUE_APP_BOE_WEB_URL}/upload${toolInfo.filePath}`,
+ fileName: toolInfo.name
+ }).then((result) => {
+ const link = document.createElement('a');// 创建a标签
+ let blob = new Blob([result.data], { type: '' }); // 设置文件类型
+ link.style.display = "none";
+ link.href = URL.createObjectURL(blob); // 创建URL
+ link.setAttribute("download", `${toolInfo.name}`);
+ document.body.appendChild(link);
+ link.click();
+ URL.revokeObjectURL(link.href);
+ document.body.removeChild(link);
+ })
+ },
couresreso() {
carouselList().then((res) => {
console.log(res);
@@ -486,6 +502,7 @@ export default {
right: 0;
bottom: 50%;
z-index: 999;
+ cursor: pointer;
.content {
width: 152px;
diff --git a/src/views/grateful/GratefulNotice.vue b/src/views/grateful/GratefulNotice.vue
index 579e29af..c18f4477 100644
--- a/src/views/grateful/GratefulNotice.vue
+++ b/src/views/grateful/GratefulNotice.vue
@@ -6,7 +6,7 @@
@@ -124,7 +124,7 @@ export default {
}
.modules-list {
- // min-height: 555px;
+ min-height: 682px;
background: #ffffff;
border-radius: 8px;
@@ -142,8 +142,8 @@ export default {
}
.toolEvery {
- height: 80px;
- line-height: 80px;
+ height: 56px;
+ line-height: 56px;
font-size: 18px;
font-weight: 500;
color: #333333;
diff --git a/src/views/grateful/NoticeDetail.vue b/src/views/grateful/NoticeDetail.vue
index b15a8969..cac68cc5 100644
--- a/src/views/grateful/NoticeDetail.vue
+++ b/src/views/grateful/NoticeDetail.vue
@@ -6,8 +6,7 @@
- 首页 >
- 通知详情
+ 首页 > 通知列表 > 通知详情
diff --git a/src/views/grateful/TeacherEmpowerment.vue b/src/views/grateful/TeacherEmpowerment.vue
index 0f14133d..332c7c55 100644
--- a/src/views/grateful/TeacherEmpowerment.vue
+++ b/src/views/grateful/TeacherEmpowerment.vue
@@ -59,7 +59,7 @@
-
+
diff --git a/src/views/grateful/ToolDown.vue b/src/views/grateful/ToolDown.vue
index 7553f473..08486730 100644
--- a/src/views/grateful/ToolDown.vue
+++ b/src/views/grateful/ToolDown.vue
@@ -49,7 +49,7 @@