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
bd781487
Commit
bd781487
authored
Jul 07, 2023
by
zhanglw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
询价记录
parent
09303bef
Changes
9
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
1331 additions
and
21 deletions
+1331
-21
routers.js
src/router/routers.js
+25
-1
index.vue
src/views/backstage/guidanceMgt/guidanceTabulate/index.vue
+0
-14
userMenus.vue
src/views/homepage/components/userMenus.vue
+2
-2
askLog.vue
src/views/homepage/console/askLog.vue
+279
-0
replyLog.vue
src/views/homepage/console/replyLog.vue
+288
-0
index.vue
src/views/homepage/index.vue
+19
-2
hardware.vue
src/views/homepage/product/hardware.vue
+706
-0
index.vue
src/views/homepage/product/index.vue
+9
-1
details.vue
src/views/homepage/supplier/details.vue
+3
-1
No files found.
src/router/routers.js
View file @
bd781487
...
@@ -54,12 +54,20 @@ export const constantRouterMap = [
...
@@ -54,12 +54,20 @@ export const constantRouterMap = [
},
},
{
{
path
:
'
/product/details/:id
'
,
path
:
'
/product/details/:id
'
,
meta
:
{
title
:
'
供应商黄页
'
,
noCache
:
true
},
meta
:
{
title
:
'
产品详情
'
,
noCache
:
true
},
component
:
(
resolve
)
=>
{
component
:
(
resolve
)
=>
{
return
require
([
'
@/views/homepage/product/details
'
],
resolve
)
return
require
([
'
@/views/homepage/product/details
'
],
resolve
)
},
},
hidden
:
true
hidden
:
true
},
},
{
path
:
'
/product/hardware/:type
'
,
meta
:
{
title
:
'
硬件产品
'
,
noCache
:
true
},
component
:
(
resolve
)
=>
{
return
require
([
'
@/views/homepage/product/hardware
'
],
resolve
)
},
hidden
:
true
},
{
{
path
:
'
/supplier
'
,
path
:
'
/supplier
'
,
meta
:
{
title
:
'
优质供应商
'
,
noCache
:
true
},
meta
:
{
title
:
'
优质供应商
'
,
noCache
:
true
},
...
@@ -188,6 +196,22 @@ export const constantRouterMap = [
...
@@ -188,6 +196,22 @@ export const constantRouterMap = [
},
},
hidden
:
true
hidden
:
true
},
},
{
path
:
'
/console/replyLog
'
,
meta
:
{
title
:
'
个人中心-被询价记录
'
,
noCache
:
true
},
component
:
(
resolve
)
=>
{
return
require
([
'
@/views/homepage/console/replyLog
'
],
resolve
)
},
hidden
:
true
},
{
path
:
'
/console/askLog
'
,
meta
:
{
title
:
'
个人中心-询价记录
'
,
noCache
:
true
},
component
:
(
resolve
)
=>
{
return
require
([
'
@/views/homepage/console/askLog
'
],
resolve
)
},
hidden
:
true
},
{
{
path
:
'
/backstage
'
,
path
:
'
/backstage
'
,
component
:
Layout
,
component
:
Layout
,
...
...
src/views/backstage/guidanceMgt/guidanceTabulate/index.vue
View file @
bd781487
...
@@ -118,20 +118,6 @@ export default {
...
@@ -118,20 +118,6 @@ export default {
})
})
this
.
loadData
()
this
.
loadData
()
})
})
},
changeEnabled
(
data
,
val
)
{
this
.
$confirm
(
'
此操作将 "
'
+
this
.
dict
.
label
.
user_status
[
val
]
+
'
"
'
+
data
.
username
+
'
, 是否继续?
'
,
'
提示
'
,
{
confirmButtonText
:
'
确定
'
,
cancelButtonText
:
'
取消
'
,
type
:
'
warning
'
}).
then
(()
=>
{
}).
catch
(()
=>
{
data
.
enabled
=
!
data
.
enabled
})
},
toAdd
()
{
},
},
toView
(
item
)
{
toView
(
item
)
{
this
.
$refs
.
viewPage
.
loadData
(
item
.
informationId
)
this
.
$refs
.
viewPage
.
loadData
(
item
.
informationId
)
...
...
src/views/homepage/components/userMenus.vue
View file @
bd781487
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<span>
供应
</span>
<span>
供应
</span>
</div>
</div>
<div
class=
"vertical-menu-label touch"
><span
:class=
"menuIndex==='1'?'active':''"
@
click=
"menuClick('/console/product')"
>
产品管理
</span></div>
<div
class=
"vertical-menu-label touch"
><span
:class=
"menuIndex==='1'?'active':''"
@
click=
"menuClick('/console/product')"
>
产品管理
</span></div>
<div
class=
"vertical-menu-label touch"
><span
:class=
"menuIndex==='2'?'active':''"
@
click=
"menuClick('/
home
')"
>
被询价记录
</span></div>
<div
class=
"vertical-menu-label touch"
><span
:class=
"menuIndex==='2'?'active':''"
@
click=
"menuClick('/
console/replyLog
')"
>
被询价记录
</span></div>
<el-divider
/>
<el-divider
/>
<div
class=
"vertical-menu-title"
>
<div
class=
"vertical-menu-title"
>
<img
src=
"@/assets/home_images/mark_pro.png"
>
<img
src=
"@/assets/home_images/mark_pro.png"
>
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
</div>
</div>
<div
class=
"vertical-menu-label touch"
><span
:class=
"menuIndex==='3'?'active':''"
@
click=
"menuClick('/console/collectPro')"
>
收藏的产品
</span></div>
<div
class=
"vertical-menu-label touch"
><span
:class=
"menuIndex==='3'?'active':''"
@
click=
"menuClick('/console/collectPro')"
>
收藏的产品
</span></div>
<div
class=
"vertical-menu-label touch"
><span
:class=
"menuIndex==='4'?'active':''"
@
click=
"menuClick('/console/collectSup')"
>
收藏的供应商
</span></div>
<div
class=
"vertical-menu-label touch"
><span
:class=
"menuIndex==='4'?'active':''"
@
click=
"menuClick('/console/collectSup')"
>
收藏的供应商
</span></div>
<div
class=
"vertical-menu-label touch"
><span
:class=
"menuIndex==='5'?'active':''"
@
click=
"menuClick('/
home
')"
>
询价记录
</span></div>
<div
class=
"vertical-menu-label touch"
><span
:class=
"menuIndex==='5'?'active':''"
@
click=
"menuClick('/
console/askLog
')"
>
询价记录
</span></div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
...
...
src/views/homepage/console/askLog.vue
0 → 100644
View file @
bd781487
<
template
>
<div
class=
"page-body"
>
<div
class=
"head-box"
>
<div
class=
"head-box-top"
>
<div
class=
"top-call"
/>
<div
class=
"top-call"
><img
src=
"@/assets/home_images/gemho_logo_b.png"
></div>
<div
class=
"top-call"
><title-menus
ref=
"titleMenus"
menu-index=
"99"
style=
"padding-top: 15px"
/></div>
<div
class=
"top-call"
><user-login
ref=
"userLogin"
/></div>
<div
class=
"top-call"
><language-setting
ref=
"languageSetting"
/></div>
</div>
</div>
<div
class=
"content-box"
>
<div
style=
"width: 88%;padding-left: 9%;"
>
<el-row
:gutter=
"20"
style=
"padding-top: 10px"
>
<el-col
:span=
"3"
>
<user-menus
menu-index=
"5"
/>
</el-col>
<el-col
:span=
"21"
style=
"padding: 0 20px"
>
<!-- 表格 -->
<div
class=
"content"
style=
"padding-top: 4px"
>
<el-table
id=
"dataTable"
ref=
"dataTable"
v-loading=
"loading"
:data=
"tableData"
border
height=
"65vh"
:header-cell-style=
"
{background:'#F8F8F8',color:'#333'}" tooltip-effect="dark" @selection-change="handleSelectionChange">
<el-table-column
type=
"index"
width=
"55"
label=
"序号"
:index=
"indexMethod"
/>
<el-table-column
prop=
"productName"
label=
"询价产品"
align=
"center"
/>
<el-table-column
prop=
"productId"
label=
"咨询内容"
align=
"center"
/>
<el-table-column
label=
"状态"
align=
"center"
width=
"120"
>
<template
slot-scope=
"scope"
>
<div
:style=
"'color:'+textColors[scope.row.status]"
>
{{
dict
.
label
.
consult_status
[
scope
.
row
.
status
]
}}
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"createTime"
label=
"咨询日期"
align=
"center"
width=
"180"
/>
<el-table-column
prop=
"handleTime"
label=
"处理日期"
align=
"center"
width=
"180"
/>
</el-table>
<!--分页组件-->
<el-pagination
:total=
"total"
:current-page=
"page"
:page-size=
"pageSize"
style=
"margin-top: 8px;"
layout=
"total, prev, pager, next, sizes"
@
size-change=
"sizeChange"
@
current-change=
"pageChange"
/>
</div>
</el-col>
</el-row>
</div>
</div>
<home-footer
ref=
"homeFooter"
/>
<inquiry-view
ref=
"inquiryView"
/>
<el-backtop
/>
</div>
</template>
<
script
>
import
default_product
from
'
@/assets/home_images/default_product.png
'
import
titleMenus
from
'
../components/titleMenusV2
'
import
userLogin
from
'
../components/userLoginV2
'
import
languageSetting
from
'
../components/languageSettingV2
'
import
homeFooter
from
'
../components/homeFooter
'
import
inquiryView
from
'
../components/inquiryView
'
import
userMenus
from
'
../components/userMenus
'
import
{
HttpReq
}
from
'
@/api/common
'
export
default
{
components
:
{
titleMenus
,
userLogin
,
languageSetting
,
homeFooter
,
inquiryView
,
userMenus
},
dicts
:
[
'
consult_status
'
],
data
()
{
return
{
defaultImgProduct
:
default_product
,
imgSrcStart
:
process
.
env
.
VUE_APP_BASE_API
,
textColors
:
[
'
#ccc
'
,
'
#00008b
'
,
'
#F98052
'
,
'
#bba
'
],
loading
:
false
,
page
:
1
,
pageSize
:
20
,
total
:
0
,
query
:
{},
tableData
:
[],
multipleSelection
:
[],
tabIndex
:
'
1
'
,
throttle
:
null
,
// 节流器
throttleTime
:
300
}
},
mounted
()
{
this
.
$nextTick
(()
=>
{
this
.
loadData
()
})
},
methods
:
{
indexMethod
(
index
)
{
return
1
+
index
+
this
.
page
*
this
.
pageSize
-
this
.
pageSize
},
tabChange
(
tabIndex
)
{
if
(
this
.
tabIndex
===
tabIndex
)
{
return
}
this
.
tabIndex
=
tabIndex
},
handleSelectionChange
(
val
)
{
this
.
multipleSelection
=
val
},
loadData
()
{
// 清除参数无值的情况
Object
.
keys
(
this
.
query
).
length
!==
0
&&
Object
.
keys
(
this
.
query
).
forEach
(
item
=>
{
if
(
this
.
query
[
item
]
===
null
||
this
.
query
[
item
]
===
''
)
this
.
query
[
item
]
=
undefined
})
HttpReq
.
backstageApi
.
queryInformation
({
page
:
this
.
page
-
1
,
pageSize
:
this
.
pageSize
,
...
this
.
query
}).
then
((
res
)
=>
{
this
.
tableData
=
res
.
data
.
data
this
.
total
=
res
.
data
.
total
})
},
batchOperate
(
type
,
row
)
{
if
(
!
row
&&
!
this
.
multipleSelection
.
length
)
{
return
this
.
$message
({
message
:
'
未选取数据
'
,
type
:
'
info
'
})
}
HttpReq
.
backstageApi
.
batchInformationProcessing
({
ids
:
row
?
[
row
.
informationId
]
:
this
.
multipleSelection
.
map
(
item
=>
{
return
item
.
informationId
})
}).
then
((
res
)
=>
{
this
.
$notify
({
title
:
res
.
msg
,
type
:
res
.
code
===
200
?
'
success
'
:
'
error
'
,
duration
:
2500
})
this
.
loadData
()
})
},
toAdd
()
{
this
.
$refs
.
addPage
.
loadData
()
},
toEdit
(
item
)
{
this
.
$refs
.
editPage
.
loadData
(
item
.
productId
)
},
toView
(
item
)
{
this
.
$refs
.
viewPage
.
loadData
(
item
.
productId
)
},
toSearch
()
{
this
.
page
=
1
this
.
loadData
()
},
clearLimit
()
{
this
.
query
=
{}
this
.
loadData
()
},
pageChange
(
e
)
{
this
.
page
=
e
this
.
loadData
()
},
sizeChange
(
e
)
{
this
.
page
=
1
this
.
pageSize
=
e
this
.
loadData
()
}
}
}
</
script
>
<
style
rel=
"stylesheet/scss"
lang=
"scss"
scoped
>
.touch
{
cursor
:pointer
;
}
.clear
{
clear
:
both
}
.inline-block
{
display
:
inline-block
;
}
.ellipsis
{
// 多行溢出省略号
display
:
-
webkit-box
;
-webkit-box-orient
:
vertical
;
overflow
:
hidden
;
-webkit-line-clamp
:
2
;
text-overflow
:
ellipsis
;
}
.pagination
{
margin-top
:
23px
;
text-align
:
center
;
padding
:
10px
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
>>>
.el-pagination.is-background
.el-pager
li
{
font-style
:
normal
;
font-weight
:
400
;
font-size
:
14px
;
text-align
:
center
;
background-color
:
#fff
;
color
:
#000000
;
border
:
1px
solid
#e5e5ea
;
}
/* 激活后的样式 */
>>>
.el-pagination.is-background
.el-pager
li
:not
(
.disabled
)
.active
{
background-color
:
#ffffff
;
color
:
#0366ed
;
border
:
1px
solid
#0366ed
;
text-align
:
center
;
}
/* 修改左右箭头样式 */
>>>
.el-pagination
.btn-next
.el-icon
,
>>>
.el-pagination
.btn-prev
.el-icon
{
font-style
:
normal
;
font-weight
:
400
;
font-size
:
14px
;
text-align
:
center
;
background-color
:
#fff
;
color
:
#e5e5ea
;
border
:
1px
solid
#e5e5ea
;
}
>>>
.el-pager
{
height
:
35
.5px
!
important
;
}
>>>
.number
,
>>>
.el-icon
{
height
:
35
.5px
!
important
;
line-height
:
35
.5px
!
important
;
}
}
.head-box
{
width
:
100vw
;
top
:
0
;
position
:
fixed
;
background
:
none
repeat
scroll
0
0
white
;
z-index
:
999
;
box-shadow
:
0px
3px
7px
0px
rgba
(
0
,
0
,
0
,
0
.2
);
.head-box-top
{
display
:
flex
;
justify-content
:
space-evenly
;
align-items
:
center
;
.top-call
{
height
:
80px
;
padding-top
:
15px
;
}
}
}
.content-box
{
min-height
:
70vh
;
margin-top
:
94px
;
font-family
:
Source
Han
Sans
CN
;
user-select
:
none
;
>>>
.el-table--mini
{
font-size
:
14px
;
}
>>>
.el-button--mini
{
font-size
:
14px
;
}
}
.toolbar
{
display
:
flex
;
justify-content
:
space-between
;
}
.content
{
margin-top
:
10px
;
.table-btn
{
display
:
inline-block
;
margin
:
0
10px
;
color
:
#1791E7
;
opacity
:
0
.8
;
}
.table-btn
:hover
{
opacity
:
1
;
}
}
.tab-box
{
margin
:
20px
0
;
width
:
100%
;
display
:
flex
;
justify-content
:
flex-start
;
border-bottom
:
2px
solid
rgba
(
3
,
66
,
171
,
0
.2
);
.tab-item
{
width
:
120px
;
padding-top
:
10px
;
padding-bottom
:
8px
;
text-align
:
center
;
font-size
:
14px
;
color
:
#666
;
}
.active
{
background
:
rgba
(
183
,
210
,
248
,
0
.25
);
color
:
#1961C5
;
border-bottom
:
3px
solid
rgba
(
3
,
66
,
171
,
0
.8
);
}
}
</
style
>
src/views/homepage/console/replyLog.vue
0 → 100644
View file @
bd781487
<
template
>
<div
class=
"page-body"
>
<div
class=
"head-box"
>
<div
class=
"head-box-top"
>
<div
class=
"top-call"
/>
<div
class=
"top-call"
><img
src=
"@/assets/home_images/gemho_logo_b.png"
></div>
<div
class=
"top-call"
><title-menus
ref=
"titleMenus"
menu-index=
"99"
style=
"padding-top: 15px"
/></div>
<div
class=
"top-call"
><user-login
ref=
"userLogin"
/></div>
<div
class=
"top-call"
><language-setting
ref=
"languageSetting"
/></div>
</div>
</div>
<div
class=
"content-box"
>
<div
style=
"width: 88%;padding-left: 9%;"
>
<el-row
:gutter=
"20"
style=
"padding-top: 10px"
>
<el-col
:span=
"3"
>
<user-menus
menu-index=
"2"
/>
</el-col>
<el-col
:span=
"21"
style=
"padding: 0 20px"
>
<div
class=
"tab-box"
>
<div
class=
"tab-item touch"
:class=
"tabIndex==='1'?'active':''"
@
click=
"tabChange('1')"
>
待处理询价记录
</div>
<div
class=
"tab-item touch"
:class=
"tabIndex==='2'?'active':''"
@
click=
"tabChange('2')"
>
已处理询价记录
</div>
</div>
<!-- 表格 -->
<div
class=
"content"
>
<el-table
id=
"dataTable"
ref=
"dataTable"
v-loading=
"loading"
:data=
"tableData"
border
height=
"58vh"
:header-cell-style=
"
{background:'#F8F8F8',color:'#333'}" tooltip-effect="dark" @selection-change="handleSelectionChange">
<el-table-column
type=
"index"
width=
"55"
label=
"序号"
:index=
"indexMethod"
/>
<el-table-column
prop=
"productName"
label=
"询价产品"
align=
"center"
/>
<el-table-column
prop=
"productId"
label=
"咨询内容"
align=
"center"
/>
<el-table-column
label=
"状态"
align=
"center"
width=
"120"
>
<template
slot-scope=
"scope"
>
<div
:style=
"'color:'+textColors[scope.row.status]"
>
{{
dict
.
label
.
consult_status
[
scope
.
row
.
status
]
}}
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"createTime"
label=
"咨询日期"
align=
"center"
width=
"180"
/>
<el-table-column
prop=
"handleTime"
label=
"处理日期"
align=
"center"
width=
"180"
/>
<el-table-column
label=
"操作"
align=
"center"
width=
"80"
>
<
template
slot-scope=
"scope"
>
<el-button
type=
"text"
:disabled=
"scope.row.status>1"
@
click=
"batchOperate(1, scope.row)"
>
处理
</el-button>
</
template
>
</el-table-column>
</el-table>
<!--分页组件-->
<el-pagination
:total=
"total"
:current-page=
"page"
:page-size=
"pageSize"
style=
"margin-top: 8px;"
layout=
"total, prev, pager, next, sizes"
@
size-change=
"sizeChange"
@
current-change=
"pageChange"
/>
</div>
</el-col>
</el-row>
</div>
</div>
<home-footer
ref=
"homeFooter"
/>
<inquiry-view
ref=
"inquiryView"
/>
<el-backtop
/>
</div>
</template>
<
script
>
import
default_product
from
'
@/assets/home_images/default_product.png
'
import
titleMenus
from
'
../components/titleMenusV2
'
import
userLogin
from
'
../components/userLoginV2
'
import
languageSetting
from
'
../components/languageSettingV2
'
import
homeFooter
from
'
../components/homeFooter
'
import
inquiryView
from
'
../components/inquiryView
'
import
userMenus
from
'
../components/userMenus
'
import
{
HttpReq
}
from
'
@/api/common
'
export
default
{
components
:
{
titleMenus
,
userLogin
,
languageSetting
,
homeFooter
,
inquiryView
,
userMenus
},
dicts
:
[
'
consult_status
'
],
data
()
{
return
{
defaultImgProduct
:
default_product
,
imgSrcStart
:
process
.
env
.
VUE_APP_BASE_API
,
textColors
:
[
'
#ccc
'
,
'
#00008b
'
,
'
#F98052
'
,
'
#bba
'
],
loading
:
false
,
page
:
1
,
pageSize
:
20
,
total
:
0
,
query
:
{},
tableData
:
[],
multipleSelection
:
[],
tabIndex
:
'
1
'
,
throttle
:
null
,
// 节流器
throttleTime
:
300
}
},
mounted
()
{
this
.
$nextTick
(()
=>
{
this
.
loadData
()
})
},
methods
:
{
indexMethod
(
index
)
{
return
1
+
index
+
this
.
page
*
this
.
pageSize
-
this
.
pageSize
},
tabChange
(
tabIndex
)
{
if
(
this
.
tabIndex
===
tabIndex
)
{
return
}
this
.
tabIndex
=
tabIndex
},
handleSelectionChange
(
val
)
{
this
.
multipleSelection
=
val
},
loadData
()
{
// 清除参数无值的情况
Object
.
keys
(
this
.
query
).
length
!==
0
&&
Object
.
keys
(
this
.
query
).
forEach
(
item
=>
{
if
(
this
.
query
[
item
]
===
null
||
this
.
query
[
item
]
===
''
)
this
.
query
[
item
]
=
undefined
})
HttpReq
.
backstageApi
.
queryInformation
({
page
:
this
.
page
-
1
,
pageSize
:
this
.
pageSize
,
...
this
.
query
}).
then
((
res
)
=>
{
this
.
tableData
=
res
.
data
.
data
this
.
total
=
res
.
data
.
total
})
},
batchOperate
(
type
,
row
)
{
this
.
$confirm
(
'
确定处理词条记录?
'
,
'
提示
'
,
{
confirmButtonText
:
'
确定
'
,
cancelButtonText
:
'
取消
'
,
type
:
'
warning
'
}).
then
(()
=>
{
HttpReq
.
backstageApi
.
batchInformationProcessing
({
ids
:
row
.
informationId
}).
then
((
res
)
=>
{
this
.
$notify
({
title
:
res
.
msg
,
type
:
res
.
code
===
200
?
'
success
'
:
'
error
'
,
duration
:
2500
})
this
.
loadData
()
})
})
},
toAdd
()
{
this
.
$refs
.
addPage
.
loadData
()
},
toEdit
(
item
)
{
this
.
$refs
.
editPage
.
loadData
(
item
.
productId
)
},
toView
(
item
)
{
this
.
$refs
.
viewPage
.
loadData
(
item
.
productId
)
},
toSearch
()
{
this
.
page
=
1
this
.
loadData
()
},
clearLimit
()
{
this
.
query
=
{}
this
.
loadData
()
},
pageChange
(
e
)
{
this
.
page
=
e
this
.
loadData
()
},
sizeChange
(
e
)
{
this
.
page
=
1
this
.
pageSize
=
e
this
.
loadData
()
}
}
}
</
script
>
<
style
rel=
"stylesheet/scss"
lang=
"scss"
scoped
>
.touch
{
cursor
:pointer
;
}
.clear
{
clear
:
both
}
.inline-block
{
display
:
inline-block
;
}
.ellipsis
{
// 多行溢出省略号
display
:
-
webkit-box
;
-webkit-box-orient
:
vertical
;
overflow
:
hidden
;
-webkit-line-clamp
:
2
;
text-overflow
:
ellipsis
;
}
.pagination
{
margin-top
:
23px
;
text-align
:
center
;
padding
:
10px
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
>>>
.el-pagination.is-background
.el-pager
li
{
font-style
:
normal
;
font-weight
:
400
;
font-size
:
14px
;
text-align
:
center
;
background-color
:
#fff
;
color
:
#000000
;
border
:
1px
solid
#e5e5ea
;
}
/* 激活后的样式 */
>>>
.el-pagination.is-background
.el-pager
li
:not
(
.disabled
)
.active
{
background-color
:
#ffffff
;
color
:
#0366ed
;
border
:
1px
solid
#0366ed
;
text-align
:
center
;
}
/* 修改左右箭头样式 */
>>>
.el-pagination
.btn-next
.el-icon
,
>>>
.el-pagination
.btn-prev
.el-icon
{
font-style
:
normal
;
font-weight
:
400
;
font-size
:
14px
;
text-align
:
center
;
background-color
:
#fff
;
color
:
#e5e5ea
;
border
:
1px
solid
#e5e5ea
;
}
>>>
.el-pager
{
height
:
35
.5px
!
important
;
}
>>>
.number
,
>>>
.el-icon
{
height
:
35
.5px
!
important
;
line-height
:
35
.5px
!
important
;
}
}
.head-box
{
width
:
100vw
;
top
:
0
;
position
:
fixed
;
background
:
none
repeat
scroll
0
0
white
;
z-index
:
999
;
box-shadow
:
0px
3px
7px
0px
rgba
(
0
,
0
,
0
,
0
.2
);
.head-box-top
{
display
:
flex
;
justify-content
:
space-evenly
;
align-items
:
center
;
.top-call
{
height
:
80px
;
padding-top
:
15px
;
}
}
}
.content-box
{
min-height
:
70vh
;
margin-top
:
94px
;
font-family
:
Source
Han
Sans
CN
;
user-select
:
none
;
>>>
.el-table--mini
{
font-size
:
14px
;
}
>>>
.el-button--mini
{
font-size
:
14px
;
}
}
.toolbar
{
display
:
flex
;
justify-content
:
space-between
;
}
.content
{
margin-top
:
10px
;
.table-btn
{
display
:
inline-block
;
margin
:
0
10px
;
color
:
#1791E7
;
opacity
:
0
.8
;
}
.table-btn
:hover
{
opacity
:
1
;
}
}
.tab-box
{
margin
:
20px
0
;
width
:
100%
;
display
:
flex
;
justify-content
:
flex-start
;
border-bottom
:
2px
solid
rgba
(
3
,
66
,
171
,
0
.2
);
.tab-item
{
width
:
120px
;
padding-top
:
10px
;
padding-bottom
:
8px
;
text-align
:
center
;
font-size
:
14px
;
color
:
#666
;
}
.active
{
background
:
rgba
(
183
,
210
,
248
,
0
.25
);
color
:
#1961C5
;
border-bottom
:
3px
solid
rgba
(
3
,
66
,
171
,
0
.8
);
}
}
</
style
>
src/views/homepage/index.vue
View file @
bd781487
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
<div
class=
"btn-o"
style=
"width: 150px;border-radius: 10px;box-shadow: 0 1px 2px 0 rgba(0,0,0,0.2);font-size:20px;"
@
click=
"inquiry(item, 'product')"
>
询 价
</div>
<div
class=
"btn-o"
style=
"width: 150px;border-radius: 10px;box-shadow: 0 1px 2px 0 rgba(0,0,0,0.2);font-size:20px;"
@
click=
"inquiry(item, 'product')"
>
询 价
</div>
</div>
</div>
</div>
</div>
<div
style=
"padding: 15px 50px;text-align: right"
><span
class=
"more touch"
title=
"点击查看更多..."
@
click=
"moreTo('
product
')"
>
更多产品>>
</span></div>
<div
style=
"padding: 15px 50px;text-align: right"
><span
class=
"more touch"
title=
"点击查看更多..."
@
click=
"moreTo('
hardware
')"
>
更多产品>>
</span></div>
</div>
</div>
<!--供应商展柜-->
<!--供应商展柜-->
<div
class=
"line-title"
><div
class=
"title-point"
/><span
class=
"title-text"
>
供应商
</span><div
class=
"title-line"
/></div>
<div
class=
"line-title"
><div
class=
"title-point"
/><span
class=
"title-text"
>
供应商
</span><div
class=
"title-line"
/></div>
...
@@ -455,7 +455,24 @@ export default {
...
@@ -455,7 +455,24 @@ export default {
},
},
// 点击更多
// 点击更多
moreTo
(
type
)
{
moreTo
(
type
)
{
console
.
log
(
type
)
if
(
type
===
'
supplier
'
)
{
this
.
$router
.
push
({
path
:
`/supplier`
})
}
if
(
type
===
'
hardware
'
)
{
switch
(
this
.
currentProductTypeObj
.
value
)
{
case
'
5
'
:
this
.
$router
.
push
({
path
:
`/project`
})
break
case
'
6
'
:
this
.
$router
.
push
({
path
:
`/software`
})
break
case
'
7
'
:
this
.
$router
.
push
({
path
:
`/course`
})
break
default
:
this
.
$router
.
push
({
path
:
`/product/hardware/
${
this
.
currentProductTypeObj
.
value
}
`
})
}
}
},
},
goTop
()
{
goTop
()
{
document
.
body
.
scrollTop
=
0
document
.
body
.
scrollTop
=
0
...
...
src/views/homepage/product/hardware.vue
0 → 100644
View file @
bd781487
This diff is collapsed.
Click to expand it.
src/views/homepage/product/index.vue
View file @
bd781487
...
@@ -388,7 +388,15 @@ export default {
...
@@ -388,7 +388,15 @@ export default {
},
},
// 点击更多
// 点击更多
moreTo
(
type
)
{
moreTo
(
type
)
{
console
.
log
(
type
)
if
(
type
===
'
project
'
)
{
this
.
$router
.
push
({
path
:
`/project`
})
}
if
(
type
===
'
software
'
)
{
this
.
$router
.
push
({
path
:
`/software`
})
}
if
(
type
===
'
course
'
)
{
this
.
$router
.
push
({
path
:
`/course`
})
}
},
},
goTop
()
{
goTop
()
{
document
.
body
.
scrollTop
=
0
document
.
body
.
scrollTop
=
0
...
...
src/views/homepage/supplier/details.vue
View file @
bd781487
...
@@ -480,7 +480,9 @@ export default {
...
@@ -480,7 +480,9 @@ export default {
},
},
// 点击更多
// 点击更多
moreTo
(
type
)
{
moreTo
(
type
)
{
console
.
log
(
type
)
if
(
type
===
'
product
'
)
{
this
.
tabChange
(
'
3
'
)
}
},
},
loadData
()
{
loadData
()
{
...
...
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