text: webpackJsonp([9],{
  
  /***/ 103:
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return HomePage; });
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(12);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__index__ = __webpack_require__(104);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__cart_cart__ = __webpack_require__(52);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__user_center_user_center__ = __webpack_require__(106);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__not_found_not_found__ = __webpack_require__(51);
  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);
  };
  
  
  
  
  
  
  /**
   * Generated class for the HomePage page.
   *
   * See https://ionicframework.com/docs/components/#navigation for more info on
   * Ionic pages and navigation.
   */
  var HomePage = /** @class */ (function () {
      function HomePage(navCtrl, navParams) {
          this.navCtrl = navCtrl;
          this.navParams = navParams;
          this.tabIndex = __WEBPACK_IMPORTED_MODULE_2__index__["a" /* IndexPage */];
          this.tabCart = __WEBPACK_IMPORTED_MODULE_3__cart_cart__["a" /* CartPage */];
          this.tabPerson = __WEBPACK_IMPORTED_MODULE_4__user_center_user_center__["a" /* UserCenterPage */];
          this.tabSettings = __WEBPACK_IMPORTED_MODULE_5__not_found_not_found__["a" /* NotFoundPage */];
      }
      HomePage.prototype.ionViewDidLoad = function () {
          console.log('ionViewDidLoad HomePage');
      };
      HomePage = __decorate([
          Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
              selector: 'page-home',template:/*ion-inline-start:"D:\xampp\htdocs\codes\ionic\project\myProject\src\pages\home\home.html"*/'\n<ion-tabs>\n  <ion-tab tabsHideOnSubPages=true tabTitle="首页" tabIcon="home" [root]="tabIndex"></ion-tab>\n\n  <ion-tab tabTitle="购物车" tabIcon="cart" [root]="tabCart"></ion-tab>\n  \n  <ion-tab tabTitle="我的" tabIcon="person" [root]="tabPerson"></ion-tab>\n  \n  <ion-tab tabTitle="设置" tabIcon="settings" [root]="tabSettings"></ion-tab>\n</ion-tabs>\n'/*ion-inline-end:"D:\xampp\htdocs\codes\ionic\project\myProject\src\pages\home\home.html"*/,
          }),
          __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavParams */]])
      ], HomePage);
      return HomePage;
  }());
  
  //# sourceMappingURL=home.js.map
  
  /***/ }),
  
  /***/ 104:
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return IndexPage; });
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(12);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_common_http__ = __webpack_require__(41);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__detail_detail__ = __webpack_require__(105);
  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);
  };
  
  
  
  
  /**
   * Generated class for the IndexPage page.
   *
   * See https://ionicframework.com/docs/components/#navigation for more info on
   * Ionic pages and navigation.
   */
  var IndexPage = /** @class */ (function () {
      function IndexPage(myHttp, navCtrl, navParams) {
          this.myHttp = myHttp;
          this.navCtrl = navCtrl;
          this.navParams = navParams;
          this.detail = __WEBPACK_IMPORTED_MODULE_3__detail_detail__["a" /* DetailPage */];
          this.cList = []; //保存的是轮播图数据
          this.nList = []; //保存是新品上市的数据newArrialItems
          this.rList = []; //保存的是recommendedItems
      }
      IndexPage.prototype.ionViewDidLoad = function () {
          var _this = this;
          console.log('ionViewDidLoad IndexPage');
          // 发送请求
          var url = "http://localhost:8080/index";
          this.myHttp.get(url)
              .subscribe(function (result) {
              console.log(result); //result是一个对象
              // 保存数据：carouselItems
              _this.cList = result.carouselItems;
              _this.nList = result.newArrialItems;
              _this.rList = result.recommendedItems;
          });
          // 显示在视图
      };
      IndexPage = __decorate([
          Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
              selector: 'page-index',template:/*ion-inline-start:"D:\xampp\htdocs\codes\ionic\project\myProject\src\pages\index\index.html"*/'<!--\n  Generated template for the IndexPage page.\n\n  See http://ionicframework.com/docs/components/#navigation for more info on\n  Ionic pages and navigation.\n-->\n<ion-header>\n\n  <ion-navbar>\n    <ion-title>index</ion-title>\n  </ion-navbar>\n\n</ion-header>\n\n\n<ion-content padding>\n  <!-- 轮播图 -->\n  <ion-slides *ngIf="cList.length>0" pager paginationType="4" autoplay=2000 loop effect="" speed=1000 style="height:200px;">\n    <ion-slide *ngFor="let tmp of cList">\n      <img [src]="\'../../assets/\'+tmp.img" alt="">\n    </ion-slide>\n  </ion-slides>\n  <!-- 新品上市 -->\n  <ion-scroll scrollX style="height: 200px; white-space: nowrap;">\n    <ion-card *ngFor="let tmp of nList" style="display: inline-block; width: 180px;">\n      <ion-card-content>\n        <img [src]="\'../../assets/\'+tmp.pic" style="height:100px; width: 150px;" alt="">\n        <h4>{{tmp.title}}</h4>\n      </ion-card-content>\n    </ion-card>\n  </ion-scroll>\n  <!-- 推荐商品 -->\n  <!-- 推荐商品 -->\n  <ion-list>\n    <ion-item \n    [navPush]="detail" \n    [navParams]="{id:tmp.pid}"\n    text-wrap *ngFor="let tmp of rList">\n      <ion-thumbnail item-start>\n        <img [src]="\'../../assets/\'+tmp.pic">\n      </ion-thumbnail>\n      <h5>{{tmp.title}}</h5>\n      <p>{{tmp.details}}</p>\n      <button item-end ion-button clear color=\'danger\'>\n        <ion-icon name=\'cart\'></ion-icon>\n      </button>\n    </ion-item>\n  </ion-list>\n</ion-content>\n'/*ion-inline-end:"D:\xampp\htdocs\codes\ionic\project\myProject\src\pages\index\index.html"*/,
          }),
          __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_2__angular_common_http__["a" /* HttpClient */],
              __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavParams */]])
      ], IndexPage);
      return IndexPage;
  }());
  
  //# sourceMappingURL=index.js.map
  
  /***/ }),
  
  /***/ 105:
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return DetailPage; });
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(12);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_common_http__ = __webpack_require__(41);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__not_found_not_found__ = __webpack_require__(51);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__cart_cart__ = __webpack_require__(52);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__login_login__ = __webpack_require__(53);
  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);
  };
  
  
  
  
  
  
  /**
   * Generated class for the DetailPage page.
   *
   * See https://ionicframework.com/docs/components/#navigation for more info on
   * Ionic pages and navigation.
   */
  var DetailPage = /** @class */ (function () {
      function DetailPage(toastCtrl, myHttp, navCtrl, navParams) {
          this.toastCtrl = toastCtrl;
          this.myHttp = myHttp;
          this.navCtrl = navCtrl;
          this.navParams = navParams;
          this.id = 0;
          this.myList = []; //picList
          this.myPrice = 0; //price
          this.myTitle = ""; //title
          this.mySubTitle = ""; //subtitle
      }
      DetailPage.prototype.ionViewDidLoad = function () {
          var _this = this;
          console.log('ionViewDidLoad DetailPage');
          //接收路由跳转时通过id所传来的值
          this.id = this.navParams.get('id');
          console.log("收到的值是" + this.id);
          // 请求id对应的详情数据
          var url = " http://localhost:8080/product/detail?lid=" + this.id;
          this.myHttp.get(url)
              .subscribe(function (result) {
              console.log(result);
              //result.details.price/picList/title/subtitle
              _this.myPrice = result.details.price;
              _this.myList = result.details.picList;
              _this.myTitle = result.details.title;
              _this.mySubTitle = result.details.subtitle;
          });
          // 保存
          // 显示
      };
      DetailPage.prototype.jump404 = function () {
          this.navCtrl.push(__WEBPACK_IMPORTED_MODULE_3__not_found_not_found__["a" /* NotFoundPage */]);
      };
      DetailPage.prototype.jumpCart = function () {
          this.navCtrl.push(__WEBPACK_IMPORTED_MODULE_4__cart_cart__["a" /* CartPage */]);
      };
      DetailPage.prototype.addToCart = function () {
          var _this = this;
          var url = "http://localhost:8080/cart/add?buyCount=1&lid=" + this.id;
          this.myHttp.get(url, { withCredentials: true }).subscribe(function (result) {
              console.log(result);
              var msg = "";
              if (result.code == 300) {
                  msg = "您未登录";
                  _this.navCtrl.push(__WEBPACK_IMPORTED_MODULE_5__login_login__["a" /* LoginPage */]);
              }
              else if (result.code == 200) {
                  msg = "添加购物车成功";
              }
              //显示一个toast   给用户一个结果
              var myToast = _this.toastCtrl.create({
                  message: msg,
                  duration: 2000
              });
              myToast.present();
          });
      };
      DetailPage = __decorate([
          Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
              selector: 'page-detail',template:/*ion-inline-start:"D:\xampp\htdocs\codes\ionic\project\myProject\src\pages\detail\detail.html"*/'<!--\n  Generated template for the DetailPage page.\n\n  See http://ionicframework.com/docs/components/#navigation for more info on\n  Ionic pages and navigation.\n-->\n<ion-header>\n\n  <ion-navbar>\n    <ion-title>detail</ion-title>\n  </ion-navbar>\n\n</ion-header>\n\n\n<ion-content padding>\n  <!-- 轮播图 -->\n  <ion-slides *ngIf="myList.length>0" autoplay=2000 loop pager style="height:300px">\n    <ion-slide *ngFor="let tmp of myList">\n      <img [src]="\'../../assets/\'+tmp.md" alt="">\n    </ion-slide>\n  </ion-slides>\n  <!-- 标题 -->\n  <h2>{{myTitle}}</h2>\n  <!-- 副标题 -->\n  <h3 style="color:red">{{mySubTitle}}</h3>\n  <!-- 价格 -->\n  <h3 style="color:red">{{myPrice}}</h3>\n</ion-content>\n\n<!-- 固定在页脚的效果 -->\n<ion-footer>\n   <ion-grid>\n     <ion-row>\n      <ion-col>\n        <button ion-button clear color="dark" (click)="jump404()">\n          <ion-icon name="heart"></ion-icon>\n        </button>\n      </ion-col>\n      <ion-col>\n        <button ion-button clear color="dark" (click)="jumpCart()">\n          <ion-icon name="cart"></ion-icon>\n        </button>\n      </ion-col>\n      <ion-col>\n        <button ion-button clear color="dark" (click)="jump404()">\n          <ion-icon name="bookmark"></ion-icon>\n        </button>\n      </ion-col>\n      <ion-col col-6>\n        <button ion-button color="danger" block (click)="addToCart()">\n          加入购物车\n        </button>\n      </ion-col>\n     </ion-row>\n   </ion-grid>\n</ion-footer>\n'/*ion-inline-end:"D:\xampp\htdocs\codes\ionic\project\myProject\src\pages\detail\detail.html"*/,
          }),
          __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["i" /* ToastController */],
              __WEBPACK_IMPORTED_MODULE_2__angular_common_http__["a" /* HttpClient */],
              __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavParams */]])
      ], DetailPage);
      return DetailPage;
  }());
  
  //# sourceMappingURL=detail.js.map
  
  /***/ }),
  
  /***/ 106:
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return UserCenterPage; });
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(12);
  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);
  };
  
  
  /**
   * Generated class for the UserCenterPage page.
   *
   * See https://ionicframework.com/docs/components/#navigation for more info on
   * Ionic pages and navigation.
   */
  var UserCenterPage = /** @class */ (function () {
      function UserCenterPage(navCtrl, navParams) {
          this.navCtrl = navCtrl;
          this.navParams = navParams;
      }
      UserCenterPage.prototype.ionViewDidLoad = function () {
          console.log('ionViewDidLoad UserCenterPage');
      };
      UserCenterPage = __decorate([
          Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
              selector: 'page-user-center',template:/*ion-inline-start:"D:\xampp\htdocs\codes\ionic\project\myProject\src\pages\user-center\user-center.html"*/'<!--\n  Generated template for the UserCenterPage page.\n\n  See http://ionicframework.com/docs/components/#navigation for more info on\n  Ionic pages and navigation.\n-->\n<ion-header>\n\n  <ion-navbar>\n    <ion-title>user-center</ion-title>\n  </ion-navbar>\n\n</ion-header>\n\n\n<ion-content padding>\n\n</ion-content>\n'/*ion-inline-end:"D:\xampp\htdocs\codes\ionic\project\myProject\src\pages\user-center\user-center.html"*/,
          }),
          __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavParams */]])
      ], UserCenterPage);
      return UserCenterPage;
  }());
  
  //# sourceMappingURL=user-center.js.map
  
  /***/ }),
  
  /***/ 118:
  /***/ (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 = 118;
  
  /***/ }),
  
  /***/ 160:
  /***/ (function(module, exports, __webpack_require__) {
  
  var map = {
  	"../pages/cart/cart.module": [
  		284,
  		8
  	],
  	"../pages/detail/detail.module": [
  		285,
  		7
  	],
  	"../pages/home/home.module": [
  		283,
  		6
  	],
  	"../pages/index/index.module": [
  		287,
  		5
  	],
  	"../pages/login/login.module": [
  		290,
  		4
  	],
  	"../pages/not-found/not-found.module": [
  		286,
  		3
  	],
  	"../pages/order-confirm/order-confirm.module": [
  		288,
  		2
  	],
  	"../pages/pay/pay.module": [
  		289,
  		1
  	],
  	"../pages/user-center/user-center.module": [
  		291,
  		0
  	]
  };
  function webpackAsyncContext(req) {
  	var ids = map[req];
  	if(!ids)
  		return Promise.reject(new Error("Cannot find module '" + req + "'."));
  	return __webpack_require__.e(ids[1]).then(function() {
  		return __webpack_require__(ids[0]);
  	});
  };
  webpackAsyncContext.keys = function webpackAsyncContextKeys() {
  	return Object.keys(map);
  };
  webpackAsyncContext.id = 160;
  module.exports = webpackAsyncContext;
  
  /***/ }),
  
  /***/ 204:
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ListPage; });
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(12);
  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 ListPage = /** @class */ (function () {
      function ListPage(navCtrl, navParams) {
          this.navCtrl = navCtrl;
          this.navParams = navParams;
          // If we navigated to this page, we will have an item available as a nav param
          this.selectedItem = navParams.get('item');
          // Let's populate this page with some filler content for funzies
          this.icons = ['flask', 'wifi', 'beer', 'football', 'basketball', 'paper-plane',
              'american-football', 'boat', 'bluetooth', 'build'];
          this.items = [];
          for (var i = 1; i < 11; i++) {
              this.items.push({
                  title: 'Item ' + i,
                  note: 'This is item #' + i,
                  icon: this.icons[Math.floor(Math.random() * this.icons.length)]
              });
          }
      }
      ListPage_1 = ListPage;
      ListPage.prototype.itemTapped = function (event, item) {
          // That's right, we're pushing to ourselves!
          this.navCtrl.push(ListPage_1, {
              item: item
          });
      };
      ListPage = ListPage_1 = __decorate([
          Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
              selector: 'page-list',template:/*ion-inline-start:"D:\xampp\htdocs\codes\ionic\project\myProject\src\pages\list\list.html"*/'<ion-header>\n  <ion-navbar>\n    <button ion-button menuToggle>\n      <ion-icon name="menu"></ion-icon>\n    </button>\n    <ion-title>List</ion-title>\n  </ion-navbar>\n</ion-header>\n\n<ion-content>\n  <ion-list>\n    <button ion-item *ngFor="let item of items" (click)="itemTapped($event, item)">\n      <ion-icon [name]="item.icon" item-start></ion-icon>\n      {{item.title}}\n      <div class="item-note" item-end>\n        {{item.note}}\n      </div>\n    </button>\n  </ion-list>\n  <div *ngIf="selectedItem" padding>\n    You navigated here from <b>{{selectedItem.title}}</b>\n  </div>\n</ion-content>\n'/*ion-inline-end:"D:\xampp\htdocs\codes\ionic\project\myProject\src\pages\list\list.html"*/
          }),
          __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavParams */]])
      ], ListPage);
      return ListPage;
      var ListPage_1;
  }());
  
  //# sourceMappingURL=list.js.map
  
  /***/ }),
  
  /***/ 205:
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return OrderConfirmPage; });
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(12);
  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);
  };
  
  
  /**
   * Generated class for the OrderConfirmPage page.
   *
   * See https://ionicframework.com/docs/components/#navigation for more info on
   * Ionic pages and navigation.
   */
  var OrderConfirmPage = /** @class */ (function () {
      function OrderConfirmPage(navCtrl, navParams) {
          this.navCtrl = navCtrl;
          this.navParams = navParams;
      }
      OrderConfirmPage.prototype.ionViewDidLoad = function () {
          console.log('ionViewDidLoad OrderConfirmPage');
      };
      OrderConfirmPage = __decorate([
          Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
              selector: 'page-order-confirm',template:/*ion-inline-start:"D:\xampp\htdocs\codes\ionic\project\myProject\src\pages\order-confirm\order-confirm.html"*/'<!--\n  Generated template for the OrderConfirmPage page.\n\n  See http://ionicframework.com/docs/components/#navigation for more info on\n  Ionic pages and navigation.\n-->\n<ion-header>\n\n  <ion-navbar>\n    <ion-title>order-confirm</ion-title>\n  </ion-navbar>\n\n</ion-header>\n\n\n<ion-content padding>\n\n</ion-content>\n'/*ion-inline-end:"D:\xampp\htdocs\codes\ionic\project\myProject\src\pages\order-confirm\order-confirm.html"*/,
          }),
          __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavParams */]])
      ], OrderConfirmPage);
      return OrderConfirmPage;
  }());
  
  //# sourceMappingURL=order-confirm.js.map
  
  /***/ }),
  
  /***/ 206:
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return PayPage; });
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(12);
  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);
  };
  
  
  /**
   * Generated class for the PayPage page.
   *
   * See https://ionicframework.com/docs/components/#navigation for more info on
   * Ionic pages and navigation.
   */
  var PayPage = /** @class */ (function () {
      function PayPage(navCtrl, navParams) {
          this.navCtrl = navCtrl;
          this.navParams = navParams;
      }
      PayPage.prototype.ionViewDidLoad = function () {
          console.log('ionViewDidLoad PayPage');
      };
      PayPage = __decorate([
          Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
              selector: 'page-pay',template:/*ion-inline-start:"D:\xampp\htdocs\codes\ionic\project\myProject\src\pages\pay\pay.html"*/'<!--\n  Generated template for the PayPage page.\n\n  See http://ionicframework.com/docs/components/#navigation for more info on\n  Ionic pages and navigation.\n-->\n<ion-header>\n\n  <ion-navbar>\n    <ion-title>pay</ion-title>\n  </ion-navbar>\n\n</ion-header>\n\n\n<ion-content padding>\n\n</ion-content>\n'/*ion-inline-end:"D:\xampp\htdocs\codes\ionic\project\myProject\src\pages\pay\pay.html"*/,
          }),
          __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavParams */]])
      ], PayPage);
      return PayPage;
  }());
  
  //# sourceMappingURL=pay.js.map
  
  /***/ }),
  
  /***/ 207:
  /***/ (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__(208);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app_module__ = __webpack_require__(228);
  
  
  Object(__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__["a" /* platformBrowserDynamic */])().bootstrapModule(__WEBPACK_IMPORTED_MODULE_1__app_module__["a" /* AppModule */]);
  //# sourceMappingURL=main.js.map
  
  /***/ }),
  
  /***/ 228:
  /***/ (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_platform_browser__ = __webpack_require__(31);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(0);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_ionic_angular__ = __webpack_require__(12);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_common_http__ = __webpack_require__(41);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__app_component__ = __webpack_require__(275);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__pages_home_home__ = __webpack_require__(103);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__pages_list_list__ = __webpack_require__(204);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__ionic_native_status_bar__ = __webpack_require__(200);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__ionic_native_splash_screen__ = __webpack_require__(203);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__pages_index__ = __webpack_require__(104);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__pages_detail_detail__ = __webpack_require__(105);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__pages_cart_cart__ = __webpack_require__(52);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__pages_login_login__ = __webpack_require__(53);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__pages_order_confirm_order_confirm__ = __webpack_require__(205);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__pages_pay_pay__ = __webpack_require__(206);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__pages_user_center_user_center__ = __webpack_require__(106);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__pages_not_found_not_found__ = __webpack_require__(51);
  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 = /** @class */ (function () {
      function AppModule() {
      }
      AppModule = __decorate([
          Object(__WEBPACK_IMPORTED_MODULE_1__angular_core__["I" /* NgModule */])({
              declarations: [
                  __WEBPACK_IMPORTED_MODULE_4__app_component__["a" /* MyApp */],
                  __WEBPACK_IMPORTED_MODULE_5__pages_home_home__["a" /* HomePage */],
                  __WEBPACK_IMPORTED_MODULE_6__pages_list_list__["a" /* ListPage */],
                  __WEBPACK_IMPORTED_MODULE_5__pages_home_home__["a" /* HomePage */],
                  __WEBPACK_IMPORTED_MODULE_9__pages_index__["a" /* IndexPage */],
                  __WEBPACK_IMPORTED_MODULE_10__pages_detail_detail__["a" /* DetailPage */],
                  __WEBPACK_IMPORTED_MODULE_11__pages_cart_cart__["a" /* CartPage */],
                  __WEBPACK_IMPORTED_MODULE_12__pages_login_login__["a" /* LoginPage */],
                  __WEBPACK_IMPORTED_MODULE_13__pages_order_confirm_order_confirm__["a" /* OrderConfirmPage */],
                  __WEBPACK_IMPORTED_MODULE_14__pages_pay_pay__["a" /* PayPage */],
                  __WEBPACK_IMPORTED_MODULE_15__pages_user_center_user_center__["a" /* UserCenterPage */],
                  __WEBPACK_IMPORTED_MODULE_16__pages_not_found_not_found__["a" /* NotFoundPage */],
              ],
              imports: [
                  __WEBPACK_IMPORTED_MODULE_3__angular_common_http__["b" /* HttpClientModule */],
                  __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__["a" /* BrowserModule */],
                  __WEBPACK_IMPORTED_MODULE_2_ionic_angular__["c" /* IonicModule */].forRoot(__WEBPACK_IMPORTED_MODULE_4__app_component__["a" /* MyApp */], {}, {
                      links: [
                          { loadChildren: '../pages/home/home.module#HomePageModule', name: 'HomePage', segment: 'home', priority: 'low', defaultHistory: [] },
                          { loadChildren: '../pages/cart/cart.module#CartPageModule', name: 'CartPage', segment: 'cart', priority: 'low', defaultHistory: [] },
                          { loadChildren: '../pages/detail/detail.module#DetailPageModule', name: 'DetailPage', segment: 'detail', priority: 'low', defaultHistory: [] },
                          { loadChildren: '../pages/not-found/not-found.module#NotFoundPageModule', name: 'NotFoundPage', segment: 'not-found', priority: 'low', defaultHistory: [] },
                          { loadChildren: '../pages/index/index.module#IndexPageModule', name: 'IndexPage', segment: 'index', priority: 'low', defaultHistory: [] },
                          { loadChildren: '../pages/order-confirm/order-confirm.module#OrderConfirmPageModule', name: 'OrderConfirmPage', segment: 'order-confirm', priority: 'low', defaultHistory: [] },
                          { loadChildren: '../pages/pay/pay.module#PayPageModule', name: 'PayPage', segment: 'pay', priority: 'low', defaultHistory: [] },
                          { loadChildren: '../pages/login/login.module#LoginPageModule', name: 'LoginPage', segment: 'login', priority: 'low', defaultHistory: [] },
                          { loadChildren: '../pages/user-center/user-center.module#UserCenterPageModule', name: 'UserCenterPage', segment: 'user-center', priority: 'low', defaultHistory: [] }
                      ]
                  }),
              ],
              bootstrap: [__WEBPACK_IMPORTED_MODULE_2_ionic_angular__["a" /* IonicApp */]],
              entryComponents: [
                  __WEBPACK_IMPORTED_MODULE_9__pages_index__["a" /* IndexPage */],
                  __WEBPACK_IMPORTED_MODULE_10__pages_detail_detail__["a" /* DetailPage */],
                  __WEBPACK_IMPORTED_MODULE_11__pages_cart_cart__["a" /* CartPage */],
                  __WEBPACK_IMPORTED_MODULE_12__pages_login_login__["a" /* LoginPage */],
                  __WEBPACK_IMPORTED_MODULE_13__pages_order_confirm_order_confirm__["a" /* OrderConfirmPage */],
                  __WEBPACK_IMPORTED_MODULE_14__pages_pay_pay__["a" /* PayPage */],
                  __WEBPACK_IMPORTED_MODULE_15__pages_user_center_user_center__["a" /* UserCenterPage */],
                  __WEBPACK_IMPORTED_MODULE_16__pages_not_found_not_found__["a" /* NotFoundPage */],
                  __WEBPACK_IMPORTED_MODULE_5__pages_home_home__["a" /* HomePage */],
                  __WEBPACK_IMPORTED_MODULE_4__app_component__["a" /* MyApp */],
                  __WEBPACK_IMPORTED_MODULE_5__pages_home_home__["a" /* HomePage */],
                  __WEBPACK_IMPORTED_MODULE_6__pages_list_list__["a" /* ListPage */]
              ],
              providers: [
                  __WEBPACK_IMPORTED_MODULE_7__ionic_native_status_bar__["a" /* StatusBar */],
                  __WEBPACK_IMPORTED_MODULE_8__ionic_native_splash_screen__["a" /* SplashScreen */],
                  { provide: __WEBPACK_IMPORTED_MODULE_1__angular_core__["u" /* ErrorHandler */], useClass: __WEBPACK_IMPORTED_MODULE_2_ionic_angular__["b" /* IonicErrorHandler */] }
              ]
          })
      ], AppModule);
      return AppModule;
  }());
  
  //# sourceMappingURL=app.module.js.map
  
  /***/ }),
  
  /***/ 275:
  /***/ (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__(12);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__ionic_native_status_bar__ = __webpack_require__(200);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__ = __webpack_require__(203);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__pages_home_home__ = __webpack_require__(103);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__pages_list_list__ = __webpack_require__(204);
  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 MyApp = /** @class */ (function () {
      function MyApp(platform, statusBar, splashScreen) {
          this.platform = platform;
          this.statusBar = statusBar;
          this.splashScreen = splashScreen;
          this.rootPage = __WEBPACK_IMPORTED_MODULE_4__pages_home_home__["a" /* HomePage */];
          this.initializeApp();
          // used for an example of ngFor and navigation
          this.pages = [
              { title: 'Home', component: __WEBPACK_IMPORTED_MODULE_4__pages_home_home__["a" /* HomePage */] },
              { title: 'List', component: __WEBPACK_IMPORTED_MODULE_5__pages_list_list__["a" /* ListPage */] }
          ];
      }
      MyApp.prototype.initializeApp = function () {
          var _this = this;
          this.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.
              _this.statusBar.styleDefault();
              _this.splashScreen.hide();
          });
      };
      MyApp.prototype.openPage = function (page) {
          // Reset the content nav to have just this page
          // we wouldn't want the back button to show in this scenario
          this.nav.setRoot(page.component);
      };
      __decorate([
          Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["_8" /* ViewChild */])(__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* Nav */]),
          __metadata("design:type", __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* Nav */])
      ], MyApp.prototype, "nav", void 0);
      MyApp = __decorate([
          Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({template:/*ion-inline-start:"D:\xampp\htdocs\codes\ionic\project\myProject\src\app\app.html"*/'<ion-menu [content]="content">\n  <ion-header>\n    <ion-toolbar>\n      <ion-title>Menu</ion-title>\n    </ion-toolbar>\n  </ion-header>\n\n  <ion-content>\n    <ion-list>\n      <button menuClose ion-item *ngFor="let p of pages" (click)="openPage(p)">\n        {{p.title}}\n      </button>\n    </ion-list>\n  </ion-content>\n\n</ion-menu>\n\n<!-- Disable swipe-to-go-back because it\'s poor UX to combine STGB with side menus -->\n<ion-nav [root]="rootPage" #content swipeBackEnabled="false"></ion-nav>'/*ion-inline-end:"D:\xampp\htdocs\codes\ionic\project\myProject\src\app\app.html"*/
          }),
          __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["h" /* Platform */], __WEBPACK_IMPORTED_MODULE_2__ionic_native_status_bar__["a" /* StatusBar */], __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__["a" /* SplashScreen */]])
      ], MyApp);
      return MyApp;
  }());
  
  //# sourceMappingURL=app.component.js.map
  
  /***/ }),
  
  /***/ 51:
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return NotFoundPage; });
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(12);
  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);
  };
  
  
  /**
   * Generated class for the NotFoundPage page.
   *
   * See https://ionicframework.com/docs/components/#navigation for more info on
   * Ionic pages and navigation.
   */
  var NotFoundPage = /** @class */ (function () {
      function NotFoundPage(navCtrl, navParams) {
          this.navCtrl = navCtrl;
          this.navParams = navParams;
      }
      NotFoundPage.prototype.ionViewDidLoad = function () {
          console.log('ionViewDidLoad NotFoundPage');
      };
      NotFoundPage = __decorate([
          Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
              selector: 'page-not-found',template:/*ion-inline-start:"D:\xampp\htdocs\codes\ionic\project\myProject\src\pages\not-found\not-found.html"*/'<!--\n  Generated template for the NotFoundPage page.\n\n  See http://ionicframework.com/docs/components/#navigation for more info on\n  Ionic pages and navigation.\n-->\n<ion-header>\n\n  <ion-navbar>\n    <ion-title>not-found</ion-title>\n  </ion-navbar>\n\n</ion-header>\n\n\n<ion-content padding>\n\n</ion-content>\n'/*ion-inline-end:"D:\xampp\htdocs\codes\ionic\project\myProject\src\pages\not-found\not-found.html"*/,
          }),
          __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavParams */]])
      ], NotFoundPage);
      return NotFoundPage;
  }());
  
  //# sourceMappingURL=not-found.js.map
  
  /***/ }),
  
  /***/ 52:
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CartPage; });
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(12);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_common_http__ = __webpack_require__(41);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__login_login__ = __webpack_require__(53);
  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);
  };
  
  
  
  
  /**
   * Generated class for the CartPage page.
   *
   * See https://ionicframework.com/docs/components/#navigation for more info on
   * Ionic pages and navigation.
   */
  var CartPage = /** @class */ (function () {
      function CartPage(myHttp, navCtrl, navParams) {
          this.myHttp = myHttp;
          this.navCtrl = navCtrl;
          this.navParams = navParams;
          this.myList = [];
          this.isAllSelected = false;
      }
      CartPage.prototype.ionViewDidLoad = function () {
          console.log('ionViewDidLoad CartPage');
      };
      CartPage.prototype.ionViewWillEnter = function () {
          var _this = this;
          //请求购物车列表
          var url = "http://localhost:8080/cart/list";
          this.myHttp.get(url, { withCredentials: true }).subscribe(function (result) {
              console.log(result);
              if (result.code == 300) {
                  _this.navCtrl.push(__WEBPACK_IMPORTED_MODULE_3__login_login__["a" /* LoginPage */]);
              }
              else if (result.code == 200) {
                  console.log("购物车列表获取成功", result);
                  _this.myList = result.data;
                  // 遍历this.myList数组，给每一个对象添加一个属性isSelected来记录是否被选中
                  for (var i = 0; i < _this.myList.length; i++) {
                      _this.myList[i].isSelected = false;
                  }
              }
          });
      };
      //当全选的复选框被操作的时候，来执行该方法
      CartPage.prototype.operateAll = function () {
          for (var i = 0; i < this.myList.length; i++) {
              this.myList[i].isSelected = this.isAllSelected;
          }
      };
      CartPage.prototype.operateSingle = function () {
          var result = true;
          for (var i = 0; i < this.myList.length; i++) {
              result = result && this.myList[i].isSelected;
          }
          this.isAllSelected = result;
      };
      CartPage.prototype.calcAll = function () {
          var totalPrice = 0;
          for (var i = 0; i < this.myList.length; i++) {
              if (this.myList[i].isSelected) {
                  totalPrice += (this.myList[i].price * this.myList[i].count);
              }
          }
          return totalPrice;
      };
      CartPage = __decorate([
          Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
              selector: 'page-cart',template:/*ion-inline-start:"D:\xampp\htdocs\codes\ionic\project\myProject\src\pages\cart\cart.html"*/'<!--\n  Generated template for the CartPage page.\n\n  See http://ionicframework.com/docs/components/#navigation for more info on\n  Ionic pages and navigation.\n-->\n<ion-header>\n\n  <ion-navbar>\n    <ion-title>cart</ion-title>\n  </ion-navbar>\n\n</ion-header>\n\n\n<ion-content padding>\n  <!-- myList数组长度为0 -->\n  <div *ngIf="myList.length==0" style="text-align: center;">\n    <img src="../../assets/img//404/404_img2.png" alt="">\n    <h1>购物车为空</h1>\n    <button ion-button block color="secondary">逛逛去</button>\n  </div>\n  <!-- myList数组长度大于0 -->\n  <ion-list>\n    <ion-item *ngFor="let tmp of myList">\n      <ion-checkbox item-start [(ngModel)]="tmp.isSelected" (ngModelChange)="operateSingle()"></ion-checkbox>\n      <ion-thumbnail item-end>\n        <ion-grid>\n          <ion-row>\n            <ion-col col-3>\n              <img [src]="\'../../assets/\'+tmp.pic" alt="">\n            </ion-col>\n            <ion-col>\n              <h4>{{tmp.title}}</h4>\n              <p style="color:red;">{{tmp.price | currency:\'CNY\'}}</p>\n              <button>-</button>\n              <span>{{tmp.count}}</span>\n              <button>+</button>\n            </ion-col>\n          </ion-row>\n        </ion-grid>\n      </ion-thumbnail>\n\n    </ion-item>\n  </ion-list>\n</ion-content>\n<ion-footer>\n  <!-- 全选的复选框和结算按钮 -->\n  <ion-grid>\n    <ion-row align-items-center>\n      <ion-col col-2 style="text-align: center;">\n        <ion-checkbox [(ngModel)]="isAllSelected" (ngModelChange)="operateAll()">\n        </ion-checkbox>\n      </ion-col>\n      <ion-col>\n        全选 本次消费{{calcAll()}}\n      </ion-col>\n      <ion-col>\n        <button ion-button block color="danger">去结算</button>\n      </ion-col>\n    </ion-row>\n  </ion-grid>\n</ion-footer>'/*ion-inline-end:"D:\xampp\htdocs\codes\ionic\project\myProject\src\pages\cart\cart.html"*/,
          }),
          __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_2__angular_common_http__["a" /* HttpClient */],
              __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavParams */]])
      ], CartPage);
      return CartPage;
  }());
  
  //# sourceMappingURL=cart.js.map
  
  /***/ }),
  
  /***/ 53:
  /***/ (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__(12);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_common_http__ = __webpack_require__(41);
  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);
  };
  
  
  
  /**
   * Generated class for the LoginPage page.
   *
   * See https://ionicframework.com/docs/components/#navigation for more info on
   * Ionic pages and navigation.
   */
  var LoginPage = /** @class */ (function () {
      function LoginPage(toastCtrl, myHttp, navCtrl, navParams) {
          this.toastCtrl = toastCtrl;
          this.myHttp = myHttp;
          this.navCtrl = navCtrl;
          this.navParams = navParams;
          this.myName = ""; //输入框用户名
          this.myPwd = ""; //输入框密码
      }
      LoginPage.prototype.ionViewDidLoad = function () {
          console.log('ionViewDidLoad LoginPage');
      };
      LoginPage.prototype.doLogin = function () {
          var _this = this;
          //获取当前的 用户名和密码
          console.log(this.myName);
          console.log(this.myPwd);
          // 发送一次post请求，验证用户名和密码是否正确
          var url = "http://localhost:8080/user/login";
          this.myHttp.post(url, { uname: this.myName, upwd: this.myPwd }, { withCredentials: true }).subscribe(function (result) {
              console.log(result);
              if (result.code == 200) {
                  //登录成功，返回上一页
                  _this.navCtrl.pop();
              }
              else {
                  //登陆失败，显示一个toast
                  _this.toastCtrl.create({
                      message: "用户名或密码错误",
                      duration: 2000
                  }).present();
              }
          });
      };
      LoginPage = __decorate([
          Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
              selector: 'page-login',template:/*ion-inline-start:"D:\xampp\htdocs\codes\ionic\project\myProject\src\pages\login\login.html"*/'<!--\n  Generated template for the LoginPage page.\n\n  See http://ionicframework.com/docs/components/#navigation for more info on\n  Ionic pages and navigation.\n-->\n<ion-header>\n\n  <ion-navbar>\n    <ion-title>login</ion-title>\n  </ion-navbar>\n\n</ion-header>\n\n\n<ion-content padding>\n  <!-- 头像 -->\n  <div style="text-align: center;margin: 50px 0px;">\n  <img style="width: 100px;height:100px;border-radius:50%;" src="http://lorempixel.com/200/200/" alt=""></div>\n  <!-- 表单 -->\n  <ion-list>\n    <ion-item>\n      <ion-input type="text" placeholder="用户名" [(ngModel)]="myName"></ion-input>\n    </ion-item>\n    <ion-item>\n      <ion-input placeholder="密码" type="password" [(ngModel)]="myPwd"></ion-input>\n    </ion-item>\n  </ion-list>\n  <!-- 自定义栅格 -->\n  <ion-grid>\n    <ion-row>\n      <ion-col col-6><button ion-button color="dark" clear>免费注册</button></ion-col>\n      <ion-col style="text-align: right" col-6><button ion-button color="dark" clear>忘记密码</button></ion-col>\n    </ion-row>\n  </ion-grid>\n  <!-- 登录 -->\n  <button ion-button color="danger" block round (click)="doLogin()">登录</button>\n</ion-content>\n'/*ion-inline-end:"D:\xampp\htdocs\codes\ionic\project\myProject\src\pages\login\login.html"*/,
          }),
          __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["i" /* ToastController */],
              __WEBPACK_IMPORTED_MODULE_2__angular_common_http__["a" /* HttpClient */],
              __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavParams */]])
      ], LoginPage);
      return LoginPage;
  }());
  
  //# sourceMappingURL=login.js.map
  
  /***/ })
  
  },[207]);
  //# sourceMappingURL=main.js.map