Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-xcmg-vue-app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
xugong
hls-xcmg-vue-app
Commits
00dd0f7c
Commit
00dd0f7c
authored
Oct 25, 2019
by
786817560
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'收藏和取消'
parent
03593a4d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
my-product-list.Vue
src/pages/myProductCollection/my-product-list.Vue
+7
-6
No files found.
src/pages/myProductCollection/my-product-list.Vue
View file @
00dd0f7c
<!--
* @Author: your name
* @Date: 2019-10-22 20:26:28
* @LastEditTime: 2019-10-2
4 12:28:54
* @LastEditTime: 2019-10-2
5 16:02:57
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \hls-xcmg-vue-app\src\pages\myProductCollection\my-product-list.Vue
...
...
@@ -27,7 +27,7 @@
</div>
</div>
<list-item
v-for=
"item in productList"
:key=
"item.product_id"
>
<item
:proportion=
"[1,4]"
@
click
.
native=
"goDetailed(item.product_id,item.collect_status)"
>
<item
:proportion=
"[1,4]"
@
click
.
native=
"goDetailed(item.product_id,item.collect_status
,item.bp_id
)"
>
<div
slot=
"name"
class=
"item-pic"
>
<img
src=
"@/assets/homePage/WechatIMG2 Copy@2x.png"
alt=
""
>
</div>
...
...
@@ -71,9 +71,9 @@ export default {
},
beforeRouteEnter
(
to
,
from
,
next
)
{
next
(
vm
=>
{
if
(
from
.
name
===
'MyInfo'
)
{
//
if (from.name === 'MyInfo') {
vm
.
getList
()
}
//
}
})
},
methods
:
{
...
...
@@ -92,12 +92,13 @@ export default {
})
},
// val:产品id, status: 收藏状态
goDetailed
(
val
,
status
)
{
// 进入产品查询功能明细页面
goDetailed
(
val
,
status
,
bp_id
)
{
// 进入产品查询功能明细页面
window
.
sessionStorage
.
setItem
(
'collect_status'
,
status
)
this
.
$router
.
push
({
name
:
'ProDetailed'
,
params
:
{
product_id
:
val
,
bp_id
:
bp_id
,
// collect_status: status,
},
})
...
...
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