Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sensorConsult
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhanglw
sensorConsult
Commits
820e833d
Commit
820e833d
authored
Jul 22, 2023
by
zhanglw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页供应商
parent
1c27661d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
91 deletions
+14
-91
common.js
src/api/common.js
+7
-0
index.vue
src/views/homepage/index.vue
+7
-91
No files found.
src/api/common.js
View file @
820e833d
...
...
@@ -427,6 +427,13 @@ export const HttpReq = {
method
:
'
get
'
})
},
// 首页-供应商板块
homePageGetSupplier
:
function
(
params
)
{
return
request
({
url
:
'
/api/bsw/bigScreen/index/supplier?
'
+
qs
.
stringify
(
params
,
{
indices
:
false
}),
method
:
'
get
'
})
},
id
:
null
}
}
...
...
src/views/homepage/index.vue
View file @
820e833d
...
...
@@ -95,7 +95,7 @@
<img
src=
"@/assets/home_images/locate.png"
>
</el-col>
<el-col
:span=
"13"
>
<div
class=
"area"
>
{{
item
.
area
}}
</div>
<div
class=
"area"
>
{{
dict
.
label
.
area_province
[
item
.
area
]
}}
</div>
</el-col>
<el-col
:span=
"8"
>
<div
class=
"date"
>
{{
item
.
date
}}
</div>
...
...
@@ -271,96 +271,7 @@ export default {
imgSrcList
:
[]
}
],
showcaseSuppliers
:
[
{
isGood
:
true
,
isHot
:
false
,
isStore
:
false
,
title
:
'
中山市三角镇凌创传感器厂
'
,
subTitle
:
'
021-12568***
'
,
area
:
'
天津
'
,
date
:
'
2023-06-12
'
,
imgSrc
:
''
,
imgSrcList
:
[]
},
{
isGood
:
true
,
isHot
:
true
,
isStore
:
true
,
title
:
'
中山市三角镇凌创传感器厂
'
,
subTitle
:
'
021-12568***
'
,
area
:
'
天津
'
,
date
:
'
2023-06-12
'
,
imgSrc
:
''
,
imgSrcList
:
[]
},
{
isGood
:
false
,
isHot
:
true
,
isStore
:
false
,
title
:
'
中山市三角镇凌创传感器厂
'
,
subTitle
:
'
021-12568***
'
,
area
:
'
天津
'
,
date
:
'
2023-06-12
'
,
imgSrc
:
''
,
imgSrcList
:
[]
},
{
isGood
:
false
,
isHot
:
false
,
isStore
:
true
,
title
:
'
中山市三角镇凌创传感器厂
'
,
subTitle
:
'
021-12568***
'
,
area
:
'
天津
'
,
date
:
'
2023-06-12
'
,
imgSrc
:
''
,
imgSrcList
:
[]
},
{
isGood
:
false
,
isHot
:
true
,
isStore
:
false
,
title
:
'
中山市三角镇凌创传感器厂
'
,
subTitle
:
'
021-12568***
'
,
area
:
'
天津
'
,
date
:
'
2023-06-12
'
,
imgSrc
:
''
,
imgSrcList
:
[]
},
{
isGood
:
false
,
isHot
:
false
,
isStore
:
false
,
title
:
'
中山市三角镇凌创传感器厂
'
,
subTitle
:
'
021-12568***
'
,
area
:
'
天津
'
,
date
:
'
2023-06-12
'
,
imgSrc
:
''
,
imgSrcList
:
[]
},
{
isGood
:
true
,
isHot
:
false
,
isStore
:
false
,
title
:
'
中山市三角镇凌创传感器厂
'
,
subTitle
:
'
021-12568***
'
,
area
:
'
天津
'
,
date
:
'
2023-06-12
'
,
imgSrc
:
''
,
imgSrcList
:
[]
},
{
isGood
:
false
,
isHot
:
false
,
isStore
:
false
,
title
:
'
中山市三角镇凌创传感器厂
'
,
subTitle
:
'
021-12568***
'
,
area
:
'
天津
'
,
date
:
'
2023-06-12
'
,
imgSrc
:
''
,
imgSrcList
:
[]
}
],
showcaseSuppliers
:
[],
topAreas
:
[],
topSuppliers
:
[],
topProducts
:
[],
...
...
@@ -382,6 +293,11 @@ export default {
}).
then
((
res
)
=>
{
this
.
partners
=
res
.
data
.
partners
})
HttpReq
.
webClientApi
.
homePageGetSupplier
({
preview
:
false
}).
then
((
res
)
=>
{
this
.
showcaseSuppliers
=
res
.
data
.
showcaseSuppliers
})
const
random
=
(
min
,
max
)
=>
{
return
Math
.
floor
(
Math
.
random
()
*
(
max
-
min
))
+
min
}
...
...
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