checkout box选择运营人员

dev_partners
jingquan huang 6 years ago
parent fb1ba699cb
commit 01017c3bd3

@ -188,7 +188,7 @@
<label class="panel-form-label fl mr18">运营人员:</label>
<span class="fl">
<input type="checkbox" <%= @user.business? ? "checked" : "" %> name="business" value="<%= @user.business? ? "1" : "0" %>" id="person_business" class="magic-checkbox" style="float:left; margin-top: 8px;">
<label for="person_business"><%= @user.business? %></label>
<label for="person_business"></label>
</span>
</li>
<li class="clearfix mb10 hascontont">
@ -621,6 +621,13 @@
$("#user_form_link").on("click",function(){
var check = document.getElementById('person_business').checked;
if(check){
document.getElementById('person_business').value = "1";
}else{
document.getElementById('person_business').value = "0";
}
my_account_form_submit();
});
function my_account_form_submit(){

Loading…
Cancel
Save