diff --git a/src/api/digitalScreen/index.js b/src/api/digitalScreen/index.js new file mode 100644 index 0000000..5e51b5a --- /dev/null +++ b/src/api/digitalScreen/index.js @@ -0,0 +1,20 @@ +import request from '@/utils/request' +import qs from 'qs' + +export function FetchInitScreenSetting(params) { + return request({ + url: 'api/screenSetting/initScreenSetting' + '?' + qs.stringify(params, { indices: false }), + method: 'get' + }) +} + +// 编辑智慧大屏后台参数 +export function FetchEditScreenSetting(parameter) { + return request({ + url: 'api/screenSetting/editScreenSetting', + method: 'post', + data: parameter + }) +} + +export default { FetchInitScreenSetting, FetchEditScreenSetting } diff --git a/src/assets/images/screen/book.jpg b/src/assets/images/screen/book.jpg new file mode 100644 index 0000000..5fc1346 Binary files /dev/null and b/src/assets/images/screen/book.jpg differ diff --git a/src/assets/images/screen/book.png b/src/assets/images/screen/book.png new file mode 100644 index 0000000..4e1f835 Binary files /dev/null and b/src/assets/images/screen/book.png differ diff --git a/src/assets/styles/digitalScreen.scss b/src/assets/styles/digitalScreen.scss index 1a68190..a5b3049 100644 --- a/src/assets/styles/digitalScreen.scss +++ b/src/assets/styles/digitalScreen.scss @@ -1,10 +1,11 @@ .config-title{ + position: relative; display: flex; justify-content: flex-start; align-items: center; color: #0c0e1e; - height: 32px; - line-height: 32px; + height: 40px; + line-height: 40px; margin-bottom: 16px; overflow: hidden; p{ @@ -184,20 +185,20 @@ height: 100px; display: block; } - - .book-list-upload{ - display: flex; - flex-wrap: nowrap; - gap: 10px; - overflow-x: auto; // 超出宽度时显示横向滚动条 - scrollbar-width: thin; - max-width: 1000px; - } + // .book-list-upload{ + // display: flex; + // flex-wrap: nowrap; + // gap: 10px; + // overflow-x: auto; // 超出宽度时显示横向滚动条 + // scrollbar-width: thin; + // max-width: 1000px; + // } .book-swiper-wrapper { position: relative; - // width: 100%; - max-width: 970px; - overflow: hidden; + width: 100%; + // padding: 0 20px; + max-width: 1140px; + overflow: visible !important; // 避免意外截断 } .book-swiper { width: 100%; @@ -207,10 +208,10 @@ width: 110px; height: 160px; flex-shrink: 0; // 禁止压缩,保持固定尺寸 - overflow: hidden; border: 1px solid #fff; border-radius: 4px; transition: all 0.2s; + margin: 0 5px; &:hover { border-color: #0348F3; // hover时高亮边框 box-shadow: 0 2px 8px rgba(3, 72, 243, 0.1); @@ -235,7 +236,7 @@ } } .book-select { - left: 3px; + left: 6px; .icon-wancheng { display: none; color: #0348F3; @@ -279,19 +280,50 @@ color: #8c939d; } } - .book-recommend{ - position: relative; - padding-bottom: 40px; - } - .batch-delete-btn{ - position: absolute; - bottom: 0; - left: 100px; - } + // .book-recommend{ + // position: relative; + // padding-bottom: 40px; + // } + // .batch-delete-btn{ + // position: absolute; + // bottom: 0; + // left: 100px; + // } } // 输入框聚焦样式增强 ::v-deep .el-input__inner:focus { border-color: #0348f3; box-shadow: 0 0 0 2px rgba(3, 72, 243, 0.2); +} + +.upload-img-input{ + position: relative; + width: 120px; + height: 120px; + & input{ + position: absolute; + left: 0; + top: 0; + height: 120px; + opacity: 0; + } +} +.upload-libImg{ + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + width: 120px; + height: 120px; + font-size: 14px; + font-weight: bold; + color: #1F55EB; + text-align: center; + border: 1px dashed #BCC2C7; + background-color: #EDEFF3; + border-radius: 4px; + & i{ + font-size: 30px; + } } \ No newline at end of file diff --git a/src/views/digitalScreen/index.vue b/src/views/digitalScreen/index.vue index 4bc4f1a..419bc70 100644 --- a/src/views/digitalScreen/index.vue +++ b/src/views/digitalScreen/index.vue @@ -11,8 +11,8 @@ 注意:标题不要超过17个字,否则影响美观! + -
-
@@ -72,52 +71,52 @@
到馆统计 - - 本地数据 - 基数计算 - 第三方接口 + + 本地数据 + 基数计算 + 第三方接口
-
+
- + - {{ librarySettingForm.visit_base || '0' }} + {{ librarySettingForm.visit_base }} - + - {{ librarySettingForm.last_year_visit_base || '0' }} + {{ librarySettingForm.last_year_visit_base }} - {{ librarySettingForm.today_visit || '0' }} + {{ librarySettingForm.today_visit }} - + - {{ librarySettingForm.yesterday_visit || '0' }} + {{ librarySettingForm.yesterday_visit }} - + - {{ librarySettingForm.this_month_visit || '0' }} + {{ librarySettingForm.this_month_visit }} - + - {{ librarySettingForm.last_month_visit || '0' }} + {{ librarySettingForm.last_month_visit }} - +
双击输入框可进行编辑,注意:
@@ -252,60 +251,24 @@
二维码 -
+

