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
4040b07d
Commit
4040b07d
authored
1 year ago
by
zhanglw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
个人中心产品管理
parent
993175ae
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
19 deletions
+33
-19
common.js
src/api/common.js
+7
-0
collectPro.vue
src/views/homepage/console/collectPro.vue
+24
-17
product.vue
src/views/homepage/console/product.vue
+2
-2
No files found.
src/api/common.js
View file @
4040b07d
...
...
@@ -528,6 +528,13 @@ export const HttpReq = {
method
:
'
get
'
})
},
// 个人中心-产品管理
productManagement
:
function
(
params
)
{
return
request
({
url
:
'
/api/bsw/bigScreen/personalCenter/productManagement?
'
+
qs
.
stringify
(
params
,
{
indices
:
false
}),
method
:
'
get
'
})
},
id
:
null
}
}
...
...
This diff is collapsed.
Click to expand it.
src/views/homepage/console/collectPro.vue
View file @
4040b07d
...
...
@@ -18,21 +18,22 @@
<el-col
:span=
"21"
style=
"padding: 0 20px"
>
<!--查询面板-->
<div
class=
"search-box"
style=
"padding:0;display:flex;font-size: 15px"
>
<div
class=
"search-item"
:class=
"query.type===
undefined
?'active':''"
style=
"width: 126px"
>
<span
class=
"touch label"
@
click=
"setQuertType()"
>
收藏时间
</span>
<span
v-if=
"query.type===
undefined
"
><i
v-if=
"query.sort"
class=
"el-icon-sort-up touch"
/><i
v-else
class=
"el-icon-sort-down touch"
/></span>
<div
class=
"search-item"
:class=
"query.type===
'time'
?'active':''"
style=
"width: 126px"
>
<span
class=
"touch label"
@
click=
"setQuertType(
'time'
)"
>
收藏时间
</span>
<span
v-if=
"query.type===
'time'
"
><i
v-if=
"query.sort"
class=
"el-icon-sort-up touch"
/><i
v-else
class=
"el-icon-sort-down touch"
/></span>
</div>
<div
class=
"search-item"
:class=
"query.type==='
ho
t'?'active':''"
style=
"width: 126px"
>
<span
class=
"touch label"
@
click=
"setQuertType('
hot')"
>
销量
优先
</span>
<span
v-if=
"query.type==='
ho
t'"
><i
v-if=
"query.sort"
class=
"el-icon-sort-up touch"
/><i
v-else
class=
"el-icon-sort-down touch"
/></span>
<div
class=
"search-item"
:class=
"query.type==='
coun
t'?'active':''"
style=
"width: 126px"
>
<span
class=
"touch label"
@
click=
"setQuertType('
count')"
>
询价
优先
</span>
<span
v-if=
"query.type==='
coun
t'"
><i
v-if=
"query.sort"
class=
"el-icon-sort-up touch"
/><i
v-else
class=
"el-icon-sort-down touch"
/></span>
</div>
</div>
<div
style=
"width: 100%;height: 62vh;margin-top: 7px;overflow: auto"
>
<div
v-for=
"(item,index) in tableData"
:key=
"'p_'+index"
class=
"box-card-s"
>
<el-image
:src=
"item.imgSrc?imgSrcStart+'/img'+item.imgSrc:defaultImgProduct
"
:
preview-src-list=
"item.imgSrcList.length?item.imgSrcList:[defaultImgProduct]
"
class=
"touch
"
:
src=
"item.imgSrc?imgSrcStart+'/productPic/'+item.imgSrc:defaultImgProduct
"
style=
"width:200px;height: 160px;margin: 0 5px"
@
click=
"goToDetails(item, '/product/details')"
>
<div
slot=
"placeholder"
class=
"image-slot"
>
加载中
<span
class=
"dot"
>
...
</span></div>
</el-image>
...
...
@@ -75,6 +76,7 @@ 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
},
...
...
@@ -83,13 +85,10 @@ export default {
defaultImgProduct
:
default_product
,
imgSrcStart
:
process
.
env
.
VUE_APP_BASE_API
,
page
:
1
,
pageSize
:
8
,
pageSize
:
10
,
total
:
0
,
query
:
{
keyword
:
''
,
area
:
undefined
,
type
:
undefined
,
sort
:
false
type
:
'
time
'
},
tableData
:
[
{
...
...
@@ -185,13 +184,21 @@ export default {
},
methods
:
{
setQuertType
(
type
)
{
if
(
type
===
this
.
query
.
type
)
{
this
.
query
.
sort
=
!
this
.
query
.
sort
}
else
{
if
(
type
!==
this
.
query
.
type
)
{
this
.
query
.
type
=
type
this
.
query
.
sort
=
false
this
.
loadData
()
}
},
loadData
()
{
HttpReq
.
webClientApi
.
productManagement
({
page
:
this
.
page
-
1
,
pageSize
:
this
.
pageSize
,
...
this
.
query
}).
then
((
res
)
=>
{
this
.
tableData
=
res
.
data
.
data
this
.
total
=
res
.
data
.
total
})
},
// 点击询价
inquiry
(
item
,
type
)
{
console
.
log
(
item
,
type
)
...
...
This diff is collapsed.
Click to expand it.
src/views/homepage/console/product.vue
View file @
4040b07d
...
...
@@ -46,7 +46,7 @@
<el-table-column
label=
"产品预览图"
align=
"center"
width=
"100"
>
<template
slot-scope=
"scope"
>
<el-image
:src=
"scope.row.imgSrc?imgSrcStart+'/
img
'+scope.row.imgSrc:defaultImgProduct"
:src=
"scope.row.imgSrc?imgSrcStart+'/
productPic/
'+scope.row.imgSrc:defaultImgProduct"
:preview-src-list=
"scope.row.imgSrcList?scope.row.imgSrcList:[defaultImgProduct]"
style=
"width:64px;height: 64px;border: 1px solid rgba(0, 0, 0, 0.2);"
>
...
...
@@ -139,7 +139,7 @@ export default {
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
.
queryProduc
t
({
HttpReq
.
webClientApi
.
productManagemen
t
({
page
:
this
.
page
-
1
,
pageSize
:
this
.
pageSize
,
...
this
.
query
...
...
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