Commit dce30769 by libai

测试

parent 80f0e2ac
Showing with 90 additions and 6 deletions
......@@ -1521,15 +1521,15 @@ $(function () {
}
function activeGet(){
$.ajax({
url:$ip+'setting/activeCenter/queryActivity',
url:$ip+'setting/activeCenter/queryActivityV2',
data:{
roomId:sessionStorage.roomId,
pageNum:1,
pageSize:99,
pageID: localStorage.canvasCode,
lang:sessionStorage.lang
},
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]
......@@ -1538,7 +1538,9 @@ $(function () {
// 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://activity.yazhaiyabo.com/activeFt/newCharge/index3.html" data-type2="3" class="act-btn" src="https://zhibocdn.yabolive.net/comm/activity/8069de6c48ca4ed4a924f99ff6901e24.jpg?x-oss-process=image/resize,w_174" alt=""></div>';
if(data.dataList.is_show==1){
html+='<div class="swiper-slide"><img data-type="https://activity.yazhaiyabo.com/activeFt/newCharge/index3.html" data-type2="3" class="act-btn" src="https://zhibocdn.yabolive.net/comm/activity/8069de6c48ca4ed4a924f99ff6901e24.jpg?x-oss-process=image/resize,w_174" alt=""></div>';
}
if(sessionStorage.pmt==undefined||sessionStorage.pmt=='undefined')html+='<div class="swiper-slide"><img data-type="https://www.footseen.xyz/mobile/download/downApp.html?v=2022091601" data-type2="3" class="act-btn" src="'+langList[sessionStorage.lang].roomSrc5+'" alt=""></div>';
else html+='<div class="swiper-slide"><img data-type="https://www.footseen.xyz/mobile/download/downApp.html?v=2022101101" data-type2="3" class="act-btn" src="'+langList[sessionStorage.lang].roomSrc5+'" alt=""><p id="room-qrcode"></p><img class="footseen-icon" src="../images/footseen-icon.png"></div>'
$(".swiper-wrapper").html(html);
......@@ -1602,6 +1604,88 @@ $(function () {
})
}
})
// $.ajax({
// url:$ip+'setting/activeCenter/queryActivity',
// data:{
// roomId:sessionStorage.roomId,
// pageNum:1,
// pageSize:99,
// pageID: localStorage.canvasCode,
// },
// success:function(data){
// // console.log('获取活动中心列表',data)
// var html=[];
// // for(var i=0;i<data.dataList.activitys.length;i++){
// // var list=data.dataList.activitys[i]
// // if(list.url=='https://activity.yazhaiyabo.com/active2020/newFistCharge/firstChargeFootseen/index.html'){
// // list.url='https://activity.yazhaiyabo.com/activeFt/firstCharge/firstChargeFootseen/index.html'
// // 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://activity.yazhaiyabo.com/activeFt/newCharge/index3.html" data-type2="3" class="act-btn" src="https://zhibocdn.yabolive.net/comm/activity/8069de6c48ca4ed4a924f99ff6901e24.jpg?x-oss-process=image/resize,w_174" alt=""></div>';
// if(sessionStorage.pmt==undefined||sessionStorage.pmt=='undefined')html+='<div class="swiper-slide"><img data-type="https://www.footseen.xyz/mobile/download/downApp.html?v=2022091601" data-type2="3" class="act-btn" src="'+langList[sessionStorage.lang].roomSrc5+'" alt=""></div>';
// else html+='<div class="swiper-slide"><img data-type="https://www.footseen.xyz/mobile/download/downApp.html?v=2022101101" data-type2="3" class="act-btn" src="'+langList[sessionStorage.lang].roomSrc5+'" alt=""><p id="room-qrcode"></p><img class="footseen-icon" src="../images/footseen-icon.png"></div>'
// $(".swiper-wrapper").html(html);
// if(sessionStorage.pmt!=undefined&&sessionStorage.pmt!='undefined')new QRCode(document.getElementById("room-qrcode"),sessionStorage.pmt+'&from=pc');
// if(data.dataList.activitys.length>=0){
// var swiper = new Swiper(".mySwiper", {
// pagination: {
// el: ".swiper-pagination",
// clickable: true,
// renderBullet: function (index, className) {
// return '<span class="' + className + '">' + (index + 1) + "</span>";
// },
// },
// autoplay: {
// delay: 8000,
// },
// loop:true,
// });
// }
// $(".act-btn").unbind("click").on("click",function(){
// var _self=$(this)
// if(_self.attr("data-type2")==3){
// layer.open({
// type: 2,
// title: false,
// shadeClose: true,
// skin: "active-layer",
// area: ["360px", "360px"],
// content: _self.attr("data-type")+'?uid='+localStorage.uid+'&token='+localStorage.token+'&roomid='+sessionStorage.roomId+'&os=pc&v='+Math.floor(Math.random()*100)+'&lang='+sessionStorage.lang+'&pageID='+localStorage.canvasCode+'',
// })
// $(".layui-layer-shade").hide()
// return
// }
// if(localStorage.token==undefined){
// $(".login-box1 .login-title").text(langList[sessionStorage.lang].loginTitle2)
// loginLayer()
// return;
// }
// if(_self.attr("data-type2")==1){
// layer.open({
// type: 2,
// title: false,
// shadeClose: true,
// skin: "active-layer",
// area: ["360px", "634px"],
// content: _self.attr("data-type")+'?uid='+localStorage.uid+'&token='+localStorage.token+'&roomid='+sessionStorage.roomId+'&os=pc&lang='+sessionStorage.lang+'&v='+Math.floor(Math.random()*100)+'',
// })
// }else{
// layer.open({
// type: 2,
// title: false,
// shadeClose: true,
// skin: "active-layer",
// area: ["360px", "634px"],
// content: _self.attr("data-type")+'?uid='+localStorage.uid+'&token='+localStorage.token+'&roomid='+sessionStorage.roomId+'&os=pc&v='+Math.floor(Math.random()*100)+'&lang='+sessionStorage.lang+'&pageID='+localStorage.canvasCode+'',
// })
// }
// $(".layui-layer-shade").hide()
// })
// }
// })
}
function mcLike(e,type){
if(localStorage.uid==undefined){
......
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