heyang 3 anni fa
parent
commit
1159e671b2
1 ha cambiato i file con 26 aggiunte e 23 eliminazioni
  1. 26 23
      microserviceUserH5/vcloud/browserDetail.html

+ 26 - 23
microserviceUserH5/vcloud/browserDetail.html

@@ -89,29 +89,30 @@
 	};
 	function getType() {
 		return new Promise((resolve, reject) => {
-			$.ajax({
-				url: `http://localhost:9888/getType`,
-				type: 'get',
-				contentType:"application/json",
-				dataType: 'json',
-				cache: false,
-				success: function (res) {
-					if(res.code === 200){
-						let cardType = res.data.devType;
-						let phoneObj = {
-							'VIRTUAL_RK3399': 'VIP',
-							'RK_3399': 'SVIP',
-							'MTK_G90': 'STAR',
-							'QUALCOMM': 'STARPRO'
-						}
-						phoneType = phoneObj[cardType];
-						resolve(phoneType);
-					}
-				}
-			})
+			resolve('SVIP');
+			// $.ajax({
+			// 	url: `http://localhost:9888/getType`,
+			// 	type: 'get',
+			// 	contentType:"application/json",
+			// 	dataType: 'json',
+			// 	cache: false,
+			// 	success: function (res) {
+			// 		if(res.code === 200){
+			// 			let cardType = res.data.devType;
+			// 			let phoneObj = {
+			// 				'VIRTUAL_RK3399': 'VIP',
+			// 				'RK_3399': 'SVIP',
+			// 				'MTK_G90': 'STAR',
+			// 				'QUALCOMM': 'STARPRO'
+			// 			}
+			// 			phoneType = phoneObj[cardType];
+			// 			resolve(phoneType);
+			// 		}
+			// 	}
+			// })
 		})
 	}
-	function rankingGet(){
+	function rankingGet(type){
 		getType().then((phoneType) => {
 			$.ajax({
 				url: `${baseUrl}/api/public/v1/ranking/client/get`,
@@ -132,7 +133,9 @@
 						total = res.data.total;
 						recordFlag = true;
 						let node = '';
-						$('.download-content').eq(0).text('');
+						if(type != 'down'){
+							$('.download-content').eq(0).text('');
+						}
 						for(let i=0; i < list.length; i++){
 							node += `<div class="download-item">
 										<div class="main-wrap">
@@ -265,7 +268,7 @@
 			if(recordFlag && nowlength < total && total > 0){
 				recordFlag = false;
 				pageNum++;
-				rankingGet();
+				rankingGet('down');
 			}
 		}
 	});