webpackJsonp([26],{

/***/ 117:
/***/ (function(module, exports) {

function webpackEmptyAsyncContext(req) {
	// Here Promise.resolve().then() is used instead of new Promise() to prevent
	// uncatched exception popping up in devtools
	return Promise.resolve().then(function() {
		throw new Error("Cannot find module '" + req + "'.");
	});
}
webpackEmptyAsyncContext.keys = function() { return []; };
webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;
module.exports = webpackEmptyAsyncContext;
webpackEmptyAsyncContext.id = 117;

/***/ }),

/***/ 158:
/***/ (function(module, exports, __webpack_require__) {

var map = {
	"../pages/activityApply/activityApply.module": [
		297,
		25
	],
	"../pages/activityConfirm/activityConfirm.module": [
		298,
		24
	],
	"../pages/activityDetail/activityDetail.module": [
		299,
		23
	],
	"../pages/activityList/activityList.module": [
		300,
		22
	],
	"../pages/activityTrack/activityTrack.module": [
		301,
		21
	],
	"../pages/announcement/announcement.module": [
		302,
		20
	],
	"../pages/announcementView/announcementView.module": [
		303,
		19
	],
	"../pages/chooseAddress/chooseAddress.module": [
		304,
		18
	],
	"../pages/contactList/contactList.module": [
		305,
		17
	],
	"../pages/contract-personinfo/contract-personinfo.module": [
		306,
		16
	],
	"../pages/editPersonInfo/editPersonInfo.module": [
		307,
		15
	],
	"../pages/joinDetail/joinDetail.module": [
		308,
		14
	],
	"../pages/joinPersons/joinPersons.module": [
		309,
		13
	],
	"../pages/login/login.module": [
		159
	],
	"../pages/modifyPassword/modifyPassword.module": [
		310,
		12
	],
	"../pages/myActivityList/myActivityList.module": [
		311,
		11
	],
	"../pages/myReport/myReport.module": [
		312,
		10
	],
	"../pages/operation-list/operation-list.module": [
		313,
		9
	],
	"../pages/outGoingReport/outGoingReport.module": [
		314,
		8
	],
	"../pages/outGoingReportDetail/outGoingReportDetail.module": [
		315,
		7
	],
	"../pages/outGoingReportEdit/outGoingReportEdit.module": [
		316,
		6
	],
	"../pages/outGoingReportView/outGoingReportView.module": [
		317,
		5
	],
	"../pages/personInfo/personInfo.module": [
		318,
		4
	],
	"../pages/reportDetail/reportDetail.module": [
		319,
		3
	],
	"../pages/reportTrack/reportTrack.module": [
		320,
		2
	],
	"../pages/search/search.module": [
		321,
		1
	],
	"../pages/tabs/home/home.module": [
		170
	],
	"../pages/version/version.module": [
		322,
		0
	]
};
function webpackAsyncContext(req) {
	var ids = map[req];
	if(!ids)
		return Promise.reject(new Error("Cannot find module '" + req + "'."));
	return Promise.all(ids.slice(1).map(__webpack_require__.e)).then(function() {
		return __webpack_require__(ids[0]);
	});
};
webpackAsyncContext.keys = function webpackAsyncContextKeys() {
	return Object.keys(map);
};
webpackAsyncContext.id = 158;
module.exports = webpackAsyncContext;

/***/ }),

/***/ 159:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LoginModule", function() { return LoginModule; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__login__ = __webpack_require__(85);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};



var LoginModule = (function () {
    function LoginModule() {
    }
    LoginModule = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["I" /* NgModule */])({
            declarations: [
                __WEBPACK_IMPORTED_MODULE_2__login__["a" /* LoginPage */],
            ],
            imports: [
                __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["h" /* IonicPageModule */].forChild(__WEBPACK_IMPORTED_MODULE_2__login__["a" /* LoginPage */]),
            ],
        })
    ], LoginModule);
    return LoginModule;
}());

//# sourceMappingURL=login.module.js.map

/***/ }),

/***/ 160:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TabsPage; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__workbench_workbench__ = __webpack_require__(161);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__contact_contact__ = __webpack_require__(162);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__home_home__ = __webpack_require__(163);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__mine_mine__ = __webpack_require__(166);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__ionic_storage__ = __webpack_require__(28);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__service_appHttpService__ = __webpack_require__(19);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};








var TabsPage = (function () {
    function TabsPage(navCtrl, navParams, alertCtrl, storage, event, render, elementRef, appService) {
        var _this = this;
        this.navCtrl = navCtrl;
        this.navParams = navParams;
        this.alertCtrl = alertCtrl;
        this.storage = storage;
        this.event = event;
        this.render = render;
        this.elementRef = elementRef;
        this.appService = appService;
        this.tab1Root = __WEBPACK_IMPORTED_MODULE_4__home_home__["a" /* HomePage */];
        this.tab2Root = __WEBPACK_IMPORTED_MODULE_3__contact_contact__["a" /* ContactPage */];
        this.tab3Root = __WEBPACK_IMPORTED_MODULE_2__workbench_workbench__["a" /* WorkbenchPage */];
        this.tab4Root = __WEBPACK_IMPORTED_MODULE_5__mine_mine__["a" /* MinePage */];
        this.tabRoots = [{
                root: __WEBPACK_IMPORTED_MODULE_4__home_home__["a" /* HomePage */],
                tabTitle: '首页',
                tabIcon: 'myhome'
            }, {
                root: __WEBPACK_IMPORTED_MODULE_3__contact_contact__["a" /* ContactPage */],
                tabTitle: '通讯录',
                tabIcon: 'mycontact'
            }, {
                root: __WEBPACK_IMPORTED_MODULE_2__workbench_workbench__["a" /* WorkbenchPage */],
                tabTitle: '工作台',
                tabIcon: 'myworkbench'
            }, {
                root: __WEBPACK_IMPORTED_MODULE_5__mine_mine__["a" /* MinePage */],
                tabTitle: '我的',
                tabIcon: 'mymine'
            }];
        //判断是否密码为初始六个0
        this.userInfo = this.storage.get("userLoginInfo").then(function (value) {
            _this.userInfo = value;
            if (_this.userInfo.password == '000000') {
                //进入修改密码页面
                _this.navCtrl.push("ModifyPasswordPage");
            }
        });
    }
    TabsPage = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({template:/*ion-inline-start:"/Users/ben/gitLab-project/wisdom-ces/src/pages/tabs/tabs.html"*/'<ion-tabs>\n\n  <ion-tab *ngFor = "let tabRoot of tabRoots" [root] = "tabRoot.root" tabTitle="{{tabRoot.tabTitle}}" tabIcon="{{tabRoot.tabIcon}}"></ion-tab>\n\n</ion-tabs>\n\n\n\n\n\n<!-- <ion-tabs>\n\n  <ion-tab [root] = "tab1Root" tabTitle="首页" tabIcon="myhome"></ion-tab>\n\n  <ion-tab [root] = "tab2Root" tabTitle="通讯录" tabIcon="mycontact"></ion-tab>\n\n  \n\n  <ion-tab *ngIf="role==1"  [root] = "tab3Root" tabTitle="工作台" tabIcon="myworkbench"></ion-tab>\n\n  <ion-tab *ngIf="role==1"  [root] = "tab4Root" tabTitle="我的" tabIcon="mymine"></ion-tab>\n\n  <ion-tab *ngIf="role==0"  [root] = "tab4Root" tabTitle="我的" tabIcon="mymine"></ion-tab>\n\n</ion-tabs> -->\n\n<!-- 为什么这么写，为了顺序 -->\n\n\n\n\n\n'/*ion-inline-end:"/Users/ben/gitLab-project/wisdom-ces/src/pages/tabs/tabs.html"*/
        }),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["j" /* NavController */],
            __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["k" /* NavParams */],
            __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["a" /* AlertController */],
            __WEBPACK_IMPORTED_MODULE_6__ionic_storage__["b" /* Storage */],
            __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["d" /* Events */],
            __WEBPACK_IMPORTED_MODULE_0__angular_core__["V" /* Renderer */],
            __WEBPACK_IMPORTED_MODULE_0__angular_core__["t" /* ElementRef */],
            __WEBPACK_IMPORTED_MODULE_7__service_appHttpService__["b" /* AppService */]])
    ], TabsPage);
    return TabsPage;
}());

//# sourceMappingURL=tabs.js.map

/***/ }),

/***/ 161:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return WorkbenchPage; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__service_appHttpService__ = __webpack_require__(19);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__service_activityStatisticService__ = __webpack_require__(55);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__ionic_storage__ = __webpack_require__(28);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};





