Commit db3c3bd8 by 冷斌

fix bug

parent 66f77d28
......@@ -282,7 +282,7 @@
var isCollect = "{$paper['iscollect']}" > 0 ? 1 : 0;
var limit = "{$limit}";
var limit = parseInt("{$limit}");
function changeCollect() {
if (isCollect) {
......
......@@ -58,7 +58,7 @@ $(function() {
var question_num = parseInt($(this).data("question_num")) + 1;
}
if (limit > 0 && question_num > limit) {
if (limit > 0 && question_num >= limit) {
$(this).text('去支付');
}
......
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