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
1737f143
Commit
1737f143
authored
Jun 25, 2023
by
zhanglw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优质供应商
parent
dceff943
Changes
14
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
1653 additions
and
12 deletions
+1653
-12
top_area.png
src/assets/home_images/top_area.png
+0
-0
top_area_.png
src/assets/home_images/top_area_.png
+0
-0
index.js
src/router/index.js
+1
-1
routers.js
src/router/routers.js
+24
-0
inquiryView.vue
src/views/homepage/components/inquiryView.vue
+3
-1
titleMenus.vue
src/views/homepage/components/titleMenus.vue
+1
-1
titleMenusV2.vue
src/views/homepage/components/titleMenusV2.vue
+1
-1
userLogin.vue
src/views/homepage/components/userLogin.vue
+1
-3
userLoginV2.vue
src/views/homepage/components/userLoginV2.vue
+1
-3
index.vue
src/views/homepage/course/index.vue
+471
-0
index.vue
src/views/homepage/index.vue
+38
-2
index.vue
src/views/homepage/product/index.vue
+1
-0
index.vue
src/views/homepage/project/index.vue
+546
-0
index.vue
src/views/homepage/supplier/index.vue
+565
-0
No files found.
src/assets/home_images/top_area.png
View replaced file @
dceff943
View file @
1737f143
79.6 KB
|
W:
|
H:
46.9 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/assets/home_images/top_area_.png
0 → 100644
View file @
1737f143
79.6 KB
src/router/index.js
View file @
1737f143
...
@@ -9,7 +9,7 @@ import { filterAsyncRouter } from '@/store/modules/permission'
...
@@ -9,7 +9,7 @@ import { filterAsyncRouter } from '@/store/modules/permission'
NProgress
.
configure
({
showSpinner
:
false
})
// NProgress Configuration
NProgress
.
configure
({
showSpinner
:
false
})
// NProgress Configuration
const
whiteList
=
[
'
/login
'
,
'
/backlogin
'
,
'
/home
'
,
'
/product
'
]
// 免登录路由白名单
const
whiteList
=
[
'
/login
'
,
'
/backlogin
'
,
'
/home
'
,
'
/product
'
,
'
/supplier
'
,
'
/project
'
,
'
/course
'
]
// 免登录路由白名单
const
backUrlList
=
[
'
/dashboard
'
,
'
/system
'
,
'
/monitor
'
,
'
/sys-tools
'
,
'
/backstage
'
]
// 后台路由
const
backUrlList
=
[
'
/dashboard
'
,
'
/system
'
,
'
/monitor
'
,
'
/sys-tools
'
,
'
/backstage
'
]
// 后台路由
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
...
...
src/router/routers.js
View file @
1737f143
...
@@ -52,6 +52,30 @@ export const constantRouterMap = [
...
@@ -52,6 +52,30 @@ export const constantRouterMap = [
},
},
hidden
:
true
hidden
:
true
},
},
{
path
:
'
/supplier
'
,
meta
:
{
title
:
'
优质供应商
'
,
noCache
:
true
},
component
:
(
resolve
)
=>
{
return
require
([
'
@/views/homepage/supplier/index
'
],
resolve
)
},
hidden
:
true
},
{
path
:
'
/project
'
,
meta
:
{
title
:
'
解决方案与服务
'
,
noCache
:
true
},
component
:
(
resolve
)
=>
{
return
require
([
'
@/views/homepage/project/index
'
],
resolve
)
},
hidden
:
true
},
{
path
:
'
/course
'
,
meta
:
{
title
:
'
专业培训
'
,
noCache
:
true
},
component
:
(
resolve
)
=>
{
return
require
([
'
@/views/homepage/course/index
'
],
resolve
)
},
hidden
:
true
},
{
{
path
:
'
/backstage
'
,
path
:
'
/backstage
'
,
component
:
Layout
,
component
:
Layout
,
...
...
src/views/homepage/components/inquiryView.vue
View file @
1737f143
...
@@ -38,7 +38,7 @@ export default {
...
@@ -38,7 +38,7 @@ export default {
'
course
'
:
'
课程定制
'
'
course
'
:
'
课程定制
'
},
},
visible
:
false
,
visible
:
false
,
title
:
'
询 价
'
,
title
:
'
咨 询
'
,
formData
:
{
formData
:
{
name
:
''
,
name
:
''
,
phone
:
''
,
phone
:
''
,
...
@@ -94,6 +94,8 @@ export default {
...
@@ -94,6 +94,8 @@ export default {
initView
(
id
,
type
)
{
initView
(
id
,
type
)
{
if
(
type
)
{
if
(
type
)
{
this
.
title
=
this
.
typeDict
[
type
]
this
.
title
=
this
.
typeDict
[
type
]
}
else
{
this
.
title
=
'
咨 询
'
}
}
this
.
showView
()
this
.
showView
()
}
}
...
...
src/views/homepage/components/titleMenus.vue
View file @
1737f143
...
@@ -10,7 +10,7 @@ export default {
...
@@ -10,7 +10,7 @@ export default {
data
()
{
data
()
{
return
{
return
{
menus
:
[
menus
:
[
{
name
:
'
首页
'
,
url
:
'
/home
'
},
{
name
:
'
优质产品
'
,
url
:
'
/product
'
},
{
name
:
'
优质供应商
'
},
{
name
:
'
解决方案与服务
'
},
{
name
:
'
软件系统
'
},
{
name
:
'
专业培训
'
},
{
name
:
'
行业资讯
'
},
{
name
:
'
信息发布
'
}
{
name
:
'
首页
'
,
url
:
'
/home
'
},
{
name
:
'
优质产品
'
,
url
:
'
/product
'
},
{
name
:
'
优质供应商
'
,
url
:
'
/supplier
'
},
{
name
:
'
解决方案与服务
'
,
url
:
'
/project
'
},
{
name
:
'
软件系统
'
},
{
name
:
'
专业培训
'
,
url
:
'
/course
'
},
{
name
:
'
行业资讯
'
},
{
name
:
'
信息发布
'
}
],
],
currentMenuObj
:
null
currentMenuObj
:
null
}
}
...
...
src/views/homepage/components/titleMenusV2.vue
View file @
1737f143
...
@@ -17,7 +17,7 @@ export default {
...
@@ -17,7 +17,7 @@ export default {
data
()
{
data
()
{
return
{
return
{
menus
:
[
menus
:
[
{
name
:
'
首页
'
,
url
:
'
/home
'
},
{
name
:
'
优质产品
'
,
url
:
'
/product
'
},
{
name
:
'
优质供应商
'
},
{
name
:
'
解决方案与服务
'
},
{
name
:
'
软件系统
'
},
{
name
:
'
专业培训
'
},
{
name
:
'
行业资讯
'
},
{
name
:
'
信息发布
'
}
{
name
:
'
首页
'
,
url
:
'
/home
'
},
{
name
:
'
优质产品
'
,
url
:
'
/product
'
},
{
name
:
'
优质供应商
'
,
url
:
'
/supplier
'
},
{
name
:
'
解决方案与服务
'
,
url
:
'
/project
'
},
{
name
:
'
软件系统
'
},
{
name
:
'
专业培训
'
,
url
:
'
/course
'
},
{
name
:
'
行业资讯
'
},
{
name
:
'
信息发布
'
}
],
],
currentMenuObj
:
null
currentMenuObj
:
null
}
}
...
...
src/views/homepage/components/userLogin.vue
View file @
1737f143
...
@@ -39,9 +39,7 @@ export default {
...
@@ -39,9 +39,7 @@ export default {
])
])
},
},
mounted
()
{
mounted
()
{
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{})
console
.
log
(
this
.
user
)
})
},
},
methods
:
{
methods
:
{
login
(
item
)
{
login
(
item
)
{
...
...
src/views/homepage/components/userLoginV2.vue
View file @
1737f143
...
@@ -39,9 +39,7 @@ export default {
...
@@ -39,9 +39,7 @@ export default {
])
])
},
},
mounted
()
{
mounted
()
{
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{})
console
.
log
(
this
.
user
)
})
},
},
methods
:
{
methods
:
{
login
(
item
)
{
login
(
item
)
{
...
...
src/views/homepage/course/index.vue
0 → 100644
View file @
1737f143
This diff is collapsed.
Click to expand it.
src/views/homepage/index.vue
View file @
1737f143
...
@@ -107,7 +107,15 @@
...
@@ -107,7 +107,15 @@
<!--热门排行榜-->
<!--热门排行榜-->
<div
class=
"line-title"
><div
class=
"title-point"
/><span
class=
"title-text"
>
热门排行榜
</span></div>
<div
class=
"line-title"
><div
class=
"title-point"
/><span
class=
"title-text"
>
热门排行榜
</span></div>
<el-row
:gutter=
"20"
style=
"padding-top: 20px"
>
<el-row
:gutter=
"20"
style=
"padding-top: 20px"
>
<el-col
:span=
"8"
><div
class=
"top_area"
/></el-col>
<el-col
:span=
"8"
><div
class=
"top_area"
>
<div
v-for=
"(item,index) in topAreas"
:key=
"'ta_'+index"
class=
"top_area_text touch"
:style=
"'top:'+item.top+';left:'+item.left+';font-size:'+item.size+';color:'+color[index]"
@
click=
"areaTopClick(item.name)"
>
{{
item
.
name
}}
</div>
</div></el-col>
<el-col
:span=
"8"
><div
class=
"box-toplist"
>
<el-col
:span=
"8"
><div
class=
"box-toplist"
>
<div
class=
"title"
>
供应商TOP8
</div>
<div
class=
"title"
>
供应商TOP8
</div>
<ul
class=
"contact-list"
>
<ul
class=
"contact-list"
>
...
@@ -167,6 +175,7 @@ export default {
...
@@ -167,6 +175,7 @@ export default {
dicts
:
[
'
product_type
'
,
'
area_province
'
],
dicts
:
[
'
product_type
'
,
'
area_province
'
],
data
()
{
data
()
{
return
{
return
{
color
:
[
'
#C1232B
'
,
'
#27727B
'
,
'
#FCCE10
'
,
'
#E87C25
'
,
'
#B5C334
'
,
'
#FE8463
'
,
'
#9BCA63
'
,
'
#FAD860
'
,
'
#F3A43B
'
,
'
#60C0DD
'
,
'
#D7504B
'
,
'
#C6E579
'
,
'
#F4E001
'
,
'
#F0805A
'
,
'
#26C0C0
'
],
defaultImgProduct
:
default_product
,
defaultImgProduct
:
default_product
,
defaultImgLogo
:
default_p_logo
,
defaultImgLogo
:
default_p_logo
,
imgSrcStart
:
process
.
env
.
VUE_APP_BASE_API
,
imgSrcStart
:
process
.
env
.
VUE_APP_BASE_API
,
...
@@ -352,6 +361,7 @@ export default {
...
@@ -352,6 +361,7 @@ export default {
imgSrcList
:
[]
imgSrcList
:
[]
}
}
],
],
topAreas
:
[],
topSuppliers
:
[
topSuppliers
:
[
{
name
:
'
中山市三角镇凌创传感器厂
'
,
id
:
123
},
{
name
:
'
中山市三角镇凌创传感器厂
'
,
id
:
123
},
{
name
:
'
中山市三角镇凌创传感器厂
'
,
id
:
123
},
{
name
:
'
中山市三角镇凌创传感器厂
'
,
id
:
123
},
...
@@ -387,7 +397,20 @@ export default {
...
@@ -387,7 +397,20 @@ export default {
},
},
mounted
()
{
mounted
()
{
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
const
random
=
(
min
,
max
)
=>
{
return
Math
.
floor
(
Math
.
random
()
*
(
max
-
min
))
+
min
}
const
arr
=
[
'
北京
'
,
'
上海
'
,
'
广州
'
,
'
深圳
'
,
'
青岛
'
,
'
南京
'
,
'
杭州
'
,
'
天津
'
,
'
石家庄
'
,
'
济南
'
,
'
烟台
'
,
'
威海
'
,
'
大连
'
,
'
连云港
'
,
'
潍坊
'
]
arr
.
forEach
((
item
,
index
)
=>
{
this
.
topAreas
.
push
({
name
:
item
,
top
:
`
${
random
(
0
,
382
)}
px`
,
left
:
`
${
random
(
0
,
324
)}
px`
,
size
:
`
${
Math
.
max
(
80
-
index
*
7
,
12
)}
px`
})
})
this
.
topAreas
[
0
].
top
=
'
180px
'
this
.
topAreas
[
0
].
left
=
'
120px
'
})
})
},
},
methods
:
{
methods
:
{
...
@@ -422,6 +445,10 @@ export default {
...
@@ -422,6 +445,10 @@ export default {
goToDetails
(
item
,
type
)
{
goToDetails
(
item
,
type
)
{
console
.
log
(
item
,
type
)
console
.
log
(
item
,
type
)
},
},
// 点击地区top
areaTopClick
(
text
)
{
console
.
log
(
text
)
},
// 点击更多
// 点击更多
moreTo
(
type
)
{
moreTo
(
type
)
{
console
.
log
(
type
)
console
.
log
(
type
)
...
@@ -546,10 +573,19 @@ export default {
...
@@ -546,10 +573,19 @@ export default {
}
}
}
}
.top_area
{
.top_area
{
position
:
relative
;
width
:
100%
;
width
:
100%
;
height
:
492px
;
height
:
492px
;
background
:
url("../../assets/home_images/top_area.png")
no-repeat
;
background
:
url("../../assets/home_images/top_area.png")
no-repeat
;
background-size
:
100%
100%
;
background-size
:
100%
100%
;
.top_area_text
{
position
:
absolute
;
font-weight
:
bolder
;
opacity
:
0
.7
;
}
.top_area_text
:hover
{
opacity
:
1
;
}
}
}
.box-toplist
{
.box-toplist
{
background
:
#FFFFFF
;
background
:
#FFFFFF
;
...
...
src/views/homepage/product/index.vue
View file @
1737f143
...
@@ -175,6 +175,7 @@
...
@@ -175,6 +175,7 @@
</div>
</div>
<home-footer
ref=
"homeFooter"
/>
<home-footer
ref=
"homeFooter"
/>
<inquiry-view
ref=
"inquiryView"
/>
<inquiry-view
ref=
"inquiryView"
/>
<el-backtop
/>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
...
...
src/views/homepage/project/index.vue
0 → 100644
View file @
1737f143
This diff is collapsed.
Click to expand it.
src/views/homepage/supplier/index.vue
0 → 100644
View file @
1737f143
This diff is collapsed.
Click to expand it.
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