提交 18c8b296 authored 作者: 翟畅's avatar 翟畅

zc资讯表格样式

上级 b2d4bf8a
......@@ -7191,9 +7191,9 @@
}
},
"jquery": {
"version": "3.5.1",
"resolved": "https://registry.npmjs.org/jquery/-/jquery-3.5.1.tgz",
"integrity": "sha512-XwIBPqcMn57FxfT+Go5pzySnm4KWkT1Tv7gjrpT1srtf8Weynl6R273VJ5GjkRb51IzMp5nbaPjJXMWeju2MKg==",
"version": "3.7.1",
"resolved": "https://registry.npmmirror.com/jquery/-/jquery-3.7.1.tgz",
"integrity": "sha512-m4avr8yL8kmFN8psrbFFFmB/If14iN5o9nw/NgnnM+kybDJpRsAynV2BsfpTYrTRysYUdADVD7CkUUizgkpLfg==",
"dev": true
},
"js-base64": {
......
......@@ -243,7 +243,7 @@
<script>
import { marketDownListAPI, marketContactUsListAPI, marketGroupBuyListAPI, marketDistributorListAPI, marketRetailListAPI, marketPiracyListAPI, getAdsignAPI } from "@/api/home/index"
import { resourceLink, BASE_URL } from "@/utils/global.js"
import { resourceLink, BASE_URL, fileUrl } from "@/utils/global.js"
import comHeader from "@/components/comHeader.vue"
import comFooter from "@/components/comFooter.vue"
import levitate from "@/components/index/levitate.vue"
......@@ -276,6 +276,7 @@ export default {
return {
resourceLink,
BASE_URL,
fileUrl,
currentDownIndex:null,
downLoadList:[],
contactDetailList:[],
......@@ -404,7 +405,8 @@ export default {
//下载服务
downLoadInfo(item){
if(item.file){
window.open(this.BASE_URL + '/file/file/download/filePath?path=' + item.file)
window.open(this.fileUrl + 'download/' + item.file)
// window.open(this.BASE_URL + '/file/file/download/filePath?path=' + item.file)
}else{
this.$message.warning('该资源无法下载')
}
......
......@@ -130,12 +130,26 @@ export default {
specialDetAPI(this.id).then((res) => {
if(res.data.code == 0){
this.pressDetailInfo = res.data.data
let str = /<table/g
if(this.pressDetailInfo.synopsis){
this.pressDetailInfo.synopsis = this.pressDetailInfo.synopsis.replace(str,'<table border="1"')
}
if(this.pressDetailInfo.content){
this.pressDetailInfo.content = this.pressDetailInfo.content.replace(str,'<table border="1"')
}
}
})
}else{
homeNewsDetailAPI(this.id).then((res) => {
if(res.data.code == 0){
this.pressDetailInfo = res.data.data
let str = /<table/g
if(this.pressDetailInfo.synopsis){
this.pressDetailInfo.synopsis = this.pressDetailInfo.synopsis.replace(str,'<table border="1"')
}
if(this.pressDetailInfo.content){
this.pressDetailInfo.content = this.pressDetailInfo.content.replace(str,'<table border="1"')
}
}
})
}
......@@ -295,6 +309,9 @@ export default {
margin-bottom: 8px;
text-decoration: none;
}
/deep/ table{
transform: translateX(32px);
}
}
.fileDownBox{
width: 100%;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论