Commit d943b6e3db0bdbdc968598af981315e4b3f564c6

Authored by zhiyangdu
1 parent 0f3a5079

接口调用优化

src/pages/myGiftBox/myGiftBox.vue
... ... @@ -63,17 +63,12 @@ export default {
63 63 created() {
64 64 // 收礼订单列表
65 65 this.getorderGiftList();
  66 + // 送礼订单列表
  67 + this.getorderGiveGiftList();
66 68 },
67 69 methods: {
68 70 onTap(active) {
69 71 this.active = active;
70   - if (this.active != 1 && this.active == 0) {
71   - // 收礼订单列表
72   - this.getorderGiftList();
73   - } else {
74   - // 送礼订单列表
75   - this.getorderGiveGiftList();
76   - }
77 72 },
78 73 /**
79 74 * 获取收礼礼物列表
... ...