var WorkbenchPage = (function () {
    function WorkbenchPage(navCtrl, activityStatisticService, appService, storage) {
        this.navCtrl = navCtrl;
        this.activityStatisticService = activityStatisticService;
        this.appService = appService;
        this.storage = storage;
        this.activitycount = 0;
        this.reportCount = 0;
    }
    WorkbenchPage.prototype.ionViewDidLoad = function () {
        var _this = this;
        //判断角色
        this.queryUserRole();
        //统计活动数目
        this.activityStatisticService.statisticActivityNum(function (data) {
            _this.activitycount = data;
        });
        this.getReportCount();
    };
    //统计报备数目
    WorkbenchPage.prototype.getReportCount = function () {
        var _this = this;
        this.appService.ObserverHttpPost("/wisdomgroup/modules/premanager/getReportCount", null)
            .subscribe(function (res) {
            var data = res.json();
            _this.reportCount = data;
        }, function (error) {
            _this.appService.alert('网络异常！');
        });
    };
    WorkbenchPage.prototype.goActivityTrack = function () {
        this.navCtrl.push("ActivityTrackPage");
    };
    WorkbenchPage.prototype.goReportTrack = function () {
        this.navCtrl.push("ReportTrackPage");
    };
    //获取角色
    WorkbenchPage.prototype.queryUserRole = function () {
        var _this = this;
        this.storage.get("userLoginInfo").then(function (data) {
            _this.appService.ObserverHttpGet("/wisdomgroup/sysmanagement/user/queryRoleByUserid", { userid: data.userid })
                .subscribe(function (res) {
                _this.role = res.json();
                //this.storage.set("role",this.role);
            }, function (error) {
                _this.appService.alert('网络异常！');
            });
        });
    };
    WorkbenchPage = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
            selector: 'page-workbench',template:/*ion-inline-start:"/Users/ben/gitLab-project/wisdom-ces/src/pages/tabs/workbench/workbench.html"*/'<ion-header>\n\n    <ion-navbar>\n\n        <ion-title text-center>\n\n            工作台\n\n        </ion-title>\n\n    </ion-navbar>\n\n</ion-header>\n\n\n\n<ion-content>\n\n    <ion-list *ngIf="role!=0">\n\n        <ion-item (click)="goActivityTrack()">\n\n            <div class="group">\n\n                <div class="group-left">\n\n                    <img src="./assets/imgs/hdgz.png" class="title-icon">\n\n                    <span>活动跟踪</span>\n\n                    <span class="count">{{activitycount}}</span>\n\n                </div>\n\n                <ion-icon name="ios-arrow-forward" class="icon-right"></ion-icon>\n\n            </div>\n\n        </ion-item>\n\n        <ion-item (click)="goReportTrack()">\n\n            <div class="group">\n\n                <div class="group-left">\n\n                    <img src="./assets/imgs/zbgz.png" class="title-icon">\n\n                    <span>报备跟踪</span>\n\n                    <span class="count">{{reportCount}}</span>\n\n                </div>\n\n                <ion-icon name="ios-arrow-forward" class="icon-right"></ion-icon>\n\n            </div>\n\n        </ion-item>\n\n        <!-- <ion-item>\n\n            <div class="group">\n\n                <div class="group-left">\n\n                    <img src="./assets/imgs/fbtz.png" class="title-icon">\n\n                    <span>发布通知公告</span>\n\n                </div>\n\n                <ion-icon name="ios-arrow-forward" class="icon-right"></ion-icon>\n\n            </div>\n\n        </ion-item>\n\n        <ion-item>\n\n            <div class="group">\n\n                <div class="group-left">\n\n                    <img src="./assets/imgs/fbgg.png" class="title-icon">\n\n                    <span>发布公告</span>\n\n                </div>\n\n                <ion-icon name="ios-arrow-forward" class="icon-right"></ion-icon>\n\n            </div>\n\n        </ion-item> -->\n\n    </ion-list>\n\n    <img src="./assets/imgs/development.jpg" class="wait" *ngIf="role==0">\n\n</ion-content>'/*ion-inline-end:"/Users/ben/gitLab-project/wisdom-ces/src/pages/tabs/workbench/workbench.html"*/
        }),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["j" /* NavController */],
            __WEBPACK_IMPORTED_MODULE_3__service_activityStatisticService__["a" /* ActivityStatisticService */],
            __WEBPACK_IMPORTED_MODULE_2__service_appHttpService__["b" /* AppService */],
            __WEBPACK_IMPORTED_MODULE_4__ionic_storage__["b" /* Storage */]])
    ], WorkbenchPage);
    return WorkbenchPage;
}());

//# sourceMappingURL=workbench.js.map

/***/ }),

/***/ 162:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ContactPage; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__ionic_storage__ = __webpack_require__(28);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__service_appHttpService__ = __webpack_require__(19);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};




var ContactPage = (function () {
    function ContactPage(navCtrl, navParams, storage, appService, toast) {
        this.navCtrl = navCtrl;
        this.navParams = navParams;
        this.storage = storage;
        this.appService = appService;
        this.toast = toast;
        //组织部门列表
        this.organizations = [];
    }
    //ionViewWillEnter
    ContactPage.prototype.ngOnInit = function () {
        //加载组织列表：initOrganizeList
        this.initOrganizeList();
    };
    ContactPage.prototype.initOrganizeList = function () {
        var _this = this;
        //this.appService.ObserverHttpGet("/wisdomgroup/app/getAllOrganization",null)
        //隐藏显示
        this.appService.ObserverHttpGet("/wisdomgroup/sysmanagement/org/getAllOrganization", null)
            .subscribe(function (res) {
            var data = res.json();
            console.log("data:" + data);
            _this.organizations = data;
            //移除父节点
            for (var index = 0; index < _this.organizations.length; index++) {
                var element = _this.organizations[index];
                if (element["organizationLevel"] == '1') {
                    var flag = index;
                }
            }
            _this.organizations.splice(flag, 1);
        }, function (error) {
            _this.appService.alert('网络异常！');
        });
    };
    ContactPage.prototype.search = function () {
        this.navCtrl.push("SearchPage");
    };
    //跳转至部门下联系人列表页面
    ContactPage.prototype.usualContactOrgPersons = function (organization) {
        console.log("organization:" + JSON.stringify(organization));
        this.navCtrl.push("ContactListPage", { "orgid": organization.id, "orgName": organization.name });
    };
    //跳转至常用联系人列表
    ContactPage.prototype.usualContactPersons = function () {
        this.navCtrl.push("ContactListPage");
    };
    ContactPage = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
            selector: 'page-contact',template:/*ion-inline-start:"/Users/ben/gitLab-project/wisdom-ces/src/pages/tabs/contact/contact.html"*/'<!-- <ion-header>\n\n  <ion-toolbar>\n\n      <ion-title text-center>通讯录</ion-title>\n\n      <img class="search" (click)="search()" src="./assets/imgs/search.png"/>\n\n    </ion-toolbar>\n\n</ion-header> -->\n\n\n\n<ion-header>\n\n    <ion-navbar>\n\n        <ion-icon name="search" class="search" (click)="search()"></ion-icon> \n\n      <ion-title style="margin-right:40px;margin-left:40px;text-align:center" >\n\n        通讯录\n\n      </ion-title>\n\n    </ion-navbar>\n\n </ion-header>\n\n\n\n\n\n<ion-content>\n\n    <div class="common">\n\n        常用联系人\n\n    </div>\n\n    <div class="item" (click)="usualContactPersons()">\n\n      <ion-icon name="ios-contacts" class="contact-icon"></ion-icon>\n\n      <span class="contact-title">常用联系人</span>\n\n    </div>\n\n    <div class="common">\n\n        上海市委组织部组织架构\n\n    </div>\n\n    <div class="item item-border" *ngFor="let organization of organizations" (click)="usualContactOrgPersons(organization)">\n\n            <ion-icon name="folder" class="contact-icon"></ion-icon>\n\n            <span class="contact-title">{{organization?.name}}</span>\n\n    </div>\n\n\n\n      <!-- <img src="./assets/imgs/development.jpg" class="wait"> -->\n\n</ion-content>\n\n'/*ion-inline-end:"/Users/ben/gitLab-project/wisdom-ces/src/pages/tabs/contact/contact.html"*/
        }),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["j" /* NavController */],
            __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["k" /* NavParams */],
            __WEBPACK_IMPORTED_MODULE_2__ionic_storage__["b" /* Storage */],
            __WEBPACK_IMPORTED_MODULE_3__service_appHttpService__["b" /* AppService */],
            __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["n" /* ToastController */]])
    ], ContactPage);
    return ContactPage;
}());

//# sourceMappingURL=contact.js.map

/***/ }),

/***/ 163:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return HomePage; });
/* unused harmony export Week */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_http__ = __webpack_require__(35);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__service_activityStatisticService__ = __webpack_require__(55);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__service_appHttpService__ = __webpack_require__(19);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__ionic_native_calendar__ = __webpack_require__(164);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__ionic_storage__ = __webpack_require__(28);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};







