Commit 43ec5938 authored by wangqinghua's avatar wangqinghua

tabs的icon

parent 54548e99
...@@ -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();
}); });
} }
......
...@@ -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>
......
...@@ -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 = [];
......
...@@ -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">
......
...@@ -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 = {
......
...@@ -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>
......
...@@ -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;
......
...@@ -11,7 +11,6 @@ export class HomePage implements OnInit { ...@@ -11,7 +11,6 @@ export class HomePage implements OnInit {
) { } ) { }
ngOnInit() { ngOnInit() {
console.log('ngOnInit')
} }
} }
...@@ -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;">&nbsp;&nbsp;</button> <button type="button" (click)="login()" class="login-btn" style="width: 48%;float: right;">&nbsp;&nbsp;</button>
......
...@@ -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;
......
...@@ -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 {
......
...@@ -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)
}) })
} }
......
<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>
...@@ -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);
}
}
export const environment = { export const environment = {
production: true, production: true,
domain: 'http://101.89.112.92:80/wisdomgroup' domain: 'http://180.168.156.212:2931'
}; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment