Commit f1c9f32534ccef04d7881ccb6eebfd30928c4e16

Authored by zhiyangdu
1 parent 51d4e321

页脚大于1的时候展示已经全部加载完毕

src/pages/myGiftBox/myGiftBox.vue
@@ -49,7 +49,8 @@ @@ -49,7 +49,8 @@
49 > 49 >
50 </giftGivingItem> 50 </giftGivingItem>
51 <!-- 没有更多了 --> 51 <!-- 没有更多了 -->
52 - <div class="tip_text">{{ this.tipText }}</div> 52 + <div v-if="active==0" class="tip_text">{{this.receivingGifts.tipText }}</div>
  53 + <div v-else class="tip_text">{{this.giftGiving.tipText }}</div>
53 </div> 54 </div>
54 </div> 55 </div>
55 <!-- 弹出框 --> 56 <!-- 弹出框 -->
@@ -97,16 +98,18 @@ export default { @@ -97,16 +98,18 @@ export default {
97 receivingGifts: { 98 receivingGifts: {
98 // 收礼 99 // 收礼
99 loading: false, // 加载 100 loading: false, // 加载
100 - pages: 1 // 分页 101 + pages: 1, // 分页
  102 + tipText:null // 数据加载完提示
101 }, 103 },
102 giftGivingItem: null, // 送礼列表页数据 104 giftGivingItem: null, // 送礼列表页数据
103 giftsRuleUrl: null, // 礼物规则URL 105 giftsRuleUrl: null, // 礼物规则URL
104 giftGiving: { 106 giftGiving: {
105 // 送礼 107 // 送礼
106 loading: false, // 加载 108 loading: false, // 加载
107 - pages: 1 // 分页 109 + pages: 1, // 分页
  110 + tipText:null // 数据加载完提示
108 }, 111 },
109 - tipText: null, // 是否已加载完 112 + // tipText: null, // 是否已加载完
110 actionSheetShow: false, 113 actionSheetShow: false,
111 orderOperation: { 114 orderOperation: {
112 // 存取取消订单的信息 115 // 存取取消订单的信息
@@ -252,7 +255,6 @@ export default { @@ -252,7 +255,6 @@ export default {
252 * 获取收礼礼物列表 255 * 获取收礼礼物列表
253 */ 256 */
254 getorderGiftList(initPage) { 257 getorderGiftList(initPage) {
255 - console.log(initPage)  
256 console.log(this.receivingGifts.pages) 258 console.log(this.receivingGifts.pages)
257 this.receivingGifts.loading = true; 259 this.receivingGifts.loading = true;
258 // 加载中提示 260 // 加载中提示
@@ -305,8 +307,11 @@ export default { @@ -305,8 +307,11 @@ export default {
305 this.$set(this, "receivingGiftsInfo", datas.list); 307 this.$set(this, "receivingGiftsInfo", datas.list);
306 } 308 }
307 }else{ 309 }else{
308 - this.this.receivingGifts.pages = 1; // 数据为空时页脚从1开始计算  
309 - this.tipText = "已经全部加载完毕"; //提示全部加载为空 310 + // this.receivingGifts.pages = 1; // 数据为空时页脚从1开始计算
  311 + if(this.receivingGifts.pages>1){
  312 + this.receivingGifts.tipText = "已经全部加载完毕"; //提示全部加载为空
  313 + }
  314 + console.log(this.tipText)
310 } 315 }
311 /* 获取达人动态数据 结束 */ 316 /* 获取达人动态数据 结束 */
312 } else if (res.code == 400) { 317 } else if (res.code == 400) {
@@ -431,8 +436,11 @@ export default { @@ -431,8 +436,11 @@ export default {
431 this.$set(this, "giftGivingItem", datas.list); 436 this.$set(this, "giftGivingItem", datas.list);
432 } 437 }
433 }else{ 438 }else{
434 - this.giftGiving.pages = 1;// 数据为空时设置分页数为1  
435 - this.tipText = "已经全部加载完毕"; //提示全部加载为空 439 + // this.giftGiving.pages = 1;// 数据为空时设置分页数为1
  440 + if(this.giftGiving.pages>1){
  441 + this.giftGiving.tipText = "已经全部加载完毕"; //提示全部加载为空
  442 + }
  443 + // this.tipText = "已经全部加载完毕"; //提示全部加载为空
436 } 444 }
437 /* 获取送礼订单列表 结束 */ 445 /* 获取送礼订单列表 结束 */
438 } else if (res.code == 400) { 446 } else if (res.code == 400) {