var HomePage = (function () {
    function HomePage(navCtrl, activityStatisticService, appService, http, calendar, storage) {
        this.navCtrl = navCtrl;
        this.activityStatisticService = activityStatisticService;
        this.appService = appService;
        this.http = http;
        this.calendar = calendar;
        this.storage = storage;
        this.hasNewActivity = 0;
        this.hasNewNotice = 0;
        this.hasNewPremanager = 0;
        //待出行
        this.waitgoCount = '0';
        //待确认
        this.waitsureCount = '0';
        //未读通知
        this.NoticeNotreadCount = '0';
        //尚未报备
        this.PremanagerNotdoCount = '0';
        //是否显示正在开发中
        this.isWait = false;
        this.slidersItems = [];
        this.picture = __WEBPACK_IMPORTED_MODULE_4__service_appHttpService__["a" /* AppGlobal */].picture;
        //当前周日历展示
        this.week = [{
                id: 0,
                title: '日',
                date: null,
                isToday: false
            }, {
                id: 1,
                title: '一',
                date: null,
                isToday: false
            }, {
                id: 2,
                title: '二',
                date: null,
                isToday: false
            }, {
                id: 3,
                title: '三',
                date: null,
                isToday: false
            }, {
                id: 4,
                title: '四',
                date: null,
                isToday: false
            }, {
                id: 5,
                title: '五',
                date: null,
                isToday: false
            }, {
                id: 6,
                title: '六',
                date: null,
                isToday: false
            }];
    }
    HomePage.prototype.goActivity = function () {
        this.navCtrl.push('ActivityListPage', {});
    };
    HomePage.prototype.goAnnouncement = function () {
        this.navCtrl.push("AnnouncementPage");
    };
    // ngOnInit(): void {
    //   this.appService.ObserverHttpGet("/wisdomgroup/modules/common/file/getBanner", {}).subscribe((res: Response) => {
    //     this.slidersItems = res.json();
    //     console.log(res.json());
    //   }, error => {
    //     this.appService.alert('系统错误！');
    //   })
    // }
    //页面进入时启动自动播放
    // ionViewDidEnter() {
    //   this.slides.startAutoplay();
    // }
    //页面离开时停止自动播放
    // ionViewDidLeave() {
    //   this.slides.stopAutoplay();
    // }
    HomePage.prototype.ionViewDidEnter = function () {
        var _this = this;
        setTimeout(function () {
            if (_this.slidersItems.length > 0) {
                _this.slides.freeMode = true;
                _this.slides.autoplay = 2000;
                _this.slides.speed = 500;
                _this.slides.loop = true;
                _this.slides.autoplayDisableOnInteraction = false;
                _this.slides.startAutoplay();
            }
        }, 1000);
    };
    HomePage.prototype.ionViewWillEnter = function () {
        var _this = this;
        //初始化日期
        this.initDate();
        this.getHasNewActivity();
        this.getHasNewNotice();
        this.getHasNewPremanager();
        //统计待进行和待确认活动数目
        this.activityStatisticService.myActivityOrderCount(function (data) {
            _this.waitgoCount = data.waitgoOrder;
            _this.waitsureCount = data.waitSureOrder;
        });
        this.appService.ObserverHttpGet("/wisdomgroup/modules/common/file/getBanner", {}).subscribe(function (res) {
            _this.slidersItems = res.json();
        }, function (error) {
            _this.appService.alert('网络异常！');
        });
        //初始化统计未读通知
        this.activityStatisticService.myNoticeNotreadCount(function (data) {
            _this.NoticeNotreadCount = data;
        });
        //初始化统计尚未报备
        this.activityStatisticService.myNotdoPremanagerCount(function (data) {
            _this.PremanagerNotdoCount = data;
        });
        //初始化操作记录
        this.initMineOperationInfo();
    };
    HomePage.prototype.goMyActivity = function () {
        this.navCtrl.push("MyActivityListPage");
    };
    HomePage.prototype.goMyNotice = function () {
        this.navCtrl.push("AnnouncementPage");
    };
    HomePage.prototype.wait = function () {
        this.isWait = true;
    };
    HomePage.prototype.cancleWait = function () {
        this.isWait = false;
    };
    HomePage.prototype.go = function (item) {
        if (item.type == 1) {
            this.getActivity(item.id);
        }
        else if (item.type == 2) {
            this.getPremanager(item.id);
        }
        else if (item.type == 3) {
            this.navCtrl.push("AnnouncementViewPage", {
                id: item.id
            });
        }
    };
    //获取活动ById
    HomePage.prototype.getActivity = function (id) {
        var _this = this;
        this.appService.ObserverHttpPost("/wisdomgroup/modules/activity/appFindById", { id: id })
            .toPromise()
            .then(function (res) {
            var activity = res.json();
            if (activity.orderList.length == 0) {
                _this.goApply(activity);
            }
            else {
                _this.goDetail(activity);
            }
        })
            .catch(function (error) {
        });
    };
    //获取公告
    // getNotice(id) {
    //   this.appService.ObserverHttpPost("/wisdomgroup/modules/notice/getNoticeById", { id: id })
    //     .toPromise()
    //     .then(res => {
    //       let notice = res.json();
    //     })
    //     .catch(error => {
    //     });
    // }
    //获取报备
    HomePage.prototype.getPremanager = function (id) {
        var _this = this;
        this.appService.ObserverHttpPost("/wisdomgroup/modules/premanager/findById", { id: id })
            .toPromise()
            .then(function (res) {
            var premanager = res.json();
            _this.storage.set("premanager", premanager);
            _this.navCtrl.push("OutGoingReportEditPage");
        })
            .catch(function (error) {
        });
    };
    //查看详情
    HomePage.prototype.goDetail = function (item) {
        var _this = this;
        var orderid = item.orderList[0]["orderid"];
        this.findMyOrderByOrderId(orderid, function (result) {
            var order = result;
            _this.navCtrl.push("ActivityConfirmPage", { lookOrderDetails: order });
        });
    };
    //报名按钮
    HomePage.prototype.goApply = function (item) {
        var _this = this;
        if (item.activityState == 2) {
            var flag_1 = false;
            this.isExitOrderWithActivity(item, function (result) {
                flag_1 = result;
                if (flag_1) {
                    _this.appService.toast("您已经报名该活动，请在我的活动中查看！");
                }
                else {
                    _this.navCtrl.push("ActivityApplyPage", { item: item });
                }
            });
        }
        else {
            if (item.activityState == 1) {
                this.appService.toast("报名暂未开通！");
            }
            else {
                this.appService.toast("活动已完成！");
            }
        }
    };
    HomePage.prototype.findMyOrderByOrderId = function (orderid, callback) {
        var _this = this;
        var order = this.appService.ObserverHttpPost("/wisdomgroup/modules/order/findMyOrderByOrderId", { "orderid": orderid })
            .subscribe(function (res) {
            var data = res.json();
            callback(data == null ? "[]" : data);
        }, function (error) {
            _this.appService.alert('网络异常！');
        });
    };
    HomePage.prototype.isExitOrderWithActivity = function (activity, callback) {
        this.appService.ObserverHttpPost("/wisdomgroup/modules/order/isExitOrderWithActivity", activity)
            .toPromise()
            .then(function (res) {
            var data = res.json();
            callback(data == null ? "[]" : data);
        })
            .catch(function (error) {
        });
    };
    //获取当前是第几周
    HomePage.prototype.getWeekOfYear = function () {
        var today = new Date();
        var firstDay = new Date(today.getFullYear(), 0, 1);
        var dayOfWeek = firstDay.getDay();
        var spendDay = 1;
        if (dayOfWeek != 0) {
            spendDay = 7 - dayOfWeek + 1;
        }
        firstDay = new Date(today.getFullYear(), 0, 1 + spendDay);
        var d = Math.ceil((today.valueOf() - firstDay.valueOf()) / 86400000);
        var result = Math.ceil(d / 7);
        return result + 1;
    };
    ;
    //初始化日历
    HomePage.prototype.initDate = function () {
        this.weekNo = this.getWeekOfYear();
        var date = new Date();
        this.year = date.getFullYear();
        this.month = date.getMonth() + 1;
        //初始化周
        var day = date.getDay();
        var today = date.getDate();
        for (var _i = 0, _a = this.week; _i < _a.length; _i++) {
            var item = _a[_i];
            var count = item.id - day;
            var now = new Date();
            now.setTime(date.getTime() + count * 24 * 60 * 60 * 1000);
            item.date = now.getDate();
            if (count == 0) {
                item.isToday = true;
            }
        }
    };
    //创建日历
    HomePage.prototype.myCalendar = function () {
        this.calendar.createCalendar('日历').then(function (msg) { console.log(msg); }, function (err) { console.log(err); });
        this.calendar.openCalendar(new Date()).then(function (msg) { console.log(msg); }, function (err) { console.log(err); });
    };
    ///操作记录
    HomePage.prototype.initMineOperationInfo = function () {
        var _this = this;
        var order = this.appService.ObserverHttpPost("/wisdomgroup/opertion/searchOperationInfo", { "P_pageNumber": 0, "P_pageSize": 3 })
            .subscribe(function (res) {
            var data = res.json();
            _this.operations = data.list;
            console.log(JSON.stringify(_this.operations));
            _this.operations.forEach(function (element) {
                var timegap = Date.parse(new Date().toString()) - Date.parse(element["opertionTime"].toString());
                var timegapvalue = _this.timeshift(timegap);
                element["timegapvalue"] = timegapvalue;
                //显示25字
                var content = element["opertionContent"];
                if (content.length > 25) {
                    element["opertionContent"] = content.substr(0, 25) + "...";
                }
            });
        }, function (error) {
            _this.appService.alert('网络异常！');
        });
    };
    HomePage.prototype.timeshift = function (timegap) {
        var result;
        var nd = 1000 * 24 * 60 * 60; //一天的毫秒数
        var nh = 1000 * 60 * 60; //一小时的毫秒数
        var nm = 1000 * 60; //一分钟的毫秒数
        var ns = 1000; //一秒钟的毫秒数
        var day = Math.round(timegap / nd); //计算差多少天
        var hour = Math.round(timegap % nd / nh); //计算差多少小时
        var min = Math.round(timegap % nd % nh / nm); //计算差多少分钟
        var sec = Math.round(timegap % nd % nh % nm / ns); //计算差多少秒//输出结果
        console.log("时间相差：" + day + "天" + hour + "小时" + min + "分钟" + sec + "秒。");
        if (day > 0) {
            result = day + "天前";
        }
        else if (hour > 0) {
            result = hour + "小时前";
        }
        else if (min > 0) {
            result = min + "分钟前";
        }
        else {
            result = sec + "几秒前";
        }
        //result = day+"天"+hour+"小时"+min+"分钟"+sec+"秒"+"前";
        return result;
    };
    HomePage.prototype.goOperationListPage = function () {
        this.navCtrl.push("OperationListPage");
    };
    //外出报备跳转
    HomePage.prototype.goOutGoingReportAboutAll = function () {
        this.navCtrl.push("OutGoingReportPage", {
            type: 1
        });
    };
    //尚未报备跳转
    HomePage.prototype.goOutGoingReportAboutNot = function () {
        this.navCtrl.push("OutGoingReportPage", {
            type: 2
        });
    };
    //获取是否有新的活动
    HomePage.prototype.getHasNewActivity = function () {
        var _this = this;
        this.appService.ObserverHttpGet("/wisdomgroup/modules/activity/hasNewActivity", null)
            .subscribe(function (res) {
            var data = res.json();
            console.log(data);
            _this.hasNewActivity = data;
        }, function (error) {
            _this.appService.alert('网络异常！');
        });
    };
    //获取是否有新的公告
    HomePage.prototype.getHasNewNotice = function () {
        var _this = this;
        this.appService.ObserverHttpGet("/wisdomgroup/modules/notice/hasNewNotice", null)
            .subscribe(function (res) {
            var data = res.json();
            console.log(data);
            _this.hasNewNotice = data;
        }, function (error) {
            _this.appService.alert('网络异常！');
        });
    };
    //获取是否有新的报备
    HomePage.prototype.getHasNewPremanager = function () {
        var _this = this;
        this.appService.ObserverHttpGet("/wisdomgroup/modules/premanager/hasNewPremanager", null)
            .subscribe(function (res) {
            var data = res.json();
            console.log(data);
            _this.hasNewPremanager = data;
        }, function (error) {
            _this.appService.alert('网络异常！');
        });
    };
    __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["_8" /* ViewChild */])(__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["m" /* Slides */]),
        __metadata("design:type", __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["m" /* Slides */])
    ], HomePage.prototype, "slides", void 0);
    HomePage = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
            selector: 'page-home',template:/*ion-inline-start:"/Users/ben/gitLab-project/wisdom-ces/src/pages/tabs/home/home.html"*/'<ion-header>\n\n  <ion-navbar>\n\n    <ion-title text-center>智汇19号</ion-title>\n\n  </ion-navbar>\n\n</ion-header>\n\n<ion-content>\n\n  <ion-slides #slides *ngIf="slidersItems.length>0" pager autoplay="2000" loop=true>\n\n    <ion-slide *ngFor="let item of slidersItems">\n\n      <div style="height:135px;width: 100%;">\n\n          <img src="{{picture+item.pictureId}}" class="slide-image" (click)="go(item)">\n\n      </div> \n\n    </ion-slide>\n\n  </ion-slides>\n\n  <div class="item2">\n\n    <div class="item2-1">\n\n      <ion-icon name="apps" class="icon2"></ion-icon>\n\n      <label class="common_applications">常用应用</label>\n\n    </div>\n\n    <div class="item2-2">\n\n      <div class="card" (click)="goActivity()">\n\n        <ion-icon name="flag" class="icon2-2"></ion-icon>\n\n        <label class="label2-2">组织活动</label>\n\n        <img class="new-logo" *ngIf="hasNewActivity==1" src="./assets/imgs/new.png">\n\n      </div>\n\n      <div class="card" (click)="goAnnouncement()">\n\n        <ion-icon name="alert" class="icon2-2"></ion-icon>\n\n        <label class="label2-2">通知公告</label>\n\n        <img class="new-logo" *ngIf="hasNewNotice==1" src="./assets/imgs/new.png">\n\n      </div>\n\n      <div class="card" (click)="goOutGoingReportAboutAll()">\n\n        <ion-icon name="alarm" class="icon2-2"></ion-icon>\n\n        <label class="label2-2">外出报备</label>\n\n        <img class="new-logo" *ngIf="hasNewPremanager==1" src="./assets/imgs/new.png">\n\n      </div>\n\n      <!-- <div class="card"  (click)="wait()">\n\n        <ion-icon name="alarm" class="icon2-2"></ion-icon>\n\n        <label class="label2-2">智能审批</label>\n\n      </div>\n\n      <div class="card"  (click)="wait()">\n\n        <ion-icon name="albums" class="icon2-2"></ion-icon>\n\n        <label class="label2-2">值班安排</label>\n\n      </div>\n\n      <div class="card"  (click)="wait()">\n\n        <ion-icon name="bicycle" class="icon2-2"></ion-icon>\n\n        <label class="label2-2">外出申请</label>\n\n      </div>\n\n      <div class="card"  (click)="wait()">\n\n        <ion-icon name="body" class="icon2-2"></ion-icon>\n\n        <label class="label2-2">体检报告</label>\n\n      </div> -->\n\n      <div class="card" (click)="wait()">\n\n        <ion-icon name="ios-more" class="icon2-2"></ion-icon>\n\n        <label class="label2-2 more2-2">更多</label>\n\n      </div>\n\n    </div>\n\n  </div>\n\n  <div class="item3">\n\n    <div class="item3-1">\n\n      <ion-icon name="alarm" class="icon3"></ion-icon>\n\n      <label class="daily_reminder">日常提醒</label>\n\n\n\n    </div>\n\n    <div class="item3-2">\n\n      <div class="card3" (click)="goMyNotice()" style="background-color:#ffffff;">\n\n        <div *ngIf="NoticeNotreadCount>0" class="common-menu-count">{{NoticeNotreadCount}}</div>\n\n        <div class="common-menu">未读\n\n          <br/>通知</div>\n\n      </div>\n\n      <div class="card3" (click)="goOutGoingReportAboutNot()" style="background-color:#ffffff;">\n\n        <div *ngIf="PremanagerNotdoCount>0" class="common-menu-count">{{PremanagerNotdoCount}}</div>\n\n        <div class="common-menu">尚未\n\n          <br/>报备</div>\n\n      </div>\n\n      <div class="card3" (click)="goMyActivity()" style="background-color:#ffffff;">\n\n        <div *ngIf="waitgoCount>0" class="common-menu-count">{{waitgoCount}}</div>\n\n        <div class="common-menu">已报\n\n          <br/>活动</div>\n\n      </div>\n\n      <div class="card3" (click)="goMyActivity()" style="background-color:#ffffff;">\n\n        <div *ngIf="waitsureCount>0" class="common-menu-count">{{waitsureCount}}</div>\n\n        <div class="common-menu">待评\n\n          <br/>活动</div>\n\n      </div>\n\n\n\n    </div>\n\n  </div>\n\n  <div class="item4">\n\n    <div class="item4-1">\n\n      <ion-icon name="md-people" class="icon4"></ion-icon>\n\n      <label class="duty_arrangements">日历</label>\n\n      <!-- <label class="more"  (click)="wait()">\n\n        更多\n\n        <ion-icon name="arrow-dropright"></ion-icon>\n\n      </label> -->\n\n    </div>\n\n    <div class="item4-2">\n\n      <div class="item4-title">{{year}}年{{month}}月，第{{weekNo}}周</div>\n\n      <div class="group" (click)="myCalendar()">\n\n        <div *ngFor="let item of week" class="card4">\n\n          <div class="card4-1">{{item.title}}</div>\n\n          <div class="{{item.isToday?\'selected\':\'\'}} card4-2">{{item.date}}</div>\n\n        </div>\n\n      </div>\n\n    </div>\n\n  </div>\n\n  <div class="item5">\n\n    <div class="item5-1">\n\n      <ion-icon name="list" class="icon5"></ion-icon>\n\n      <label class="operation_record">操作记录</label>\n\n      <label class="more" (click)="goOperationListPage()">\n\n        更多\n\n        <ion-icon name="arrow-dropright"></ion-icon>\n\n      </label>\n\n    </div>\n\n    <div class="item5-2">\n\n      <div class="card5" *ngFor="let operation of operations;let idx = index">\n\n        <label class="card5-1">\n\n          <span class="card5-1-1">{{idx+1}}、</span>{{operation.opertionContent|slice:0:20}}...</label>\n\n        <label class="time_home">{{operation.timegapvalue}}</label>\n\n      </div>\n\n      <!-- <div class="card5">\n\n          <label class="card5-1">\n\n            <span class="card5-1-1">2、</span>你已取消报名2018年疗养活动，详情见“我的活动”</label>\n\n            <label class="time">1天前</label>\n\n      </div> -->\n\n    </div>\n\n  </div>\n\n</ion-content>\n\n\n\n<div class="cover" *ngIf="isWait" (click)="cancleWait()">\n\n  <img src="./assets/imgs/development.jpg" class="wait">\n\n</div>'/*ion-inline-end:"/Users/ben/gitLab-project/wisdom-ces/src/pages/tabs/home/home.html"*/
        }),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["j" /* NavController */], __WEBPACK_IMPORTED_MODULE_3__service_activityStatisticService__["a" /* ActivityStatisticService */],
            __WEBPACK_IMPORTED_MODULE_4__service_appHttpService__["b" /* AppService */], __WEBPACK_IMPORTED_MODULE_2__angular_http__["b" /* Http */], __WEBPACK_IMPORTED_MODULE_5__ionic_native_calendar__["a" /* Calendar */], __WEBPACK_IMPORTED_MODULE_6__ionic_storage__["b" /* Storage */]])
    ], HomePage);
    return HomePage;
}());

