Commit 6fdb1bcc authored by zhengke's avatar zhengke

修改调用弹幕

parent 40efb73c
......@@ -179,6 +179,7 @@
var demo = document.getElementById("demo");
var demo1 = document.getElementById("demo1");
var demo2 = document.getElementById("demo2");
var couponId;
var myvar = null;
var lastRequestTime = null;
demo2.innerHTML = document.getElementById("demo1").innerHTML;
......@@ -344,7 +345,8 @@
success: function(res) {
if (res.resultCode === 1) {
getTicketList(res.data.couponId);
couponId=res.data.couponId;
//getTicketList(res.data.couponId);
let num = res.data.repertory; //优惠券总共数量
// let num = 5000; //优惠券总共数量
......@@ -462,7 +464,10 @@
$('.img_btn p').html('去使用');
$(".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){
getTicketList(couponId);
}
}
} else {
......
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