isauto.type = 'checkbox';
text = document.createtextnode'下次自动订阅';
label.appendchildisauto;
label.appendchildtext;
p = p.clonenodefalse;
p.appendchildlabel;
div.appendchildp;
q.confirmdiv, functionre{
ifre {
var balance = 1;
var price = 6;
ifbalance price{
q.confirm'您的余额不足, 是否去充值?', functionre {
ifre {
location.href = '
}
};
} else {
q.ajax'/book/h5/subscribe.action', {
”chapterid”: ”27680433”,
”isallsub”: isallsub,
”isautosub”: isauto.checked
}, functiondata {
ifdata.result {
window.location.reload;
} else {
q.alert'' + data.message + '';
}
}, 'json';
}
}
};
}