//定义星期实体
var Week = (function () {
    function Week() {
        this.isToday = false;
    }
    return Week;
}());

//# sourceMappingURL=home.js.map

/***/ }),

/***/ 166:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MinePage; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__login_login__ = __webpack_require__(85);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__service_appHttpService__ = __webpack_require__(19);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__ionic_storage__ = __webpack_require__(28);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__ionic_native_app_version__ = __webpack_require__(44);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__service_appUpdateService__ = __webpack_require__(56);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};







var MinePage = (function () {
    function MinePage(navCtrl, appCtrl, alertCtrl, navParams, appService, storage, appUpdateService, appVersion) {
        this.navCtrl = navCtrl;
        this.appCtrl = appCtrl;
        this.alertCtrl = alertCtrl;
        this.navParams = navParams;
        this.appService = appService;
        this.storage = storage;
        this.appUpdateService = appUpdateService;
        this.appVersion = appVersion;
        this.version = '';
        this.isLatest = true;
        this.orgNameInfo();
    }
    MinePage.prototype.ionViewWillEnter = function () {
        this.getversion();
    };
    MinePage.prototype.orgNameInfo = function () {
        var _this = this;
        this.user = this.storage.get("user").then(function (value) {
            _this.user = value;
            console.log(_this.user);
            console.log("id1:" + _this.user.id);
            _this.gender = _this.user.userDetail.user.gender;
            console.log("gender:" + _this.gender);
            _this.getOrgName(_this.user.id, function (result) {
                var data = result;
                _this.orgName = data["orgName"];
            });
        });
    };
    MinePage.prototype.getOrgName = function (id, callback) {
        this.appService.ObserverHttpPost("/wisdomgroup/app/getOrgName", { "userid": id })
            .toPromise()
            .then(function (res) {
            var data = res.json();
            callback(data == null ? "[]" : data);
        })
            .catch(function (error) {
        });
    };
    MinePage.prototype.personInfo = function () {
        this.navCtrl.push("PersonInfoPage");
    };
    //我的活动
    MinePage.prototype.myActivityList = function () {
        this.navCtrl.push("MyActivityListPage");
    };
    //我的报备
    MinePage.prototype.myReport = function () {
        this.navCtrl.push("MyReportPage");
    };
    //操作记录
    MinePage.prototype.myOperationList = function () {
        this.navCtrl.push("OperationListPage");
    };
    MinePage.prototype.logout = function () {
        var _this = this;
        this.alertCtrl.create({
            message: "确认退出登录？",
            buttons: [
                {
                    text: '取消',
                    role: 'cancel'
                },
                {
                    text: '确定',
                    handler: function () {
                        // this.appService.ObserverHttpGet("/wisdomgroup/app/logout",null)
                        // .subscribe((res: Response) => {                
                        //   this.appCtrl.getRootNav().setRoot(LoginPage)	                  
                        //   }, error => {                    
                        //       this.appService.alert('系统错误！');
                        //   })
                        //退出登陆，将缓存中的用户注销，跳转到登陆页面。
                        _this.storage.get("user").then(function (value) {
                            console.log(value);
                        });
                        _this.storage.remove("user");
                        _this.storage.remove("userLoginInfo");
                        _this.logoutApp();
                        _this.appCtrl.getRootNav().setRoot(__WEBPACK_IMPORTED_MODULE_2__login_login__["a" /* LoginPage */]);
                    }
                }
            ]
        }).present();
    };
    //后台退出
    MinePage.prototype.logoutApp = function () {
        var _this = this;
        this.appService.ObserverHttpGet("/wisdomgroup/app/logout", null)
            .subscribe(function (res) {
            var data = res.json();
        }, function (error) {
            _this.appService.alert('网络异常！');
        });
    };
    //版本信息
    MinePage.prototype.currentVersion = function () {
        this.navCtrl.push("VersionPage");
    };
    //获取最新版本信息
    MinePage.prototype.getversion = function () {
        var _this = this;
        //检测是否需要更新
        this.appVersion.getVersionNumber().then(function (version) {
            _this.version = version;
            _this.appUpdateService.compariVersion().subscribe(function (data) {
                if (data.code == 200) {
                    if (data.latestVersion != null && data.latestVersion != version) {
                        _this.isLatest = false;
                    }
                }
            });
        }).catch(function (err) {
            console.log('getVersionNumber:' + err);
        });
    };
    MinePage = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
            selector: 'page-mine',template:/*ion-inline-start:"/Users/ben/gitLab-project/wisdom-ces/src/pages/tabs/mine/mine.html"*/'<ion-header>\n\n    <ion-navbar>\n\n        <ion-title text-center>个人中心</ion-title>\n\n    </ion-navbar>\n\n</ion-header>\n\n<ion-content>\n\n    <div class="mine-header" (click)="personInfo()">\n\n        <div class="mine-header-box">\n\n            <div class="mine-header-left">\n\n                <h2 class="name">{{user?.userName}}</h2>\n\n                <label class="organization">{{orgName}}</label>\n\n            </div>\n\n            <div class="mine-header-right">\n\n                <img src="./assets/imgs/woman.png" *ngIf="gender == 0" class="head-photo">\n\n                <img src="./assets/imgs/man.png" *ngIf="gender == null || gender == \'1\'" class="head-photo">\n\n                <!-- <img class="head-photo" src="../../../assets/imgs/woman.png"> -->\n\n                <!-- <img class="head-photo" *ngIf="{{user.userDetail.user.gender != \'女\'}}" src="../../../assets/imgs/man.jpg"> -->\n\n            </div>\n\n        </div>\n\n    </div>\n\n    <ion-list>\n\n        <ion-item (click)="myActivityList()">\n\n            <div class="group">\n\n                <div class="group-box">\n\n                    <!-- <ion-icon name="aperture" class="icon-left icon1"></ion-icon> -->\n\n                    <img src="./assets/imgs/wdhd.png" class="group-img">\n\n                    <span>我的活动</span>\n\n                </div>\n\n                <ion-icon name="ios-arrow-forward" class="icon-right"></ion-icon>\n\n            </div>\n\n        </ion-item>\n\n        <ion-item (click)="myReport()">\n\n            <div class="group">\n\n                <div class="group-box">\n\n                    <img src="./assets/imgs/wdzb.png" class="group-img">\n\n                    <span>我的报备</span>\n\n                </div>\n\n\n\n                <ion-icon name="ios-arrow-forward" class="icon-right"></ion-icon>\n\n            </div>\n\n        </ion-item>\n\n        <!-- <ion-item>\n\n                <div class="group">\n\n                    <div class="group-box">\n\n                        <img src="./assets/imgs/dcwj.png" class="group-img">\n\n                        <span>调查问卷</span>\n\n                    </div>\n\n    \n\n                    <ion-icon name="ios-arrow-forward" class="icon-right"></ion-icon>\n\n                </div>\n\n            </ion-item>-->\n\n\n\n        <ion-item (click)="myOperationList()">\n\n            <div class="group">\n\n                <div class="group-box">\n\n                    <img src="./assets/imgs/czjl.png" class="group-img">\n\n                    <span>操作记录</span>\n\n                </div>\n\n                <ion-icon name="ios-arrow-forward" class="icon-right"></ion-icon>\n\n            </div>\n\n        </ion-item>\n\n        <ion-item (click)="currentVersion()">\n\n            <div class="group">\n\n                <div class="group-box">\n\n                    <img src="./assets/imgs/version.png" class="group-img">\n\n                    <span>版本信息</span>\n\n                    <img *ngIf="!isLatest" src="./assets/imgs/new.png" class="new">\n\n                </div>\n\n                <!-- <span>{{version}}</span> -->\n\n                <ion-icon name="ios-arrow-forward" class="icon-right"></ion-icon>\n\n            </div>\n\n        </ion-item>\n\n    </ion-list>\n\n    <button ion-button block class="logout" (click)="logout()">退出登录</button>\n\n</ion-content>'/*ion-inline-end:"/Users/ben/gitLab-project/wisdom-ces/src/pages/tabs/mine/mine.html"*/,
        }),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["j" /* NavController */],
            __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["b" /* App */],
            __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["a" /* AlertController */],
            __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["k" /* NavParams */],
            __WEBPACK_IMPORTED_MODULE_3__service_appHttpService__["b" /* AppService */],
            __WEBPACK_IMPORTED_MODULE_4__ionic_storage__["b" /* Storage */],
            __WEBPACK_IMPORTED_MODULE_6__service_appUpdateService__["a" /* AppUpdateService */],
            __WEBPACK_IMPORTED_MODULE_5__ionic_native_app_version__["a" /* AppVersion */]])
    ], MinePage);
    return MinePage;
}());

