@ -7,8 +7,8 @@ ENV = 'development'
#VUE_APP_WS_API = 'ws://120.76.47.59:8080'
# 许镇-本地服地址
VUE_APP_BASE_API = 'http://192.168.99.84:8080'
VUE_APP_WS_API = 'ws://192.168.99.84:8080'
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
@ -33,8 +33,8 @@ export function FetchCoverByISBN(params) {
return request({
url: '/dxhtsg/getCoverByISBN',
method: 'get',
params: params,
responseType: 'blob'
params: params
// responseType: 'blob'
})
}
@ -31,11 +31,12 @@ service.interceptors.response.use(
response => {
const errorMsg = response.data.errMsg
if (response.status === 200) {
// console.log(response.data.data)
if (response.data instanceof Blob) {
return response.data
} else {
} else if (response.data.data) {
return response.data.data
Message.error({
@ -9,7 +9,7 @@
<div class="main">
<div v-for="(item,index) in srcList" :key="index" class="main-item" @click="jump(item.nrsUrl)">
<img :src="'data:image/png;base64,' + item.nrsImages" />
<div class="title">
<div class="title" :style="{ fontSize: item.nrsTitle.length >6 ? '60px' : '80px'}">
{{ item.nrsTitle }}
</div>
@ -75,6 +75,7 @@ export default {
-webkit-line-clamp: 3;
line-clamp: 3;
-webkit-box-orient: vertical;
text-align: center;
@ -130,8 +130,14 @@ export default {
const params = {
isbn: isbn
console.log(params)
FetchCoverByISBN(params).then((res) => {
item.cover = window.URL.createObjectURL(res)
// item.cover = window.URL.createObjectURL(res)
if (res) {
item.cover = res
item.cover = ''
this.newList.push(item)
},
@ -53,7 +53,12 @@ export const bookListCrud = {
this.bookData.push(item)
this.bookLoading = false
@ -102,7 +102,7 @@ export default {
// justify-content: space-between;
li{
margin-bottom: 20px;
margin-left: 48px;
margin-left: 20px;
width: 300px;
overflow: hidden;
.other-list-img{