heyang 3 years ago
parent
commit
946f24b67c
1 changed files with 1 additions and 18 deletions
  1. 1 18
      microserviceUserH5/vcloud/maJiaBaoGoApp.html

+ 1 - 18
microserviceUserH5/vcloud/maJiaBaoGoApp.html

@@ -82,7 +82,7 @@
 				cache: false,
 				success: function (res) {
 					if(res.status === 0){
-						downloadApp();
+						window.location.href = baseUrl + '/file-center/fileOperate/downloadFile?id=169403';
 					}else{
 						stopManyClick(() =>{
 							toastr.error(res.msg)
@@ -91,23 +91,6 @@
 				},
 			})
 		}
-		//下载文件
-		function downloadApp(){
-			$.ajax({
-				url: baseUrl + '/file-center/fileOperate/downloadFile?id=169403',
-				type: 'get',
-				contentType: "application/json",
-				dataType: 'json',
-				cache: false,
-				success: function (res) {
-					if(res.status !== 0){
-						stopManyClick(() =>{
-							toastr.error(res.msg)
-						})
-					}
-				},
-			})
-		}
 		//防止提示一秒内重复显示
 		function stopManyClick(fn) {
 			if (flag) {