//# sourceMappingURL=mine.js.map

/***/ }),

/***/ 170:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HomeModule", function() { return HomeModule; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__home__ = __webpack_require__(163);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};



var HomeModule = (function () {
    function HomeModule() {
    }
    HomeModule = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["I" /* NgModule */])({
            declarations: [
                __WEBPACK_IMPORTED_MODULE_2__home__["a" /* HomePage */],
            ],
            imports: [
                __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["h" /* IonicPageModule */].forChild(__WEBPACK_IMPORTED_MODULE_2__home__["a" /* HomePage */])
            ],
            entryComponents: [
                __WEBPACK_IMPORTED_MODULE_2__home__["a" /* HomePage */],
            ],
        })
    ], HomeModule);
    return HomeModule;
}());

//# sourceMappingURL=home.module.js.map

/***/ }),

/***/ 19:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AppGlobal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return AppService; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_ionic_angular__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_http__ = __webpack_require__(35);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};



var AppGlobal = (function () {
    function AppGlobal() {
    }
    //缓存key的配置
    AppGlobal.cache = {
        slides: "_dress_slides",
        categories: "_dress_categories",
        products: "_dress_products"
    };
    //接口基地址    //测试环境
    // static domain = "http://220.248.107.115:2239";
    //正式环境
    // static domain = "http://180.153.158.250:3306";
    AppGlobal.domain = "http://180.168.156.212:2931";
    //static domain = "http://localhost:8080"
    //乔坤
    //static domain = "http://10.10.202.54:8080";
    //测试
    // static picture = "http://220.248.107.115:2239/wisdomgroup/manager/getIcon/";
    //正式
    // static picture = "http://180.153.158.250:3306/wisdomgroup/manager/getIcon/";
    AppGlobal.picture = "http://180.168.156.212:2931/wisdomgroup/manager/getIcon/";
    //接口地址
    AppGlobal.API = {
        getCategories: '/api/ionic3/getCategories',
        getLogin: '/app/loginpost',
        getDetails: '/api/ionic3/details'
    };
    AppGlobal = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_1__angular_core__["A" /* Injectable */])()
    ], AppGlobal);
    return AppGlobal;
}());

var AppService = (function () {
    function AppService(http, loadingCtrl, alertCtrl, toastCtrl) {
        this.http = http;
        this.loadingCtrl = loadingCtrl;
        this.alertCtrl = alertCtrl;
        this.toastCtrl = toastCtrl;
    }
    // 对参数进行编码
    AppService.prototype.encode = function (params, flag) {
        var str = '';
        if (params) {
            if (flag == 'get') {
                for (var key in params) {
                    if (params.hasOwnProperty(key)) {
                        var value = params[key];
                        str += value + '/';
                    }
                }
                str = '/' + str.substring(0, str.length - 1);
            }
            if (flag == 'post') {
                for (var key in params) {
                    if (params.hasOwnProperty(key)) {
                        var value = params[key];
                        //str += encodeURIComponent(key) + '=' + encodeURIComponent(value) + '&';
                        str += key + '=' + value + '&';
                    }
                }
                str = str.substring(0, str.length - 1);
            }
        }
        return str;
    };
    //get请求
    AppService.prototype.ObserverHttpGet = function (url, params) {
        return this.http.get(AppGlobal.domain + url + this.encode(params, "get"));
        // return this.http.get(url+this.encode(params,"get"))
    };
    //post请求
    AppService.prototype.ObserverHttpPost = function (url, params) {
        return this.http.post(AppGlobal.domain + url, null, {
            // return this.http.post(url,null,{
            params: this.encode(params, 'post'),
            headers: new __WEBPACK_IMPORTED_MODULE_2__angular_http__["a" /* Headers */]({
                // "Accept": "application/json",
                //"Content-Type": "application/json,charset=UTF-8"
                'Content-Type': 'application/x-www-form-urlencoded,charset=UTF-8'
            })
        });
    };
    AppService.prototype.handleError = function (error) {
        var msg = '';
        if (error.status == 400) {
            msg = '请求无效(code：404)';
            console.log('请检查参数类型是否匹配');
        }
        if (error.status == 404) {
            msg = '请求资源不存在(code：404)';
            console.error(msg + '，请检查路径是否正确');
        }
        if (error.status == 500) {
            msg = '服务器发生错误(code：500)';
            console.error(msg + '，请检查路径是否正确');
        }
        console.log(error);
        if (msg != '') {
            this.toast(msg);
        }
    };
    AppService.prototype.toast = function (message, callback) {
        var toast = this.toastCtrl.create({
            message: message,
            duration: 2000,
            dismissOnPageChange: true,
        });
        toast.present();
        if (callback) {
            callback();
        }
    };
    //position:top, bottom and middle
    AppService.prototype.popToastView = function (message, position, duration) {
        this.toastCtrl.create({
            message: message,
            position: position,
            duration: duration,
        }).present();
    };
    AppService.prototype.alert = function (message, callback) {
        if (callback) {
            var alert_1 = this.alertCtrl.create({
                title: '提示',
                message: message,
                buttons: ['取消', {
                        text: "确定",
                        handler: function (data) {
                            callback();
                        }
                    }]
            });
            alert_1.present();
        }
        else {
            var alert_2 = this.alertCtrl.create({
                title: '提示',
                message: message,
                buttons: ["确定"]
            });
            alert_2.present();
        }
    };
    AppService = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_1__angular_core__["A" /* Injectable */])(),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_2__angular_http__["b" /* Http */],
            __WEBPACK_IMPORTED_MODULE_0_ionic_angular__["i" /* LoadingController */],
            __WEBPACK_IMPORTED_MODULE_0_ionic_angular__["a" /* AlertController */],
            __WEBPACK_IMPORTED_MODULE_0_ionic_angular__["n" /* ToastController */]])
    ], AppService);
    return AppService;
}());

//# sourceMappingURL=appHttpService.js.map

/***/ }),

/***/ 214:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__ = __webpack_require__(215);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app_module__ = __webpack_require__(238);


Object(__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__["a" /* platformBrowserDynamic */])().bootstrapModule(__WEBPACK_IMPORTED_MODULE_1__app_module__["a" /* AppModule */]);
//# sourceMappingURL=main.js.map

/***/ }),

/***/ 238:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AppModule; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_platform_browser__ = __webpack_require__(23);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_ionic_angular__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__app_component__ = __webpack_require__(292);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__ionic_native_status_bar__ = __webpack_require__(210);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__ionic_native_splash_screen__ = __webpack_require__(211);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__ionic_storage__ = __webpack_require__(28);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__ionic_native_calendar__ = __webpack_require__(164);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__pages_tabs_tabs_module__ = __webpack_require__(293);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__pages_login_login_module__ = __webpack_require__(159);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__angular_http__ = __webpack_require__(35);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__service_appHttpService__ = __webpack_require__(19);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__service_appUpdateService__ = __webpack_require__(56);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__service_activityStatisticService__ = __webpack_require__(55);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__ionic_native_app_version__ = __webpack_require__(44);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__ionic_native_file_opener__ = __webpack_require__(167);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__ionic_native_file_transfer__ = __webpack_require__(168);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__ionic_native_file__ = __webpack_require__(169);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_18__ionic_native_keyboard__ = __webpack_require__(212);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_19__ionic_native_badge__ = __webpack_require__(213);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};




















