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
2a2f0b6d
Commit
2a2f0b6d
authored
Feb 21, 2020
by
linxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
a7e11343
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
home-page.vue
src/pages/home/home-page.vue
+10
-4
No files found.
src/pages/home/home-page.vue
View file @
2a2f0b6d
...
@@ -47,7 +47,8 @@
...
@@ -47,7 +47,8 @@
<list-item
:item-height=
"120"
>
<list-item
:item-height=
"120"
>
<item>
<item>
<div
slot=
"name"
class=
"item-pic"
>
<div
slot=
"name"
class=
"item-pic"
>
<img
src=
"@/assets/homePage/WechatIMG2 Copy@2x.png"
alt=
""
>
<!--
<img
src=
"@/assets/homePage/WechatIMG2 Copy@2x.png"
alt=
""
>
-->
<img
:src=
"list.url"
>
</div>
</div>
<div
slot=
"content"
class=
"item-content"
>
<div
slot=
"content"
class=
"item-content"
>
<div
class=
"top"
>
{{
list
.
product_name
}}
</div>
<div
class=
"top"
>
{{
list
.
product_name
}}
</div>
...
@@ -65,7 +66,7 @@
...
@@ -65,7 +66,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
functionState
from
'./functionState'
import
functionState
from
'./functionState'
import
noImg
from
'../../assets/productQuery/none.png'
export
default
{
export
default
{
name
:
'HomePage'
,
name
:
'HomePage'
,
data
()
{
data
()
{
...
@@ -180,6 +181,9 @@ export default {
...
@@ -180,6 +181,9 @@ export default {
vm
.
hlsPopup
.
hideLoading
()
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
if
(
res
.
result
===
'S'
)
{
vm
.
guessingList
=
res
.
lists
vm
.
guessingList
=
res
.
lists
vm
.
guessingList
.
forEach
(
item
=>
{
item
[
'url'
]
=
item
.
product_attachment_id
?
process
.
env
.
filePath
+
'attachment_id='
+
item
.
product_attachment_id
+
'&access_token='
+
window
.
localStorage
.
access_token
:
noImg
})
}
else
{
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
hlsPopup
.
showLongCenter
(
res
.
message
)
}
}
...
@@ -369,10 +373,12 @@ export default {
...
@@ -369,10 +373,12 @@ export default {
.item-pic {
.item-pic {
width: 110px;
width: 110px;
height: 110px;
height: 110px;
display: flex;
justify-content: center;
align-items: center;
img {
img {
width: 100%;
width: 100%;
height: 100%;
//
height: 100%;
}
}
}
}
...
...
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