jwyu 2 سال پیش
والد
کامیت
84b801fa14
2فایلهای تغییر یافته به همراه12 افزوده شده و 5 حذف شده
  1. 4 0
      pages-report/reportDetail.vue
  2. 8 5
      utils/request.js

+ 4 - 0
pages-report/reportDetail.vue

@@ -24,11 +24,15 @@ export default {
     },
     methods: {
         async init(options){
+            console.log('options',options);
             if(options.scene){
                 const res=await apiGetSceneToParams({scene_key:options.scene})
                 if(res.code==200){
+                    console.log(res);
                     const obj=JSON.parse(res.data)
+                    console.log(obj);
                     options.reportId=obj.reportId
+                    console.log(options);
                 }
             }
 

+ 8 - 5
utils/request.js

@@ -78,12 +78,15 @@ const refreshToken=async (url,params,method,resolve)=>{
 let LOADINGCOUNT = 0;// 请求数
 const http=(url,params,method)=>{
 	// 设置loading
-	if (LOADINGCOUNT === 0) {
-	  uni.showLoading({
-	  	title:'加载中...'
-	  })
+	if(url!='/public/get_share_poster'){
+		if (LOADINGCOUNT === 0) {
+			uni.showLoading({
+				title:'加载中...'
+			})
+		}
+		LOADINGCOUNT++;
 	}
-	LOADINGCOUNT++;
+	
 	
 	return new Promise((resolve,reject)=>{
 		uni.request({