var AppModule = (function () {
    function AppModule() {
    }
    AppModule = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["I" /* NgModule */])({
            declarations: [
                __WEBPACK_IMPORTED_MODULE_3__app_component__["a" /* MyApp */]
            ],
            imports: [
                __WEBPACK_IMPORTED_MODULE_1__angular_platform_browser__["a" /* BrowserModule */],
                __WEBPACK_IMPORTED_MODULE_2_ionic_angular__["g" /* IonicModule */].forRoot(__WEBPACK_IMPORTED_MODULE_3__app_component__["a" /* MyApp */], { tabsHideOnSubPages: 'true' }, {
                    links: [
                        { loadChildren: '../pages/activityApply/activityApply.module#ActivityApplyModule', name: 'ActivityApplyPage', segment: 'activityApply', priority: 'low', defaultHistory: [] },
                        { loadChildren: '../pages/activityConfirm/activityConfirm.module#ActivityConfirmModule', name: 'ActivityConfirmPage', segment: 'activityConfirm', priority: 'low', defaultHistory: [] },
                        { loadChildren: '../pages/activityDetail/activityDetail.module#ActivityDetailModule', name: 'ActivityDetailPage', segment: 'activityDetail', priority: 'low', defaultHistory: [] },
                        { loadChildren: '../pages/activityList/activityList.module#ActivityListModule', name: 'ActivityListPage', segment: 'activityList', priority: 'low', defaultHistory: [] },
                        { loadChildren: '../pages/activityTrack/activityTrack.module#ActivityTrackModule', name: 'ActivityTrackPage', segment: 'activityTrack', priority: 'low', defaultHistory: [] },
                        { loadChildren: '../pages/announcement/announcement.module#AnnouncementModule', name: 'AnnouncementPage', segment: 'announcement', priority: 'low', defaultHistory: [] },
                        { loadChildren: '../pages/announcementView/announcementView.module#AnnouncementViewModule', name: 'AnnouncementViewPage', segment: 'announcementView', priority: 'low', defaultHistory: [] },
                        { loadChildren: '../pages/chooseAddress/chooseAddress.module#ChooseAddressModule', name: 'ChooseAddressPage', segment: 'chooseAddress', priority: 'low', defaultHistory: [] },
                        { loadChildren: '../pages/contactList/contactList.module#ContactListModule', name: 'ContactListPage', segment: 'contactList', priority: 'low', defaultHistory: [] },
                        { loadChildren: '../pages/contract-personinfo/contract-personinfo.module#ContractPersoninfoPageModule', name: 'ContractPersoninfoPage', segment: 'contract-personinfo', priority: 'low', defaultHistory: [] },
                        { loadChildren: '../pages/editPersonInfo/editPersonInfo.module#EditPersonInfoModule', name: 'EditPersonInfoPage', segment: 'editPersonInfo', priority: 'low', defaultHistory: [] },
                        { loadChildren: '../pages/joinDetail/joinDetail.module#JoinDetailModule', name: 'JoinDetailPage', segment: 'joinDetail', priority: 'low', defaultHistory: [] },
                        { loadChildren: '../pages/joinPersons/joinPersons.module#JoinPersonsModule', name: 'JoinPersonsPage', segment: 'joinPersons', priority: 'low', defaultHistory: [] },
                        { loadChildren: '../pages/login/login.module#LoginModule', name: 'LoginPage', segment: 'login', priority: 'low', defaultHistory: [] },
                        { loadChildren: '../pages/modifyPassword/modifyPassword.module#ModifyPasswordModule', name: 'ModifyPasswordPage', segment: 'modifyPassword', priority: 'low', defaultHistory: [] },
                        { loadChildren: '../pages/myActivityList/myActivityList.module#MyActivityListModule', name: 'MyActivityListPage', segment: 'myActivityList', priority: 'low', defaultHistory: [] },
                        { loadChildren: '../pages/myReport/myReport.module#MyReportModule', name: 'MyReportPage', segment: 'myReport', priority: 'low', defaultHistory: [] },
                        { loadChildren: '../pages/operation-list/operation-list.module#OperationListPageModule', name: 'OperationListPage', segment: 'operation-list', priority: 'low', defaultHistory: [] },
                        { loadChildren: '../pages/outGoingReport/outGoingReport.module#OutGoingReportModule', name: 'OutGoingReportPage', segment: 'outGoingReport', priority: 'low', defaultHistory: [] },
                        { loadChildren: '../pages/outGoingReportDetail/outGoingReportDetail.module#OutGoingReportDetailModule', name: 'OutGoingReportDetailPage', segment: 'outGoingReportDetail', priority: 'low', defaultHistory: [] },
                        { loadChildren: '../pages/outGoingReportEdit/outGoingReportEdit.module#OutGoingReportEditModule', name: 'OutGoingReportEditPage', segment: 'outGoingReportEdit', priority: 'low', defaultHistory: [] },
                        { loadChildren: '../pages/outGoingReportView/outGoingReportView.module#OutGoingReportViewModule', name: 'OutGoingReportViewPage', segment: 'outGoingReportView', priority: 'low', defaultHistory: [] },
                        { loadChildren: '../pages/personInfo/personInfo.module#PersonInfoModule', name: 'PersonInfoPage', segment: 'personInfo', priority: 'low', defaultHistory: [] },
                        { loadChildren: '../pages/reportDetail/reportDetail.module#ReportDetailModule', name: 'ReportDetailPage', segment: 'reportDetail', priority: 'low', defaultHistory: [] },
                        { loadChildren: '../pages/reportTrack/reportTrack.module#ReportTrackModule', name: 'ReportTrackPage', segment: 'reportTrack', priority: 'low', defaultHistory: [] },
                        { loadChildren: '../pages/search/search.module#SearchModule', name: 'SearchPage', segment: 'search', priority: 'low', defaultHistory: [] },
                        { loadChildren: '../pages/tabs/home/home.module#HomeModule', name: 'HomePage', segment: 'home', priority: 'low', defaultHistory: [] },
                        { loadChildren: '../pages/version/version.module#VersionModule', name: 'VersionPage', segment: 'version', priority: 'low', defaultHistory: [] }
                    ]
                }),
                __WEBPACK_IMPORTED_MODULE_6__ionic_storage__["a" /* IonicStorageModule */].forRoot(),
                __WEBPACK_IMPORTED_MODULE_8__pages_tabs_tabs_module__["a" /* TabsModule */],
                __WEBPACK_IMPORTED_MODULE_9__pages_login_login_module__["LoginModule"],
                __WEBPACK_IMPORTED_MODULE_10__angular_http__["c" /* HttpModule */],
                __WEBPACK_IMPORTED_MODULE_10__angular_http__["d" /* JsonpModule */]
            ],
            bootstrap: [__WEBPACK_IMPORTED_MODULE_2_ionic_angular__["e" /* IonicApp */]],
            entryComponents: [
                __WEBPACK_IMPORTED_MODULE_3__app_component__["a" /* MyApp */]
            ],
            providers: [
                __WEBPACK_IMPORTED_MODULE_4__ionic_native_status_bar__["a" /* StatusBar */],
                __WEBPACK_IMPORTED_MODULE_5__ionic_native_splash_screen__["a" /* SplashScreen */],
                __WEBPACK_IMPORTED_MODULE_11__service_appHttpService__["b" /* AppService */],
                __WEBPACK_IMPORTED_MODULE_12__service_appUpdateService__["a" /* AppUpdateService */],
                __WEBPACK_IMPORTED_MODULE_14__ionic_native_app_version__["a" /* AppVersion */],
                __WEBPACK_IMPORTED_MODULE_15__ionic_native_file_opener__["a" /* FileOpener */],
                __WEBPACK_IMPORTED_MODULE_16__ionic_native_file_transfer__["a" /* FileTransfer */],
                __WEBPACK_IMPORTED_MODULE_16__ionic_native_file_transfer__["b" /* FileTransferObject */],
                __WEBPACK_IMPORTED_MODULE_17__ionic_native_file__["a" /* File */],
                __WEBPACK_IMPORTED_MODULE_18__ionic_native_keyboard__["a" /* Keyboard */],
                __WEBPACK_IMPORTED_MODULE_7__ionic_native_calendar__["a" /* Calendar */],
                __WEBPACK_IMPORTED_MODULE_19__ionic_native_badge__["a" /* Badge */],
                __WEBPACK_IMPORTED_MODULE_13__service_activityStatisticService__["a" /* ActivityStatisticService */],
                { provide: __WEBPACK_IMPORTED_MODULE_0__angular_core__["u" /* ErrorHandler */], useClass: __WEBPACK_IMPORTED_MODULE_2_ionic_angular__["f" /* IonicErrorHandler */] }
            ]
        })
    ], AppModule);
    return AppModule;
}());

//# sourceMappingURL=app.module.js.map

/***/ }),

/***/ 292:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MyApp; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__ionic_native_status_bar__ = __webpack_require__(210);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__ = __webpack_require__(211);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__pages_login_login__ = __webpack_require__(85);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__ionic_native_app_version__ = __webpack_require__(44);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__service_appUpdateService__ = __webpack_require__(56);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__ionic_native_keyboard__ = __webpack_require__(212);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__ionic_native_badge__ = __webpack_require__(213);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};




// import { TabsPage } from '../pages/tabs/tabs';





var MyApp = (function () {
    function MyApp(platform, statusBar, splashScreen, alertCtrl, keyboard, appUpdateService, appVersion, badge) {
        this.rootPage = __WEBPACK_IMPORTED_MODULE_4__pages_login_login__["a" /* LoginPage */];
        platform.ready().then(function () {
            // Okay, so the platform is ready and our plugins are available.
            // Here you can do any higher level native things you might need.
            statusBar.styleDefault();
            splashScreen.hide();
            //检测是否需要更新
            appVersion.getVersionNumber().then(function (version) {
                appUpdateService.compariVersion().subscribe(function (data) {
                    if (data.code == 200) {
                        if (data.latestVersion != null && data.latestVersion != version) {
                            appUpdateService.detectionUpgrade(data.androidDownload, true); //提示升级  
                        }
                    }
                });
            }).catch(function (err) {
                console.log('getVersionNumber:' + err);
            });
            //log角标数目显示
            badge.set(10);
        });
    }
    __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["_8" /* ViewChild */])(__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["c" /* Content */]),
        __metadata("design:type", __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["c" /* Content */])
    ], MyApp.prototype, "content", void 0);
    MyApp = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({template:/*ion-inline-start:"/Users/ben/gitLab-project/wisdom-ces/src/app/app.html"*/'<ion-nav [root]="rootPage"></ion-nav>\n\n'/*ion-inline-end:"/Users/ben/gitLab-project/wisdom-ces/src/app/app.html"*/
        }),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["l" /* Platform */],
            __WEBPACK_IMPORTED_MODULE_2__ionic_native_status_bar__["a" /* StatusBar */],
            __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__["a" /* SplashScreen */],
            __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["a" /* AlertController */],
            __WEBPACK_IMPORTED_MODULE_7__ionic_native_keyboard__["a" /* Keyboard */],
            __WEBPACK_IMPORTED_MODULE_6__service_appUpdateService__["a" /* AppUpdateService */],
            __WEBPACK_IMPORTED_MODULE_5__ionic_native_app_version__["a" /* AppVersion */],
            __WEBPACK_IMPORTED_MODULE_8__ionic_native_badge__["a" /* Badge */]])
    ], MyApp);
    return MyApp;
}());

