Commit b61856c3 authored by 罗超's avatar 罗超

no message

parent 72e8b35f
......@@ -335,9 +335,10 @@
$('.click_use p').html('立即登录');
}
var that=this
var that = this
that.loadData()
function loadData(){
function loadData() {
$.ajax({
type: "POST",
url: `${getApiUrl().urlJava}api/appActivity/getUserPurchaseTime`,
......@@ -347,7 +348,7 @@
success: function(res) {
if (res.resultCode === 1) {
couponId=res.data.couponId;
couponId = res.data.couponId;
//getTicketList(res.data.couponId);
let num = res.data.repertory; //优惠券总共数量
......@@ -467,7 +468,7 @@
$(".received_img").css('display', "block");
$('.img_btn').css("background-image", "url(https://vt-im-bucket.oss-cn-chengdu.aliyuncs.com/activity/buy_btn.png)");
//去使用状态显示弹幕
if(couponId!=null&&couponId!=undefined){
if (couponId != null && couponId != undefined) {
getTicketList(couponId);
}
}
......@@ -511,7 +512,7 @@
add: true
}); //刚进入页面不执行动画
layer.msg(res.message);
setTimeout(loadData,3000) //失败后再次3秒后再次调接口
setTimeout(loadData, 3000) //失败后再次3秒后再次调接口
}
// clearInterval(xhtime)
......@@ -525,7 +526,7 @@
add: true
}); //刚进入页面不执行动画
layer.msg(res.message);
setTimeout(loadData,3000) //失败后再次3秒后再次调接口
setTimeout(loadData, 3000) //失败后再次3秒后再次调接口
}
});
......
......@@ -424,7 +424,7 @@
<div class="coupons_Content">
<!-- <div class="coupons_List">
<div class="Coupon_leftImg">
<img src="https://vt-im-bucket.oss-cn-chengdu.aliyuncs.com/activity/login/gty.png" alt=""/>
<img src="https://vt-im-bucket.oss-cn-chengdu.aliyuncs.com/activity/gty.png" alt=""/>
<div class="dikouPrice">
<span>¥</span>20
</div>
......@@ -444,7 +444,7 @@
</div>
<div class="coupons_List">
<div class="Coupon_leftImg">
<img src="https://vt-im-bucket.oss-cn-chengdu.aliyuncs.com/activity/login/zyx.png" alt=""/>
<img src="https://vt-im-bucket.oss-cn-chengdu.aliyuncs.com/activity/zyx.png" alt=""/>
<div class="dikouPrice">
<span>¥</span>20
</div>
......@@ -544,34 +544,34 @@
str += `<div class="coupons_List">
<div class="Coupon_leftImg">`
if (dataArr[i].couponsUseScope == 1) {
str += ` <img src="https://vt-im-bucket.oss-cn-chengdu.aliyuncs.com/activity/login/gty.png" alt=""/>`
str += ` <img src="https://vt-im-bucket.oss-cn-chengdu.aliyuncs.com/activity/gty.png" alt=""/>`
}
if (dataArr[i].couponsUseScope == 2) {
str += ` <img src="https://vt-im-bucket.oss-cn-chengdu.aliyuncs.com/activity/login/gty.png" alt=""/>`
str += ` <img src="https://vt-im-bucket.oss-cn-chengdu.aliyuncs.com/activity/gty.png" alt=""/>`
}
if (dataArr[i].couponsUseScope == 7) {
str += ` <img src="https://vt-im-bucket.oss-cn-chengdu.aliyuncs.com/activity/login/zyx.png" alt=""/>`
str += ` <img src="https://vt-im-bucket.oss-cn-chengdu.aliyuncs.com/activity/zyx.png" alt=""/>`
}
if (dataArr[i].couponsUseScope == 8) {
str += ` <img src="https://vt-im-bucket.oss-cn-chengdu.aliyuncs.com/activity/login/ddy.png" alt=""/>`
str += ` <img src="https://vt-im-bucket.oss-cn-chengdu.aliyuncs.com/activity/ddy.png" alt=""/>`
}
if (dataArr[i].couponsUseScope == 5) {
str += ` <img src="https://vt-im-bucket.oss-cn-chengdu.aliyuncs.com/activity/login/mp.png" alt=""/>`
str += ` <img src="https://vt-im-bucket.oss-cn-chengdu.aliyuncs.com/activity/mp.png" alt=""/>`
}
if (dataArr[i].couponsUseScope == 11) {
str += ` <img src="https://vt-im-bucket.oss-cn-chengdu.aliyuncs.com/activity/login/dzy.png" alt=""/>`
str += ` <img src="https://vt-im-bucket.oss-cn-chengdu.aliyuncs.com/activity/dzy.png" alt=""/>`
}
if (dataArr[i].couponsUseScope == 10) {
str += ` <img src="https://vt-im-bucket.oss-cn-chengdu.aliyuncs.com/activity/login/meishi.png" alt=""/>`
str += ` <img src="https://vt-im-bucket.oss-cn-chengdu.aliyuncs.com/activity/meishi.png" alt=""/>`
}
if (dataArr[i].couponsUseScope == 3) {
str += ` <img src="https://vt-im-bucket.oss-cn-chengdu.aliyuncs.com/activity/login/qz.png" alt=""/>`
str += ` <img src="https://vt-im-bucket.oss-cn-chengdu.aliyuncs.com/activity/qz.png" alt=""/>`
}
if (dataArr[i].couponsUseScope == 4) {
str += ` <img src="https://vt-im-bucket.oss-cn-chengdu.aliyuncs.com/activity/login/jp.png" alt=""/>`
str += ` <img src="https://vt-im-bucket.oss-cn-chengdu.aliyuncs.com/activity/jp.png" alt=""/>`
}
if (dataArr[i].couponEffectStatus == 3) {
str += ` <img src="https://vt-im-bucket.oss-cn-chengdu.aliyuncs.com/activity/login/guoqi.png" alt=""/>`
str += ` <img src="https://vt-im-bucket.oss-cn-chengdu.aliyuncs.com/activity/guoqi.png" alt=""/>`
}
str += `<div class="dikouPrice">
......@@ -592,22 +592,22 @@
</div>`
str += `</div>`
if (dataArr[i].fromPlatform == 0) {
str += `<img class="goToUse" src="https://vt-im-bucket.oss-cn-chengdu.aliyuncs.com/activity/login/all.png"/>`
str += `<img class="goToUse" src="https://vt-im-bucket.oss-cn-chengdu.aliyuncs.com/activity/all.png"/>`
}
if (dataArr[i].fromPlatform == 1) {
str += `<img class="goToUse" src='https://vt-im-bucket.oss-cn-chengdu.aliyuncs.com/activity/login/app.png'/>`
str += `<img class="goToUse" src='https://vt-im-bucket.oss-cn-chengdu.aliyuncs.com/activity/app.png'/>`
}
if (dataArr[i].fromPlatform == 2) {
str += `<img class="goToUse" src='https://vt-im-bucket.oss-cn-chengdu.aliyuncs.com/activity/login/xcx.png'/>`
str += `<img class="goToUse" src='https://vt-im-bucket.oss-cn-chengdu.aliyuncs.com/activity/xcx.png'/>`
}
if (dataArr[i].fromPlatform == 3) {
str += `<img class="goToUse" src='https://vt-im-bucket.oss-cn-chengdu.aliyuncs.com/activity/login/pc.png'/>`
str += `<img class="goToUse" src='https://vt-im-bucket.oss-cn-chengdu.aliyuncs.com/activity/pc.png'/>`
}
str += `</div>`
}
} else {
str += `<div class="zanwu">
<img src="https://vt-im-bucket.oss-cn-chengdu.aliyuncs.com/activity/login/zanwu.png" alt=""/>
<img src="https://vt-im-bucket.oss-cn-chengdu.aliyuncs.com/activity/zanwu.png" alt=""/>
<div class="zanwurenhe">暂无任何优惠券</div>
</div>`
}
......
......@@ -395,13 +395,17 @@
let couponId = 0;
let platform = 0;
let href = window.location.href;
if(href.split('?')[1] && href.split('?')[1].indexOf('redemptionPrice') != -1){
if (href.split('?')[1] && href.split('?')[1].indexOf('redemptionPrice') != -1) {
try {
let param = href.split('?')[1].split("&") ? href.split('?')[1].split("&") : null;
price = param ? param[0].split('=')[1] : 0;
couponId = param ? param[1].split('=')[1] : 0;
platform = param ? param[2].split('=')[1] : 0;
jumpPay = param ? param[3].split('=')[1] : 1;
} catch (error) {
}
}
//跳转至激活
function goJihuo() {
......@@ -476,11 +480,11 @@
secretKey: res.data.secretKey,
}
localStorage.u = JSON.stringify(userInfo)
if(jumpPay == 0 || couponId == 0){
if (jumpPay == 0 || couponId == 0) {
window.location.href = 'https://activity.oytour.com/html/GT_activities.html';
// window.location.href = './GT_activities.html';
}else {
} else {
window.location.href = `https://activity.oytour.com/html/Rushbuy.html?redemptionPrice=${price}&couponId=${couponId}&platform=${platform}&noClick=${'1'}&r=ejhr12123`;
// window.location.href = `./Rushbuy.html?redemptionPrice=${price}&couponId=${couponId}&platform=${platform}&noClick=${'1'}&r=efr12123`;
......
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 to comment