Commit fb4f6f2a8da60df974658ac18f57fc095fb41c4f

Authored by liuqimichale
1 parent 42bc7939

赤峰广告 跳转

img/carNumYellow.png deleted

1.23 KB

js/list.js
@@ -22,6 +22,7 @@ var func = { @@ -22,6 +22,7 @@ var func = {
22 22
23 }; 23 };
24 var color = getQueryString(window.location).carType 24 var color = getQueryString(window.location).carType
  25 +console.log(color)
25 if(color == 1){ 26 if(color == 1){
26 $('.carNum').addClass('carNumYellow') 27 $('.carNum').addClass('carNumYellow')
27 } 28 }
list.html
@@ -310,7 +310,7 @@ @@ -310,7 +310,7 @@
310 310
311 <script src="js/md5.min.js"></script> 311 <script src="js/md5.min.js"></script>
312 312
313 -<script src="js/url.js?u=1.11"></script> 313 +<script src="js/url.js?u=2.11"></script>
314 <script src="js/ajax.js"></script> 314 <script src="js/ajax.js"></script>
315 <script type="text/javascript"> 315 <script type="text/javascript">
316 //微信浏览器中,aler弹框不显示域名 316 //微信浏览器中,aler弹框不显示域名
@@ -356,7 +356,7 @@ function activityQuery() { @@ -356,7 +356,7 @@ function activityQuery() {
356 var res = data.data 356 var res = data.data
357 $.each(res, function (i, item) { 357 $.each(res, function (i, item) {
358 console.log(item.url) 358 console.log(item.url)
359 - $('#swiper-wrapper').append('<div class="swiper-slide" style="background: url(' + item.url + ') no-repeat;background-size: 100% 100%"></div>') 359 + $('#swiper-wrapper').append('<div data-url=' + item.jumpUrl + ' class="swiper-slide" style="background: url(' + item.url + ') no-repeat;background-size: 100% 100%"></div>')
360 }) 360 })
361 361
362 var mySwiper = new Swiper('.swiper-container', { 362 var mySwiper = new Swiper('.swiper-container', {
@@ -373,6 +373,10 @@ function activityQuery() { @@ -373,6 +373,10 @@ function activityQuery() {
373 } 373 }
374 ); 374 );
375 } 375 }
  376 +$(document).delegate('.swiper-slide','click',function () {
  377 + var _url = $(this).attr('data-url')
  378 + window.open(_url)
  379 +})
376 </script> 380 </script>
377 <script src="js/list.js?h=11141.31"></script> 381 <script src="js/list.js?h=11141.31"></script>
378 </body> 382 </body>