//# sourceMappingURL=app.component.js.map

/***/ }),

/***/ 293:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TabsModule; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__ = __webpack_require__(23);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_ionic_angular__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__tabs__ = __webpack_require__(160);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__home_home_module__ = __webpack_require__(170);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__mine_mine_module__ = __webpack_require__(294);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__contact_contact_module__ = __webpack_require__(295);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__workbench_workbench_module__ = __webpack_require__(296);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};




//导入其他模块




var TabsModule = (function () {
    function TabsModule() {
    }
    TabsModule = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_1__angular_core__["I" /* NgModule */])({
            declarations: [
                __WEBPACK_IMPORTED_MODULE_3__tabs__["a" /* TabsPage */],
            ],
            imports: [
                __WEBPACK_IMPORTED_MODULE_2_ionic_angular__["h" /* IonicPageModule */].forChild(__WEBPACK_IMPORTED_MODULE_3__tabs__["a" /* TabsPage */]),
                __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__["a" /* BrowserModule */],
                __WEBPACK_IMPORTED_MODULE_4__home_home_module__["HomeModule"],
                __WEBPACK_IMPORTED_MODULE_6__contact_contact_module__["a" /* ContactModule */],
                __WEBPACK_IMPORTED_MODULE_7__workbench_workbench_module__["a" /* WorkbenchModule */],
                __WEBPACK_IMPORTED_MODULE_5__mine_mine_module__["a" /* MineModule */]
            ],
            entryComponents: [
                __WEBPACK_IMPORTED_MODULE_3__tabs__["a" /* TabsPage */],
            ],
            providers: []
        })
    ], TabsModule);
    return TabsModule;
}());

//# sourceMappingURL=tabs.module.js.map

/***/ }),

/***/ 294:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MineModule; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__mine__ = __webpack_require__(166);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};



var MineModule = (function () {
    function MineModule() {
    }
    MineModule = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["I" /* NgModule */])({
            declarations: [
                __WEBPACK_IMPORTED_MODULE_2__mine__["a" /* MinePage */],
            ],
            imports: [
                __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["h" /* IonicPageModule */].forChild(__WEBPACK_IMPORTED_MODULE_2__mine__["a" /* MinePage */]),
            ],
        })
    ], MineModule);
    return MineModule;
}());

//# sourceMappingURL=mine.module.js.map

/***/ }),

/***/ 295:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ContactModule; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__contact__ = __webpack_require__(162);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};



var ContactModule = (function () {
    function ContactModule() {
    }
    ContactModule = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["I" /* NgModule */])({
            declarations: [
                __WEBPACK_IMPORTED_MODULE_2__contact__["a" /* ContactPage */],
            ],
            imports: [
                __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["h" /* IonicPageModule */].forChild(__WEBPACK_IMPORTED_MODULE_2__contact__["a" /* ContactPage */]),
            ],
        })
    ], ContactModule);
    return ContactModule;
}());

//# sourceMappingURL=contact.module.js.map

/***/ }),

/***/ 296:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return WorkbenchModule; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__workbench__ = __webpack_require__(161);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};



var WorkbenchModule = (function () {
    function WorkbenchModule() {
    }
    WorkbenchModule = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["I" /* NgModule */])({
            declarations: [
                __WEBPACK_IMPORTED_MODULE_2__workbench__["a" /* WorkbenchPage */],
            ],
            imports: [
                __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["h" /* IonicPageModule */].forChild(__WEBPACK_IMPORTED_MODULE_2__workbench__["a" /* WorkbenchPage */]),
            ],
        })
    ], WorkbenchModule);
    return WorkbenchModule;
}());

//# sourceMappingURL=workbench.module.js.map

/***/ }),

/***/ 55:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ActivityStatisticService; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_ionic_angular__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_http__ = __webpack_require__(35);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__service_appHttpService__ = __webpack_require__(19);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};




var ActivityStatisticService = (function () {
    function ActivityStatisticService(http, loadingCtrl, alertCtrl, toastCtrl, appService) {
        this.http = http;
        this.loadingCtrl = loadingCtrl;
        this.alertCtrl = alertCtrl;
        this.toastCtrl = toastCtrl;
        this.appService = appService;
    }
    //待出行活动,待确认活动,所有活动
    ActivityStatisticService.prototype.myActivityOrderCount = function (callback) {
        var _this = this;
        this.appService.ObserverHttpPost("/wisdomgroup/modules/order/findMyActivityOrderCount", null)
            .subscribe(function (res) {
            var data = res.json();
            console.log("myactivityCount------->", data);
            callback(data == null ? "[]" : data);
        }, function (error) {
            _this.appService.alert('网络异常！');
        });
    };
    //未读通知统计
    ActivityStatisticService.prototype.myNoticeNotreadCount = function (callback) {
        var _this = this;
        this.appService.ObserverHttpPost("/wisdomgroup/modules/notice/getNotReadNotice", null)
            .subscribe(function (res) {
            var data = res.json();
            callback(data == null ? "[]" : data);
        }, function (error) {
            _this.appService.alert('网络异常！');
        });
    };
    //尚未报备统计
    ActivityStatisticService.prototype.myNotdoPremanagerCount = function (callback) {
        var _this = this;
        this.appService.ObserverHttpPost("/wisdomgroup/modules/premanager/findMyNotdoPremanager", null)
            .subscribe(function (res) {
            var data = res.json();
            callback(data == null ? "[]" : data);
        }, function (error) {
            _this.appService.alert('网络异常！');
        });
    };
    //统计活动的报名订单数目
    ActivityStatisticService.prototype.activityOrderCount = function (id, callback) {
        var _this = this;
        this.appService.ObserverHttpPost("/wisdomgroup/modules/order/findActivityOrderCount", { id: id })
            .subscribe(function (res) {
            var data = res.json();
            console.log("myactivityCount------->", data);
            callback(data == null ? "[]" : data);
        }, function (error) {
            _this.appService.alert('网络异常！');
        });
    };
    //统计已发布，已结束活动数目
    ActivityStatisticService.prototype.statisticActivityNum = function (callback) {
        var _this = this;
        this.appService.ObserverHttpGet("/wisdomgroup/modules/activity/statisticActivityNum", null)
            .subscribe(function (res) {
            var data = res.json();
            callback(data == null ? "[]" : data);
        }, function (error) {
            _this.appService.alert('网络异常！');
        });
    };
    ActivityStatisticService = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_1__angular_core__["A" /* Injectable */])(),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_2__angular_http__["b" /* Http */],
            __WEBPACK_IMPORTED_MODULE_0_ionic_angular__["i" /* LoadingController */],
            __WEBPACK_IMPORTED_MODULE_0_ionic_angular__["a" /* AlertController */],
            __WEBPACK_IMPORTED_MODULE_0_ionic_angular__["n" /* ToastController */],
            __WEBPACK_IMPORTED_MODULE_3__service_appHttpService__["b" /* AppService */]])
    ], ActivityStatisticService);
    return ActivityStatisticService;
}());

//# sourceMappingURL=activityStatisticService.js.map

/***/ }),

/***/ 56:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AppUpdateService; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ionic_native_app_version__ = __webpack_require__(44);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__ionic_native_file_opener__ = __webpack_require__(167);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__ionic_native_file_transfer__ = __webpack_require__(168);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ionic_native_file__ = __webpack_require__(169);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_ionic_angular__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__appHttpService__ = __webpack_require__(19);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};







var AppUpdateService = (function () {
    function AppUpdateService(appVersion, fileOpener, fileTransfer, fileTransferObject, file, alertCtrl, appService) {
        this.appVersion = appVersion;
        this.fileOpener = fileOpener;
        this.fileTransfer = fileTransfer;
        this.fileTransferObject = fileTransferObject;
        this.file = file;
        this.alertCtrl = alertCtrl;
        this.appService = appService;
    }
    //检查是否需要软件更新
    AppUpdateService.prototype.detectionUpgrade = function (apkUrl, allowChoose) {
        var _this = this;
        if (allowChoose) {
            this.alertCtrl.create({
                title: '升级提示',
                subTitle: '发现新版本,是否立即升级？',
                buttons: [{
                        text: '取消'
                    }, {
                        text: '确定',
                        handler: function () {
                            _this.downloadApp(apkUrl);
                        }
                    }]
            }).present();
        }
        else {
            this.downloadApp(apkUrl);
        }
    };
    //与服务器版本比较，不是最新的，返回最新的下载地址
    AppUpdateService.prototype.compariVersion = function () {
        return this.appService.ObserverHttpGet("/wisdomgroup/app/compariVersion", {});
    };
    //下载更新APP
    AppUpdateService.prototype.downloadApp = function (apkUrl) {
        var _this = this;
        var alert = this.alertCtrl.create({
            title: '下载进度：0%',
            enableBackdropDismiss: false,
            buttons: ['后台下载']
        });
        // const fileTransfer: FileTransferObject = this.fileTransfer.create();
        // const apk = this.file.externalRootDirectory + 'app.apk'; //apk保存的目录  
        // fileTransfer.download(AppGlobal.domain+apkUrl, apk).then(() => {
        //     this.fileOpener.open(apk, 'application/vnd.android.package-archive').then(() => {
        //         console.log('File is opened')
        //     }).catch(e => {
        //         console.log('Error openening file', e)
        //     });
        // });
        // fileTransfer.onProgress((event: ProgressEvent) => {
        //     let num = Math.floor(event.loaded / event.total * 100);
        //     if (num === 100) {
        //         alert.dismiss();
        //     } else {
        //         let title = document.getElementsByClassName('alert-title')[0];
        //         title && (title.innerHTML = '下载进度：' + num + '%');
        //     }
        // });
        // console.log("this apkUrl is" + apkUrl);
        var xhr = new XMLHttpRequest();
        var url = __WEBPACK_IMPORTED_MODULE_6__appHttpService__["a" /* AppGlobal */].domain + apkUrl;
        xhr.open("GET", url);
        xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
        xhr.responseType = "blob";
        xhr.addEventListener("loadstart", function (ev) {
            // 开始下载事件：下载进度条的显示
            alert.present();
        });
        xhr.addEventListener("progress", function (ev) {
            // 下载中事件：计算下载进度
            var progress = Math.round(100.0 * ev.loaded / ev.total);
            var title = document.getElementsByClassName('alert-title')[0];
            title && (title.innerHTML = '下载进度：' + progress + '%');
        });
        xhr.addEventListener("load", function (ev) {
            alert.dismiss();
            // 下载完成事件：处理下载文件
            var blob = xhr.response;
            var fileName = 'temp.apk';
            if (blob) {
                var path_1 = _this.file.externalDataDirectory;
                _this.file.writeFile(path_1, fileName, blob, {
                    replace: true
                }).then(function () {
                    _this.fileOpener.open(path_1 + fileName, 'application/vnd.android.package-archive').catch(function (err) {
                        _this.appService.alert('打开apk失败！' + err);
                    });
                }).catch(function (err) {
                    _this.appService.alert('失败！');
                });
            }
        });
        xhr.addEventListener("loadend", function (ev) {
            // 结束下载事件
        });
        xhr.addEventListener("error", function (ev) {
            _this.appService.alert('下载apk失败！');
        });
        xhr.addEventListener("abort", function (ev) {
        });
        xhr.send();
    };
    AppUpdateService = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_4__angular_core__["A" /* Injectable */])(),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_0__ionic_native_app_version__["a" /* AppVersion */],
            __WEBPACK_IMPORTED_MODULE_1__ionic_native_file_opener__["a" /* FileOpener */],
            __WEBPACK_IMPORTED_MODULE_2__ionic_native_file_transfer__["a" /* FileTransfer */],
            __WEBPACK_IMPORTED_MODULE_2__ionic_native_file_transfer__["b" /* FileTransferObject */],
            __WEBPACK_IMPORTED_MODULE_3__ionic_native_file__["a" /* File */],
            __WEBPACK_IMPORTED_MODULE_5_ionic_angular__["a" /* AlertController */],
            __WEBPACK_IMPORTED_MODULE_6__appHttpService__["b" /* AppService */]])
    ], AppUpdateService);
    return AppUpdateService;
}());

