Commit 3252b282902b68b8736c8651bba1e2d5c484a3ba

Authored by zhiyangdu
1 parent 36b18a57

优化下拉加载

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