heyang 3 lat temu
rodzic
commit
b2593afc4f

+ 4 - 0
microserviceUserH5/static/css/browserDetail.css

@@ -130,8 +130,12 @@ input{
   color: #333333;
 }
 .app-description{
+  width: 3.6rem;
   font-size: 0.26rem;
   color: #666666;
+  white-space:nowrap;
+  overflow:hidden;
+  text-overflow:ellipsis;
 }
 .btn-wrap{
   position: relative;

+ 1 - 1
microserviceUserH5/static/js/vender/config.js

@@ -1,7 +1,7 @@
 var url = window.location.href;
 url = url.split('/');
 var baseUrl = url[0] + '//' + url[2];
-var baseUrl = 'http://14.18.190.141:24380'
+// var baseUrl = 'http://14.18.190.141:24380'
 // var baseUrl = 'http://prese.phone.androidscloud.com'
 // var baseUrl = 'http://vclusters.imwork.net:2221'
 

+ 1 - 1
microserviceUserH5/vcloud/browser.html

@@ -67,7 +67,7 @@
 				cache: false,
 				success: function (res) {
 					if(res.status === 0){
-						location.href = `./browserDetail.html?plateName=${plateName}&plateId=${id}`;
+						location.href = `./browserDetail.html?plateName=${encodeURIComponent(plateName)}&plateId=${id}`;
 					}
 				}
 			})

+ 30 - 16
microserviceUserH5/vcloud/browserDetail.html

@@ -35,9 +35,8 @@
 		</div>
 		<div class="download-wrap"></div>
 	</div>
-	<!-- <input type="file" name="photo" id="photo" value=""> -->
 <script type="text/javascript">
-	let title = GetRequest().plateName;
+	let title = decodeURIComponent(GetRequest().plateName);
 	let timer,flag = true;
 	let labelId = '', pageNum = 1, pageSize = 10, index = 0;
 	$('.title').eq(0).text(title);
@@ -46,24 +45,35 @@
 	})();
 	function init(){
 		$.ajax({
-				url: `${baseUrl}/api/public/v1/browserLabel/client/query/${GetRequest().plateId}`,
-				type: 'get',
-				contentType:"application/json",
-				dataType: 'json',
-				cache: false,
-				success: function (res) {
-					let list = res.data;
-					labelId = list[0].id;
-					rankingGet();
-					let node = '';
-					for(let i=0; i < list.length; i++){
-						node += `<div class="tag-item ${i === index ? 'active' : ''}" data-id="${list[i].id}" data-index="${i}">${list[i].labelName}</div>`
-					}
-					$('.tag-wrap').eq(0).append(node);
+			url: `${baseUrl}/api/public/v1/browserLabel/client/query/${GetRequest().plateId}`,
+			type: 'get',
+			contentType:"application/json",
+			dataType: 'json',
+			cache: false,
+			success: function (res) {
+				let list = res.data;
+				labelId = list[0].id;
+				rankingGet();
+				let node = '';
+				for(let i=0; i < list.length; i++){
+					node += `<div class="tag-item ${i === index ? 'active' : ''}" data-id="${list[i].id}" data-index="${i}">${list[i].labelName}</div>`
 				}
+				$('.tag-wrap').eq(0).append(node);
+			}
 		})
 	};
 	function rankingGet(){
+		// $.ajax({
+		// 	url: `http://192.168.211.215:9000/getType`,
+		// 	type: 'get',
+		// 	contentType:"application/json",
+		// 	dataType: 'json',
+		// 	cache: false,
+		// 	success: function (res) {
+		// 		console.log(res)
+		// 	}
+		// })
+		// return
 		$.ajax({
 			url: `${baseUrl}/api/public/v1/ranking/client/get`,
 			type: 'post',
@@ -183,6 +193,10 @@
 			})
 		}
 	},false);
+	//点击返回按钮
+	$('.left-arrow')[0].addEventListener('click',()=>{
+		location.href = './browser.html'
+	},false);
 	//防止提示一秒内重复显示
 	function stopManyClick(fn) {
 		if (flag) {