Quellcode durchsuchen

下载应用上报

heyang vor 2 Jahren
Ursprung
Commit
fa77754928
1 geänderte Dateien mit 11 neuen und 0 gelöschten Zeilen
  1. 11 0
      static/microserviceUserH5/vcloud/browserDetail.html

+ 11 - 0
static/microserviceUserH5/vcloud/browserDetail.html

@@ -221,6 +221,7 @@
 		if(className === 'btn-wrap btn-active' || e.target.innerText !== '下载'){
 			return
 		}
+		reportDownload(id);
 		let appName = $('.app-title').eq(index).text();
 		if(['btn-wrap','progress', 'text'].includes(className)){
 			$.ajax({
@@ -281,6 +282,16 @@
 		})
 		
 	}
+	function reportDownload(id){
+		$.ajax({
+			url: `${baseUrl}/api/public/v1/ranking/reportDownload/${id}`,
+			type: 'get',
+			contentType:"application/json",
+			dataType: 'json',
+			cache: false,
+			success: function (res) {}
+		})
+	}
 	//点击返回按钮
 	$('.left-arrow')[0].addEventListener('click',()=>{
 		location.href = './browser.html'