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
85d5585b
Commit
85d5585b
authored
Oct 17, 2019
by
李晓兵
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
https://hel.hand-china.com/xugong/hls-xcmg-vue-app
into develop
parents
7c93d14b
76cdc895
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
47 deletions
+49
-47
product-list.vue
src/pages/productQuery/product-list.vue
+26
-15
query-home.vue
src/pages/productQuery/query-home.vue
+23
-32
No files found.
src/pages/productQuery/product-list.vue
View file @
85d5585b
...
@@ -24,9 +24,18 @@
...
@@ -24,9 +24,18 @@
<img
src=
"@/assets/homePage/WechatIMG2 Copy@2x.png"
alt=
""
>
<img
src=
"@/assets/homePage/WechatIMG2 Copy@2x.png"
alt=
""
>
</div>
</div>
<div
slot=
"content"
class=
"item-content"
>
<div
slot=
"content"
class=
"item-content"
>
<div
class=
"center"
>
<span
class=
"firsts"
>
经销商
</span>
<span
class=
"seconds"
>
{{
item
.
bp_name
}}
</span></div>
<div
class=
"centers"
>
<div
class=
"center"
>
<span
class=
"firsts"
>
参数项
</span>
<span
class=
"seconds"
>
{{
item
.
product_code
}}
</span></div>
<p
class=
"firsts1"
>
经销商
</p>
<div
class=
"center"
>
<span
class=
"firsts"
>
产品名称
</span>
<span
class=
"seconds"
>
{{
item
.
product_name
}}
</span></div>
<p
class=
"seconds1"
>
{{
item
.
bp_name
}}
</p>
</div>
<div
class=
"centers"
>
<p
class=
"firsts1"
>
参数项
</p>
<p
class=
"seconds1"
>
{{
item
.
product_code
}}
</p>
</div>
<div
class=
"centers"
>
<p
class=
"firsts1"
>
产品名称
</p>
<p
class=
"seconds1"
>
{{
item
.
product_name
}}
</p>
</div>
</div>
</div>
<div
slot=
"right-icon"
>
<div
slot=
"right-icon"
>
<img
class=
"arrow"
src=
"@/assets/productQuery/getIn.png"
alt=
""
@
click=
"goDetailed(item.product_id)"
>
<img
class=
"arrow"
src=
"@/assets/productQuery/getIn.png"
alt=
""
@
click=
"goDetailed(item.product_id)"
>
...
@@ -140,7 +149,7 @@ export default {
...
@@ -140,7 +149,7 @@ export default {
}
}
.item-pic {
.item-pic {
width: 110px;
width: 110px;
height: 110px;
//
height: 110px;
img {
img {
width: 100%;
width: 100%;
height: 100%;
height: 100%;
...
@@ -150,37 +159,39 @@ export default {
...
@@ -150,37 +159,39 @@ export default {
// height: 102px;
// height: 102px;
width: 100%;
width: 100%;
margin-left: 20px;
margin-left: 20px;
.center:nth-of-type(1) {
.center
s
:nth-of-type(1) {
margin-top: 16px;
margin-top: 16px;
}
}
.center:nth-of-type(2) {
.center
s
:nth-of-type(2) {
margin-top: 6px;
margin-top: 6px;
}
}
.center:nth-of-type(3) {
.center
s
:nth-of-type(3) {
margin-top: 6px;
margin-top: 6px;
}
}
.center {
.center
s
{
// margin-top: 6px;
// margin-top: 6px;
// white-space: nowrap;
// white-space: nowrap;
// width: 100%;
font-family: PingFangSC-Semibold;
font-family: PingFangSC-Semibold;
font-size: 13px;
font-size: 13px;
color: rgba(56,63,69,0.60);
color: rgba(56,63,69,0.60);
letter-spacing: 0.5px;
letter-spacing: 0.5px;
.firsts {
display: flex;
display: inline-block;
flex-direction: row;
width: 55px;
.firsts1 {
width: 60px;
height: 17px;
font-family: PingFangSC-Regular;
font-family: PingFangSC-Regular;
font-size: 13px;
font-size: 13px;
color: rgba(56,63,69,0.60);
color: rgba(56,63,69,0.60);
}
}
.seconds {
.seconds1 {
width: 70%;
margin-left: 16px;
margin-left: 16px;
height: auto;
font-family: PingFangSC-Regular;
font-family: PingFangSC-Regular;
font-size: 13px;
font-size: 13px;
color: #383F45;
color: #383F45;
// white-space: nowrap;
// overflow: hidden;
// text-overflow: ellipsis;
}
}
}
}
}
}
...
...
src/pages/productQuery/query-home.vue
View file @
85d5585b
...
@@ -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-17 1
3:33:48
* @LastEditTime: 2019-10-17 1
6:07:07
* @LastEditors: Please set LastEditors
* @LastEditors: Please set LastEditors
-->
-->
<
template
>
<
template
>
...
@@ -32,13 +32,8 @@
...
@@ -32,13 +32,8 @@
<p
class=
"product-class"
>
产品线
</p>
<p
class=
"product-class"
>
产品线
</p>
<div
class=
"product"
>
<div
class=
"product"
>
<p>
{{
item
.
division_n
}}
</p>
<p>
{{
item
.
division_n
}}
</p>
<div
v-for=
"items in divisionList"
v-if=
"list_flag&&item.factory_bp_id === factory_bp_id "
:key=
"items.division"
class=
"division-lists"
>
<div>
<p
@
click=
"checkDivision(items.product_line,items.division,index)"
>
{{
items
.
product_line
}}
</p>
</div>
</div>
</div>
</div>
<img
src=
"@/assets/productQuery/pull.png"
alt=
""
@
click=
"queryDivision(item.factory_bp_id)"
>
<img
src=
"@/assets/productQuery/pull.png"
alt=
""
@
click=
"queryDivision(item.factory_bp_id
,index
)"
>
</div>
</div>
<img
class=
"arrow"
src=
"@/assets/productQuery/getIn.png"
alt=
""
@
click=
"goLists(item.division)"
>
<img
class=
"arrow"
src=
"@/assets/productQuery/getIn.png"
alt=
""
@
click=
"goLists(item.division)"
>
</div>
</div>
...
@@ -94,7 +89,7 @@ export default {
...
@@ -94,7 +89,7 @@ export default {
},
},
})
})
},
},
queryDivision
(
val
)
{
queryDivision
(
val
,
ind
)
{
let
vm
=
this
let
vm
=
this
let
url
=
$config
.
basePath
+
'prd_product_division_list'
let
url
=
$config
.
basePath
+
'prd_product_division_list'
let
param
=
{
let
param
=
{
...
@@ -103,9 +98,26 @@ export default {
...
@@ -103,9 +98,26 @@ export default {
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
console
.
log
(
res
)
console
.
log
(
res
)
if
(
res
.
result
===
'S'
)
{
if
(
res
.
result
===
'S'
)
{
vm
.
divisionList
=
res
.
lists
vm
.
divisionList
=
res
.
lists
.
map
(
item
=>
{
vm
.
list_flag
=
!
vm
.
list_flag
return
{
vm
.
factory_bp_id
=
val
code
:
item
.
division
,
code_name
:
item
.
product_line
,
}
})
// vm.divisionList = res.lists
vm
.
hlsPopup
.
selectList
({
list
:
vm
.
divisionList
,
// 下拉列表
code
:
'bp_type'
,
object
:
{},
returnItem
:
function
(
index
,
obj
)
{
console
.
log
(
'index:'
+
index
+
',object:'
+
vum
.
toJson
(
obj
))
vm
.
prolists
[
ind
].
division_n
=
obj
.
bp_type_n
vm
.
prolists
[
ind
].
division
=
obj
.
bp_type
},
})
// vm.list_flag = !vm.list_flag
// vm.factory_bp_id = val
}
else
{
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
hlsPopup
.
showLongCenter
(
res
.
message
)
}
}
...
@@ -217,28 +229,7 @@ export default {
...
@@ -217,28 +229,7 @@ export default {
font-size: 14px;
font-size: 14px;
color: #383F45;
color: #383F45;
margin-left: 16px;
margin-left: 16px;
.division-lists {
width: 100%;
height: auto;
position: relative;
z-index: 1000;
border: 1px solid #ccc;
border-bottom: none;
// margin-top: 4px;
div {
background: #fff;
//border: 1px solid #ccc;
p {
width: 100%;
height: 24px;
line-height: 24px;
border-bottom: 1px solid #ccc;
// text-align: center
}
}
}
}
}
img {
img {
width: 16px;
width: 16px;
height: 16px;
height: 16px;
...
...
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