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
42fb55e8
Commit
42fb55e8
authored
Mar 19, 2020
by
linxin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'liuin' into uat
parents
bfb8d6d1
ff47f317
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
home-page.vue
src/pages/home/home-page.vue
+17
-2
No files found.
src/pages/home/home-page.vue
View file @
42fb55e8
...
...
@@ -53,7 +53,11 @@
<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
.
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"
>
产品型号
</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
.
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>
...
...
@@ -198,7 +202,17 @@ 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
)
{
let
bpId
=
!
list
.
office_id
&&
!
list
.
agent_id
?
list
.
bp_id
:
(
list
.
agent_id
?
list
.
agent_id
:
list
.
office_id
)
this
.
$router
.
push
({
...
...
@@ -209,6 +223,7 @@ 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