Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
marketplaces
gannonce-ui
Commits
50a70504
Commit
50a70504
authored
Apr 28, 2017
by
Cédric Moreau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[enh] Affiche du thumbnail dans la liste des annonces d'un vendeur
parent
75259f55
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
src/pages/account/account.html
src/pages/account/account.html
+2
-2
src/pages/account/account.scss
src/pages/account/account.scss
+1
-1
src/pages/account/account.ts
src/pages/account/account.ts
+3
-0
No files found.
src/pages/account/account.html
View file @
50a70504
<ion-content
padding
>
<ion-row>
<ion-col
col-12
col-sm-12
col-lg-6
>
<img
src=
"{{ accountService.acc.logo }}"
>
<ion-col
col-12
>
<img
class=
"logo"
src=
"{{ accountService.acc.logo }}"
>
<h2>
{{ accountService.acc.title }}
</h2>
<pre>
{{ accountService.acc.desc }}
</pre>
<h3>
Annonces
</h3>
...
...
src/pages/account/account.scss
View file @
50a70504
account
{
img
{
.logo
{
float
:
left
;
max-width
:
100px
;
margin-top
:
1
.8rem
;
...
...
src/pages/account/account.ts
View file @
50a70504
...
...
@@ -36,6 +36,9 @@ export class AccountPage implements OnInit {
this
.
announces
=
[]
for
(
const
a
of
res
.
announces
)
{
if
(
parseInt
(
a
.
stock
))
{
if
(
a
.
images
.
length
)
{
a
.
thumbnail
=
a
.
images
[
0
]
}
this
.
announces
.
push
(
a
)
}
}
...
...
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