Commit 757d1642 by libai

测试

parent a4b57a27
Showing with 6 additions and 2 deletions
......@@ -174,6 +174,10 @@ try{
$.ajax({
url:'https://zhibo.lvdou66.com/weblive/pay/banner.html',
dataType: "JSON",
data:{
uid:sessionStorage.bbb,
token:sessionStorage.kkk
},
success:function(msg){
var data=JSON.parse(msg);
console.log('充值活动轮播',data)
......@@ -183,7 +187,7 @@ try{
}
for(var i=0;i<data.list.length;i++){
var list=data.list[i]
html+='<div data-type="'+list.url+'" class="swiper-slide"><img src="https://zhibocdn.lvdou66.com/comm'+list.imgurl+'" alt=""></div>';
html+='<div data-type="'+list.url+'&uid='+sessionStorage.bbb+'&token='+sessionStorage.kkk+'" class="swiper-slide"><img src="https://zhibocdn.lvdou66.com/comm'+list.imgurl+'" alt=""></div>';
}
$(".swiper-wrapper").html(html)
var swiper = new Swiper('.swiper-container', {
......@@ -193,7 +197,7 @@ try{
autoplay: 5000,
});
$(".swiper-slide").unbind("click").on("click",function(){
var _self=$(this)
var _self=$(this).attr("data-type")
var myJson = {
"cid": 12,
"reqCode": new Date().getTime(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment