Commit 3252b282902b68b8736c8651bba1e2d5c484a3ba

Authored by zhiyangdu
1 parent 36b18a57

优化下拉加载

src/pages/myGiftBox/myGiftBox.vue
... ... @@ -294,8 +294,6 @@ export default {
294 294  
295 295 // 返回处理
296 296 if (res.code == 200) {
297   - // 隐藏加载圈
298   - this.receivingGifts.loading = false;
299 297 // 解构数据
300 298 let { data: datas } = res;
301 299 // is_data是否有赠礼 1 有 0 无
... ... @@ -306,6 +304,8 @@ export default {
306 304 }
307 305 // 设置shopFnsDynamic达人动态数据
308 306 if (datas.list && datas.list.length) {
  307 + // 隐藏加载圈
  308 + this.receivingGifts.loading = false;
309 309 if (this.receivingGifts.pages > 1) {
310 310 this.$set(this, "receivingGiftsInfo", [
311 311 ...this.receivingGiftsInfo,
... ...