|
@@ -181,7 +181,7 @@ $(function () {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
- function loadDate(pageNo) {
|
|
|
|
|
|
+ function loadDate(pageNo=1) {
|
|
$('.loading').show();
|
|
$('.loading').show();
|
|
$.ajax({
|
|
$.ajax({
|
|
method: "get",
|
|
method: "get",
|
|
@@ -202,10 +202,12 @@ $(function () {
|
|
if(data&&data.error.length){
|
|
if(data&&data.error.length){
|
|
msg(data.error[0].message)
|
|
msg(data.error[0].message)
|
|
};
|
|
};
|
|
|
|
+ /* 销量数组 */
|
|
|
|
+ var xLArr = [12,20,55,16,38,20,16,29,26,20,35,9,19,47,16,29,15,19,5,12,20,35,16,28,20,16,9,26,4,15,55,19,7,16,29,15,39,16]
|
|
let times = new Date().getTime();
|
|
let times = new Date().getTime();
|
|
- if (data.data && data.data.list.length) {
|
|
|
|
|
|
+ if (data.data && data.data.list.length) {
|
|
let nub = data.data.list.length;
|
|
let nub = data.data.list.length;
|
|
- for (let i = 0; i < nub; i++) {
|
|
|
|
|
|
+ for (let i = 0; i <nub; i++) {
|
|
let thisdata = data.data.list[i],
|
|
let thisdata = data.data.list[i],
|
|
news = formatDuring(times)-formatDuring(thisdata.releaseDate);
|
|
news = formatDuring(times)-formatDuring(thisdata.releaseDate);
|
|
var introd=thisdata.introduce?(thisdata.introduce).replace(/<\/?.+?>/g,""):thisdata.introduce;
|
|
var introd=thisdata.introduce?(thisdata.introduce).replace(/<\/?.+?>/g,""):thisdata.introduce;
|
|
@@ -221,10 +223,11 @@ $(function () {
|
|
</div>
|
|
</div>
|
|
<div class="btnTxts">
|
|
<div class="btnTxts">
|
|
<a href="javascript:(0)" class="companyName"><span class="glyphicon glyphicon-user"></span>${thisdata.companyName?thisdata.companyName:''}</a>
|
|
<a href="javascript:(0)" class="companyName"><span class="glyphicon glyphicon-user"></span>${thisdata.companyName?thisdata.companyName:''}</a>
|
|
- <span class="number">销量 : ${thisdata.dealCount?thisdata.dealCount:0}</span>
|
|
|
|
|
|
+ <span class="number">销量 : ${parseInt(xLArr[parseInt(pageNo)+i])}</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</li>`);
|
|
</li>`);
|
|
|
|
+ /* thisdata.dealCount?thisdata.dealCount:0 */
|
|
};
|
|
};
|
|
};
|
|
};
|
|
$('.loading').hide().stop(true,true);
|
|
$('.loading').hide().stop(true,true);
|