Commit 343808589005ab74bd2dc029e7a789e20aad7d4e

Authored by zhiyangdu
1 parent 93bc80b9

注释下拉刷新

src/pages/myGiftBox/myGiftBox.vue
... ... @@ -28,7 +28,7 @@
28 28 </van-tabs>
29 29 </div>
30 30 <!--下拉刷新-->
31   - <van-pull-refresh v-model="isLoading" @refresh="onRefresh">
  31 + <!-- <van-pull-refresh v-model="isLoading" @refresh="onRefresh"> -->
32 32 <!--内容-->
33 33 <div class="item_box">
34 34 <div
... ... @@ -66,7 +66,7 @@
66 66 </div>
67 67 </div>
68 68 </div>
69   - </van-pull-refresh>
  69 + <!-- </van-pull-refresh> -->
70 70 <!-- 弹出框 -->
71 71 <van-popup position="bottom" v-model="actionSheetShow">
72 72 <van-picker
... ... @@ -170,26 +170,26 @@ export default {
170 170 },
171 171 methods: {
172 172 //下拉刷新时会触发 refresh 事件
173   - onRefresh() {
174   - setTimeout(() => {
175   - Toast("刷新成功");
176   - this.isLoading = false;
177   - // 初始化页脚
178   - this.receivingGifts.pages = 1;
179   - this.giftGiving.pages = 1
180   - if (this.active == 0) {
181   - // 收礼订单列表
182   - this.getorderGiftList();
183   - // 调用im是否显示隐藏1显示im聊天弹窗0不显示
184   - this.setGiftBottomVisibleBySwitchTab(0);
185   - } else {
186   - // 调用im是否显示隐藏1显示im聊天弹窗0不显示
187   - this.setGiftBottomVisibleBySwitchTab(1);
188   - // 送礼订单列表
189   - this.getorderGiveGiftList();
190   - }
191   - }, 1000);
192   - },
  173 + // onRefresh() {
  174 + // setTimeout(() => {
  175 + // // Toast("刷新成功");
  176 + // this.isLoading = false;
  177 + // // 初始化页脚
  178 + // this.receivingGifts.pages = 1;
  179 + // this.giftGiving.pages = 1
  180 + // if (this.active == 0) {
  181 + // // 收礼订单列表
  182 + // this.getorderGiftList();
  183 + // // 调用im是否显示隐藏1显示im聊天弹窗0不显示
  184 + // this.setGiftBottomVisibleBySwitchTab(0);
  185 + // } else {
  186 + // // 调用im是否显示隐藏1显示im聊天弹窗0不显示
  187 + // this.setGiftBottomVisibleBySwitchTab(1);
  188 + // // 送礼订单列表
  189 + // this.getorderGiveGiftList();
  190 + // }
  191 + // }, 1000);
  192 + // },
193 193 /**
194 194 * tab切换
195 195 */
... ...