Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wisdom-ces
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
wisdom-ces
Commits
375830a0
Commit
375830a0
authored
Sep 18, 2018
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
35dc9bf6
Hide whitespace changes
Inline
Side-by-side
Showing
29 changed files
with
389 additions
and
235 deletions
+389
-235
ionic.config.json
ionic.config.json
+3
-0
app.module.ts
src/app/app.module.ts
+14
-3
app.scss
src/app/app.scss
+7
-2
activityDetail.html
src/pages/activityDetail/activityDetail.html
+0
-3
contactList.html
src/pages/contact/contactList/contactList.html
+2
-7
contactList.module.ts
src/pages/contact/contactList/contactList.module.ts
+0
-0
contactList.scss
src/pages/contact/contactList/contactList.scss
+0
-0
contactList.ts
src/pages/contact/contactList/contactList.ts
+1
-1
contract-personinfo.html
...ages/contact/contract-personinfo/contract-personinfo.html
+59
-34
contract-personinfo.module.ts
...contact/contract-personinfo/contract-personinfo.module.ts
+0
-0
contract-personinfo.scss
...ages/contact/contract-personinfo/contract-personinfo.scss
+16
-10
contract-personinfo.ts
src/pages/contact/contract-personinfo/contract-personinfo.ts
+7
-1
myActivityList.html
src/pages/myActivityList/myActivityList.html
+3
-11
myReport.html
src/pages/myReport/myReport.html
+3
-11
operation-list.html
src/pages/operation-list/operation-list.html
+3
-11
search.html
src/pages/search/search.html
+15
-7
search.scss
src/pages/search/search.scss
+4
-0
contact.html
src/pages/tabs/contact/contact.html
+14
-11
contact.scss
src/pages/tabs/contact/contact.scss
+19
-4
contact.ts
src/pages/tabs/contact/contact.ts
+7
-1
home.html
src/pages/tabs/home/home.html
+83
-66
home.scss
src/pages/tabs/home/home.scss
+35
-15
mine.html
src/pages/tabs/mine/mine.html
+39
-18
mine.scss
src/pages/tabs/mine/mine.scss
+8
-0
tabs.module.ts
src/pages/tabs/tabs.module.ts
+3
-1
tabs.ts
src/pages/tabs/tabs.ts
+10
-9
workbench.scss
src/pages/tabs/workbench/workbench.scss
+1
-1
appHttpService.ts
src/service/appHttpService.ts
+8
-8
icon.scss
src/theme/icon.scss
+25
-0
No files found.
ionic.config.json
View file @
375830a0
...
...
@@ -6,6 +6,8 @@
"type"
:
"ionic-angular"
,
"proxies"
:
[
{
"path"
:
"/wisdomgroup"
,
"proxyUrl"
:
"http://180.168.156.212:2931/wisdomgroup"
}
]
}
\ No newline at end of file
src/app/app.module.ts
View file @
375830a0
...
...
@@ -19,14 +19,24 @@ import { FileTransfer, FileTransferObject } from '@ionic-native/file-transfer';
import
{
File
}
from
'@ionic-native/file'
;
import
{
Keyboard
}
from
'@ionic-native/keyboard'
;
import
{
Badge
}
from
"@ionic-native/badge"
;
import
{
ContactModalPage
}
from
"../pages/contact/contact-modal/contact-modal"
;
@
NgModule
({
declarations
:
[
MyApp
MyApp
,
ContactModalPage
],
imports
:
[
BrowserModule
,
IonicModule
.
forRoot
(
MyApp
,{
tabsHideOnSubPages
:
'true'
}),
IonicModule
.
forRoot
(
MyApp
,{
tabsHideOnSubPages
:
'true'
,
backButtonText
:
''
,
//返回按钮显示中文
statusbarPadding
:
false
,
iconModel
:
'ios'
,
//icon显示图标为IOS版
mode
:
'ios'
,
//安卓和IOS的样式以IOS样式为准
modalEnter
:
'modal-slide-in'
,
modalLeave
:
'modal-slide-out'
}),
IonicStorageModule
.
forRoot
(),
TabsModule
,
LoginModule
,
...
...
@@ -35,7 +45,8 @@ import { Badge } from "@ionic-native/badge";
],
bootstrap
:
[
IonicApp
],
entryComponents
:
[
MyApp
MyApp
,
ContactModalPage
],
providers
:
[
StatusBar
,
...
...
src/app/app.scss
View file @
375830a0
...
...
@@ -14,4 +14,9 @@
// To declare rules for a specific mode, create a child rule
// for the .md, .ios, or .wp mode classes. The mode class is
// automatically applied to the <body> element in the app.
@import
"../theme/icon.scss"
\ No newline at end of file
@import
"../theme/icon.scss"
;
.back-button-icon-ios
{
line-height
:
20px
;
font-size
:
3rem
;
}
\ No newline at end of file
src/pages/activityDetail/activityDetail.html
View file @
375830a0
<ion-header>
<ion-toolbar>
<div
class=
"searchToolBar"
>
<button
ion-button
clear
small
navPop
style=
"padding: 0;"
>
<img
class=
"back-btn"
src=
"./assets/imgs/back.png"
/>
</button>
<ion-title
text-center
>
活动详情
</ion-title>
</div>
</ion-toolbar>
...
...
src/pages/contactList/contactList.html
→
src/pages/contact
/contact
List/contactList.html
View file @
375830a0
<ion-header>
<ion-toolbar>
<div
class=
"searchToolBar"
>
<button
ion-button
clear
small
navPop
style=
"padding: 0;"
(
click
)="
goBack
()"
>
<img
class=
"back-btn"
src=
"./assets/imgs/back.png"
/>
</button>
<ion-navbar>
<ion-title
text-center
>
<span
*
ngIf=
"orgid == null"
>
常用联系人
</span>
<span
*
ngIf=
"orgid!=null && this.orgid != ''"
>
{{orgName}}
</span>
</ion-title>
</div>
</ion-toolbar>
</ion-navbar>
</ion-header>
<ion-content
direction=
"y"
scrollbar-y=
"true"
>
...
...
src/pages/contactList/contactList.module.ts
→
src/pages/contact
/contact
List/contactList.module.ts
View file @
375830a0
File moved
src/pages/contactList/contactList.scss
→
src/pages/contact
/contact
List/contactList.scss
View file @
375830a0
File moved
src/pages/contactList/contactList.ts
→
src/pages/contact
/contact
List/contactList.ts
View file @
375830a0
...
...
@@ -2,7 +2,7 @@ import { Component } from '@angular/core';
import
{
IonicPage
,
NavController
,
NavParams
,
ToastController
,
Content
}
from
'ionic-angular'
;
import
{
Response
}
from
'@angular/http'
;
import
{
Storage
}
from
'@ionic/storage'
;
import
{
AppService
}
from
'../../service/appHttpService'
;
import
{
AppService
}
from
'../../
../
service/appHttpService'
;
import
{
ContractPersoninfoPage
}
from
'../contract-personinfo/contract-personinfo'
;
...
...
src/pages/contract-personinfo/contract-personinfo.html
→
src/pages/cont
act/cont
ract-personinfo/contract-personinfo.html
View file @
375830a0
<ion-header>
<ion-toolbar>
<div
class=
"searchToolBar"
>
<button
ion-button
clear
small
navPop
style=
"padding: 0;"
>
<img
class=
"back-btn"
src=
"./assets/imgs/back.png"
/>
</button>
<ion-title
text-center
>
个人信息
</ion-title>
</div>
</ion-toolbar>
<ion-navbar>
<ion-title>
个人信息
</ion-title>
</ion-navbar>
</ion-header>
<ion-content
class=
"content"
>
<ion-list
class=
"list-item"
>
<!--<ion-list class="list-item">-->
<!--<ion-item>-->
<!--<div class="info-item">-->
<!--<div>-->
<!--<div>-->
<!--<span class="info-span">{{contactPersonInfo.name}}</span>-->
<!--<ion-icon name="male" class="contact-sex male" *ngIf="contactPersonInfo.gender == '1' || contactPersonInfo.gender == null"></ion-icon>-->
<!--<ion-icon name="female" class="contact-sex female" *ngIf="contactPersonInfo.gender == 0"></ion-icon>-->
<!--</div>-->
<!--<span class="info-span">{{contactPersonInfo.orgName}}</span>-->
<!--</div>-->
<!--<div>-->
<!--<img src="./assets/imgs/woman.png" *ngIf="contactPersonInfo.gender == 0" class="contact-img">-->
<!--<img src="./assets/imgs/man.png" *ngIf="contactPersonInfo.gender == '1' || contactPersonInfo.gender == null " class="contact-img">-->
<!--</div>-->
<!--</div>-->
<!--</ion-item>-->
<!--</ion-list>-->
<!--<div class="content-gap"></div>-->
<ion-list>
<p
class=
"person-tips"
>
基础信息(如需修改,请联系人事处)
</p>
<ion-item>
<div
class=
"info-item"
>
<div>
<div>
<span
class=
"info-span"
>
{{contactPersonInfo.name}}
</span>
<ion-icon
name=
"male"
class=
"contact-sex male"
*
ngIf=
"contactPersonInfo.gender == '1' || contactPersonInfo.gender == null"
></ion-icon>
<ion-icon
name=
"female"
class=
"contact-sex female"
*
ngIf=
"contactPersonInfo.gender == 0"
></ion-icon>
</div>
<span
class=
"info-span"
>
{{contactPersonInfo.orgName}}
</span>
<span
class=
"info-span"
>
头像
</span>
<div
class=
"info-item-content"
>
</div>
<div>
<img
src=
"./assets/imgs/woman.png"
*
ngIf=
"contactPersonInfo.gender == 0"
class=
"contact-img"
>
<img
src=
"./assets/imgs/man.png"
*
ngIf=
"contactPersonInfo.gender == '1' || contactPersonInfo.gender == null "
class=
"contact-img"
>
</div>
</ion-item>
<ion-item>
<div
class=
"info-item"
>
<span
class=
"info-span"
>
姓名
</span>
<div
class=
"info-item-content"
>
<span
class=
"info"
>
{{contactPersonInfo.name}}
</span>
</div>
</div>
</ion-item>
</ion-list>
<div
class=
"content-gap"
></div>
<ion-list>
<ion-item>
<div
class=
"info-item"
>
<span
class=
"info-span"
>
房间
号
</span>
<span
class=
"info-span"
>
手机
号
</span>
<div
class=
"info-item-content"
>
<span
class=
"info"
>
{{contactPersonInfo.
abbreviation
}}
</span>
<span
class=
"info"
>
{{contactPersonInfo.
mobile
}}
</span>
</div>
</div>
</ion-item>
<ion-item>
<div
class=
"info-item"
>
<span
class=
"info-span"
>
座机
</span>
<span
class=
"info-span"
>
性别
</span>
<div
class=
"info-item-content"
>
<span
class=
"info"
>
{{contactPersonInfo.telephone}}
</span>
<span
class=
"info"
>
<span
*
ngIf=
"contactPersonInfo.gender == '1' || contactPersonInfo.gender == null"
>
男
</span>
<span
*
ngIf=
"contactPersonInfo.gender == 0"
>
女
</span>
</span>
</div>
</div>
</ion-item>
<p
class=
"person-tips"
>
补充信息
</p>
<ion-item>
<div
class=
"info-item"
>
<span
class=
"info-span"
>
手机
</span>
<span
class=
"info-span"
>
房间号
</span>
<div
class=
"info-item-content"
>
<span
class=
"info"
>
{{contactPersonInfo.mobile}}
</span>
<span
class=
"info"
>
{{contactPersonInfo.abbreviation}}
</span>
</div>
</div>
</ion-item>
<ion-item>
<div
class=
"info-item"
>
<span
class=
"info-span"
>
座机
</span>
<div
class=
"info-item-content"
>
<span
class=
"info"
>
{{contactPersonInfo.telephone}}
</span>
</div>
</div>
</ion-item>
<ion-item>
<div
class=
"info-item"
>
<span
class=
"info-span"
>
邮箱
</span>
...
...
@@ -71,7 +94,6 @@
</ion-item>
</ion-list>
<!-- <button ion-button block class="call-btn" (click)="call()">拨打座机</button> -->
<button
class=
"call-btn"
(
click
)="
call
(
contactPersonInfo
.
telephone
)"
>
拨打座机
</button>
...
...
@@ -81,4 +103,6 @@
<button
class=
"call-btn"
(
click
)="
cancelGenaralPersons
()"
*
ngIf=
"contactPersonInfo.hasgeneralpersonsflag"
>
移除常用联系人
</button>
<button
class=
"call-btn"
(
click
)="
usualContactSet
()"
>
设置分组
</button>
</ion-content>
\ No newline at end of file
src/pages/contract-personinfo/contract-personinfo.module.ts
→
src/pages/cont
act/cont
ract-personinfo/contract-personinfo.module.ts
View file @
375830a0
File moved
src/pages/contract-personinfo/contract-personinfo.scss
→
src/pages/cont
act/cont
ract-personinfo/contract-personinfo.scss
View file @
375830a0
...
...
@@ -63,26 +63,32 @@ page-contract-personinfo {
width
:
80%
;
margin-left
:
10%
;
margin-right
:
10%
;
color
:
#fff
;
border
:
1px
solid
#4a89f9
;
background-color
:
#4a89f9
;
font-size
:
18px
;
font-weight
:
600
;
border
:
1px
solid
#34b4fc
;
background-color
:
#34b4fc
;
font-size
:
15px
;
position
:
relative
;
text-align
:
center
;
white-space
:
nowrap
;
border-radius
:
3px
;
border-top-left-radius
:
3px
;
border-top-right-radius
:
3px
;
border-bottom-right-radius
:
3px
;
border-bottom-left-radius
:
3px
;
}
.back-btn
{
width
:
30px
;
height
:
30px
;
}
.person-tips
{
margin
:
0
;
padding
:
8px
16px
;
color
:
#666
;
font-size
:
12px
;
}
.item-ios
{
font-size
:
14px
;
padding-left
:
0px
;
}
.list-ios
.item-block
.item-inner
{
padding-left
:
16px
;
}
}
src/pages/contract-personinfo/contract-personinfo.ts
→
src/pages/cont
act/cont
ract-personinfo/contract-personinfo.ts
View file @
375830a0
import
{
Component
}
from
'@angular/core'
;
import
{
IonicPage
,
NavController
,
NavParams
}
from
'ionic-angular'
;
import
{
Response
}
from
'@angular/http'
;
import
{
AppService
}
from
'../../service/appHttpService'
;
import
{
AppService
}
from
'../../
../
service/appHttpService'
;
import
{
ContactListPage
}
from
'../contactList/contactList'
;
import
{
MyBlockPage
}
from
"../my-block/my-block"
;
@
IonicPage
()
@
Component
({
...
...
@@ -69,4 +70,9 @@ export class ContractPersoninfoPage {
console
.
log
(
"拨打:"
+
number
);
window
.
location
.
href
=
"tel:"
+
number
;
}
//跳转设置分组
usualContactSet
(){
this
.
navCtrl
.
push
(
'MyBlockPage'
);
}
}
src/pages/myActivityList/myActivityList.html
View file @
375830a0
<ion-header>
<ion-toolbar>
<div
class=
"searchToolBar"
>
<button
ion-button
clear
small
navPop
style=
"padding: 0;"
(
click
)="
goBack
()"
>
<img
class=
"back-btn"
src=
"./assets/imgs/back.png"
/>
</button>
<ion-title
text-center
>
我的活动
</ion-title>
</div>
</ion-toolbar>
<ion-navbar>
<ion-title>
我的活动
</ion-title>
</ion-navbar>
<div
class=
"pageMenuSlides"
>
<div
class=
"swiper-container"
>
<div
class=
"swiper-wrapper"
>
...
...
src/pages/myReport/myReport.html
View file @
375830a0
<ion-header>
<ion-toolbar>
<div
class=
"searchToolBar"
>
<button
ion-button
clear
small
navPop
style=
"padding: 0;"
(
click
)="
goBack
()"
>
<img
class=
"back-btn"
src=
"./assets/imgs/back.png"
/>
</button>
<ion-title
text-center
>
我的报备
</ion-title>
</div>
</ion-toolbar>
<ion-navbar>
<ion-title>
我的报备
</ion-title>
</ion-navbar>
<div
class=
"pageMenuSlides"
>
<div
class=
"swiper-container"
>
<div
class=
"swiper-wrapper"
>
...
...
src/pages/operation-list/operation-list.html
View file @
375830a0
<ion-header>
<ion-toolbar>
<div
class=
"searchToolBar"
>
<button
ion-button
clear
small
navPop
style=
"padding: 0;"
(
click
)="
goBack
()"
>
<img
class=
"back-btn"
src=
"./assets/imgs/back.png"
/>
</button>
<ion-title
text-center
>
操作记录({{totalNum}})
</ion-title>
</div>
</ion-toolbar>
<ion-navbar>
<ion-title>
操作记录({{totalNum}})
</ion-title>
</ion-navbar>
</ion-header>
...
...
src/pages/search/search.html
View file @
375830a0
<ion-header>
<ion-toolbar>
<div
class=
"searchToolBar"
>
<button
ion-button
clear
small
navPop
style=
"padding: 0;"
>
<img
class=
"back-btn"
src=
"./assets/imgs/back.png"
/>
</button>
<!--<ion-toolbar>-->
<!--<div class="searchToolBar">-->
<!--<button ion-button clear small navPop style="padding: 0;">-->
<!--<img class="back-btn" src="./assets/imgs/back.png" />-->
<!--</button>-->
<!--<div class="search-header">-->
<!--<ion-input type="text" placeholder="按姓名搜索" [(ngModel)]="searchValue" (ionChange)="searchUser()"></ion-input>-->
<!--<ion-icon name="close" class="clear" (click)="clearValue()"></ion-icon>-->
<!--</div>-->
<!--</div>-->
<!--</ion-toolbar>-->
<ion-navbar>
<ion-navbar>
<div
class=
"search-header"
>
<ion-input
type=
"text"
placeholder=
"按姓名搜索"
[(
ngModel
)]="
searchValue
"
(
ionChange
)="
searchUser
()"
></ion-input>
<ion-icon
name=
"close"
class=
"clear"
(
click
)="
clearValue
()"
></ion-icon>
</div>
</
div
>
</ion-
tool
bar>
</
ion-navbar
>
</ion-
nav
bar>
</ion-header>
<ion-content>
<div
class=
"common"
>
...
...
src/pages/search/search.scss
View file @
375830a0
...
...
@@ -7,6 +7,9 @@ page-search {
justify-content
:
left
;
box-sizing
:
border-box
;
}
.toolbar-background-ios
{
border-bottom
:
none
;
}
.search-header
{
display
:
flex
;
...
...
@@ -25,6 +28,7 @@ page-search {
height
:
15px
;
border-radius
:
15px
;
text-align
:
center
;
margin-right
:
10px
;
}
.common
{
...
...
src/pages/tabs/contact/contact.html
View file @
375830a0
<
!-- <
ion-header>
<ion-header>
<ion-toolbar>
<ion-title
text-center
>
通讯录
</ion-title>
<img
class=
"search"
(
click
)="
search
()"
src=
"./assets/imgs/search.png"
/>
</ion-toolbar>
</ion-header>
-->
</ion-toolbar>
</ion-header>
<ion-header>
<ion-navbar>
<ion-icon
name=
"search"
class=
"search"
(
click
)="
search
()"
></ion-icon>
<ion-title
style=
"margin-right:40px;margin-left:40px;text-align:center"
>
通讯录
</ion-title>
</ion-navbar>
</ion-header>
<ion-content>
<div
class=
"common"
>
常用联系人
<span
float-right
class=
"margin-right-10"
>
添加时间
<ion-icon
class=
"margin-left-5 color-666"
name=
"md-arrow-dropdown"
></ion-icon></span>
</div>
<div
class=
"item"
(
click
)="
usualContactPersons
()"
>
<ion-icon
name=
"ios-contacts"
class=
"contact-icon"
></ion-icon>
<span
class=
"contact-title"
>
常用联系人
</span>
</div>
<div
class=
"common"
>
我的分组
</div>
<div
class=
"item"
(
click
)="
usualContactAdd
()"
>
<span
class=
"icon-span"
>
<ion-icon
ios=
"ios-add"
class=
"add-icon-contact"
md=
"md-add"
></ion-icon>
</span>
<span
class=
"contact-title color-999"
>
添加分组
</span>
</div>
<div
class=
"common"
>
上海市委组织部组织架构
<span
float-right
class=
"margin-right-10"
>
A~Z字母排序
<ion-icon
class=
"margin-left-5 color-666"
name=
"md-arrow-dropdown"
></ion-icon></span>
</div>
<div
class=
"item item-border"
*
ngFor=
"let organization of organizations"
(
click
)="
usualContactOrgPersons
(
organization
)"
>
<ion-icon
name=
"folder"
class=
"contact-icon"
></ion-icon>
...
...
src/pages/tabs/contact/contact.scss
View file @
375830a0
page-contact
{
.search
{
width
:
30
px
;
height
:
30
px
;
width
:
18
px
;
height
:
18
px
;
float
:
right
;
margin-right
:
1
0
px
;
margin-right
:
1
5
px
;
}
.common
{
...
...
@@ -28,10 +28,25 @@ page-contact {
}
.contact-icon
{
font-size
:
4
0px
;
font-size
:
3
0px
;
color
:
#81afe8
;
margin-right
:
15px
;
}
.icon-span
{
text-align
:
center
;
background-color
:
#eeeeee
;
display
:
inline-block
;
width
:
35px
;
height
:
35px
;
margin-right
:
10px
;
border-radius
:
2px
;
}
.add-icon-contact
{
font-weight
:
600
;
color
:
#fff
;
font-size
:
48px
;
line-height
:
35px
;
}
.contact-title
{
font-size
:
18px
;
...
...
src/pages/tabs/contact/contact.ts
View file @
375830a0
...
...
@@ -6,7 +6,8 @@ import { Storage } from '@ionic/storage';
import
{
AppService
}
from
'../../../service/appHttpService'
;
import
{
SearchPage
}
from
'../../search/search'
;
import
{
ContactListPage
}
from
'../../contactList/contactList'
;
import
{
ContactListPage
}
from
'../../contact/contactList/contactList'
;
import
{
AddBlockPage
}
from
"../../contact/add-block/add-block"
;
@
Component
({
selector
:
'page-contact'
,
...
...
@@ -67,5 +68,10 @@ export class ContactPage {
this
.
navCtrl
.
push
(
"ContactListPage"
);
}
//添加分组
usualContactAdd
(){
this
.
navCtrl
.
push
(
'AddBlockPage'
);
}
}
src/pages/tabs/home/home.html
View file @
375830a0
...
...
@@ -12,76 +12,93 @@
</ion-slide>
</ion-slides>
<div
class=
"item2"
>
<
div
class=
"item2-1"
>
<
ion-icon
name=
"apps"
class=
"icon2"
></ion-icon
>
<
label
class=
"common_applications"
>
常用应用
</label
>
<
/div
>
<
!--<div class="item2-1">--
>
<
!--<ion-icon name="apps" class="icon2"></ion-icon>--
>
<
!--<label class="common_applications">常用应用</label>--
>
<
!--</div>--
>
<div
class=
"item2-2"
>
<div
class=
"card"
(
click
)="
goActivity
()"
>
<i
on-icon
name=
"flag"
class=
"icon2-2"
></ion-icon
>
<label
class=
"label2-2"
>
组织活动
</label>
<i
mg
src=
"./assets/imgs/home/icon-bm.png"
alt=
""
>
<label
class=
"label2-2"
>
活动报名
</label>
<img
class=
"new-logo"
*
ngIf=
"hasNewActivity==1"
src=
"./assets/imgs/new.png"
>
</div>
<div
class=
"card"
(
click
)="
goAnnouncement
()"
>
<i
on-icon
name=
"alert"
class=
"icon2-2"
></ion-icon
>
<i
mg
src=
"./assets/imgs/home/icon-tz.png"
alt=
""
>
<label
class=
"label2-2"
>
通知公告
</label>
<img
class=
"new-logo"
*
ngIf=
"hasNewNotice==1"
src=
"./assets/imgs/new.png"
>
</div>
<div
class=
"card"
(
click
)="
goOutGoingReportAboutAll
()"
>
<i
on-icon
name=
"alarm"
class=
"icon2-2"
></ion-icon
>
<label
class=
"label2-2"
>
外出
报备
</label>
<i
mg
src=
"./assets/imgs/home/icon-lhbb.png"
alt=
""
>
<label
class=
"label2-2"
>
离沪
报备
</label>
<img
class=
"new-logo"
*
ngIf=
"hasNewPremanager==1"
src=
"./assets/imgs/new.png"
>
</div>
<
!-- <
div class="card" (click)="wait()">
<i
on-icon name="alarm" class="icon2-2"></ion-icon
>
<label class="label2-2">
智能审批
</label>
<div
class=
"card"
(
click
)="
wait
()"
>
<i
mg
src=
"./assets/imgs/home/icon-zb.png"
alt=
""
>
<label
class=
"label2-2"
>
值班情况
</label>
</div>
<div
class=
"card"
(
click
)="
wait
()"
>
<i
on-icon name="albums" class="icon2-2"></ion-icon
>
<label class="label2-2">
值班安排
</label>
<i
mg
src=
"./assets/imgs/home/icon-hdgz.png"
alt=
""
>
<label
class=
"label2-2"
>
活动跟踪
</label>
</div>
<div
class=
"card"
(
click
)="
wait
()"
>
<i
on-icon name="bicycle" class="icon2-2"></ion-icon
>
<label class="label2-2">
外出申请
</label>
<i
mg
src=
"./assets/imgs/home/icon-bbgz.png"
alt=
""
>
<label
class=
"label2-2"
>
报备跟踪
</label>
</div>
<div
class=
"card"
(
click
)="
wait
()"
>
<i
on-icon name="body" class="icon2-2"></ion-icon
>
<label class="label2-2">
体检报告
</label>
</div>
-->
<i
mg
src=
"./assets/imgs/home/icon-wjtc.png"
alt=
""
>
<label
class=
"label2-2"
>
问卷调查
</label>
</div>
<div
class=
"card"
(
click
)="
wait
()"
>
<i
on-icon
name=
"ios-more"
class=
"icon2-2"
></ion-icon
>
<label
class=
"label2-2 more2-2"
>
更多
</label>
<i
mg
src=
"./assets/imgs/home/icon-more.png"
alt=
""
>
<label
class=
"label2-2 more2-2"
>
更多
应用
</label>
</div>
</div>
</div>
<div
class=
"item3"
>
<div
class=
"item3-1"
>
<ion-icon
name=
"alarm"
class=
"icon3"
></ion-icon>
<label
class=
"daily_reminder"
>
日常提醒
</label>
</div>
<!--<div class="item3-1">-->
<!--<ion-icon name="alarm" class="icon3"></ion-icon>-->
<!--<label class="daily_reminder">日常提醒</label>-->
<!--</div>-->
<div
class=
"item3-2"
>
<div
class=
"card3"
(
click
)="
goMyNotice
()"
style=
"background-color:#ffffff;"
>
<div
*
ngIf=
"NoticeNotreadCount>0"
class=
"common-menu-count"
>
{{NoticeNotreadCount}}
</div>
<div
class=
"common-menu"
>
未读
<br/>
通知
</div>
</div>
<div
class=
"card3"
(
click
)="
goOutGoingReportAboutNot
()"
style=
"background-color:#ffffff;"
>
<div
*
ngIf=
"PremanagerNotdoCount>0"
class=
"common-menu-count"
>
{{PremanagerNotdoCount}}
</div>
<div
class=
"common-menu"
>
尚未
<br/>
报备
</div>
<div
class=
"card3"
style=
"width: 15%;"
>
<span
class=
"img-tips"
></span>
<img
src=
"./assets/imgs/home/icon-mail.png"
alt=
""
>
</div>
<div
class=
"card3"
(
click
)="
goMyActivity
()"
style=
"background-color:#ffffff;"
>
<div
*
ngIf=
"waitgoCount>0"
class=
"common-menu-count"
>
{{waitgoCount}}
</div>
<div
class=
"common-menu"
>
已报
<br/>
活动
</div>
<div
class=
"card3"
style=
"width: 75%;"
>
<div
class=
"card3-item"
>
<span
class=
"tips"
></span>
<span
class=
"color-996"
>
生日祝福
</span>
<span>
今天是XXX生日,祝他生日快乐
</span>
</div>
<div
class=
"card3-item"
>
<span
class=
"tips"
></span>
<span
class=
"color-996"
>
生日祝福
</span>
<span>
今天是XXX生日,祝他生日快乐
</span>
</div>
</div>
<div
class=
"card3"
(
click
)="
goMyActivity
()"
style=
"background-color:#ffffff;"
>
<div
*
ngIf=
"waitsureCount>0"
class=
"common-menu-count"
>
{{waitsureCount}}
</div>
<div
class=
"common-menu"
>
待评
<br/>
活动
</div>
<div
class=
"card3"
style=
"width: 10%;color: #999999"
>
<ion-icon
name=
"ios-arrow-forward"
class=
"icon-right"
></ion-icon>
</div>
<!--<div class="card3" (click)="goMyNotice()" style="background-color:#ffffff;">-->
<!--<div *ngIf="NoticeNotreadCount>0" class="common-menu-count">{{NoticeNotreadCount}}</div>-->
<!--<div class="common-menu">未读-->
<!--<br/>通知</div>-->
<!--</div>-->
<!--<div class="card3" (click)="goOutGoingReportAboutNot()" style="background-color:#ffffff;">-->
<!--<div *ngIf="PremanagerNotdoCount>0" class="common-menu-count">{{PremanagerNotdoCount}}</div>-->
<!--<div class="common-menu">尚未-->
<!--<br/>报备</div>-->
<!--</div>-->
<!--<div class="card3" (click)="goMyActivity()" style="background-color:#ffffff;">-->
<!--<div *ngIf="waitgoCount>0" class="common-menu-count">{{waitgoCount}}</div>-->
<!--<div class="common-menu">已报-->
<!--<br/>活动</div>-->
<!--</div>-->
<!--<div class="card3" (click)="goMyActivity()" style="background-color:#ffffff;">-->
<!--<div *ngIf="waitsureCount>0" class="common-menu-count">{{waitsureCount}}</div>-->
<!--<div class="common-menu">待评-->
<!--<br/>活动</div>-->
<!--</div>-->
</div>
</div>
<div
class=
"item4"
>
...
...
@@ -103,28 +120,28 @@
</div>
</div>
</div>
<
div
class=
"item5"
>
<
div
class=
"item5-1"
>
<
ion-icon
name=
"list"
class=
"icon5"
></ion-icon
>
<
label
class=
"operation_record"
>
操作记录
</label
>
<
label
class=
"more"
(
click
)="
goOperationListPage
()"
>
更多
<
ion-icon
name=
"arrow-dropright"
></ion-icon
>
<
/label
>
<
/div
>
<
div
class=
"item5-2"
>
<
div
class=
"card5"
*
ngFor=
"let operation of operations;let idx = index"
>
<
label
class=
"card5-1"
>
<
span
class=
"card5-1-1"
>
{{idx+1}}、
</span>
{{operation.opertionContent|slice:0:20}}...
</label
>
<
label
class=
"time_home"
>
{{operation.timegapvalue}}
</label
>
<
/div
>
<!--
<div class="card5"
>
<
label class="card5-1"
>
<
span class="card5-1-1">2、</span>你已取消报名2018年疗养活动,详情见“我的活动”</label
>
<
label class="time">1天前</label
>
<
/div>
-->
<
/div
>
<
/div
>
<
!--<div class="item5">--
>
<
!--<div class="item5-1">--
>
<
!--<ion-icon name="list" class="icon5"></ion-icon>--
>
<
!--<label class="operation_record">操作记录</label>--
>
<
!--<label class="more" (click)="goOperationListPage()">--
>
<!--更多-->
<
!--<ion-icon name="arrow-dropright"></ion-icon>--
>
<
!--</label>--
>
<
!--</div>--
>
<
!--<div class="item5-2">--
>
<
!--<div class="card5" *ngFor="let operation of operations;let idx = index">--
>
<
!--<label class="card5-1">--
>
<
!--<span class="card5-1-1">{{idx+1}}、</span>{{operation.opertionContent|slice:0:20}}...</label>--
>
<
!--<label class="time_home">{{operation.timegapvalue}}</label>--
>
<
!--</div>--
>
<!--
<!– <div class="card5">--
>
<
!--<label class="card5-1">--
>
<
!--<span class="card5-1-1">2、</span>你已取消报名2018年疗养活动,详情见“我的活动”</label>--
>
<
!--<label class="time">1天前</label>--
>
<
!--</div> –>
-->
<
!--</div>--
>
<
!--</div>--
>
</ion-content>
<div
class=
"cover"
*
ngIf=
"isWait"
(
click
)="
cancleWait
()"
>
...
...
src/pages/tabs/home/home.scss
View file @
375830a0
...
...
@@ -14,7 +14,7 @@ page-home {
.item2
,
.item3
,
.item4
,
.item5
{
background-color
:
#f1f1f1
;
padding
:
5px
6
px
;
padding
:
5px
0
px
;
}
.item2-1
,
.item3-1
,
.item4-1
,
.item5-1
{
...
...
@@ -36,11 +36,11 @@ page-home {
.item2-2
,
.item3-2
,
.item4-2
,
.item5-2
{
background-color
:
#ffffff
;
box-shadow
:
0px
5px
5px
#b5cef7
;
padding-bottom
:
15
px
;
//
box-shadow:0px 5px 5px #b5cef7;
padding-bottom
:
8
px
;
}
.item2-2
{
.item2-2
,
.item3-2
{
display
:
flex
;
flex-direction
:
row
;
flex-wrap
:wrap
;
...
...
@@ -49,7 +49,9 @@ page-home {
justify-content
:
left
;
box-sizing
:
border-box
;
}
.card3-item
{
margin
:
3px
0
;
}
.card
{
height
:
100%
;
width
:
20%
;
...
...
@@ -59,10 +61,12 @@ page-home {
align-items
:
center
;
justify-content
:
space-between
;
box-sizing
:
border-box
;
margin
:
0
2
.5%
;
margin
:
2
.5%
;
position
:
relative
;
}
.card
img
:first-child
{
width
:
50%
;
}
.icon2-2
{
color
:
#488afe
;
font-size
:
40px
;
...
...
@@ -98,28 +102,44 @@ page-home {
}
.item3-2
{
padding-top
:
15
px
;
padding-top
:
8
px
;
text-align
:
center
;
}
.card3
{
height
:
100%
;
width
:
66px
;
font-size
:
12px
;
display
:
inline-flex
;
flex-direction
:
column
;
// flex-direction: center;
align-items
:
center
;
justify-content
:
space-between
;
align-items
:
flex-start
;
justify-content
:
center
;
box-sizing
:
border-box
;
margin
:
0
5px
;
background-color
:
#e0e9fa
;
padding
:
8px
3px
;
padding
:
3px
;
position
:
relative
;
}
.img-tips
{
position
:
absolute
;
padding
:
4px
;
background-color
:
red
;
border-radius
:
50%
;
right
:
10px
;
top
:
12px
;
}
.label3-1
{
font-size
:
20px
;
color
:
#f26d3a
;
}
.color-996
{
color
:
#fb9662
;
}
.tips
{
display
:
inline-block
;
padding
:
2px
;
background-color
:
#fb9662
;
border-radius
:
50%
;
vertical-align
:
middle
;
margin-right
:
5px
;
}
.label3-2
{
font-size
:
12px
;
...
...
src/pages/tabs/mine/mine.html
View file @
375830a0
...
...
@@ -35,41 +35,61 @@
<img
src=
"./assets/imgs/wdzb.png"
class=
"group-img"
>
<span>
我的报备
</span>
</div>
<ion-icon
name=
"ios-arrow-forward"
class=
"icon-right"
></ion-icon>
</div>
</ion-item>
<!-- <ion-item>
<div class="group">
<div class="group-box">
<img src="./assets/imgs/dcwj.png" class="group-img">
<span>调查问卷</span>
</div>
<ion-icon name="ios-arrow-forward" class="icon-right"></ion-icon>
<ion-item>
<div
class=
"group"
>
<div
class=
"group-box"
>
<img
src=
"./assets/imgs/dcwj.png"
class=
"group-img"
>
<span>
我的问卷
</span>
</div>
</ion-item>-->
<ion-item
(
click
)="
myOperationList
()"
>
<ion-icon
name=
"ios-arrow-forward"
class=
"icon-right"
></ion-icon>
</div>
</ion-item>
<ion-item
(
click
)="
myOperationList
()"
class=
"list-bottom-none"
>
<div
class=
"group"
>
<div
class=
"group-box"
>
<img
src=
"./assets/imgs/czjl.png"
class=
"group-img"
>
<span>
操作记录
</span>
<span>
我的值班
</span>
</div>
<ion-icon
name=
"ios-arrow-forward"
class=
"icon-right"
></ion-icon>
</div>
</ion-item>
<ion-item
(
click
)="
currentVersion
()"
>
<div
style=
"height: 1.5rem;background-color:#eaedf3;"
></div>
<ion-item>
<div
class=
"group"
>
<div
class=
"group-box"
>
<img
src=
"./assets/imgs/version.png"
class=
"group-img"
>
<span>
版本信息
</span>
<img
*
ngIf=
"!isLatest"
src=
"./assets/imgs/new.png"
class=
"new"
>
<img
src=
"./assets/imgs/czjl.png"
class=
"group-img"
>
<span>
设置
</span>
</div>
<!-- <span>{{version}}</span> -->
<ion-icon
name=
"ios-arrow-forward"
class=
"icon-right"
></ion-icon>
</div>
</ion-item>
<!--<ion-item (click)="myOperationList()">-->
<!--<div class="group">-->
<!--<div class="group-box">-->
<!--<img src="./assets/imgs/czjl.png" class="group-img">-->
<!--<span>操作记录</span>-->
<!--</div>-->
<!--<ion-icon name="ios-arrow-forward" class="icon-right"></ion-icon>-->
<!--</div>-->
<!--</ion-item>-->
<!--<ion-item (click)="currentVersion()">-->
<!--<div class="group">-->
<!--<div class="group-box">-->
<!--<img src="./assets/imgs/version.png" class="group-img">-->
<!--<span>版本信息</span>-->
<!--<img *ngIf="!isLatest" src="./assets/imgs/new.png" class="new">-->
<!--</div>-->
<!--<!– <span>{{version}}</span> –>-->
<!--<ion-icon name="ios-arrow-forward" class="icon-right"></ion-icon>-->
<!--</div>-->
<!--</ion-item>-->
</ion-list>
<
button
ion-button
block
class=
"logout"
(
click
)="
logout
()"
>
退出登录
</button
>
<
!--<button ion-button block class="logout" (click)="logout()">退出登录</button>--
>
</ion-content>
\ No newline at end of file
src/pages/tabs/mine/mine.scss
View file @
375830a0
...
...
@@ -39,6 +39,10 @@ page-mine {
align-items
:
center
;
justify-content
:
space-between
;
box-sizing
:
border-box
;
ion-icon
{
color
:
#999999
;
}
}
.group-box
{
...
...
@@ -84,5 +88,9 @@ page-mine {
height
:
15px
;
}
.list-ios
.list-bottom-none
.item-inner
{
border-bottom
:
none
;
}
}
src/pages/tabs/tabs.module.ts
View file @
375830a0
...
...
@@ -7,6 +7,7 @@ import { HomeModule } from './home/home.module';
import
{
MineModule
}
from
'./mine/mine.module'
;
import
{
ContactModule
}
from
'./contact/contact.module'
;
import
{
WorkbenchModule
}
from
'./workbench/workbench.module'
;
import
{
NoticePageModule
}
from
"./notice/notice.module"
;
@
NgModule
({
declarations
:
[
...
...
@@ -18,7 +19,8 @@ import { WorkbenchModule } from './workbench/workbench.module';
HomeModule
,
ContactModule
,
WorkbenchModule
,
MineModule
MineModule
,
NoticePageModule
],
entryComponents
:
[
TabsPage
,
...
...
src/pages/tabs/tabs.ts
View file @
375830a0
...
...
@@ -10,6 +10,7 @@ import { Storage } from '@ionic/storage';
import
{
ModifyPasswordPage
}
from
'../modifyPassword/modifyPassword'
;
import
{
AppService
,
AppGlobal
}
from
'../../service/appHttpService'
;
import
{
NoticePage
}
from
"./notice/notice"
;
@
Component
({
templateUrl
:
'tabs.html'
...
...
@@ -49,8 +50,8 @@ export class TabsPage {
tabTitle
:
'通讯录'
,
tabIcon
:
'mycontact'
},
{
root
:
Workbench
Page
,
tabTitle
:
'
工作台
'
,
root
:
Notice
Page
,
tabTitle
:
'
消息
'
,
tabIcon
:
'myworkbench'
},
{
root
:
MinePage
,
...
...
@@ -59,13 +60,13 @@ export class TabsPage {
}];
//判断是否密码为初始六个0
this
.
userInfo
=
this
.
storage
.
get
(
"userLoginInfo"
).
then
((
value
)
=>
{
this
.
userInfo
=
value
;
if
(
this
.
userInfo
.
password
==
'000000'
)
{
//进入修改密码页面
this
.
navCtrl
.
push
(
"ModifyPasswordPage"
)
}
});
//
this.userInfo = this.storage.get("userLoginInfo").then((value) => {
//
this.userInfo = value;
//
if (this.userInfo.password == '000000') {
//
//进入修改密码页面
//
this.navCtrl.push("ModifyPasswordPage")
//
}
//
});
}
...
...
src/pages/tabs/workbench/workbench.scss
View file @
375830a0
...
...
@@ -15,7 +15,7 @@ page-workbench {
.count
{
display
:
inline-block
;
font-size
:
1
5
px
;
font-size
:
1
3
px
;
width
:
16px
;
height
:
16px
;
border-radius
:
16px
;
...
...
src/service/appHttpService.ts
View file @
375830a0
...
...
@@ -13,16 +13,16 @@ import {Observable} from "rxjs";
//接口基地址 //测试环境
// static domain = "http://220.248.107.115:2239";
//正式环境
static
domain
=
"http://180.153.158.250:3306"
;
//
static domain = "http://180.168.156.212:2931";
//
static domain = "http://180.153.158.250:3306";
static
domain
=
"http://180.168.156.212:2931"
;
//static domain = "http://localhost:8080"
//乔坤
//static domain = "http://10.10.202.54:8080";
//static domain = "http://10.10.202.54:8080";
220.248.107.115:2239
//测试
// static picture = "http://220.248.107.115:2239/wisdomgroup/manager/getIcon/";
//正式
//正式
// static picture = "http://180.153.158.250:3306/wisdomgroup/manager/getIcon/";
static
picture
=
"http://180.168.156.212:2931/wisdomgroup/manager/getIcon/"
;
...
...
@@ -68,15 +68,15 @@ export class AppService {
}
//get请求
ObserverHttpGet
(
url
,
params
):
Observable
<
any
>
{
return
this
.
http
.
get
(
AppGlobal
.
domain
+
url
+
this
.
encode
(
params
,
"get"
))
// return this.http.get(AppGlobal.domain+url+this.encode(params,"get")) //app
// return this.http.get(url+this.encode(params,"get"))
return
this
.
http
.
get
(
url
+
this
.
encode
(
params
,
"get"
))
//本地
}
//post请求
ObserverHttpPost
(
url
,
params
)
{
return
this
.
http
.
post
(
AppGlobal
.
domain
+
url
,
null
,{
// return this.http.post(url,null,{
// return this.http.post(AppGlobal.domain+url,null,{ //app
return
this
.
http
.
post
(
url
,
null
,{
//本地
params
:
this
.
encode
(
params
,
'post'
),
headers
:
new
Headers
({
// "Accept": "application/json",
...
...
src/theme/icon.scss
View file @
375830a0
...
...
@@ -30,4 +30,28 @@
.tab-button-text
{
margin-top
:
0
!
important
;
}
.color-333
{
color
:
#333
;
}
.color-666
{
color
:
#666
;
}
.color-999
{
color
:
#999
;
}
@for
$i
from
1
through
51
{
.margin-right-
#{
$i
}
{
margin-right
:
#{
$i
}
px
;
}
.margin-left-
#{
$i
}
{
margin-left
:
#{
$i
}
px
;
}
.margin-
#{
$i
}
{
margin
:
#{
$i
}
px
;
}
.padding-
#{
$i
}
{
padding
:
#{
$i
}
px
;
}
}
\ No newline at end of file
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