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
43ec5938
Commit
43ec5938
authored
Apr 22, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tabs的icon
parent
54548e99
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
66 additions
and
47 deletions
+66
-47
package.json
package.json
+0
-0
app.component.ts
src/app/app.component.ts
+2
-2
activityApply.html
...ages/home-pages/activity/activityApply/activityApply.html
+3
-3
activityDetail.ts
...ages/home-pages/activity/activityDetail/activityDetail.ts
+5
-1
batch-detail.html
.../pages/home-pages/activity/batch-detail/batch-detail.html
+6
-6
batch-detail.ts
...pp/pages/home-pages/activity/batch-detail/batch-detail.ts
+7
-1
order-detail.html
.../pages/home-pages/activity/order-detail/order-detail.html
+1
-1
order-detail.ts
...pp/pages/home-pages/activity/order-detail/order-detail.ts
+13
-2
home.page.ts
src/app/tabs/home/home.page.ts
+0
-1
login.page.html
src/app/tabs/login/login.page.html
+1
-1
login.page.scss
src/app/tabs/login/login.page.scss
+4
-4
serve.page.ts
src/app/tabs/serve/serve.page.ts
+0
-3
tabs.core.ts
src/app/tabs/tabs.core.ts
+0
-1
tabs.page.html
src/app/tabs/tabs.page.html
+5
-19
tabs.page.ts
src/app/tabs/tabs.page.ts
+18
-1
environment.prod.ts
src/environments/environment.prod.ts
+1
-1
No files found.
package.json
View file @
43ec5938
src/app/app.component.ts
View file @
43ec5938
...
@@ -28,22 +28,22 @@ export class AppComponent {
...
@@ -28,22 +28,22 @@ export class AppComponent {
private
router
:
Router
,
public
tabSer
:
TabsService
,
private
router
:
Router
,
public
tabSer
:
TabsService
,
)
{
)
{
this
.
initializeApp
();
this
.
initializeApp
();
// console.log(App)
}
}
initializeApp
()
{
initializeApp
()
{
this
.
platform
.
ready
().
then
(()
=>
{
this
.
platform
.
ready
().
then
(()
=>
{
this
.
splashScreen
.
hide
();
this
.
splashScreen
.
hide
();
this
.
statusBar
.
show
();
this
.
statusBar
.
show
();
this
.
statusBar
.
overlaysWebView
(
false
);
this
.
statusBar
.
overlaysWebView
(
false
);
this
.
statusBar
.
backgroundColorByHexString
(
'#e12724'
);
this
.
statusBar
.
backgroundColorByHexString
(
'#e12724'
);
this
.
statusBar
.
styleLightContent
();
this
.
statusBar
.
styleLightContent
();
this
.
appVersion
.
getVersionNumber
().
then
((
version
:
string
)
=>
{
this
.
appVersion
.
getVersionNumber
().
then
((
version
:
string
)
=>
{
alert
(
version
);
alert
(
version
);
})
})
this
.
loadLogin
();
this
.
loadLogin
();
});
});
}
}
...
...
src/app/pages/home-pages/activity/activityApply/activityApply.html
View file @
43ec5938
...
@@ -10,15 +10,15 @@
...
@@ -10,15 +10,15 @@
<ion-content
class=
"content"
>
<ion-content
class=
"content"
>
<ion-item
class=
"content-title"
>
<ion-item
class=
"content-title"
>
<span>
活动名称
</span>
<span>
活动名称
</span>
<span
float-right
>
{{activity.activityName}}
</span>
<span
float-right
>
{{activity
?
.activityName}}
</span>
</ion-item>
</ion-item>
<ion-item>
<ion-item>
<span>
选择批次
</span>
<span>
选择批次
</span>
<span
float-right
>
{{item.batchName}}
</span>
<span
float-right
>
{{item
?
.batchName}}
</span>
</ion-item>
</ion-item>
<ion-item
class=
"margin-top-10"
>
<ion-item
class=
"margin-top-10"
>
<ion-label>
报名用户
</ion-label>
<ion-label>
报名用户
</ion-label>
<span
class=
"lettr-space-1"
item-right
>
{{role.loginName}}
</span>
<span
class=
"lettr-space-1"
item-right
>
{{role
?
.loginName}}
</span>
</ion-item>
</ion-item>
<ion-item
class=
"margin-top-10"
>
<ion-item
class=
"margin-top-10"
>
<span>
携带人数
</span>
<span>
携带人数
</span>
...
...
src/app/pages/home-pages/activity/activityDetail/activityDetail.ts
View file @
43ec5938
...
@@ -13,7 +13,11 @@ export class ActivityDetailPage implements OnInit{
...
@@ -13,7 +13,11 @@ export class ActivityDetailPage implements OnInit{
activityId
;
//活动ID
activityId
;
//活动ID
activity
=
{
activity
=
{
batchList
:
[],
batchList
:
[],
activityIntro
:
''
activityIntro
:
''
,
activityIMG
:
''
,
activityName
:
null
,
fileUploadEntities
:
null
,
activityNo
:
null
,
};
};
picture
:
string
=
AppGlobal
.
picture
;
picture
:
string
=
AppGlobal
.
picture
;
batchList
=
[];
batchList
=
[];
...
...
src/app/pages/home-pages/activity/batch-detail/batch-detail.html
View file @
43ec5938
...
@@ -23,18 +23,18 @@
...
@@ -23,18 +23,18 @@
</div>
</div>
<div
class=
"batch-info"
>
<div
class=
"batch-info"
>
<div
class=
"content-item"
>
<div
class=
"content-item"
>
<p>
<span>
报名截止:
</span><span>
{{
this.batch
.batchEndDate}}
</span>
</p>
<p>
<span>
报名截止:
</span><span>
{{
batch?
.batchEndDate}}
</span>
</p>
<p>
<span>
出行日期:
</span><span>
{{batch.batchGoDate}}
</span>
</p>
<p>
<span>
出行日期:
</span><span>
{{batch
?
.batchGoDate}}
</span>
</p>
<p>
<span>
可携带人数:
</span><span>
{{batch.batchPerNumber}}
</span>
</p>
<p>
<span>
可携带人数:
</span><span>
{{batch
?
.batchPerNumber}}
</span>
</p>
<p>
<span>
集合时间:
</span><span>
{{batch.batchSetTime}}
</span>
</p>
<p>
<span>
集合时间:
</span><span>
{{batch
?
.batchSetTime}}
</span>
</p>
<p>
<span>
集合地点:
</span><span>
{{batch.batchSetAddress}}
</span>
</p>
<p>
<span>
集合地点:
</span><span>
{{batch
?
.batchSetAddress}}
</span>
</p>
<p>
<span>
活动须知:
</span>
<br>
<p>
<span>
活动须知:
</span>
<br>
<span
[
innerHtml
]='
batch
.
batchNotice
'
></span>
<span
[
innerHtml
]='
batch
.
batchNotice
'
></span>
</p>
</p>
</div>
</div>
</div>
</div>
<div
class=
"content-button"
>
<div
class=
"content-button"
>
<div
class=
"button-left"
>
报名人数
<span
class=
"color-24bafc margin-left-15"
>
{{batch.hasSignUpCount}}/{{batch.batchLimitNumber}}
</span></div>
<div
class=
"button-left"
>
报名人数
<span
class=
"color-24bafc margin-left-15"
>
{{batch
?
.hasSignUpCount}}/{{batch.batchLimitNumber}}
</span></div>
<div
class=
"button-right"
>
<div
class=
"button-right"
>
<!--是否报名了>时间是否截止->人数是否满了->-->
<!--是否报名了>时间是否截止->人数是否满了->-->
<ng-container
*
ngIf=
"batch.order"
>
<ng-container
*
ngIf=
"batch.order"
>
...
...
src/app/pages/home-pages/activity/batch-detail/batch-detail.ts
View file @
43ec5938
...
@@ -18,7 +18,13 @@ export class BatchDetailPage {
...
@@ -18,7 +18,13 @@ export class BatchDetailPage {
signUp
:
true
,
signUp
:
true
,
order
:
null
,
order
:
null
,
batchName
:
''
,
batchName
:
''
,
batchNotice
:
null
batchNotice
:
null
,
batchGoDate
:
null
,
batchPerNumber
:
null
,
batchSetTime
:
null
,
batchSetAddress
:
null
,
hasSignUpCount
:
null
,
batchLimitNumber
:
null
,
};
};
activity
;
activity
;
order
=
{
order
=
{
...
...
src/app/pages/home-pages/activity/order-detail/order-detail.html
View file @
43ec5938
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<div
class=
"sign-info"
>
<div
class=
"sign-info"
>
<p
class=
"info-title"
>
报名信息
</p>
<p
class=
"info-title"
>
报名信息
</p>
<div
class=
"content-item"
>
<div
class=
"content-item"
>
<p><span>
携带人数:
</span><span>
{{order
?
.personnumber}}
</span></p>
<p><span>
携带人数:
</span><span>
{{order.personnumber}}
</span></p>
<p><span>
报名备注:
</span><span>
{{order?.orderbz}}
</span></p>
<p><span>
报名备注:
</span><span>
{{order?.orderbz}}
</span></p>
</div>
</div>
</div>
</div>
...
...
src/app/pages/home-pages/activity/order-detail/order-detail.ts
View file @
43ec5938
...
@@ -13,14 +13,25 @@ export class OrderDetailPage {
...
@@ -13,14 +13,25 @@ export class OrderDetailPage {
order
=
{
order
=
{
orderstate
:
''
,
orderstate
:
''
,
orderpjlevel
:
''
,
orderpjlevel
:
''
,
orderid
:
''
orderid
:
''
,
personnumber
:
null
,
orderbz
:
null
,
};
//订单信息
};
//订单信息
activity
=
{
activity
=
{
activityName
:
''
,
activityName
:
''
,
activityIntro
:
''
activityIntro
:
''
};
//活动
};
//活动
batch
=
{
batch
=
{
batchNotice
:
<
any
>
''
batchNotice
:
<
any
>
''
,
batchEndDate
:
null
,
batchGoDate
:
null
,
batchSetTime
:
null
,
batchSetAddress
:
null
,
liamand
:
null
,
liamantel
:
null
,
batchName
:
null
,
hasSignUpCount
:
null
,
batchLimitNumber
:
null
,
};
//批次
};
//批次
isCover
=
false
;
isCover
=
false
;
...
...
src/app/tabs/home/home.page.ts
View file @
43ec5938
...
@@ -11,7 +11,6 @@ export class HomePage implements OnInit {
...
@@ -11,7 +11,6 @@ export class HomePage implements OnInit {
)
{
}
)
{
}
ngOnInit
()
{
ngOnInit
()
{
console
.
log
(
'ngOnInit'
)
}
}
}
}
src/app/tabs/login/login.page.html
View file @
43ec5938
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
<label
style=
"padding-left:5px;font-family:'微软雅黑';"
class=
"jizhu-password-label"
>
记住密码
</label>
<label
style=
"padding-left:5px;font-family:'微软雅黑';"
class=
"jizhu-password-label"
>
记住密码
</label>
</div>
</div>
<button
type=
"button"
(
click
)="
forgetPassword
()"
class=
"login-btn"
style=
"width: 48%;
float: left;background-color: #b3bdcf;border-color: #b3bdcf
;"
>
忘记密码
</button>
<button
type=
"button"
(
click
)="
forgetPassword
()"
class=
"login-btn"
style=
"width: 48%;
color:#e12724;float: left;background-color: #ffffff;border-color: #e12724
;"
>
忘记密码
</button>
<button
type=
"button"
(
click
)="
login
()"
class=
"login-btn"
style=
"width: 48%;float: right;"
>
登
录
</button>
<button
type=
"button"
(
click
)="
login
()"
class=
"login-btn"
style=
"width: 48%;float: right;"
>
登
录
</button>
...
...
src/app/tabs/login/login.page.scss
View file @
43ec5938
...
@@ -7,9 +7,8 @@
...
@@ -7,9 +7,8 @@
}
}
.login-box
{
.login-box
{
background-color
:
#f0f1f2
;
background-color
:
#f0f1f2
;
height
:
100%
height
:
100%
;
}
}
.login
{
.login
{
...
@@ -18,6 +17,7 @@
...
@@ -18,6 +17,7 @@
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
justify-content
:
center
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
padding-top
:
2rem
;
}
}
.login-logo
{
.login-logo
{
...
@@ -87,8 +87,8 @@
...
@@ -87,8 +87,8 @@
margin-bottom
:
10px
;
margin-bottom
:
10px
;
padding
:
11px
0
;
padding
:
11px
0
;
color
:
#fff
;
color
:
#fff
;
border
:
1px
solid
#
4a89f9
;
border
:
1px
solid
#
e12724
;
background-color
:
#
4a89f9
;
background-color
:
#
e12724
;
font-size
:
18px
;
font-size
:
18px
;
font-weight
:
600
;
font-weight
:
600
;
position
:
relative
;
position
:
relative
;
...
...
src/app/tabs/serve/serve.page.ts
View file @
43ec5938
...
@@ -66,7 +66,6 @@ export class ServePage implements OnInit {
...
@@ -66,7 +66,6 @@ export class ServePage implements OnInit {
}
}
ngOnInit
():
void
{
ngOnInit
():
void
{
console
.
log
(
'ngOnInit'
)
this
.
tabsSer
.
findAllActivityForAppWithXQ
().
subscribe
(
this
.
tabsSer
.
findAllActivityForAppWithXQ
().
subscribe
(
(
res
)
=>
{
(
res
)
=>
{
this
.
noticeList
=
res
.
slice
(
0
,
2
);
this
.
noticeList
=
res
.
slice
(
0
,
2
);
...
@@ -90,7 +89,6 @@ export class ServePage implements OnInit {
...
@@ -90,7 +89,6 @@ export class ServePage implements OnInit {
this
.
tabsSer
.
getBanner
().
subscribe
(
this
.
tabsSer
.
getBanner
().
subscribe
(
(
res
)
=>
{
(
res
)
=>
{
this
.
slidersItems
=
res
;
this
.
slidersItems
=
res
;
console
.
log
(
this
.
slidersItems
)
}
}
)
)
...
@@ -230,7 +228,6 @@ export class ServePage implements OnInit {
...
@@ -230,7 +228,6 @@ export class ServePage implements OnInit {
.
subscribe
((
res
)
=>
{
.
subscribe
((
res
)
=>
{
let
data
=
Number
(
res
.
json
());
let
data
=
Number
(
res
.
json
());
this
.
noticeTips
=
data
;
this
.
noticeTips
=
data
;
console
.
log
(
this
.
noticeTips
)
if
(
data
>
0
)
{
if
(
data
>
0
)
{
this
.
badge
.
set
(
data
);
this
.
badge
.
set
(
data
);
}
else
{
}
else
{
...
...
src/app/tabs/tabs.core.ts
View file @
43ec5938
...
@@ -31,7 +31,6 @@ export class TabsCore {
...
@@ -31,7 +31,6 @@ export class TabsCore {
navEvent
(){
navEvent
(){
this
.
router
.
events
.
pipe
(
filter
(
e
=>
e
instanceof
NavigationEnd
))
this
.
router
.
events
.
pipe
(
filter
(
e
=>
e
instanceof
NavigationEnd
))
.
subscribe
((
e
:
any
)
=>
{
.
subscribe
((
e
:
any
)
=>
{
console
.
log
(
e
);
this
.
showHideTabs
(
e
)
this
.
showHideTabs
(
e
)
})
})
}
}
...
...
src/app/tabs/tabs.page.html
View file @
43ec5938
<ion-tabs>
<ion-tabs>
<ion-tab-bar
#
myTabBar
id=
"myTabBar"
slot=
"bottom"
>
<ion-tab-bar
#
myTabBar
id=
"myTabBar"
slot=
"bottom"
>
<ion-tab-button
tab=
"home"
>
<ng-container
*
ngFor=
"let item of tabsList;let i =index;"
>
<ion-icon
class=
"home"
></ion-icon>
<ion-tab-button
(
click
)="
tabChange
(
i
)"
[
tab
]="
item
.
root
"
>
<ion-label>
首页
</ion-label>
<ion-icon
[
ngClass
]="
tabIndex =
=
i
?
item
.
tabIconOn:item
.
tabIconOff
"
></ion-icon>
</ion-tab-button>
<ion-label
[
style
.
color
]="
tabIndex =
=
i
?'#
e12724
'
:
''"
>
{{item.title}}
</ion-label>
<ion-tab-button
tab=
"discover"
>
<ion-icon
name=
"discover"
></ion-icon>
<ion-label>
发现
</ion-label>
</ion-tab-button>
<ion-tab-button
tab=
"serve"
>
<ion-icon
name=
"serve"
></ion-icon>
<ion-label>
服务
</ion-label>
</ion-tab-button>
<ion-tab-button
tab=
"mine"
>
<ion-icon
name=
"mine"
></ion-icon>
<ion-label>
我的
</ion-label>
</ion-tab-button>
</ion-tab-button>
</ng-container>
</ion-tab-bar>
</ion-tab-bar>
</ion-tabs>
</ion-tabs>
src/app/tabs/tabs.page.ts
View file @
43ec5938
...
@@ -5,4 +5,21 @@ import { Component } from '@angular/core';
...
@@ -5,4 +5,21 @@ import { Component } from '@angular/core';
templateUrl
:
'tabs.page.html'
,
templateUrl
:
'tabs.page.html'
,
styleUrls
:
[
'tabs.page.scss'
]
styleUrls
:
[
'tabs.page.scss'
]
})
})
export
class
TabsPage
{}
export
class
TabsPage
{
tabsList
=
[
{
root
:
'home'
,
title
:
'首页'
,
tabIconOn
:
'custom-home-on'
,
tabIconOff
:
'custom-home-off'
},
{
root
:
'discover'
,
title
:
'发现'
,
tabIconOn
:
'custom-discover-on'
,
tabIconOff
:
'custom-discover-off'
},
{
root
:
'serve'
,
title
:
'服务'
,
tabIconOn
:
'custom-serve-on'
,
tabIconOff
:
'custom-serve-off'
},
{
root
:
'mine'
,
title
:
'我的'
,
tabIconOn
:
'custom-mine-on'
,
tabIconOff
:
'custom-mine-off'
},
];
tabIndex
=
0
;
constructor
(){}
tabChange
(
index
){
this
.
tabIndex
=
index
;
console
.
log
(
index
);
}
}
src/environments/environment.prod.ts
View file @
43ec5938
export
const
environment
=
{
export
const
environment
=
{
production
:
true
,
production
:
true
,
domain
:
'http://1
01.89.112.92:80/wisdomgroup
'
domain
:
'http://1
80.168.156.212:2931
'
};
};
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