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
cd8fd706
Commit
cd8fd706
authored
Mar 19, 2020
by
linxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
ff47f317
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
18 deletions
+3
-18
home-page.vue
src/pages/home/home-page.vue
+3
-18
No files found.
src/pages/home/home-page.vue
View file @
cd8fd706
...
...
@@ -53,13 +53,9 @@
<div
slot=
"content"
class=
"item-content"
>
<div
class=
"top"
>
{{
list
.
product_name
}}
</div>
<img
src=
"@/assets/homePage/hot.png"
class=
"hot"
>
<
!--
<div
class=
"center"
><span
class=
"firsts"
>
{{
!
list
.
office_id
&&!
list
.
agent_id
?
"-"
:(
list
.
agent_id
?
'经销商'
:
'办事处'
)
}}
</span>
<span
class=
"seconds"
>
{{
!
list
.
office_id
&&!
list
.
agent_id
?
"-"
:(
list
.
agent_id
?
list
.
agent_name
:
list
.
office
_name
)
}}
</span></div>
<
div
class=
"center"
><span
class=
"firsts"
>
{{
!
list
.
office_id
&&!
list
.
agent_id
?
"-"
:(
list
.
office_id
?
'办事处'
:
'经销商'
)
}}
</span>
<span
class=
"seconds"
>
{{
!
list
.
office_id
&&!
list
.
agent_id
?
"-"
:(
list
.
office_id
?
list
.
office_name
:
list
.
agent
_name
)
}}
</span></div>
<div
class=
"center"
><span
class=
"firsts"
>
产品型号
</span>
<span
class=
"seconds"
>
{{
list
.
product_code
}}
</span></div>
<div
class=
"center"
><span
class=
"firsts"
>
地址
</span>
<span
class=
"seconds"
>
{{
!
list
.
office_id
&&!
list
.
agent_id
?(
list
.
province_id_n
===
list
.
city_id_n
?
list
.
city_id_n
+
list
.
district_id_n
:
list
.
province_id_n
+
list
.
city_id_n
+
list
.
district_id_n
):(
list
.
agent_id
?
(
list
.
agent_province
===
list
.
agent_city
?
list
.
agent_city
+
list
.
agent_district
:
list
.
agent_province
+
list
.
agent_city
+
list
.
agent_district
):(
list
.
office_province
===
list
.
office_city
?
list
.
office_city
+
list
.
office_district
:
list
.
office_province
+
list
.
office_city
+
list
.
office_district
))
}}
</span></div>
-->
<div
class=
"center"
><span
class=
"firsts"
>
经销商
</span>
<span
class=
"seconds"
>
{{
list
.
bp_name
}}
</span></div>
<div
class=
"center"
><span
class=
"firsts"
>
产品型号
</span>
<span
class=
"seconds"
>
{{
list
.
product_code
}}
</span></div>
<div
class=
"center"
><span
class=
"firsts"
>
地址
</span>
<span
class=
"seconds"
>
{{
list
.
province_id_n
===
list
.
city_id_n
?
list
.
city_id_n
+
list
.
district_id_n
:
list
.
province_id_n
+
list
.
city_id_n
+
list
.
district_id_n
}}
</span></div>
<div
class=
"center"
><span
class=
"firsts"
>
地址
</span>
<span
class=
"seconds"
>
{{
!
list
.
office_id
&&!
list
.
agent_id
?(
list
.
province_id_n
===
list
.
city_id_n
?
list
.
city_id_n
+
list
.
district_id_n
:
list
.
province_id_n
+
list
.
city_id_n
+
list
.
district_id_n
):(
list
.
office_id
?
(
list
.
office_province
===
list
.
office_city
?
list
.
office_city
+
list
.
office_district
:
list
.
office_province
+
list
.
office_city
+
list
.
office_district
):(
list
.
agent_province
===
list
.
agent_city
?
list
.
agent_city
+
list
.
agent_district
:
list
.
agent_province
+
list
.
agent_city
+
list
.
agent_district
))
}}
</span></div>
</div>
</item>
</list-item>
...
...
@@ -202,17 +198,7 @@ export default {
}
})
},
// // 进入产品明细
// goProductDetail (list) {
// let bpId = !list.office_id && !list.agent_id ? list.bp_id : (list.agent_id ? list.agent_id : list.office_id)
// this.$router.push({
// name: 'ProDetailed',
// params: {
// product_id: list.product_id,
// bp_id: bpId,
// },
// })
// },
// 进入产品明细
goProductDetail
(
list
)
{
this
.
$router
.
push
({
name
:
'ProDetailed'
,
...
...
@@ -222,7 +208,6 @@ export default {
},
})
},
},
}
</
script
>
...
...
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