Commit 28cd0b71 by libai

测试

parent b16913fe
Showing with 15 additions and 3 deletions
......@@ -892,13 +892,13 @@ $(function () {
pageID: localStorage.canvasCode,
},
success:function(data){
// console.log('获取活动中心列表',data)
console.log('获取活动中心列表',data)
var html=[];
for(var i=0;i<data.dataList.activitys.length;i++){
var list=data.dataList.activitys[i]
html+='<div class="swiper-slide"><img data-type="'+list.url+'" class="act-btn" src="https://zhibocdn.yabolive.net/comm'+list.webIcon+'?x-oss-process=image/resize,w_174" alt=""></div>';
html+='<div class="swiper-slide"><img data-type="'+list.url+'" data-type2="'+list.urlType+'" class="act-btn" src="https://zhibocdn.yabolive.net/comm'+list.webIcon+'?x-oss-process=image/resize,w_174" alt=""></div>';
}
html+='<div class="swiper-slide"><img data-type="https://www.footseen.xyz/mobile/download/downApp.html" class="act-btn" src="images/roomDown.png" alt=""></div>';
html+='<div class="swiper-slide"><img data-type="https://www.footseen.xyz/mobile/download/downApp.html" data-type2="0" class="act-btn" src="images/roomDown.png" alt=""></div>';
$(".swiper-wrapper").html(html);
if(data.dataList.activitys.length>0){
var swiper = new Swiper(".mySwiper", {
......@@ -921,6 +921,16 @@ $(function () {
return;
}
var _self=$(this)
if(_self.attr("data-type2").val()==1){
layer.open({
type: 2,
title: false,
shadeClose: true,
skin: "active-layer",
area: ["360px", "317px"],
content: _self.attr("data-type")+'?uid='+localStorage.uid+'&token='+localStorage.token+'&roomid='+sessionStorage.roomId+'&os=pc',
})
}else{
layer.open({
type: 2,
title: false,
......@@ -929,6 +939,8 @@ $(function () {
area: ["360px", "634px"],
content: _self.attr("data-type")+'?uid='+localStorage.uid+'&token='+localStorage.token+'&roomid='+sessionStorage.roomId+'&os=pc',
})
}
$(".layui-layer-shade").hide()
})
}
......
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