Commit 2fba04ed authored by 786817560's avatar 786817560

'提代码'

parent 08ea1bd5
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2019-09-29 10:02:11 * @Date: 2019-09-29 10:02:11
* @LastEditTime: 2019-10-21 14:00:54 * @LastEditTime: 2019-10-21 18:03:21
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
--> -->
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Descrip: 产品明细 * @Descrip: 产品明细
* @Author: your name * @Author: your name
* @Date: 2019-10-15 14:30:00 * @Date: 2019-10-15 14:30:00
* @LastEditTime: 2019-10-21 16:46:55 * @LastEditTime: 2019-10-21 18:30:14
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
--> -->
<template> <template>
...@@ -118,8 +118,6 @@ export default { ...@@ -118,8 +118,6 @@ export default {
confgInfo: {}, confgInfo: {},
bgc_flag: true, bgc_flag: true,
collect_flag: false, collect_flag: false,
src: require('@/assets/productQuery/collect.png'),
// collect_status: window.sessionStorage.getItem('collect_status'),
} }
}, },
computed: {}, computed: {},
...@@ -129,16 +127,15 @@ export default { ...@@ -129,16 +127,15 @@ export default {
if (from.name === 'ProductList') { if (from.name === 'ProductList') {
next(vm => { next(vm => {
vm.product_id = vm.$route.params.product_id vm.product_id = vm.$route.params.product_id
// vm.collect_status = vm.$route.params.collect_status
// if (vm.$route.params.collect_status === 'Y') {
// vm.src = require('@/assets/productQuery/coll-success.png')
// }
vm.baseMsg() vm.baseMsg()
vm.detailMsg() vm.detailMsg()
vm.confgMsg() vm.confgMsg()
}) })
} }
next() next()
},
created () {
}, },
activated () { activated () {
console.log('collect........', window.sessionStorage.getItem('collect_status')) console.log('collect........', window.sessionStorage.getItem('collect_status'))
......
...@@ -81,7 +81,7 @@ export default { ...@@ -81,7 +81,7 @@ export default {
} }
}) })
}, },
// val:产品id // val:产品id, status: 收藏状态
goDetailed (val, status) { goDetailed (val, status) {
window.sessionStorage.setItem('collect_status', status) window.sessionStorage.setItem('collect_status', status)
this.$router.push({ this.$router.push({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment