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
d9616b73
Commit
d9616b73
authored
Oct 11, 2018
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日历
parent
190c2050
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
67 additions
and
11 deletions
+67
-11
README.md
plugins/cordova-plugin-ionic-keyboard/README.md
+3
-3
plugin.xml
plugins/cordova-plugin-ionic-keyboard/plugin.xml
+1
-1
joinDetail.html
src/pages/activity-track/joinDetail/joinDetail.html
+1
-1
joinDetail.ts
src/pages/activity-track/joinDetail/joinDetail.ts
+12
-3
personInfo.scss
src/pages/person/personInfo/personInfo.scss
+5
-0
contact.html
src/pages/tabs/contact/contact.html
+0
-1
appHttpService.ts
src/service/appHttpService.ts
+45
-2
No files found.
plugins/cordova-plugin-ionic-keyboard/README.md
View file @
d9616b73
...
@@ -32,7 +32,7 @@ cordova plugin add cordova-plugin-ionic-keyboard --save
...
@@ -32,7 +32,7 @@ cordova plugin add cordova-plugin-ionic-keyboard --save
#### Possible values
#### Possible values
-
`native`
: The whole native webview will be resized when the keyboard shows/hides, it will affect the
`vh`
relative unit.
-
`native`
: The whole native webview will be resized when the keyboard shows/hides, it will affect the
`vh`
relative unit.
-
`body`
: Only the html
`<body>`
element will be resized. Relative units are not affected, bec
ua
se the viewport does not change.
-
`body`
: Only the html
`<body>`
element will be resized. Relative units are not affected, bec
au
se the viewport does not change.
-
`ionic`
: Only the html
`ion-app`
element will be resized. Only for ionic apps.
-
`ionic`
: Only the html
`ion-app`
element will be resized. Only for ionic apps.
```
xml
```
xml
...
@@ -116,7 +116,7 @@ window.addEventListener('keyboardDidHide', () => {
...
@@ -116,7 +116,7 @@ window.addEventListener('keyboardDidHide', () => {
Attach handler to this event to be able to receive notification when keyboard is opened.
Attach handler to this event to be able to receive notification when keyboard is opened.
```
js
```
js
window
.
addEventListener
(
'keyboardDidShow'
,
(
ev
)
=>
{
window
.
addEventListener
(
'keyboardDidShow'
,
(
ev
ent
)
=>
{
// Describe your logic which will be run each time when keyboard is about to be shown.
// Describe your logic which will be run each time when keyboard is about to be shown.
console
.
log
(
event
.
keyboardHeight
);
console
.
log
(
event
.
keyboardHeight
);
});
});
...
@@ -129,7 +129,7 @@ window.addEventListener('keyboardDidShow', (ev) => {
...
@@ -129,7 +129,7 @@ window.addEventListener('keyboardDidShow', (ev) => {
Attach handler to this event to be able to receive notification when keyboard is about to be shown on the screen.
Attach handler to this event to be able to receive notification when keyboard is about to be shown on the screen.
```
js
```
js
window
.
addEventListener
(
'keyboardWillShow'
,
(
ev
)
=>
{
window
.
addEventListener
(
'keyboardWillShow'
,
(
ev
ent
)
=>
{
// Describe your logic which will be run each time when keyboard is about to be shown.
// Describe your logic which will be run each time when keyboard is about to be shown.
console
.
log
(
event
.
keyboardHeight
);
console
.
log
(
event
.
keyboardHeight
);
});
});
...
...
plugins/cordova-plugin-ionic-keyboard/plugin.xml
View file @
d9616b73
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<plugin
xmlns=
"http://apache.org/cordova/ns/plugins/1.0"
xmlns:rim=
"http://www.blackberry.com/ns/widgets"
xmlns:android=
"http://schemas.android.com/apk/res/android"
id=
"cordova-plugin-ionic-keyboard"
version=
"2.
0.5
"
>
<plugin
xmlns=
"http://apache.org/cordova/ns/plugins/1.0"
xmlns:rim=
"http://www.blackberry.com/ns/widgets"
xmlns:android=
"http://schemas.android.com/apk/res/android"
id=
"cordova-plugin-ionic-keyboard"
version=
"2.
1.3
"
>
<name>
cordova-plugin-ionic-keyboard
</name>
<name>
cordova-plugin-ionic-keyboard
</name>
<description>
Ionic Keyboard Plugin
</description>
<description>
Ionic Keyboard Plugin
</description>
<license>
Apache 2.0
</license>
<license>
Apache 2.0
</license>
...
...
src/pages/activity-track/joinDetail/joinDetail.html
View file @
d9616b73
...
@@ -98,7 +98,7 @@
...
@@ -98,7 +98,7 @@
<img
*
ngIf=
"item.user?.gender == '1'||item.user?.gender == null"
src=
"./assets/imgs/head.png"
class=
"person-photo"
>
<img
*
ngIf=
"item.user?.gender == '1'||item.user?.gender == null"
src=
"./assets/imgs/head.png"
class=
"person-photo"
>
<img
*
ngIf=
"item.user?.gender == '0'"
src=
"./assets/imgs/head.png"
class=
"person-photo"
>
<img
*
ngIf=
"item.user?.gender == '0'"
src=
"./assets/imgs/head.png"
class=
"person-photo"
>
<div
class=
"item-box"
>
<div
class=
"item-box"
>
<p
class=
"person-name"
>
{{item.
userN
ame}}
<p
class=
"person-name"
>
{{item.
n
ame}}
<ion-icon
class=
"person-sex-male"
*
ngIf=
"item.user?.gender == '1'||item.user?.gender == null"
name=
"male"
></ion-icon>
<ion-icon
class=
"person-sex-male"
*
ngIf=
"item.user?.gender == '1'||item.user?.gender == null"
name=
"male"
></ion-icon>
<ion-icon
class=
"person-sex-female"
*
ngIf=
"item.user?.gender == '0'"
name=
"female"
></ion-icon>
<ion-icon
class=
"person-sex-female"
*
ngIf=
"item.user?.gender == '0'"
name=
"female"
></ion-icon>
</p>
</p>
...
...
src/pages/activity-track/joinDetail/joinDetail.ts
View file @
d9616b73
...
@@ -6,6 +6,7 @@ import {Http, Response,} from '@angular/http';
...
@@ -6,6 +6,7 @@ import {Http, Response,} from '@angular/http';
import
{
AppService
}
from
'../../../service/appHttpService'
;
import
{
AppService
}
from
'../../../service/appHttpService'
;
import
{
ActivityStatisticService
}
from
'../../../service/activityStatisticService'
;
import
{
ActivityStatisticService
}
from
'../../../service/activityStatisticService'
;
import
{
ReplaceApplyPage
}
from
"../replace-apply/replace-apply"
;
import
{
ReplaceApplyPage
}
from
"../replace-apply/replace-apply"
;
import
{
message
}
from
"../../../app/main"
;
@
IonicPage
()
@
IonicPage
()
@
Component
({
@
Component
({
...
@@ -104,7 +105,7 @@ export class JoinDetailPage {
...
@@ -104,7 +105,7 @@ export class JoinDetailPage {
notJoin
()
{
notJoin
()
{
this
.
isNoSignFlag
=
true
;
this
.
isNoSignFlag
=
true
;
this
.
type
=
'4'
;
this
.
type
=
'4'
;
this
.
appService
.
ObserverHttpGet
(
"/wisdomgroup/modules/activityNon"
,
null
)
this
.
appService
.
ObserverHttpGet
Add
(
"/wisdomgroup/modules/activityNon/"
,
this
.
acitivityid
)
.
subscribe
((
res
:
Response
)
=>
{
.
subscribe
((
res
:
Response
)
=>
{
this
.
items
=
res
.
json
().
data
;
this
.
items
=
res
.
json
().
data
;
this
.
noJoin
=
this
.
items
.
length
;
this
.
noJoin
=
this
.
items
.
length
;
...
@@ -121,9 +122,17 @@ export class JoinDetailPage {
...
@@ -121,9 +122,17 @@ export class JoinDetailPage {
//不参加
//不参加
sayNo
(
item
)
{
sayNo
(
item
)
{
this
.
appService
.
ObserverHttpPostAdd
(
"/wisdomgroup/modules/activityNon/"
,
item
.
id
)
let
msg
=
this
.
toast
.
create
(
message
);
const
data
=
{
'userId'
:
item
.
id
,
'userName'
:
item
.
name
};
this
.
appService
.
ObserverHttpForm
(
"/wisdomgroup/modules/activityNon/"
,
this
.
acitivityid
,
data
)
.
subscribe
((
res
:
Response
)
=>
{
.
subscribe
((
res
:
Response
)
=>
{
msg
.
setMessage
(
'已保存该用户不参加'
);
msg
.
present
();
this
.
signAll
();
this
.
notJoin
();
},
error
=>
{
},
error
=>
{
this
.
appService
.
alert
(
'网络异常!'
);
this
.
appService
.
alert
(
'网络异常!'
);
}
}
...
...
src/pages/person/personInfo/personInfo.scss
View file @
d9616b73
...
@@ -92,6 +92,11 @@ page-personInfo {
...
@@ -92,6 +92,11 @@ page-personInfo {
width
:
1
.5rem
;
width
:
1
.5rem
;
height
:
1
.5rem
;
height
:
1
.5rem
;
}
}
input
{
border
:
none
;
height
:
3rem
;
padding
:
2px
;
}
}
}
.list-md
{
.list-md
{
...
...
src/pages/tabs/contact/contact.html
View file @
d9616b73
...
@@ -10,7 +10,6 @@
...
@@ -10,7 +10,6 @@
<ion-content>
<ion-content>
<div
class=
"common "
>
<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>
<div
class=
"item padding-10-15"
(
click
)="
usualContactPersons
()"
>
<div
class=
"item padding-10-15"
(
click
)="
usualContactPersons
()"
>
<ion-icon
name=
"ios-contacts"
class=
"contact-icon"
></ion-icon>
<ion-icon
name=
"ios-contacts"
class=
"contact-icon"
></ion-icon>
...
...
src/service/appHttpService.ts
View file @
d9616b73
...
@@ -182,9 +182,30 @@ export class AppService {
...
@@ -182,9 +182,30 @@ export class AppService {
}
}
//post请求
ObserverHttpForm
(
url
,
params
,
body
)
{
return
this
.
http
.
post
(
url
+
params
,
null
,{
params
:
body
,
headers
:
new
Headers
({
// "Accept": "application/json",
// "Content-Type": "application/json"
'Content-Type'
:
'application/x-www-form-urlencoded;charset=UTF-8'
})
})
}
// post请求 params+body
ObserverHttpPostParamsBody
(
url
,
params
,
data
)
{
return
this
.
http
.
post
(
url
+
params
,
data
,
{
//app
headers
:
new
Headers
({
"Content-Type"
:
"application/json"
})
})
}
//put请求
//put请求
ObserverHttpPut
(
url
,
params
,
data
)
{
ObserverHttpPut
(
url
,
params
,
data
)
{
return
this
.
http
.
put
(
url
+
data
,
params
,
{
//本地
return
this
.
http
.
put
(
url
+
params
,
data
,
{
//本地
headers
:
new
Headers
({
headers
:
new
Headers
({
// "Accept": "application/json",
// "Accept": "application/json",
"Content-Type"
:
"application/json"
"Content-Type"
:
"application/json"
...
@@ -402,6 +423,19 @@ export class AppService {
...
@@ -402,6 +423,19 @@ export class AppService {
//
//
// }
// }
//
//
// //post请求
// ObserverHttpForm(url, params,body) {
// return this.http.post(AppGlobal.domain+url + params,null,{
// params:body,
// headers: new Headers({
// // "Accept": "application/json",
// // "Content-Type": "application/json"
// 'Content-Type':'application/x-www-form-urlencoded;charset=UTF-8'
// })
// })
//
// }
//
// ObserverHttpPostForm(url, params) {
// ObserverHttpPostForm(url, params) {
// return this.http.post(AppGlobal.domain + url, null, { //app
// return this.http.post(AppGlobal.domain + url, null, { //app
// params: params,
// params: params,
...
@@ -432,9 +466,18 @@ export class AppService {
...
@@ -432,9 +466,18 @@ export class AppService {
//
//
// }
// }
//
//
// //post请求 params+body
// ObserverHttpPostParamsBody(url, params, data) {
// return this.http.post(AppGlobal.domain + url + params, data, { //app
// headers: new Headers({
// "Content-Type": "application/json"
// })
// })
// }
//
// //put请求
// //put请求
// ObserverHttpPut(url, params, data) {
// ObserverHttpPut(url, params, data) {
// return this.http.p
os
t(AppGlobal.domain + url + data, params, { //app
// return this.http.p
u
t(AppGlobal.domain + url + data, params, { //app
// headers: new Headers({
// headers: new Headers({
// "Content-Type": "application/json"
// "Content-Type": "application/json"
// })
// })
...
...
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