Commit 03ae42bb by libai

ft活动上线

parent 3b93bdaa
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta content="telephone=no" name="format-detection"> <meta content="telephone=no" name="format-detection">
<meta name="wap-font-scale" content="no"> <meta name="wap-font-scale" content="no">
<title>幸運女神降臨</title> <title>尋星旅團</title>
<script src="lib/fsize.js"></script> <script src="lib/fsize.js"></script>
<link rel="stylesheet" href="css/base.css"> <link rel="stylesheet" href="css/base.css">
<link rel="stylesheet" href="css/layer.css"> <link rel="stylesheet" href="css/layer.css">
...@@ -183,7 +183,7 @@ $(function(){ ...@@ -183,7 +183,7 @@ $(function(){
} }
function getTask(type,e){ function getTask(type,e){
$.ajax({ $.ajax({
url:$ip+'/actStarSearchTour/userBuyGoods.html', url:$ip+'/actStarSearchTour/receiveTaskRewards.html',
data:{ data:{
taskType:type, taskType:type,
taskId:e taskId:e
...@@ -305,24 +305,24 @@ $(function(){ ...@@ -305,24 +305,24 @@ $(function(){
console.log('获取任务数据',data) console.log('获取任务数据',data)
$("#target").text(data.result.dailyTaskList[3].speakMsg) $("#target").text(data.result.dailyTaskList[3].speakMsg)
//非付费用户 //非付费用户
if(data.result.userData.isPaid==0){ if(data.result.userData.isPaid==0||data.result.userData.isNewUserGiftVoucher==1){
$(".reg-btn").show() if(data.result.userData.isPaid==0){
$(".reg-btn").unbind("click").on("click",function(){ $(".reg-btn").show()
var obj = { $(".reg-btn").unbind("click").on("click",function(){
"cid": 12, var obj = {
"reqCode": new Date().getTime(), "cid": 12,
"data": { "reqCode": new Date().getTime(),
"msg": '去儲值', "data": {
"jumptype": 16, //16: 去储值 18: 跳转到座驾 3:跳转集合功能 28:跳转直播间 29:空间 26:设置 40:半屏宝石储值 41:礼物列表 42:背包列表 // 43: 跳转新人主播引导 "msg": '去儲值',
"hideTitle": 0 // 1隐藏头部,0 不隐藏, 默认为0 "jumptype": 16, //16: 去储值 18: 跳转到座驾 3:跳转集合功能 28:跳转直播间 29:空间 26:设置 40:半屏宝石储值 41:礼物列表 42:背包列表 // 43: 跳转新人主播引导
"hideTitle": 0 // 1隐藏头部,0 不隐藏, 默认为0
}
} }
} var obj2 = JSON.stringify(obj);
var obj2 = JSON.stringify(obj); appCollaboration(obj2);
appCollaboration(obj2); })
}) }
}
if(data.result.userData.isNewUserGiftVoucher==1){
// data.result.userData.isPaid==0
$(".new-task-box").show() $(".new-task-box").show()
for(var i=0;i<data.result.newPayUserTaskList.length;i++){ for(var i=0;i<data.result.newPayUserTaskList.length;i++){
var list=data.result.newPayUserTaskList[i] var list=data.result.newPayUserTaskList[i]
...@@ -352,6 +352,7 @@ $(function(){ ...@@ -352,6 +352,7 @@ $(function(){
} }
}) })
} }
//新人礼物没赠送 //新人礼物没赠送
if(data.result.userData.isNewUserGiftVoucher==1&&data.result.userData.isNewUserGiftSend==0){ if(data.result.userData.isNewUserGiftVoucher==1&&data.result.userData.isNewUserGiftSend==0){
$(".one-gift-box").show() $(".one-gift-box").show()
......
...@@ -69,7 +69,7 @@ if(sessionStorage.open==undefined)sessionStorage.open=1 ...@@ -69,7 +69,7 @@ if(sessionStorage.open==undefined)sessionStorage.open=1
} }
if (bbb.indexOf("file:///E:") > -1) { if (bbb.indexOf("file:///E:") > -1) {
sessionStorage.lang=2 sessionStorage.lang=2
sessionStorage.uid =210102; sessionStorage.uid =11144909;
sessionStorage.token = 'debug' sessionStorage.token = 'debug'
sessionStorage.roomId=11134747; sessionStorage.roomId=11134747;
sessionStorage.version=8890 sessionStorage.version=8890
......
...@@ -83,47 +83,63 @@ $(function(){ ...@@ -83,47 +83,63 @@ $(function(){
url:$ip+'/actStarSearchTour/getRoomPartData.html', url:$ip+'/actStarSearchTour/getRoomPartData.html',
success:function(data){ success:function(data){
console.log('圖標數據',data) console.log('圖標數據',data)
if(data.result.userData.isNewUserGiftVoucher==1){ if(data.result.userData.isPaid==0||data.result.userData.isNewUserGiftVoucher==1){
if(data.result.userData.newUserAwardTaskNum>=5){ //進入新人流程
$(".act-room-bg").fadeIn(200).removeClass("act-room-bg2") if(data.result.userData.newUserAwardTaskNum<5){
}else{
$(".act-room-bg").fadeIn(200) $(".act-room-bg").fadeIn(200)
if(data.result.userData.isNewUserGiftSend==0){ if(data.result.userData.isNewUserGiftSend==0){
$(".act-room-bg").unbind("click").on("click",function(){ $(".act-room-bg").unbind("click").on("click",function(){
$.ajax({ $.ajax({
url:$ip+'/actSecretGarden/openPopup.html', url:$ip+'/actSecretGarden/openPopup.html',
data:{ data:{
width:'0', width:'0',
popupUrl:$url + "/activeFt/newMan/pop2.html" + location.search+'', popupUrl:$url + "/activeFt/newMan/pop2.html" + location.search+'',
height:'0.5', height:'0.5',
heightR:'110', heightR:'110',
x:'0', x:'0',
y:'0.5', y:'0.5',
}, },
success:function(){ success:function(){
} }
}) })
}) })
}else{ }
$(".act-room-bg").unbind("click").on("click",function(){ else{
var obj = { $(".act-room-bg").unbind("click").on("click",function(){
"cid": 12, var obj = {
"reqCode": new Date().getTime(), "cid": 12,
"data": { "reqCode": new Date().getTime(),
"msg": '跳转集合功能', "data": {
"jumptype": 3, "msg": '跳转集合功能',
"url": $url + "/activeFt/newMan/index.html" + location.search+'&jump=1', "jumptype": 3,
} "url": $url + "/activeFt/newMan/index.html" + location.search+'&jump=1',
}
}
var obj2 = JSON.stringify(obj);
appCollaboration(obj2);
})
}
}
//已經完成了五個任務
else{
$(".act-room-bg").fadeIn(200).removeClass("act-room-bg2")
$(".act-room-bg").unbind("click").on("click",function(){
var obj = {
"cid": 12,
"reqCode": new Date().getTime(),
"data": {
"msg": '跳转集合功能',
"jumptype": 3,
"url": $url + "/activeFt/newMan/index.html" + location.search+'&',
} }
var obj2 = JSON.stringify(obj); }
appCollaboration(obj2); var obj2 = JSON.stringify(obj);
}) appCollaboration(obj2);
} })
} }
}else{ }else{
$(".act-room-bg").fadeIn(200).removeClass("act-room-bg2") $(".act-room-bg").fadeIn(200).removeClass("act-room-bg2")
$(".act-room-bg").unbind("click").on("click",function(){ $(".act-room-bg").unbind("click").on("click",function(){
......
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