Commit f1c9f32534ccef04d7881ccb6eebfd30928c4e16

Authored by zhiyangdu
1 parent 51d4e321

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

src/pages/myGiftBox/myGiftBox.vue
... ... @@ -49,7 +49,8 @@
49 49 >
50 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 54 </div>
54 55 </div>
55 56 <!-- 弹出框 -->
... ... @@ -97,16 +98,18 @@ export default {
97 98 receivingGifts: {
98 99 // 收礼
99 100 loading: false, // 加载
100   - pages: 1 // 分页
  101 + pages: 1, // 分页
  102 + tipText:null // 数据加载完提示
101 103 },
102 104 giftGivingItem: null, // 送礼列表页数据
103 105 giftsRuleUrl: null, // 礼物规则URL
104 106 giftGiving: {
105 107 // 送礼
106 108 loading: false, // 加载
107   - pages: 1 // 分页
  109 + pages: 1, // 分页
  110 + tipText:null // 数据加载完提示
108 111 },
109   - tipText: null, // 是否已加载完
  112 + // tipText: null, // 是否已加载完
110 113 actionSheetShow: false,
111 114 orderOperation: {
112 115 // 存取取消订单的信息
... ... @@ -252,7 +255,6 @@ export default {
252 255 * 获取收礼礼物列表
253 256 */
254 257 getorderGiftList(initPage) {
255   - console.log(initPage)
256 258 console.log(this.receivingGifts.pages)
257 259 this.receivingGifts.loading = true;
258 260 // 加载中提示
... ... @@ -305,8 +307,11 @@ export default {
305 307 this.$set(this, "receivingGiftsInfo", datas.list);
306 308 }
307 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 317 } else if (res.code == 400) {
... ... @@ -431,8 +436,11 @@ export default {
431 436 this.$set(this, "giftGivingItem", datas.list);
432 437 }
433 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 446 } else if (res.code == 400) {
... ...