}
str+='
¥'+parseInt(data.goods[i].total_fee)+'
';
str+='
'+data.goods[i].title+'
';
if(parseInt(data.goods[i].total_fee)!=parseInt(data.goods[i].goods_price)){
str+='
原价:¥'+parseInt(data.goods[i].goods_price)+'
';
}
str+='';
}
$('.buy_vip .flex-con .middle ul').empty().html(str);
$('.buy_vip .flex-con .pay-img .wx').attr("src",data.data.wx);
$('.buy_vip .flex-con .pay-img .ali').attr("src",data.data.ali);
$(".buy_vip .flex-con .pay-img .price span").text(parseInt(data.goods[goods_id-1].total_fee));
$(".buy_vip").show();
timmer_vip = window.setInterval(function(){
$.ajax({
url: "https://i.ui.cn/Uweb/User/checkorder",
type: "post",
dataType: "json",
data: { "order_id": data.data.order_id},
success: function (data) {
if (data.code == 1) {
window.location.reload();
}
}
})
}, 10000);
}
},
error:function(err){
}
})
}
$('.buy_vip .flex-con .middle ul').delegate("li","click",function(){
window.clearInterval(timmer_vip);
var goods_id = $(this).attr("val");
var i = $(this).index();
var num = $(this).attr("data-price");
$(".buy_vip .flex-con .pay-img .price span").text(num);
$(this).addClass("on").siblings("li").removeClass("on");
vipBuy(goods_id);
});
$(".fixed-cookie .wpn p.z").delegate('a',"click",function(){
window.clearInterval(timmer_vip);
vipBuy(2);
});
$('.buy_vip .icon-close').click(function(){
window.clearInterval(timmer_vip);
$(".buy_vip").hide();
});
function readAll(_this){
$.ajax("/pubapi/notifyread")
$(".tab-cont .sup,.quick-item .tip").remove()
$(_this).remove()
$(".quick-toggle.new").removeClass("new")
}