Explorar o código

1.添加loading加载

306132416@qq.com %!s(int64=6) %!d(string=hai) anos
pai
achega
1df2554cc8
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      pages/index/index.vue

+ 2 - 1
pages/index/index.vue

@@ -184,6 +184,7 @@
 						})
 					},
 			getHistory(isShow) {
+				       uni.showLoading({})
 						let that = this;
 						uni.request({
 							url: getApp().globalData.shareUrl, //需要设置为全局
@@ -200,7 +201,7 @@
 								pageSize: 10,
 							},
 							success: res => {
-								that.userHeadUrl = getApp().globalData.user_headUrl;
+                                uni.hideLoading()								
 								if(isShow){
 									res.data.msg[0].isRecharge = 1
 								}