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
247f0774
Commit
247f0774
authored
Apr 30, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
政治生日弹窗
parent
aee6d9b9
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
65 additions
and
11 deletions
+65
-11
app.component.ts
src/app/app.component.ts
+20
-3
app.scss
src/app/app.scss
+24
-1
bir-bg.png
src/assets/imgs/home/bir-bg.png
+0
-0
home.html
src/pages/tabs/home/home.html
+14
-0
home.ts
src/pages/tabs/home/home.ts
+7
-6
serve.scss
src/pages/tabs/serve/serve.scss
+0
-1
No files found.
src/app/app.component.ts
View file @
247f0774
...
@@ -7,13 +7,14 @@ import {LoginPage} from '../pages/login/login';
...
@@ -7,13 +7,14 @@ import {LoginPage} from '../pages/login/login';
import
{
AppVersion
}
from
'@ionic-native/app-version'
;
import
{
AppVersion
}
from
'@ionic-native/app-version'
;
import
{
AppUpdateService
}
from
"../service/appUpdate.service"
;
import
{
AppUpdateService
}
from
"../service/appUpdate.service"
;
import
{
Keyboard
}
from
'@ionic-native/keyboard'
;
import
{
Keyboard
}
from
'@ionic-native/keyboard'
;
import
{
Badge
}
from
'@ionic-native/badge'
;
import
{
Response
}
from
"@angular/http"
;
import
{
Response
}
from
"@angular/http"
;
import
{
TabsPage
}
from
"../pages/tabs/tabs"
;
import
{
TabsPage
}
from
"../pages/tabs/tabs"
;
import
{
Geolocation
}
from
"@ionic-native/geolocation"
;
import
{
AppService
}
from
"../service/http.service"
;
import
{
AppService
}
from
"../service/http.service"
;
import
{
EmitService
}
from
"../provide/emit.service"
;
import
{
EmitService
}
from
"../provide/emit.service"
;
import
{
MobileAccessibility
}
from
"@ionic-native/mobile-accessibility"
;
import
{
MobileAccessibility
}
from
"@ionic-native/mobile-accessibility"
;
import
{
FileOpener
}
from
"@ionic-native/file-opener"
;
import
{
FileTransfer
,
FileTransferObject
}
from
"@ionic-native/file-transfer"
;
import
{
File
}
from
"@ionic-native/file"
;
@
Component
({
@
Component
({
templateUrl
:
'app.html'
templateUrl
:
'app.html'
...
@@ -32,7 +33,10 @@ export class MyApp {
...
@@ -32,7 +33,10 @@ export class MyApp {
keyboard
:
Keyboard
,
keyboard
:
Keyboard
,
appUpdateService
:
AppUpdateService
,
appUpdateService
:
AppUpdateService
,
appVersion
:
AppVersion
,
appVersion
:
AppVersion
,
private
geolocation
:
Geolocation
,
private
fileOpener
:
FileOpener
,
private
fileTransfer
:
FileTransfer
,
private
fileTransferObject
:
FileTransferObject
,
private
file
:
File
,
public
emitSer
:
EmitService
,
public
emitSer
:
EmitService
,
public
storage
:
Storage
,
public
storage
:
Storage
,
public
mobileAccess
:
MobileAccessibility
,
public
mobileAccess
:
MobileAccessibility
,
...
@@ -65,6 +69,19 @@ export class MyApp {
...
@@ -65,6 +69,19 @@ export class MyApp {
this
.
loadLogin
();
this
.
loadLogin
();
// this.apk();
}
apk
(){
const
fileName
=
'temp.apk'
;
let
path
=
this
.
file
.
externalDataDirectory
;
alert
(
path
);
this
.
fileOpener
.
open
(
path
+
fileName
,
'application/vnd.android.package-archive'
).
catch
((
err
)
=>
{
this
.
appService
.
alert
(
'打开apk失败!'
+
err
);
})
}
}
...
...
src/app/app.scss
View file @
247f0774
...
@@ -303,7 +303,6 @@ p {
...
@@ -303,7 +303,6 @@ p {
left
:
10%
;
left
:
10%
;
width
:
80%
;
width
:
80%
;
height
:
45%
;
height
:
45%
;
background-color
:
#fff
;
border-radius
:
5px
;
border-radius
:
5px
;
background
:
url(../assets/imgs/home/signBgc.png)
repeat
;
background
:
url(../assets/imgs/home/signBgc.png)
repeat
;
background-size
:
cover
;
background-size
:
cover
;
...
@@ -325,6 +324,30 @@ p {
...
@@ -325,6 +324,30 @@ p {
font-size
:
2
.5rem
;
font-size
:
2
.5rem
;
}
}
}
}
.mask-content-bir
{
position
:
absolute
;
top
:
20%
;
left
:
10%
;
width
:
80%
;
height
:
270px
;
background-color
:
#fff
;
border-radius
:
5px
;
.title
{
background-color
:
#e12724
;
color
:
#ffffff
;
text-align
:
center
;
font-size
:
2rem
;
padding
:
.5rem
0
}
.record-content
{
background
:
url(../assets/imgs/home/bir-bg.png)
repeat
;
background-size
:
cover
;
padding
:
1rem
;
letter-spacing
:
1px
;
line-height
:
2rem
;
height
:
170px
;
}
}
}
}
a
[
disabled
],
button
[
disabled
],
[
ion-button
][
disabled
],
a
[
disabled
],
button
[
disabled
],
[
ion-button
][
disabled
],
.bar-button-default-ios.activated
,
.bar-button-default.bar-button-ios-default.activated
,
.bar-button-clear-ios-default.activated
{
.bar-button-default-ios.activated
,
.bar-button-default.bar-button-ios-default.activated
,
.bar-button-clear-ios-default.activated
{
...
...
src/assets/imgs/home/bir-bg.png
0 → 100755
View file @
247f0774
47.6 KB
src/pages/tabs/home/home.html
View file @
247f0774
...
@@ -86,6 +86,20 @@
...
@@ -86,6 +86,20 @@
</ng-container>
</ng-container>
</div>
</div>
</ion-content>
</ion-content>
<!--政治生日-->
<div
*
ngIf=
"isBir"
class=
"signMask"
>
<div
class=
"mask-content-bir"
>
<p
class=
"title"
>
政治生日
</p>
<div
class=
"record-content"
>
<span
class=
"main-color"
>
{{partyObj?.name}}
</span>
同志,欢迎您,今天是
<span
class=
"main-color"
>
{{partyObj?.now | date:'yyyy年MM月dd日'}}
</span>
,是您加入中国共产党的第
<span
class=
"main-color"
>
{{partyObj?.partytime}}
</span>
天,希望您不忘初心,牢记使命,永远奋斗。
</div>
<div
class=
"mask-button"
>
<button
class=
"submit-btn submit"
(
click
)="
start
()"
>
确定
</button>
</div>
</div>
</div>
<!--签到-->
<div
*
ngIf=
"isSign"
class=
"signMask"
>
<div
*
ngIf=
"isSign"
class=
"signMask"
>
<div
class=
"mask-content"
>
<div
class=
"mask-content"
>
<ion-icon
class=
"close"
(
click
)="
isSign =
false"
name=
"close"
></ion-icon>
<ion-icon
class=
"close"
(
click
)="
isSign =
false"
name=
"close"
></ion-icon>
...
...
src/pages/tabs/home/home.ts
View file @
247f0774
...
@@ -40,7 +40,8 @@ export class HomePage {
...
@@ -40,7 +40,8 @@ export class HomePage {
{
name
:
"本市部署"
,
type
:
4
,
index
:
3
}
{
name
:
"本市部署"
,
type
:
4
,
index
:
3
}
];
];
index
=
0
;
index
=
0
;
isSign
=
false
;
isSign
=
false
;
//签到弹窗
isBir
=
false
;
//政治生日弹窗
newList
=
[];
newList
=
[];
noReadNum
;
noReadNum
;
...
@@ -133,17 +134,17 @@ export class HomePage {
...
@@ -133,17 +134,17 @@ export class HomePage {
this
.
tabsSer
.
getInfo
(
userid
).
subscribe
(
this
.
tabsSer
.
getInfo
(
userid
).
subscribe
(
(
res
)
=>
{
(
res
)
=>
{
this
.
partyObj
=
res
.
apiResult
.
data
;
this
.
partyObj
=
res
.
apiResult
.
data
;
let
message
=
this
.
partyObj
.
name
+
"同志,欢迎您,今天是"
+
this
.
datePipe
.
transform
(
this
.
partyObj
.
now
,
'yyyy年MM月dd日'
)
+
",是您加入中国共产党的第"
+
this
.
partyObj
.
partytime
+
"天,希望您不忘初心,牢记使命,永远奋斗。"
;
this
.
isBir
=
true
;
this
.
commonSer
.
alert2
(
message
,
''
,
()
=>
{
this
.
start
();
});
}
}
);
);
})
})
}
}
//横向跑马灯
//关闭弹窗 开启跑马灯
start
()
{
start
()
{
this
.
isBir
=
false
;
this
.
homeMiddleTips
.
nativeElement
.
style
.
height
=
"80px"
;
this
.
homeMiddleTips
.
nativeElement
.
style
.
height
=
"80px"
;
this
.
homeMiddleTips
.
nativeElement
.
style
.
padding
=
"1rem"
;
this
.
homeMiddleTips
.
nativeElement
.
style
.
padding
=
"1rem"
;
let
child_div
=
this
.
verticaLamp
.
nativeElement
.
children
;
let
child_div
=
this
.
verticaLamp
.
nativeElement
.
children
;
...
...
src/pages/tabs/serve/serve.scss
View file @
247f0774
...
@@ -62,7 +62,6 @@ page-serve {
...
@@ -62,7 +62,6 @@ page-serve {
}
}
.card3-item
{
.card3-item
{
margin
:
3px
0
;
white-space
:
nowrap
;
white-space
:
nowrap
;
overflow
:
hidden
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
text-overflow
:
ellipsis
;
...
...
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