Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
client
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
261098ea
authored
Jul 01, 2024
by
孙美琪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页行业资源图片完整路径修改
parent
1bb0016d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
src/views/index-copy.vue
+2
-3
No files found.
src/views/index-copy.vue
View file @
261098ea
...
...
@@ -30,7 +30,7 @@
<el-row
:gutter=
"24"
>
<el-col
class=
"resource-col"
:span=
"8"
v-for=
"x in i.assemblyData"
:key=
"i"
@
click=
"i.id === 1? $router.push(x.router):openAssembly(x)"
:style=
"
{background: `url(${index === 0 ?base
ImgUrl+x.image:baseImg
Url+x.homeImage}) no-repeat center center / 100%`}"
:style=
"
{background: `url(${index === 0 ?base
Url+x.image:base
Url+x.homeImage}) no-repeat center center / 100%`}"
>
<!-- style="background: url("@/assets/images/indexImg/resource1.png") no-repeat center center / 100%;"-->
<div
class=
"resource-box"
>
...
...
@@ -140,7 +140,7 @@ import {banner, assemblyList, informationResourceList, informationList} from '@/
import
{
ref
}
from
'vue'
const
baseUrl
=
import
.
meta
.
env
.
VITE_APP_BASE_API
const
baseImgUrl
=
window
.
location
.
origin
//
const baseImgUrl = window.location.origin
const
assemblyData
=
ref
([])
const
bannerImgList
=
ref
([])
...
...
@@ -211,7 +211,6 @@ function getAassemblyList() {
// 计算自选
function
getResource
()
{
informationResourceList
().
then
(
res
=>
{
console
.
log
(
res
,
'res'
)
list
.
value
[
0
].
assemblyData
=
res
.
data
.
length
>
3
?
res
.
data
.
slice
(
0
,
3
)
:
res
.
data
})
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment