Browse Source

0830

master
xuhuajiao 2 years ago
parent
commit
42bf844647
  1. 8
      .env.development
  2. 4
      src/api/library.js
  3. 3
      src/views/accessToLibrary/index.vue
  4. 9
      src/views/lengingRanking/index.vue
  5. 8
      src/views/newBookRecommend/index.vue
  6. 4
      src/views/video/index.vue

8
.env.development

@ -7,13 +7,9 @@ ENV = 'development'
#VUE_APP_WS_API = 'ws://192.168.99.107:7071'
#VUE_APP_CAMERA_API = '192.168.99.107'
# 刘力-本地服地址
#VUE_APP_BASE_API = 'http://192.168.99.65:7070'
#VUE_APP_WS_API = 'ws://192.168.99.65:7071'
# 许镇-本地服地址
VUE_APP_BASE_API = 'http://192.168.99.84:8080'
VUE_APP_WS_API = 'ws://192.168.99.84:8081'
VUE_APP_BASE_API = 'http://192.168.99.67:8080'
VUE_APP_WS_API = 'ws://192.168.99.67:8081'
# 是否启用 babel-plugin-dynamic-import-node插件
VUE_CLI_BABEL_TRANSPILE_MODULES = true

4
src/api/library.js

@ -78,8 +78,8 @@ export function FetchCoverByISBN(params) {
return request({
url: '/dxhtsg/getCoverByISBN',
method: 'get',
params: params,
responseType: 'blob'
params: params
// responseType: 'blob'
})
}

3
src/views/accessToLibrary/index.vue

@ -65,7 +65,8 @@ export default {
methods: {
getInitIntoNum() {
this.otherDoorOther = window.location.href.split('?')[1]?.split('=')[1]
if (this.otherDoorOther !== '' && this.otherDoorOther.indexOf('&')) {
console.log(this.otherDoorOther)
if (this.otherDoorOther && this.otherDoorOther !== '' && this.otherDoorOther.indexOf('&')) {
this.otherDoorOther = this.otherDoorOther.replace(/\&/g, '、')
} else {
this.otherDoorOther = null

9
src/views/lengingRanking/index.vue

@ -82,7 +82,14 @@ export default {
isbn: isbn
}
FetchCoverByISBN(params).then((res) => {
item.cover = window.URL.createObjectURL(res)
console.log('RES', res)
if (res) {
// item.cover = window.URL.createObjectURL(res)
item.cover = res
} else {
item.cover = ''
}
console.log(item.cover)
this.$refs.listData.reset()
})
}

8
src/views/newBookRecommend/index.vue

@ -93,7 +93,13 @@ export default {
}
FetchCoverByISBN(params).then((res) => {
console.log(res)
item.cover = window.URL.createObjectURL(res)
// item.cover = window.URL.createObjectURL(res)
if (res) {
// item.cover = window.URL.createObjectURL(res)
item.cover = res
} else {
item.cover = ''
}
this.rankingList.push(item)
})
}

4
src/views/video/index.vue

@ -3,7 +3,7 @@
<video v-if="srcList[0].endsWith('.mp4')" width="100%" height="100%" controls loop autoplay muted :poster="poster">
<source :src="srcList[0]" type="video/mp4">
</video>
<el-carousel v-if="!srcList[0].endsWith('.mp4')" interval="6000">
<el-carousel v-if="!srcList[0].endsWith('.mp4')" :interval="6000">
<el-carousel-item v-for="src in srcList" :key="src">
<img width="100%" height="100%" :src="src">
</el-carousel-item>
@ -38,7 +38,7 @@ export default {
FetchShowFileList(params).then(res => {
if (res.errCode === 0) {
// this.src = res.data[0].filePath.replace('D://', 'http://172.16.0.23:8888/')
this.srcList = res.data.map(x => x.filePath.replace('D://', 'http://172.16.0.23:8888/'))
this.srcList = res.data.map(x => x.filePath.replace('D://', 'http://172.22.0.23:8888/'))
// this.srcList = res.data.map(x => x.filePath.replace('D://uploadFile', 'http://localhost:8080/static/'))
// console.log(22222, this.srcList)
// this.src = 'D://uploadFile/11503339-b829-4357-8379-d2b49106431f.mp4'.replace('D://', 'http://127.0.0.1:8888/')

Loading…
Cancel
Save