Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
party-build-cloud
Project
Project
Details
Activity
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
wangqinghua
party-build-cloud
Commits
466c7105
Commit
466c7105
authored
Apr 30, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
样式调整
parent
babde74e
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
6 deletions
+33
-6
vertica-lamp.ts
src/directives/vertica-lamp/vertica-lamp.ts
+20
-2
home.html
src/pages/tabs/home/home.html
+1
-1
home.scss
src/pages/tabs/home/home.scss
+7
-1
home.ts
src/pages/tabs/home/home.ts
+3
-0
mine.scss
src/pages/tabs/mine/mine.scss
+2
-2
No files found.
src/directives/vertica-lamp/vertica-lamp.ts
View file @
466c7105
...
...
@@ -13,12 +13,30 @@ export class VerticaLampDirective {
lineChange
()
{
let
child_div
=
this
.
el
.
nativeElement
.
children
;
setTimeout
(()
=>
{
if
(
child_div
.
length
>
0
){
console
.
log
(
child_div
[
0
].
offsetWidth
)
if
(
child_div
.
length
>
0
&&
child_div
[
0
].
offsetWidth
>
700
){
// this.start();
}
},
10
)
},
10
00
)
}
//横向跑马灯
start
()
{
let
child_div
=
this
.
el
.
nativeElement
.
children
;
const
scrollWidth
=
this
.
el
.
nativeElement
.
offsetWidth
;
const
textWidth
=
child_div
[
0
].
offsetWidth
;
console
.
log
(
child_div
[
0
]);
let
i
=
scrollWidth
;
setInterval
(()
=>
{
i
--
;
if
(
i
<
-
textWidth
){
i
=
scrollWidth
;
}
child_div
[
0
].
style
.
left
=
i
+
'px'
;
},
20
)
}
}
src/pages/tabs/home/home.html
View file @
466c7105
...
...
@@ -24,7 +24,7 @@
</ion-header>
<ion-content
#
content
>
<div
#
topHeight
>
<div
class=
"home-middle-tips"
>
<div
#
homeMiddleTips
class=
"home-middle-tips"
>
<ion-row>
<ion-col
col-2
class=
"middle-left"
>
<img
src=
"./assets/imgs/flag.png"
>
...
...
src/pages/tabs/home/home.scss
View file @
466c7105
...
...
@@ -86,10 +86,16 @@ page-home {
//中间
.home-middle-tips
{
padding
:
1rem
;
font-size
:
1
.5rem
;
line-height
:
1
.6rem
;
font-weight
:
400
;
height
:
0px
;
overflow
:
hidden
;
-webkit-transition
:
height
500ms
;
-moz-transition
:
height
500ms
;
-ms-transition
:
height
500ms
;
-o-transition
:
height
500ms
;
transition
:
height
500ms
;
ion-row
{
padding
:
.5rem
0
;
...
...
src/pages/tabs/home/home.ts
View file @
466c7105
...
...
@@ -26,6 +26,7 @@ export class HomePage {
@
ViewChild
(
'verticaLamp'
)
verticaLamp
:
ElementRef
;
@
ViewChild
(
'tabSpan'
)
tabSpan
:
ElementRef
;
@
ViewChild
(
'topHeight'
)
topHeight
:
ElementRef
;
@
ViewChild
(
'homeMiddleTips'
)
homeMiddleTips
:
ElementRef
;
picture
:
string
=
AppGlobal
.
domain
+
'/wisdomgroup'
;
slidersItems
=
[];
...
...
@@ -143,6 +144,8 @@ export class HomePage {
//横向跑马灯
start
()
{
this
.
homeMiddleTips
.
nativeElement
.
style
.
height
=
"80px"
;
this
.
homeMiddleTips
.
nativeElement
.
style
.
padding
=
"1rem"
;
let
child_div
=
this
.
verticaLamp
.
nativeElement
.
children
;
const
scrollWidth
=
this
.
verticaLamp
.
nativeElement
.
offsetWidth
;
const
textWidth
=
child_div
[
0
].
offsetWidth
;
...
...
src/pages/tabs/mine/mine.scss
View file @
466c7105
...
...
@@ -42,20 +42,20 @@ page-mine {
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
padding-bottom
:
1rem
;
}
.group-right
{
display
:
flex
;
flex-flow
:
row
;
align-items
:
center
;
border-bottom
:
1px
solid
#eee
;
padding-bottom
:
1rem
;
ion-icon
{
margin-left
:
auto
;
}
}
ion-row
{
padding-top
:
.6rem
;
padding-bottom
:
.6rem
;
}
img
{
width
:
2
.5rem
;
...
...
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