公众号二维码

- - - - -
-
-
双击可上传图片。二维码用于“总览屏”、“媒体屏”,在任意分屏编辑均可生效!
-
-
-
- 图书推荐 -
-

推荐列表

-
- - - 图书封面 - {{ book.id }} -
- - -
-
- -
-
-
+
+ +
+ + +
点击上传
+
-
- - - 批量删除 -
+
双击可上传图片。二维码用于“总览屏”、“媒体屏”,在任意分屏编辑均可生效!
- + + +
@@ -314,25 +277,26 @@
- -
+ + diff --git a/src/views/digitalScreen/module/areaSetting.vue b/src/views/digitalScreen/module/areaSetting.vue index 198bdb5..14e8169 100644 --- a/src/views/digitalScreen/module/areaSetting.vue +++ b/src/views/digitalScreen/module/areaSetting.vue @@ -145,25 +145,24 @@
- - + +
点击上传
+
-
- -
点击上传
-
- --> + @@ -229,7 +228,12 @@ export default { libCode: [ { required: true, message: '馆代码不可为空', trigger: 'blur' } ] - } + }, + libImgList: [ + // { url: require('@/assets/images/cover-bg.png') }, + // { url: require('@/assets/images/cover-bg.png') }, + // { url: require('@/assets/images/cover-bg.png') } + ] } }, computed: { @@ -386,9 +390,6 @@ export default { display: flex; justify-content: flex-start; margin-right: 0 !important; - .el-form-item__label{ - - } .el-form-item__content{ width: 586px !important; display: flex; @@ -398,6 +399,16 @@ export default { } } } +} +.libImg-list{ + display: flex; + justify-content: flex-start; + img{ + display: block; + height: 120px; + margin-right: 10px; + } } + diff --git a/src/views/digitalScreen/module/bookRecommend.vue b/src/views/digitalScreen/module/bookRecommend.vue new file mode 100644 index 0000000..0bc7554 --- /dev/null +++ b/src/views/digitalScreen/module/bookRecommend.vue @@ -0,0 +1,176 @@ + + + + + diff --git a/src/views/digitalScreen/module/mediaSetting.vue b/src/views/digitalScreen/module/mediaSetting.vue new file mode 100644 index 0000000..bed7f78 --- /dev/null +++ b/src/views/digitalScreen/module/mediaSetting.vue @@ -0,0 +1,342 @@ + + + + + diff --git a/src/views/digitalScreen/module/previewSetting.vue b/src/views/digitalScreen/module/previewSetting.vue new file mode 100644 index 0000000..72af19d --- /dev/null +++ b/src/views/digitalScreen/module/previewSetting.vue @@ -0,0 +1,160 @@ + + + + + diff --git a/src/views/system/group/index.vue b/src/views/system/group/index.vue index ee010c5..5002459 100644 --- a/src/views/system/group/index.vue +++ b/src/views/system/group/index.vue @@ -68,10 +68,10 @@ librarySearchInterface 图书查询接口 librarySearchClntcode 图书查询接口 - 参数 - 馆代码 strFTZNCode 飞天服务码 --> - + - +