|
|
@@ -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) {
|