Commit 8b6448ca authored by duxinyuan's avatar duxinyuan

修复按钮组bug

parent 89b47499
......@@ -192,10 +192,14 @@ define(['doT', 'text!temp/refund_template_tpl.html', 'css!style/home.css', 'ckfi
};
});
_doc.on('click','.choose_btn ',function(e){
that.check_status = e.target.dataset.value;
_doc.on('click','.choose_btn',function(e){
var befor = that.check_status
$('.btn-group').find("button.btn-info").removeClass("btn-info")
$(this).addClass("btn-info")
$(this).addClass("btn-info");
if ( befor != e.target.dataset.value) {
that.check_status = e.target.dataset.value;
refund.getList(1);
}
})
},
......
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