//# sourceMappingURL=appUpdateService.js.map

/***/ }),

/***/ 85:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return LoginPage; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_forms__ = __webpack_require__(16);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__tabs_tabs__ = __webpack_require__(160);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_http__ = __webpack_require__(35);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__ionic_storage__ = __webpack_require__(28);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__service_appHttpService__ = __webpack_require__(19);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};







var LoginPage = (function () {
    function LoginPage(navCtrl, navParams, storage, alertCtrl, loadingCtrl, http, appService, render, elementRef) {
        this.navCtrl = navCtrl;
        this.navParams = navParams;
        this.storage = storage;
        this.alertCtrl = alertCtrl;
        this.loadingCtrl = loadingCtrl;
        this.http = http;
        this.appService = appService;
        this.render = render;
        this.elementRef = elementRef;
        this.submitted = false; //表单是否已经提交
        this.tipFlag = false; // 输入时隐藏输入框以下信息
        this.user = {
            userid: '',
            mobile: '',
            password: ''
        };
    }
    LoginPage_1 = LoginPage;
    LoginPage.prototype.ionViewDidLoad = function () {
        var _this = this;
        this.storage.get("userLoginInfo").then(function (value) {
            if (value != null && value != '') {
                _this.user = value;
                //return this.navCtrl.setRoot(TabsPage, { "user": this.user });
                _this.appService.ObserverHttpPost("/wisdomgroup/app/loginpost", _this.user)
                    .subscribe(function (res) {
                    var data = res.json();
                    if (data["code"] == '200') {
                        //将当前登录用户存进缓存，便于后期逻辑操作
                        _this.storage.set('user', data.data);
                        _this.user.userid = data.data.id;
                        _this.storage.set('userLoginInfo', _this.user);
                        return _this.navCtrl.setRoot(__WEBPACK_IMPORTED_MODULE_3__tabs_tabs__["a" /* TabsPage */], { "user": _this.user });
                    }
                    else {
                        _this.appService.alert('手机号或密码错误！');
                        return _this.navCtrl.setRoot(LoginPage_1);
                    }
                }, function (error) {
                    _this.appService.alert('网络异常！');
                });
            }
        });
    };
    LoginPage.prototype.ionViewDidEnter = function () {
        var _this = this;
        //默认显示
        this.storage.get("userLoginInfo").then(function (value) {
            if (value != null && value != '') {
                _this.user = value;
            }
        });
    };
    //输入框获取焦点：隐藏，失去焦点：显示
    LoginPage.prototype.getFocus = function () {
        this.tipFlag = true;
    };
    LoginPage.prototype.loseFocus = function () {
        this.tipFlag = false;
    };
    LoginPage.prototype.login = function () {
        var _this = this;
        //验证手机号和密码是否输入
        if (this.user.mobile == null || this.user.mobile == '') {
            this.appService.popToastView('请输入手机号！', 'top', 2000);
            return;
        }
        if (this.user.password == null || this.user.password == '') {
            this.appService.popToastView('请输入密码！', 'top', 2000);
            return;
        }
        var loading = this.loadingCtrl.create({
            content: '正在登录...',
            dismissOnPageChange: true,
            enableBackdropDismiss: true //点击页面其他地方则关闭 正在登录
        });
        loading.present();
        this.appService.ObserverHttpPost("/wisdomgroup/app/loginpost", this.user)
            .subscribe(function (res) {
            loading.dismiss();
            _this.submitted = true;
            var data = res.json();
            if (data["code"] == '200') {
                //将当前登录用户存进缓存，便于后期逻辑操作
                _this.storage.set('user', data.data);
                _this.user.userid = data.data.id;
                _this.storage.set('userLoginInfo', _this.user);
                return _this.navCtrl.setRoot(__WEBPACK_IMPORTED_MODULE_3__tabs_tabs__["a" /* TabsPage */], { "user": _this.user });
            }
            else {
                _this.appService.alert('手机号或密码错误！');
                return _this.navCtrl.setRoot(LoginPage_1);
            }
        }, function (error) {
            if (loading)
                loading.dismiss();
            //this.appService.alert('系统错误！');
            _this.appService.alert('网络异常！');
        });
    };
    //忘记密码
    LoginPage.prototype.forgetPassword = function () {
        this.appService.alert('若忘记密码，请与人事处联系。');
    };
    __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["_8" /* ViewChild */])('loginForm'),
        __metadata("design:type", __WEBPACK_IMPORTED_MODULE_2__angular_forms__["d" /* NgForm */])
    ], LoginPage.prototype, "currentForm", void 0);
    LoginPage = LoginPage_1 = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
            selector: 'page-login',template:/*ion-inline-start:"/Users/ben/gitLab-project/wisdom-ces/src/pages/login/login.html"*/'<ion-header>\n\n	<ion-toolbar>\n\n		<div class="searchToolBar">\n\n			<!-- <button ion-button clear small navPop style="padding: 0;">\n\n				<img class="back-btn" src="./assets/imgs/back.png" />\n\n			</button> -->\n\n			<ion-title text-center>\n\n				用户登录\n\n			</ion-title>\n\n		</div>\n\n	</ion-toolbar>\n\n</ion-header>\n\n<ion-content>\n\n	<div class="login-box">\n\n		<div class="login">\n\n			<img src="./assets/imgs/logo.png" class="login-logo">\n\n			<form #loginForm="ngForm" class="login-form">\n\n				<div class="login-input">\n\n					<img src="./assets/imgs/icon-phone.png" class="login-input-img">\n\n					<input [(ngModel)]="user.mobile" class="login-input-content" name="mobile" type="text" #mobile required placeholder="手机号"\n\n					 (ionBlur)="loseFocus()" (ionFocus)="getFocus()" />\n\n					<!-- <input type="number" placeholder="手机号" class="login-input-content" [(ngModel)]="user.username" name="username" #username required (ionBlur)="loseFocus()" (ionFocus)="getFocus()"> -->\n\n				</div>\n\n				<div class="login-input">\n\n					<img src="./assets/imgs/icon-password.png" class="login-input-img">\n\n					<input [(ngModel)]="user.password" class="login-input-content" name="password" type="password" #password required placeholder="密  码"\n\n					 (ionBlur)="loseFocus()" (ionFocus)="getFocus()" />\n\n					<!-- <input [(ngModel)]="user.password" name="password" type="password" #password required placeholder="密  码" (ionBlur)="loseFocus()" (ionFocus)="getFocus()" class="login-input-content"> -->\n\n				</div>\n\n				<!-- <button class="login-bt" ion-button (click)="login()" [disabled]="!loginForm.valid || submitted" type="submit" block>登 录</button> -->\n\n\n\n				<div class="mui-input-row mui-checkbox mui-left" style="margin-bottom: 15px;">\n\n					<input name="checkbox" class="jizhu-password" value="1" type="checkbox" checked="true" style="margin-left:10px;width:17px;height:17px;vertical-align:middle">\n\n					<label style="padding-left:5px;font-family:\'微软雅黑\';" class="jizhu-password-label">记住密码</label>\n\n				</div>\n\n\n\n				<button type="button" (click)="forgetPassword()" class="login-btn" style="width: 48%;float: left;background-color: #b3bdcf;border-color: #b3bdcf;">忘记密码</button>\n\n\n\n				<button type="button" (click)="login()" class="login-btn" style="width: 48%;float: right;">登&nbsp;&nbsp;录</button>\n\n\n\n			</form>\n\n\n\n			<div class="introduce">\n\n				登陆手机号为组织部统一配发的手机号，初始密码为000000，使用过程中如有任何问题请联系人事处。\n\n			</div>\n\n\n\n		</div>\n\n\n\n\n\n	</div>'/*ion-inline-end:"/Users/ben/gitLab-project/wisdom-ces/src/pages/login/login.html"*/
        }),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["j" /* NavController */],
            __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["k" /* NavParams */],
            __WEBPACK_IMPORTED_MODULE_5__ionic_storage__["b" /* Storage */],
            __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["a" /* AlertController */],
            __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["i" /* LoadingController */],
            __WEBPACK_IMPORTED_MODULE_4__angular_http__["b" /* Http */],
            __WEBPACK_IMPORTED_MODULE_6__service_appHttpService__["b" /* AppService */],
            __WEBPACK_IMPORTED_MODULE_0__angular_core__["V" /* Renderer */],
            __WEBPACK_IMPORTED_MODULE_0__angular_core__["t" /* ElementRef */]])
    ], LoginPage);
    return LoginPage;
    var LoginPage_1;
}());

//# sourceMappingURL=login.js.map

/***/ })

},[214]);
//# sourceMappingURL=main.js.map