Commit 21b00a1e authored by wangqinghua's avatar wangqinghua

商品更新

parent 20e7f987
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div *ngIf="isEdu" class="signMask" (click)="closeEdu()"> <div *ngIf="isEdu" class="signMask" (click)="closeEdu()">
<div class="mask-content-edu" (click)="stop($event)"> <div class="mask-content-edu" (click)="stop($event)">
<div class="bgc_edu"> <div class="bgc_edu">
<img src="./assets/imgs/home/edu_mask.png" alt=""> <img src="./assets/imgs/home/edu_banner.png" alt="">
</div> </div>
<ion-icon class="close" name="close"></ion-icon> <ion-icon class="close" name="close"></ion-icon>
</div> </div>
......
...@@ -87,7 +87,8 @@ export class GoodsCartPage { ...@@ -87,7 +87,8 @@ export class GoodsCartPage {
this.serveSer.shoppingCar(data).subscribe( this.serveSer.shoppingCar(data).subscribe(
(res) => { (res) => {
this.cartList = res.list; this.cartList = res.list;
this.isLoad = false; this.page.total = res.total;
this.page.loadMore = false;
this.cartList.forEach(e => { this.cartList.forEach(e => {
e.checkbox = false; e.checkbox = false;
}) })
...@@ -98,7 +99,6 @@ export class GoodsCartPage { ...@@ -98,7 +99,6 @@ export class GoodsCartPage {
//下拉刷新 //下拉刷新
doRefresh(e) { doRefresh(e) {
this.page.loadMore = true; this.page.loadMore = true;
this.infiniteScrollContent.inf.enable(true);
const data = { const data = {
P_pageNumber: 1, P_pageNumber: 1,
P_pageSize: this.page.P_pageSize, P_pageSize: this.page.P_pageSize,
...@@ -107,7 +107,8 @@ export class GoodsCartPage { ...@@ -107,7 +107,8 @@ export class GoodsCartPage {
this.serveSer.shoppingCar(data).subscribe( this.serveSer.shoppingCar(data).subscribe(
(res) => { (res) => {
this.cartList = res.list; this.cartList = res.list;
this.page.total = res.data.total; this.page.total = res.total;
this.page.loadMore = false;
timer(800).subscribe(() => { timer(800).subscribe(() => {
this.commonSer.toast('刷新成功'); this.commonSer.toast('刷新成功');
e.complete() e.complete()
...@@ -129,9 +130,9 @@ export class GoodsCartPage { ...@@ -129,9 +130,9 @@ export class GoodsCartPage {
P_pageSize: this.page.P_pageSize, P_pageSize: this.page.P_pageSize,
status: 1 status: 1
}; };
this.serveSer.searchCheckList(data).subscribe( this.serveSer.shoppingCar(data).subscribe(
(res) => { (res) => {
this.page.total = res.data.total; this.page.total = res.total;
res.list.forEach(e => { res.list.forEach(e => {
this.cartList.push(e); this.cartList.push(e);
}); });
......
...@@ -151,9 +151,7 @@ export class GoodsCollectPage { ...@@ -151,9 +151,7 @@ export class GoodsCollectPage {
//加载更多 //加载更多
doInfinite(e) { doInfinite(e) {
console.log("doInfinite")
if (this.totalNum == this.goodsList.length) { if (this.totalNum == this.goodsList.length) {
console.log("没有更多了")
this.loadMore = false; this.loadMore = false;
e.enable(false); e.enable(false);
return false; return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment