From 3908c8cf32b5e1a301e33ff33980001cdbe0ac92 Mon Sep 17 00:00:00 2001 From: xuhuajiao <13476289682@163.com> Date: Thu, 11 Jul 2024 17:27:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=95=B4=E8=81=94=E8=B0=83=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E4=BF=AE=E6=94=B9=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/library.js | 32 +- src/assets/json/lib.json | 131 +--- src/assets/json/lib2.json | 23 - src/assets/styles/index.scss | 6 +- src/components/echart/barEcharts.vue | 19 +- src/components/echart/lineChart.vue | 286 +++++--- src/components/echart/lineChartService.vue | 259 ------- .../echart}/todayCircle.vue | 2 +- .../echart}/yearCircle.vue | 0 src/views/header/index.vue | 1 - src/views/index.vue | 46 +- src/views/map/index.vue | 119 ++-- src/views/map/index2.vue | 637 ------------------ src/views/pageFour/index.vue | 115 ++-- src/views/pageFour/module/video.vue | 289 -------- src/views/pageOne/index.vue | 266 +++++--- src/views/pageThree/index.vue | 121 +++- 17 files changed, 677 insertions(+), 1675 deletions(-) delete mode 100644 src/assets/json/lib2.json delete mode 100644 src/components/echart/lineChartService.vue rename src/{views/pageThree/module => components/echart}/todayCircle.vue (96%) rename src/{views/pageThree/module => components/echart}/yearCircle.vue (100%) delete mode 100644 src/views/map/index2.vue delete mode 100644 src/views/pageFour/module/video.vue diff --git a/src/api/library.js b/src/api/library.js index 30ec0a7..4bebe9c 100644 --- a/src/api/library.js +++ b/src/api/library.js @@ -1,15 +1,6 @@ import request from '@/utils/request' import qs from 'qs' -// 获取token -export function FetchInitToken(params) { - return request({ - url: '/openlib/service/barcode/token' + '?' + qs.stringify(params, { indices: false }), - method: 'get', - urlType: 'interlib' - }) -} - // 馆藏量 export function FetchLibBookTotal(params) { return request({ @@ -118,8 +109,25 @@ export function FetchTotalResource(params) { }) } +// 获取当日每小时借还信息 +export function FetchTodayJH(params) { + return request({ + url: '/qyzt/getTodayJH' + '?' + qs.stringify(params, { indices: false }), + method: 'get', + urlType: 'local' + }) +} + +// 获取一周内借还信息 +export function FetchWeekJH(params) { + return request({ + url: '/qyzt/getWeekJH' + '?' + qs.stringify(params, { indices: false }), + method: 'get', + urlType: 'local' + }) +} + export default { - FetchInitToken, FetchLibBookTotal, FetchUsertotal, FetchFansCount, @@ -131,5 +139,7 @@ export default { FetchLibcodeDetails, FetchNoticeList, FetchSync36, - FetchTotalResource + FetchTotalResource, + FetchTodayJH, + FetchWeekJH } diff --git a/src/assets/json/lib.json b/src/assets/json/lib.json index 389e9df..64572a3 100644 --- a/src/assets/json/lib.json +++ b/src/assets/json/lib.json @@ -1,108 +1,23 @@ -[ - { - "name": "陶铸图书馆", - "value": [111.848657, 26.588519], - "place": "祁阳县茅竹镇" - }, - { - "name": "龙山街道分馆", - "value": [111.86478,26.599231], - "place": "祁阳县茅竹镇" - }, - { - "name": "黎家坪分馆", - "value": [111.823424,26.693962], - "place": "祁阳县茅竹镇" - }, - { - "name": "大村甸分馆", - "value": [111.77655,26.663866], - "place": "祁阳县茅竹镇" - }, - { - "name": "邵家岭自助馆", - "value": [111.856979,26.59469], - "place": "祁阳县茅竹镇" - }, - { - "name": "下马渡分馆", - "value": [111.895584,26.611702], - "place": "祁阳县茅竹镇" - }, - { - "name": "复兴路自助馆", - "value": [111.843102,26.57896], - "place": "祁阳县茅竹镇" - }, - { - "name": "七里桥分馆", - "value": [111.902703,26.571593], - "place": "祁阳县茅竹镇" - }, - { - "name": "少儿馆", - "value": [111.842537,26.58196], - "place": "祁阳县茅竹镇" - }, - { - "name": "茅竹镇分馆", - "value": [111.796508,26.510589], - "place": "祁阳县茅竹镇" - }, - { - "name": "观音滩镇分馆", - "value": [111.897118,26.48444], - "place": "祁阳县茅竹镇" - }, - { - "name": "凯俊盛科城分馆", - "value": [111.851548,26.550191], - "place": "祁阳县茅竹镇" - }, - { - "name": "进宝塘镇分馆", - "value": [112.085297,26.436849], - "place": "祁阳县茅竹镇" - }, - { - "name": "三口塘镇分馆", - "value": [111.819018,26.412155], - "place": "祁阳县茅竹镇" - }, - { - "name": "肖家镇分馆", - "value": [112.009764,26.355137], - "place": "祁阳县茅竹镇" - }, - { - "name": "潘市镇分馆", - "value": [112.051186,26.489878], - "place": "祁阳县茅竹镇" - }, - { - "name": "大忠桥镇分馆", - "value": [111.873254,26.369761], - "place": "祁阳县茅竹镇" - }, - { - "name": "浯溪街道分馆", - "value": [111.855175,26.574414], - "place": "祁阳县茅竹镇" - }, - { - "name": "长虹街道分馆", - "value": [111.850902,26.586461], - "place": "长虹街道" - }, - { - "name": "白水镇分馆", - "value": [111.989802,26.421353], - "place": "白水镇" - }, - { - "name": "白竹湖自助馆", - "value": [111.862001,26.580311], - "place": "白竹湖" - } - -] \ No newline at end of file +{ + "陶铸图书馆":[111.848657, 26.588519], + "龙山街道分馆":[111.86478,26.599231], + "黎家坪分馆": [111.823424,26.693962], + "大村甸分馆": [111.77655,26.663866], + "邵家岭自助馆":[111.856979,26.59469], + "下马渡分馆":[111.895584,26.611702], + "复兴路自助馆":[111.843102,26.57896], + "七里桥分馆": [111.902703,26.571593], + "少儿馆":[111.842537,26.58196], + "茅竹镇分馆":[111.796508,26.510589], + "观音滩镇分馆":[111.897118,26.48444], + "凯俊盛科城分馆":[111.851548,26.550191], + "进宝塘镇分馆":[112.085297,26.436849], + "三口塘镇分馆":[111.819018,26.412155], + "肖家镇分馆":[112.009764,26.355137], + "潘市镇分馆": [112.051186,26.489878], + "大忠桥镇分馆":[111.873254,26.369761], + "浯溪街道分馆":[111.855175,26.574414], + "长虹街道分馆":[111.850902,26.586461], + "白水镇分馆": [111.989802,26.421353], + "白竹湖自助馆":[111.862001,26.580311] +} \ No newline at end of file diff --git a/src/assets/json/lib2.json b/src/assets/json/lib2.json deleted file mode 100644 index 64572a3..0000000 --- a/src/assets/json/lib2.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "陶铸图书馆":[111.848657, 26.588519], - "龙山街道分馆":[111.86478,26.599231], - "黎家坪分馆": [111.823424,26.693962], - "大村甸分馆": [111.77655,26.663866], - "邵家岭自助馆":[111.856979,26.59469], - "下马渡分馆":[111.895584,26.611702], - "复兴路自助馆":[111.843102,26.57896], - "七里桥分馆": [111.902703,26.571593], - "少儿馆":[111.842537,26.58196], - "茅竹镇分馆":[111.796508,26.510589], - "观音滩镇分馆":[111.897118,26.48444], - "凯俊盛科城分馆":[111.851548,26.550191], - "进宝塘镇分馆":[112.085297,26.436849], - "三口塘镇分馆":[111.819018,26.412155], - "肖家镇分馆":[112.009764,26.355137], - "潘市镇分馆": [112.051186,26.489878], - "大忠桥镇分馆":[111.873254,26.369761], - "浯溪街道分馆":[111.855175,26.574414], - "长虹街道分馆":[111.850902,26.586461], - "白水镇分馆": [111.989802,26.421353], - "白竹湖自助馆":[111.862001,26.580311] -} \ No newline at end of file diff --git a/src/assets/styles/index.scss b/src/assets/styles/index.scss index 0d39b27..9009f2c 100644 --- a/src/assets/styles/index.scss +++ b/src/assets/styles/index.scss @@ -737,7 +737,8 @@ background: url('~@/assets/images/database-icon1.png') no-repeat left top; background-size: 100% 100%; } - .currentNum{ + .currentNum, + .lastYearTotal{ width: 48%; height: 1.1rem; padding-left: 1.125rem; @@ -933,6 +934,7 @@ overflow: hidden; img{ display: block; + padding: .125rem; width: 100%; } } @@ -1492,7 +1494,7 @@ } } .scroll-animation { - animation: myMove 15s linear infinite; + animation: myMove 16s linear infinite; animation-fill-mode: forwards; } diff --git a/src/components/echart/barEcharts.vue b/src/components/echart/barEcharts.vue index 6c49700..2c1f4a4 100644 --- a/src/components/echart/barEcharts.vue +++ b/src/components/echart/barEcharts.vue @@ -11,7 +11,7 @@ export default { name: 'BarEcharts', mixins: [resize], props: { - storageData: { + chartWeeklyData: { type: Object, require: true, default: function() { @@ -34,7 +34,7 @@ export default { } }, watch: { - 'storageData': { + 'chartWeeklyData': { handler(val) { setTimeout(() => { this.drawChart() @@ -247,14 +247,21 @@ export default { }], yAxis: [{ min: 0, - max: 100, - interval: 25, + max: function(value) { + return Math.ceil(value.max + (value.max - value.min) * 0.2) + }, + minInterval: 1, type: 'value', axisLine: { // 轴线的颜色以及宽度 show: false }, axisLabel: { // 轴文字的配置 show: true, + interval: 'auto', + formatter: function(value) { + // 使用formatter保证即使在缩放时也只显示整数 + return Math.round(value) + }, textStyle: { color: '#79B8FF', fontSize: 16, @@ -281,7 +288,7 @@ export default { emphasis: { focus: 'series' }, - data: this.storageData.outStorageData, + data: this.chartWeeklyData.outchartWeeklyData, color: '#41A3FF' }, { @@ -292,7 +299,7 @@ export default { emphasis: { focus: 'series' }, - data: this.storageData.inStorageData, + data: this.chartWeeklyData.inchartWeeklyData, color: '#F9BE1D' } ] diff --git a/src/components/echart/lineChart.vue b/src/components/echart/lineChart.vue index b3511bd..5e83618 100644 --- a/src/components/echart/lineChart.vue +++ b/src/components/echart/lineChart.vue @@ -1,16 +1,15 @@ - - diff --git a/src/components/echart/lineChartService.vue b/src/components/echart/lineChartService.vue deleted file mode 100644 index 6afcc31..0000000 --- a/src/components/echart/lineChartService.vue +++ /dev/null @@ -1,259 +0,0 @@ - - - diff --git a/src/views/pageThree/module/todayCircle.vue b/src/components/echart/todayCircle.vue similarity index 96% rename from src/views/pageThree/module/todayCircle.vue rename to src/components/echart/todayCircle.vue index c3f8a20..74ac736 100644 --- a/src/views/pageThree/module/todayCircle.vue +++ b/src/components/echart/todayCircle.vue @@ -86,7 +86,7 @@ export default { const count = arrCount(optionData) if (optionData) { const flag = optionData?.find(item => name === item.name) - if (flag) return [`{name|${name}}`, `{num|${((flag.value / count).toFixed(2)) * 100 + '%'}}`] + if (flag) return [`{name|${name}}`, `{num|${((flag.value / count * 100).toFixed(0)) + '%'}}`] } else return name }, textStyle: { diff --git a/src/views/pageThree/module/yearCircle.vue b/src/components/echart/yearCircle.vue similarity index 100% rename from src/views/pageThree/module/yearCircle.vue rename to src/components/echart/yearCircle.vue diff --git a/src/views/header/index.vue b/src/views/header/index.vue index e5c4e4d..39eb187 100644 --- a/src/views/header/index.vue +++ b/src/views/header/index.vue @@ -72,5 +72,4 @@ export default { diff --git a/src/views/index.vue b/src/views/index.vue index 60ccf1f..6d04755 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -3,23 +3,18 @@
Loading...
+
{{ (currentIndex+1) +' / '+ pageData.length }}
- + + - - - + --> + +
@@ -38,7 +33,7 @@ - - diff --git a/src/views/pageFour/index.vue b/src/views/pageFour/index.vue index 317f8f8..3b32efe 100644 --- a/src/views/pageFour/index.vue +++ b/src/views/pageFour/index.vue @@ -44,7 +44,6 @@
重要通知
-
@@ -75,7 +74,7 @@ -
{{ item.BOOKRECNO }}
+
{{ item.TOTALNUM }}
@@ -92,7 +91,7 @@ - - diff --git a/src/views/pageOne/index.vue b/src/views/pageOne/index.vue index 31de7fd..d19ec1f 100644 --- a/src/views/pageOne/index.vue +++ b/src/views/pageOne/index.vue @@ -8,7 +8,7 @@
  • @@ -23,7 +23,7 @@
    • -
    • +
    • {{ item.name }}

      {{ item.value }} @@ -165,6 +165,7 @@ export default { name: 'PageOne', data() { return { + intervalLeft: null, isDataLoaded: false, pageOneVisitBase: '0', // 本年到馆基础数 wecharQrCodeSrc: null, @@ -173,31 +174,11 @@ export default { listData2: [], defaultImg: 'this.src="' + require('@/assets/images/book_03.png') + '"', leftData: [], - progressdata: [ - { - name: '今日到馆', - value: 2300, - type: 1 - }, - { - name: '本月到馆', - value: 5630, - type: 2 - }, - { - name: '昨日到馆', - value: 1269, - type: 3 - }, - { - name: '上月到馆', - value: 6457, - type: 4 - } - ], + progressData: [], hotTagData: [], middleData: [], tagList: [], + // 热门搜索的 radius: 160, dtr: Math.PI / 180, d: 200, @@ -261,18 +242,16 @@ export default { } }, async created() { - this.getHotSearch() this.getInitData() - this.getNewBook() this.getMiddleAllData() + this.getHotSearch() + this.getNewBook() }, beforeDestroy() { - clearTimeout(this.timer2) + clearInterval(this.intervalLeft) + this.intervalLeft = null }, mounted() { - // setTimeout(() => { - // this.$parent.autoPagination(2) - // }, 8000) }, methods: { getInitData() { @@ -284,9 +263,152 @@ export default { const result = JSON.parse(res.data) this.pageOneVisitBase = result.visitBase this.wecharQrCodeSrc = linkSrc + '/downloadFile' + result.wecharQrCode - this.initDataPreview() + this.initLeftPreview(result) + // this.intervalLeft = setInterval(() => { + // this.getInitData() + // }, 10000) }) }, + initLeftPreview(result) { + this.progressData = [] + this.leftData = [] + // 本年到馆/12个月=月基数 + // 月基数/当月天数(28、29、30、31)= 日基数 + // 昨日到馆=日基数+日随机数(-20到50之间) + // 上月到馆=月基数+月随机数(-100到200之间) + // 图书馆营业时间(8:00-18:00共10小时) + // 8:00-9:00 算第1个小时、9:00-10:00算第2个小时、以此类推 + // 日基数/10小时=小时基数 + // 今日到馆=小时基数 * 第N小时+小时随机数(-5到10之间) + // 本月到馆=月基数 * (当前月的日期dd/当前月的天数)+ 月随机数(-100到200之间) + // 本年累计=月基数*月份+月随机数(-100到200之间) + + // 昨日到馆、上月到馆存一个缓存!当前第一次计算好之后就不变了! + + // visitBase 本年累计人次 + // visitBaseCheck 是否直接显示 0false 1true + + // lastYearVisitBase 去年累计人次 + + // todayVisitBase 今日人次 + // todayVisitBaseCheck 是否显示 + + // yesterdayVisitBase 昨天人次 + // yesterdayVisitBaseCheck 是否显示 + + // thisMonthVisitBase 本月人次 + // thisMonthVisitBaseCheck 是否显示 + + // lastMonthVisitBase 上个月人次 + // lastMonthVisitBaseCheck 是否显示 + + const baseTotal = this.pageOneVisitBase // 本年到馆人数 + console.log('假设本年到馆人数', baseTotal) + + const monthBase = Math.floor(baseTotal / 12) // 月基数 + console.log('月基数', monthBase) + + const now = new Date() + const year = now.getFullYear() // 当前年份 + const month = now.getMonth() + 1 // 当前月份 + const daysInMonth = new Date(year, month, 0).getDate() // 当月天数 + console.log('当月天数', daysInMonth) + + const dayBase = Math.floor(baseTotal / daysInMonth) // 日基数 + console.log('日基数', dayBase) + + let yesterdayCount = 0 + if (result.yesterdayVisitBaseCheck === '1') { + yesterdayCount = result.yesterdayVisitBase + } else { + const randomDay = Math.floor(Math.random() * (50 - (-20) + 1)) + (-20) // 日随机数(-20到50之间) + yesterdayCount = localStorage.getItem('yesterdayCountCache') ? localStorage.getItem('yesterdayCountCache') : dayBase + randomDay // 昨日到馆 + } + console.log('昨日到馆', yesterdayCount) + + const randomMonth = Math.floor(Math.random() * (200 - (-100) + 1)) + (-100) // 月随机数(-100到200之间) + let lastMonthCount = 0 + if (result.lastMonthVisitBaseCheck === '1') { + lastMonthCount = result.lastMonthVisitBase + } else { + lastMonthCount = localStorage.getItem('lastMonthCountCache') ? localStorage.getItem('lastMonthCountCache') : monthBase + randomMonth + } + console.log('上月到馆', lastMonthCount) + + const hourBase = Math.floor(dayBase / 10) // 小时基数 + console.log('小时基数', hourBase) + + const openTime = 8 // 开门时间 + const closeTime = 18 // 结束时间 + const currentHour = now.getHours() // 当前时间点 + let todayCount = 0 + if (result.todayVisitBaseCheck === '1') { + todayCount = result.todayVisitBase + } else { + if (currentHour < openTime || currentHour >= closeTime) { + console.log('当前时间不在图书馆营业时间内') + } else { + const N = currentHour - openTime + console.log('第N个小时', N) + const randomHour = Math.floor(Math.random() * (10 - (-5) + 1)) + (-5) // 小时随机数(-5到10之间) + todayCount = Math.floor(hourBase * N + randomHour) // 今日到馆 + } + } + console.log('今日到馆', todayCount) + + let nowMonthCount = 0 + if (result.thisMonthVisitBaseCheck === '1') { + nowMonthCount = result.thisMonthVisitBase + } else { + nowMonthCount = Math.floor(monthBase * (now.getDate() / daysInMonth) + randomMonth) // 本月到馆 + } + console.log('本月到馆', nowMonthCount) + + const nowYearCount = Math.floor(monthBase * month + randomMonth) // 本年累计 + console.log('本年累计', nowYearCount) + + this.progressData.push( + { + name: '今日到馆', + value: todayCount, + type: 1 + }, + { + name: '本月到馆', + value: nowMonthCount, + type: 2 + }, + { + name: '昨日到馆', + value: yesterdayCount, + type: 3 + }, + { + name: '上月到馆', + value: lastMonthCount, + type: 4 + } + ) + + this.leftData.push({ + id: 'allTotal', + name: '本年累计到馆', + value: this.$parent.formatter(nowYearCount), + valueArr: this.$parent.formatter(nowYearCount).split('') + }, + { + id: 'lastYearTotal', + name: '去年累计到馆', + value: this.$parent.formatter(result.lastYearVisitBase), + valueArr: this.$parent.formatter(result.lastYearVisitBase).split('') + }) + + this.$parent.timedRefresh(this.leftData, 'left') + + localStorage.setItem('yesterdayCountCache', yesterdayCount) + localStorage.setItem('lastMonthCountCache', lastMonthCount) + }, + // 热门搜索 getHotSearch() { const params = { @@ -333,7 +455,6 @@ export default { valueArr: this.$parent.formatter(lendingTotal).toString().split('') } ) - console.log('this.middleData', this.middleData) this.$parent.timedRefresh(this.middleData, 'middle') // setTimeout(() => { // this.$parent.timedRefresh(this.middleData, 'middle') @@ -346,8 +467,8 @@ export default { getLibBookTotal() { const params = { 'libcode': 'LSJDFG,LJPFG,DCDFG,QYTSG,SJLFG,XMDFG,FXLFG,QLQFG,SEDSG,MZZFG,GYTZFG,KJSKCFG,JBTZFG,SKTZFG,XJZFG,PSZFG,DZQZFG,WXJDFG,CHJDFG,BSZFG,BZHFG', - 'starttime': this.getFormattedDate(new Date(), -1), - 'endtime': this.getFormattedDate(new Date()) + 'starttime': '2000-01-01', + 'endtime': '2034-01-01' } return FetchLibBookTotal(params).then(res => { const result = JSON.parse(res.data) @@ -422,20 +543,35 @@ export default { FetchNewBook(params).then(res => { // 图片地址格式 http://192.168.99.67:8080/downloadFile/qytsg/ae281b90-b100-4541-9379-3e104854652c.png const linkSrc = process.env.VUE_APP_BASE_API - this.newList = res.data.map((item, index) => { + + // res.data.push({ + // 'nbName': '222', + // 'nbRecno': '', + // 'isbn': '9787545559804', + // 'nbImgPath': '', + // 'nbExplain': '', + // 'nbAuthor': '', + // 'updateTime': '2024-07-05T05:22:33.307+0000', + // 'updater': 'f8ccafbb791cb89e017968aae4470000', + // 'rownum': 1, + // 'nbBooktype': '', + // 'nbPublisher': '', + // 'libcode': 'FTZN', + // 'sortmark': '', + // 'createTime': '2024-07-05T05:22:33.307+0000', + // 'creater': 'f8ccafbb791cb89e017968aae4470000', + // 'nbId': '4028e3c39080e175019081581b1c008f', + // 'nbPublisherdate': '' + // }) + + this.newList = res.data.filter((item) => { if (item.nbImgPath) { item.nbImgPath = linkSrc + '/downloadFile' + item.nbImgPath + return true } else { - // 网络地址请求 http://8.130.135.212:19000/MarcByIsbn?sIsbn=9787545559804 - // axios.get('http://8.130.135.212:19000/MarcByIsbn?sIsbn=' + item.isbn) - // .then(response => { - // console.log(response) - // }) - // .catch(error => { - // console.error('There was an error!', error) - // }) + // '没有nbImgPath/srcurl/base64,去掉这项数据 + return false } - return item }) const halfLength = Math.ceil(this.newList.length / 2) @@ -444,48 +580,22 @@ export default { }) }, getType1Value() { - const type1Item = this.progressdata.find(item => item.type === 1) + const type1Item = this.progressData.find(item => item.type === 1) return type1Item ? type1Item.value : 0 }, getType2Value() { - const type2Item = this.progressdata.find(item => item.type === 2) + const type2Item = this.progressData.find(item => item.type === 2) return type2Item ? type2Item.value : 0 }, getType3Value() { - const type3Item = this.progressdata.find(item => item.type === 3) + const type3Item = this.progressData.find(item => item.type === 3) return type3Item ? type3Item.value : 0 }, getType4Value() { - const type4Item = this.progressdata.find(item => item.type === 4) + const type4Item = this.progressData.find(item => item.type === 4) return type4Item ? type4Item.value : 0 }, - async initDataPreview() { - // 数据概览 - const previewData = { - 'code': 0, - 'data': { - 'allUserOpenNumCount': 68 - }, - 'message': 'success' - } - if (previewData.code !== 0) return - this.leftData = [] - this.leftData.push({ - id: 'allTotal', - name: '本年累计到馆', - value: this.$parent.formatter(this.pageOneVisitBase), - valueArr: this.$parent.formatter(this.pageOneVisitBase).split('') - }, { - id: 'currentNum', - name: '当前在馆人数', - value: this.$parent.formatter(previewData.data.allUserOpenNumCount), - valueArr: this.$parent.formatter(previewData.data.allUserOpenNumCount).split('') - }) - this.$parent.timedRefresh(this.leftData, 'left') - // setTimeout(() => { - // this.$parent.timedRefresh(this.leftData, 'left') - // }, 1000) - }, + // 以下生成云标签部分 // 三角函数角度计算 sineCosine(a, b, c) { @@ -767,7 +877,7 @@ export default { ul{ display: flex; height: 2rem; - overflow: hidden; + // overflow: hidden; li{ width: 1.375rem; height: 2rem; @@ -781,8 +891,8 @@ export default { .book-img{ width: 1.375rem; height: 2rem; - background: url('~@/assets/images/book_03.png') no-repeat center center; - background-size: contain; + // background: url('~@/assets/images/book_03.png') no-repeat center center; + // background-size: contain; display: flex; align-items: center; overflow: hidden; diff --git a/src/views/pageThree/index.vue b/src/views/pageThree/index.vue index 67483cd..990d662 100644 --- a/src/views/pageThree/index.vue +++ b/src/views/pageThree/index.vue @@ -96,13 +96,13 @@
      今日借阅趋势
      - +
      近7日借阅统计
      - +
    @@ -110,15 +110,15 @@