Commit e842bc81ead5cfca440179a17f0016e007c91676

Authored by zhiyangdu
1 parent 6755fb9f

数据优化

src/pages/myGiftBox/myGiftBox.vue
... ... @@ -12,11 +12,15 @@
12 12 <div class="desc">规则说明</div>
13 13 </div>
14 14 <!--内容-->
15   - <div infinite-scroll-immediate-check="true"
16   - v-infinite-scroll="getorderGiftList"
17   - infinite-scroll-disabled="loading"
18   - :infinite-scroll-distance="50">
19   - <giftItem :orderGiftList="orderGiftList"></giftItem>
  15 + <div
  16 + infinite-scroll-immediate-check="true"
  17 + v-infinite-scroll="getorderGiftList"
  18 + infinite-scroll-disabled="loading"
  19 + :infinite-scroll-distance="50"
  20 + >
  21 + <giftItem
  22 + :orderGiftList="orderGiftList"
  23 + ></giftItem>
20 24 </div>
21 25 </div>
22 26 </template>
... ... @@ -30,9 +34,9 @@ export default {
30 34 data() {
31 35 return {
32 36 active: 0,
33   - orderGiftList:null, // 礼物数据
  37 + orderGiftList: null, // 礼物数据
34 38 loading: false, // 加载
35   - pages:0 // 分页
  39 + pages: 0 // 分页
36 40 };
37 41 },
38 42 components: {
... ... @@ -62,7 +66,7 @@ export default {
62 66 uid: this.$route.query.uid, // 用户id
63 67 page: this.pages, // 分页 默认为1 一页20条
64 68 type: 1, // 1 收礼列表 2 送礼列表(送礼已废弃)
65   - status:0, // 0或者不传 全部 1 未填地址 2 未发货 3 已完成 4 已发货
  69 + status: 0 // 0或者不传 全部 1 未填地址 2 未发货 3 已完成 4 已发货
66 70 },
67 71 this.getorderGiftListCallback,
68 72 {
... ... @@ -96,7 +100,7 @@ export default {
96 100 ]);
97 101 } else {
98 102 this.$set(this, "orderGiftList", datas.list);
99   - }
  103 + }
100 104 }
101 105 /* 获取达人动态数据 结束 */
102 106 } else if (res.code == 400) {
... ...