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
79cde799
Commit
79cde799
authored
Apr 29, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2019-4-28日提交
parent
956aa5a8
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
81 additions
and
27 deletions
+81
-27
config.xml
config.xml
+1
-1
home.html
src/pages/tabs/home/home.html
+6
-4
home.scss
src/pages/tabs/home/home.scss
+18
-5
home.ts
src/pages/tabs/home/home.ts
+42
-3
mine.html
src/pages/tabs/mine/mine.html
+1
-1
mine.scss
src/pages/tabs/mine/mine.scss
+11
-11
http.service.ts
src/service/http.service.ts
+2
-2
No files found.
config.xml
View file @
79cde799
<?xml version='1.0' encoding='utf-8'?>
<widget
id=
"io.ionic.partyCloud.starter.test"
version=
"0.
0.9
"
xmlns=
"http://www.w3.org/ns/widgets"
xmlns:cdv=
"http://cordova.apache.org/ns/1.0"
>
<widget
id=
"io.ionic.partyCloud.starter.test"
version=
"0.
1.1
"
xmlns=
"http://www.w3.org/ns/widgets"
xmlns:cdv=
"http://cordova.apache.org/ns/1.0"
>
<name>
部机关党建云(测试)
</name>
<description>
An awesome Ionic/Cordova app.
</description>
<author
email=
"hi@ionicframework"
href=
"http://ionicframework.com/"
>
Ionic Framework Team
</author>
...
...
src/pages/tabs/home/home.html
View file @
79cde799
...
...
@@ -41,10 +41,12 @@
<img
src=
"./assets/imgs/flag.png"
>
</ion-col>
<ion-col
col-10
class=
"middle-right"
>
<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
#
lineChangeEle
id=
"party-bir"
>
<div><span
class=
"main-color"
>
{{partyObj?.name}}
</span>
同志,欢迎您,
</div>
<div>
今天是
<span
class=
"main-color"
>
{{partyObj?.now | date:'yyyy年MM月dd日'}}
</span>
,
</div>
<div>
是您加入中国共产党的第
<span
class=
"main-color"
>
{{partyObj?.partytime}}
</span>
天,
</div>
<div>
希望您不忘初心,牢记使命,永远奋斗。
</div>
</div>
</ion-col>
</ion-row>
</div>
...
...
src/pages/tabs/home/home.scss
View file @
79cde799
...
...
@@ -3,6 +3,7 @@ page-home {
width
:
100%
;
height
:
200px
;
}
.slide-image
{
width
:
100%
;
height
:
200px
;
...
...
@@ -52,7 +53,7 @@ page-home {
color
:
#ffffff
;
}
.searchbar-ios.searchbar-left-aligned
.searchbar-input
{
.searchbar-ios.searchbar-left-aligned
.searchbar-input
{
padding-left
:
24px
;
}
...
...
@@ -76,7 +77,8 @@ page-home {
width
:
1px
;
background-color
:
#fff
;
}
ion-icon
.iconfont
{
ion-icon
.iconfont
{
color
:
#ffffff
;
font-size
:
1
.5rem
;
line-height
:
.1
;
...
...
@@ -90,6 +92,7 @@ page-home {
font-size
:
1
.5rem
;
line-height
:
1
.6rem
;
font-weight
:
400
;
ion-row
{
padding
:
.5rem
0
;
-webkit-border-radius
:
5px
;
...
...
@@ -102,11 +105,13 @@ page-home {
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
img
{
img
{
width
:
2
.5rem
;
}
}
.middle-right
{
.middle-right
{
line-height
:
2
.2rem
;
}
}
...
...
@@ -163,9 +168,17 @@ page-home {
width
:
50%
;
height
:
35px
;
}
a
[
disabled
],
button
[
disabled
],
[
ion-button
][
disabled
]
{
a
[
disabled
],
button
[
disabled
],
[
ion-button
][
disabled
]
{
opacity
:
.4
;
}
}
#party-bir
{
height
:
33px
;
overflow
:
hidden
;
font-size
:
14px
;
line-height
:
33px
;
}
}
src/pages/tabs/home/home.ts
View file @
79cde799
...
...
@@ -13,7 +13,6 @@ import {OutGoingReportEditPage} from "../../home/report/outGoingReportEdit/outGo
import
{
AnnouncementViewPage
}
from
'../../home/announcement/announcementView/announcementView'
;
import
{
CalendarComponentOptions
,
DayConfig
}
from
"ion2-calendar"
;
import
{
NoticePage
}
from
"../notice/notice"
;
import
{
monthCh
,
weekDay
}
from
"../../../app/main"
;
import
{
Badge
}
from
'@ionic-native/badge'
;
import
{
TabsService
}
from
"../tabs.service"
;
import
{
TextToSpeech
}
from
"@ionic-native/text-to-speech"
;
...
...
@@ -33,6 +32,7 @@ declare var Swiper;
export
class
HomePage
{
@
ViewChild
(
Slides
)
slides
:
Slides
;
@
ViewChild
(
'tips'
)
tips
:
ElementRef
;
@
ViewChild
(
'lineChangeEle'
)
lineChangeEle
:
ElementRef
;
@
ViewChild
(
'tabSpan'
)
tabSpan
:
ElementRef
;
picture
:
string
=
AppGlobal
.
domain
+
'/wisdomgroup'
;
...
...
@@ -55,6 +55,12 @@ export class HomePage {
slideTitle
;
move_h
=
33
;
//移动高度
scorllStep
=
1
;
scrollTime
=
60
;
stopTime
=
1000
;
tmpH
=
0
;
constructor
(
public
navCtrl
:
NavController
,
public
tts
:
TextToSpeech
,
public
commonSer
:
CommonService
,
public
emitSer
:
EmitService
,
...
...
@@ -66,6 +72,38 @@ export class HomePage {
this
.
noReadNum
=
value
;
}
});
}
lineChange
(){
let
child_div
=
this
.
lineChangeEle
.
nativeElement
.
children
;
setTimeout
(
()
=>
{
if
(
child_div
.
length
>
0
){
this
.
start
();
}
},
10
);
}
start
(){
if
(
this
.
tmpH
<
this
.
move_h
){
// tmpH = 0 ; move_h = 33
this
.
tmpH
+=
this
.
scorllStep
;
//scorllStep = 1
if
(
this
.
tmpH
>
this
.
move_h
){
this
.
tmpH
=
this
.
move_h
;
}
this
.
lineChangeEle
.
nativeElement
.
scrollTop
=
this
.
tmpH
;
setTimeout
(
()
=>
{
this
.
start
()
},
this
.
scrollTime
);
//stopTime = 3000 ; scrollTime = 30 每移动一个单位延时30ms
}
else
{
this
.
tmpH
=
0
;
this
.
lineChangeEle
.
nativeElement
.
appendChild
(
this
.
lineChangeEle
.
nativeElement
.
children
[
0
]);
// this.lineChangeEle.nativeElement.scrollTop = 0;
setTimeout
(
()
=>
{
this
.
start
()
},
this
.
stopTime
);
//stopTime = 3000 ; scrollTime = 30 每移动一个单位延时30ms
}
}
...
...
@@ -78,6 +116,7 @@ export class HomePage {
this
.
change
(
0
);
this
.
getBanner
();
this
.
getInfo
();
this
.
lineChange
();
}
//获取轮播图
...
...
@@ -93,7 +132,7 @@ export class HomePage {
this
.
slidersItems
=
res
.
data
;
this
.
slidersItems
.
forEach
(
e
=>
{
if
(
e
.
title
.
length
>
16
){
e
.
title
=
e
.
title
.
substr
(
0
,
1
7
)
+
'...'
;
e
.
title
=
e
.
title
.
substr
(
0
,
1
4
)
+
'...'
;
}
if
(
e
.
attachments
.
length
>
0
)
{
e
.
imgUrl
=
e
.
attachments
[
0
].
path
;
...
...
@@ -154,11 +193,11 @@ export class HomePage {
//签到
signUp
()
{
this
.
signObj
.
isSign
=
'yes'
;
this
.
tabsSer
.
sign
().
subscribe
(
(
res
)
=>
{
this
.
isSign
=
false
;
if
(
res
.
errcode
==
'1000'
)
{
this
.
signObj
.
isSign
=
'yes'
;
this
.
commonSer
.
toast
(
'签到成功'
);
}
else
{
this
.
commonSer
.
toast
(
res
.
errmsg
);
...
...
src/pages/tabs/mine/mine.html
View file @
79cde799
...
...
@@ -94,7 +94,7 @@
<ion-col
class=
"group-left"
col-2
>
<img
src=
"./assets/imgs/mine/xtsz.png"
alt=
""
>
</ion-col>
<ion-col
class=
"group-right"
col-10
>
<ion-col
class=
"group-right"
style=
"border-bottom: 0px"
col-10
>
<span>
设置
</span>
<ion-icon
name=
"ios-arrow-forward"
></ion-icon>
</ion-col>
...
...
src/pages/tabs/mine/mine.scss
View file @
79cde799
...
...
@@ -43,8 +43,19 @@ page-mine {
align-items
:
center
;
justify-content
:
center
;
}
.group-right
{
display
:
flex
;
flex-flow
:
row
;
align-items
:
center
;
border-bottom
:
1px
solid
#eee
;
ion-icon
{
margin-left
:
auto
;
}
}
ion-row
{
padding-top
:
.6rem
;
padding-bottom
:
.6rem
;
}
img
{
width
:
2
.5rem
;
...
...
@@ -63,17 +74,6 @@ page-mine {
}
}
.group-right
{
display
:
flex
;
flex-flow
:
row
;
align-items
:
center
;
border-bottom
:
1px
solid
#eee
;
ion-icon
{
margin-left
:
auto
;
}
}
.red-span-round
{
background-color
:
#fee7e7
;
border
:
1px
solid
#e12724
;
...
...
src/service/http.service.ts
View file @
79cde799
...
...
@@ -15,8 +15,8 @@ export class AppGlobal {
//接口基地址
// static domain = "http://101.89.112.92:80"; //正式环境
// static domain = "http://180.168.156.212:2931"; //测试环境
//
static domain = "http://47.103.35.216:8080"; //阿里云地址
static
domain
=
""
;
//本地环境
static
domain
=
"http://47.103.35.216:8080"
;
//阿里云地址
//
static domain = ""; //本地环境
//图片地址
...
...
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