|
@@ -43,6 +43,13 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
<script type="text/javascript">
|
|
|
|
+ document.addEventListener("visibilitychange",()=>{
|
|
|
|
+ if(document.hidden){
|
|
|
|
+ init();
|
|
|
|
+ }else{
|
|
|
|
+ init();
|
|
|
|
+ }
|
|
|
|
+ })
|
|
let title = decodeURIComponent(GetRequest().plateName);
|
|
let title = decodeURIComponent(GetRequest().plateName);
|
|
let timer,flag = true;
|
|
let timer,flag = true;
|
|
let labelId = '', pageNum = 1, pageSize = 10, index = 0, recordFlag = true, total = 0, nowlength = 0, isLoading = false;
|
|
let labelId = '', pageNum = 1, pageSize = 10, index = 0, recordFlag = true, total = 0, nowlength = 0, isLoading = false;
|
|
@@ -51,11 +58,6 @@
|
|
init();
|
|
init();
|
|
})();
|
|
})();
|
|
function init(){
|
|
function init(){
|
|
- // if(nowlength === 0) {
|
|
|
|
- // stopManyClick(() => {
|
|
|
|
- // toastr.error('加载中...');
|
|
|
|
- // })
|
|
|
|
- // }
|
|
|
|
$.ajax({
|
|
$.ajax({
|
|
url: `${baseUrl}/api/public/v1/browserLabel/client/query/${GetRequest().plateId}`,
|
|
url: `${baseUrl}/api/public/v1/browserLabel/client/query/${GetRequest().plateId}`,
|
|
type: 'get',
|
|
type: 'get',
|
|
@@ -95,9 +97,10 @@
|
|
if(res.code === 200){
|
|
if(res.code === 200){
|
|
let cardType = res.data.devType;
|
|
let cardType = res.data.devType;
|
|
let phoneObj = {
|
|
let phoneObj = {
|
|
- 'VIRTUAL': 'VIP',
|
|
|
|
|
|
+ 'VIRTUAL_RK3399': 'VIP',
|
|
'RK_3399': 'SVIP',
|
|
'RK_3399': 'SVIP',
|
|
- 'MTK_G90': 'STAR'
|
|
|
|
|
|
+ 'MTK_G90': 'STAR',
|
|
|
|
+ 'QUALCOMM': 'STARPRO'
|
|
}
|
|
}
|
|
phoneType = phoneObj[cardType];
|
|
phoneType = phoneObj[cardType];
|
|
resolve(phoneType);
|
|
resolve(phoneType);
|
|
@@ -172,19 +175,35 @@
|
|
labelId = e.target.dataset.id;
|
|
labelId = e.target.dataset.id;
|
|
let className = e.target.className;
|
|
let className = e.target.className;
|
|
if(className.includes('tag-item')){
|
|
if(className.includes('tag-item')){
|
|
- pageNum = 1;
|
|
|
|
- nowlength = 0;
|
|
|
|
- total = 0;
|
|
|
|
- // stopManyClick(() => {
|
|
|
|
- // toastr.error('加载中...');
|
|
|
|
- // })
|
|
|
|
- $('.loading').eq(0).text('');
|
|
|
|
- $('.tag-item')[index].className = 'tag-item';
|
|
|
|
- index = e.target.dataset.index;
|
|
|
|
- $('.tag-item')[index].className = 'tag-item active';
|
|
|
|
- rankingGet();
|
|
|
|
|
|
+ isGetStatus(labelId)
|
|
}
|
|
}
|
|
},false);
|
|
},false);
|
|
|
|
+ // 验证是否下架
|
|
|
|
+ function isGetStatus(id) {
|
|
|
|
+ $.ajax({
|
|
|
|
+ url: `${baseUrl}/api/public/v1/browserLabel/getStatus/${id}`,
|
|
|
|
+ type: 'get',
|
|
|
|
+ contentType:"application/json",
|
|
|
|
+ dataType: 'json',
|
|
|
|
+ cache: false,
|
|
|
|
+ success: function (res) {
|
|
|
|
+ if(res.status === 0){
|
|
|
|
+ pageNum = 1;
|
|
|
|
+ nowlength = 0;
|
|
|
|
+ total = 0;
|
|
|
|
+ $('.loading').eq(0).text('');
|
|
|
|
+ $('.tag-item')[index].className = 'tag-item';
|
|
|
|
+ index = e.target.dataset.index;
|
|
|
|
+ $('.tag-item')[index].className = 'tag-item active';
|
|
|
|
+ rankingGet();
|
|
|
|
+ } else {
|
|
|
|
+ stopManyClick(() => {
|
|
|
|
+ toastr.error(res.msg);
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
// 点击下载按钮
|
|
// 点击下载按钮
|
|
$('.download-wrap')[0].addEventListener('click',(e)=>{
|
|
$('.download-wrap')[0].addEventListener('click',(e)=>{
|
|
let key = e.target.dataset.key;
|
|
let key = e.target.dataset.key;
|
|
@@ -219,25 +238,6 @@
|
|
}
|
|
}
|
|
}, false);
|
|
}, false);
|
|
xhr.send();
|
|
xhr.send();
|
|
- // var formData = new FormData();
|
|
|
|
- // formData.append("file",$("#photo")[0].files[0]);
|
|
|
|
- // $.ajax({
|
|
|
|
- // url: `${baseUrl}/document/file/breakUpload`,
|
|
|
|
- // type: 'post',
|
|
|
|
- // headers: {
|
|
|
|
- // 'file-access-key': '3dn9b4585511476691c6',
|
|
|
|
- // 'md5': md5
|
|
|
|
- // },
|
|
|
|
- // data: formData,
|
|
|
|
- // contentType: false,
|
|
|
|
- // processData: false,
|
|
|
|
- // cache: false,
|
|
|
|
- // success: function (res) {
|
|
|
|
- // console.log(res)
|
|
|
|
- // if(res.status === 0){
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
- // })
|
|
|
|
} else {
|
|
} else {
|
|
stopManyClick(() => {
|
|
stopManyClick(() => {
|
|
toastr.error(res.msg);
|
|
toastr.error(res.msg);
|