isauto.type = 'checkbox';
text = document.createtextnode('下次自动订阅');
label.appendchild(isauto);
label.appendchild(text);
p = p.clonenode(false);
p.appendchild(label);
div.appendchild(p);
q.confirm(div, function(re){
if(re) {
var balance = 1;
var price = 6;
if(balance < price){
q.confirm('您的余额不足, 是否去充值?', function(re) {
if(re) {
location.href = '
}
});
} else {
q.ajax('/book/h5/subscribe.action', {
”chapterid”: ”27680433”,
”isallsub”: isallsub,
”isautosub”: isauto.checked
}, function(data) {
if(data.result) {
window.location.reload();
} else {
q.alert('' + data.message + '');
}
}, 'json');
}
}
});
}