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
adaf26de
Commit
adaf26de
authored
Apr 27, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style
parent
08313f90
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
92 additions
and
36 deletions
+92
-36
.gitignore
.gitignore
+1
-0
discover.html
src/pages/tabs/discover/discover.html
+19
-2
discover.scss
src/pages/tabs/discover/discover.scss
+8
-0
discover.ts
src/pages/tabs/discover/discover.ts
+9
-1
home.scss
src/pages/tabs/home/home.scss
+1
-1
home.ts
src/pages/tabs/home/home.ts
+0
-1
serve.html
src/pages/tabs/serve/serve.html
+23
-19
serve.scss
src/pages/tabs/serve/serve.scss
+30
-11
backButton.service.ts
src/provide/backButton.service.ts
+1
-1
No files found.
.gitignore
View file @
adaf26de
...
@@ -4,3 +4,4 @@ www
...
@@ -4,3 +4,4 @@ www
*.log
*.log
*.temp
*.temp
/vendor
/vendor
/plugins
src/pages/tabs/discover/discover.html
View file @
adaf26de
...
@@ -39,11 +39,12 @@
...
@@ -39,11 +39,12 @@
<ng-container
*
ngFor=
"let item of newList"
>
<ng-container
*
ngFor=
"let item of newList"
>
<div
class=
"search-item"
(
click
)="
goToDetail
(
item
)"
>
<div
class=
"search-item"
(
click
)="
goToDetail
(
item
)"
>
<p
class=
"item-info"
>
<p
class=
"item-info"
>
<span>
{{item.source}}
</span>
<span
class=
"item-source"
>
{{item.source}}
</span>
<span>
{{item.publishTime | date:'yyyy-MM-dd'}}
</span>
<span>
{{item.publishTime | date:'yyyy-MM-dd'}}
</span>
</p>
</p>
<div
class=
"item-news"
>
<div
class=
"item-news"
>
<ion-row
class=
"news-item"
>
<ion-row
class=
"news-item"
>
<ng-container
*
ngIf=
"item.imgUrl"
>
<ion-col
col-8
class=
"news-left"
>
<ion-col
col-8
class=
"news-left"
>
<p
class=
"news-title"
>
{{item.title}}
</p>
<p
class=
"news-title"
>
{{item.title}}
</p>
<p
class=
"news-end"
>
<p
class=
"news-end"
>
...
@@ -58,8 +59,24 @@
...
@@ -58,8 +59,24 @@
</p>
</p>
</ion-col>
</ion-col>
<ion-col
col-4
class=
"news-right"
>
<ion-col
col-4
class=
"news-right"
>
<img
src=
"./assets/imgs/demo.png
"
>
<img
src=
"{{picture+item.imgUrl}}
"
>
</ion-col>
</ion-col>
</ng-container>
<ng-container
*
ngIf=
"!item.imgUrl"
>
<ion-col
col-12
class=
"news-left"
>
<p
class=
"news-title"
>
{{item.title}}
</p>
<p
class=
"news-end"
>
<ion-icon
style=
"font-size: 2.5rem;vertical-align: sub"
name=
"eye"
></ion-icon>
<span>
{{item.browseCount}}
</span>
<ion-icon
name=
"chatboxes"
></ion-icon>
<span>
{{item.commentCount}}
</span>
<ion-icon
name=
"thumbs-up"
></ion-icon>
<span>
{{item.likeCount}}
</span>
<ion-icon
name=
"heart"
></ion-icon>
<span>
{{item.collectionCount}}
</span>
</p>
</ion-col>
</ng-container>
</ion-row>
</ion-row>
</div>
</div>
</div>
</div>
...
...
src/pages/tabs/discover/discover.scss
View file @
adaf26de
...
@@ -61,6 +61,13 @@ page-discover {
...
@@ -61,6 +61,13 @@ page-discover {
padding
:
0
1rem
;
padding
:
0
1rem
;
.search-item
{
.search-item
{
padding
:
.8rem
0
;
padding
:
.8rem
0
;
.item-info
{
.item-source
{
color
:
#d88f27
;
font-weight
:
500
;
margin-right
:
1rem
;
}
}
.news-left
{
.news-left
{
display
:
flex
;
display
:
flex
;
flex-flow
:
row
wrap
;
flex-flow
:
row
wrap
;
...
@@ -70,6 +77,7 @@ page-discover {
...
@@ -70,6 +77,7 @@ page-discover {
align-self
:
flex-start
;
align-self
:
flex-start
;
font-weight
:
bold
;
font-weight
:
bold
;
width
:
100%
;
width
:
100%
;
margin-bottom
:
1rem
;
}
}
.news-end
{
.news-end
{
align-self
:
flex-end
;
align-self
:
flex-end
;
...
...
src/pages/tabs/discover/discover.ts
View file @
adaf26de
...
@@ -6,6 +6,7 @@ import {StuffDetailPage} from "../../home-pages/stuff-detail/stuff-detail";
...
@@ -6,6 +6,7 @@ import {StuffDetailPage} from "../../home-pages/stuff-detail/stuff-detail";
import
{
PublishPage
}
from
"../../discover-pages/publish/publish"
;
import
{
PublishPage
}
from
"../../discover-pages/publish/publish"
;
import
{
EmitService
}
from
"../../../provide/emit.service"
;
import
{
EmitService
}
from
"../../../provide/emit.service"
;
import
{
NoticePage
}
from
"../notice/notice"
;
import
{
NoticePage
}
from
"../notice/notice"
;
import
{
AppGlobal
}
from
"../../../service/http.service"
;
@
IonicPage
()
@
IonicPage
()
...
@@ -30,6 +31,7 @@ export class DiscoverPage {
...
@@ -30,6 +31,7 @@ export class DiscoverPage {
isSign
=
false
;
isSign
=
false
;
newList
;
//新闻列表
newList
;
//新闻列表
noReadNum
;
noReadNum
;
picture
:
string
=
AppGlobal
.
domain
+
'/wisdomgroup'
;
constructor
(
public
navCtrl
:
NavController
,
public
navParams
:
NavParams
,
constructor
(
public
navCtrl
:
NavController
,
public
navParams
:
NavParams
,
public
tabsSer
:
TabsService
,
public
emitSer
:
EmitService
)
{
public
tabsSer
:
TabsService
,
public
emitSer
:
EmitService
)
{
// 接收发射过来的数据
// 接收发射过来的数据
...
@@ -57,12 +59,18 @@ export class DiscoverPage {
...
@@ -57,12 +59,18 @@ export class DiscoverPage {
pageSize
:
1
,
pageSize
:
1
,
pageCount
:
100
,
pageCount
:
100
,
obj
:
{
obj
:
{
'plateType'
:
index
+
1
'plateType'
:
index
+
1
,
resourceType
:
1
}
}
}
}
this
.
tabsSer
.
stuffPage
(
data
).
subscribe
(
this
.
tabsSer
.
stuffPage
(
data
).
subscribe
(
(
res
)
=>
{
(
res
)
=>
{
this
.
newList
=
res
.
data
;
this
.
newList
=
res
.
data
;
this
.
newList
.
forEach
(
e
=>
{
if
(
e
.
attachments
.
length
>
0
)
{
e
.
imgUrl
=
e
.
attachments
[
0
].
path
;
}
})
}
}
)
)
}
}
...
...
src/pages/tabs/home/home.scss
View file @
adaf26de
...
@@ -95,7 +95,7 @@ page-home {
...
@@ -95,7 +95,7 @@ page-home {
-webkit-border-radius
:
5px
;
-webkit-border-radius
:
5px
;
-moz-border-radius
:
5px
;
-moz-border-radius
:
5px
;
border-radius
:
5px
;
border-radius
:
5px
;
box-shadow
:
-5px
0px
5px
1px
#f
2f2f2
,
0px
-5px
5px
1px
#f2f2f2
,
5px
0px
5px
1px
#f2f2f2
,
0px
5px
5px
1px
#f2f2f2
;
box-shadow
:
-5px
0px
5px
1px
#f
9f9f9
,
0px
-5px
5px
1px
#f9f9f9
,
5px
0px
5px
1px
#f9f9f9
,
0px
5px
5px
1px
#f9f9f9
;
background-color
:
#fff
;
background-color
:
#fff
;
.middle-left
{
.middle-left
{
...
...
src/pages/tabs/home/home.ts
View file @
adaf26de
...
@@ -145,7 +145,6 @@ export class HomePage {
...
@@ -145,7 +145,6 @@ export class HomePage {
e
.
imgUrl
=
e
.
attachments
[
0
].
path
;
e
.
imgUrl
=
e
.
attachments
[
0
].
path
;
}
}
})
})
console
.
log
(
this
.
newList
);
}
}
)
)
}
}
...
...
src/pages/tabs/serve/serve.html
View file @
adaf26de
...
@@ -23,6 +23,26 @@
...
@@ -23,6 +23,26 @@
</ion-slides>
</ion-slides>
</div>
</div>
<div
class=
"item3"
>
<div
class=
"item3-2"
(
click
)="
goToNotice
()"
>
<div
class=
"card3"
style=
"width: 20%;"
>
<span
*
ngIf=
"hasNew.message == 1"
class=
"img-tips"
></span>
<img
src=
"./assets/imgs/home/icon-mail.png"
>
</div>
<div
class=
"card3"
style=
"width: 75%;"
>
<div
class=
"card3-item"
*
ngFor=
"let item of noticeList;"
>
<span
*
ngIf=
"noticeTips > 0"
class=
"tips"
></span>
<span
class=
"color-996"
>
{{item.title}}
</span>
{{item.content}}
</div>
</div>
<div
class=
"card3"
style=
"width: 5%;color: #999999;font-size: 1.6rem"
>
<ion-icon
name=
"ios-arrow-forward"
class=
"icon-right"
></ion-icon>
</div>
</div>
</div>
<p
class=
"p-font"
>
我的应用
</p>
<div
class=
"item2"
style=
"padding: 0px;margin-top: .5rem"
>
<div
class=
"item2"
style=
"padding: 0px;margin-top: .5rem"
>
<div
class=
"item2-2"
>
<div
class=
"item2-2"
>
<div
class=
"card"
(
click
)="
goTo
('
ActivityListPage
')"
>
<div
class=
"card"
(
click
)="
goTo
('
ActivityListPage
')"
>
...
@@ -64,26 +84,10 @@
...
@@ -64,26 +84,10 @@
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"item3"
style=
"padding-top: 0px;"
>
<div
class=
"item3-2"
style=
"background-color:#f8f8f8;"
(
click
)="
goToNotice
()"
>
<p
class=
"p-font"
>
日程表
</p>
<div
class=
"card3"
style=
"width: 15%;"
>
<span
*
ngIf=
"hasNew.message == 1"
class=
"img-tips"
></span>
<img
src=
"./assets/imgs/home/icon-mail.png"
>
</div>
<div
class=
"card3"
style=
"width: 75%;"
>
<div
class=
"card3-item"
*
ngFor=
"let item of noticeList;"
>
<span
*
ngIf=
"noticeTips > 0"
class=
"tips"
></span>
<span
class=
"color-996"
>
{{item.title}}
</span>
{{item.content}}
</div>
</div>
<div
class=
"card3"
style=
"width: 10%;color: #999999;font-size: 1.6rem"
>
<ion-icon
name=
"ios-arrow-forward"
class=
"icon-right"
></ion-icon>
</div>
</div>
</div>
<div
class=
"calen-tab"
>
<div
class=
"calen-tab"
>
日程表:
<span
class=
"calen1"
>
休息日
</span>
<span
class=
"calen2"
>
参加活动
</span>
<span
class=
"calen1"
>
休息日
</span>
<span
class=
"calen2"
>
参加活动
</span>
<span
class=
"calen3"
>
值班
</span><span
class=
"calen4"
>
离沪
</span>
<span
class=
"calen3"
>
值班
</span><span
class=
"calen4"
>
离沪
</span>
</div>
</div>
<ion-calendar
#
calendar
<ion-calendar
#
calendar
...
...
src/pages/tabs/serve/serve.scss
View file @
adaf26de
...
@@ -14,11 +14,15 @@ page-serve {
...
@@ -14,11 +14,15 @@ page-serve {
width
:
100%
;
width
:
100%
;
}
}
.item2
,
.item3
,
.item4
,
.item5
{
.item2
,
.item3
,
.item4
,
.item5
{
background-color
:
#f1f1f1
;
background-color
:
#f1f1f1
;
padding
:
5px
0px
;
padding
:
5px
0px
;
}
}
.item3
{
padding
:
1rem
;
background-color
:
#fff
;
}
.item2-1
,
.item3-1
,
.item4-1
,
.item5-1
{
.item2-1
,
.item3-1
,
.item4-1
,
.item5-1
{
font-size
:
10px
;
font-size
:
10px
;
background-color
:
#ffffff
;
background-color
:
#ffffff
;
...
@@ -65,12 +69,12 @@ page-serve {
...
@@ -65,12 +69,12 @@ page-serve {
width
:
20%
;
width
:
20%
;
display
:
inline-flex
;
display
:
inline-flex
;
flex-direction
:
column
;
flex-direction
:
column
;
// flex-direction: center;
align-items
:
center
;
align-items
:
center
;
justify-content
:
space-between
;
justify-content
:
space-between
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
margin
:
2
.5%
;
margin
:
2
.5%
;
position
:
relative
;
position
:
relative
;
}
}
.card
img
:first-child
{
.card
img
:first-child
{
...
@@ -112,18 +116,26 @@ page-serve {
...
@@ -112,18 +116,26 @@ page-serve {
}
}
.item3-2
{
.item3-2
{
padding-top
:
8px
;
padding
:
.5rem
0
;
-webkit-border-radius
:
5px
;
-moz-border-radius
:
5px
;
border-radius
:
5px
;
box-shadow
:
-5px
0px
5px
1px
#f9f9f9
,
0px
-5px
5px
1px
#f9f9f9
,
5px
0px
5px
1px
#f9f9f9
,
0px
5px
5px
1px
#f9f9f9
;
background-color
:
#fff
;
}
}
.card3
{
.card3
{
display
:
inline-flex
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
align-items
:
flex-start
;
justify-content
:
center
;
justify-content
:
center
;
box-sizing
:
border-box
;
flex-flow
:
row
wrap
;
padding
:
3px
;
padding
:
3px
;
position
:
relative
;
position
:
relative
;
font-size
:
1
.2rem
;
font-size
:
1
.2rem
;
text-align
:
center
;
img
{
width
:
3rem
;
}
}
}
.img-tips
{
.img-tips
{
...
@@ -308,10 +320,12 @@ page-serve {
...
@@ -308,10 +320,12 @@ page-serve {
}
}
.calen-tab
{
.calen-tab
{
margin
:
16px
16px
0px
16px
;
margin
:
10px
10px
0px
10px
;
padding-bottom
:
10px
;
border-bottom
:
1px
solid
#dddddd
;
font-size
:
1
.3rem
;
font-size
:
1
.3rem
;
border
:
1px
solid
#ddd
;
line-height
:
2rem
;
background-color
:
#f7f7f7
;
border-radius
:
8px
;
}
}
.calen1
,
.calen1
,
...
@@ -329,7 +343,7 @@ page-serve {
...
@@ -329,7 +343,7 @@ page-serve {
content
:
''
;
content
:
''
;
position
:
absolute
;
position
:
absolute
;
top
:
23%
;
top
:
23%
;
left
:
-1
3
px
;
left
:
-1
4
px
;
width
:
8px
;
width
:
8px
;
height
:
8px
;
height
:
8px
;
border-radius
:
50%
;
border-radius
:
50%
;
...
@@ -391,5 +405,10 @@ page-serve {
...
@@ -391,5 +405,10 @@ page-serve {
line-height
:
.1
;
line-height
:
.1
;
}
}
}
}
.p-font
{
padding
:
.2rem
1rem
;
font-size
:
1
.5rem
;
color
:
#444
;
}
}
}
src/provide/backButton.service.ts
View file @
adaf26de
...
@@ -38,7 +38,7 @@ export class BackButtonService {
...
@@ -38,7 +38,7 @@ export class BackButtonService {
}
else
{
}
else
{
if
(
tabRef
==
null
||
tabRef
.
_selectHistory
[
tabRef
.
_selectHistory
.
length
-
1
]
===
tabRef
.
getByIndex
(
0
).
id
)
{
if
(
tabRef
==
null
||
tabRef
.
_selectHistory
[
tabRef
.
_selectHistory
.
length
-
1
]
===
tabRef
.
getByIndex
(
0
).
id
)
{
//执行退出
//执行退出
this
.
showExit
();
//
this.showExit();
}
else
{
}
else
{
//选择首页第一个的标签
//选择首页第一个的标签
tabRef
.
select
(
0
);
tabRef
.
select
(
0
);
...
...
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