Commit 9f68d32f98147987381c46e33b92e406db47e399

Authored by teemitop
1 parent 522c858f

接单方式bug修复

... ... @@ -117,39 +117,40 @@
var classs = $('.layui-anim').find('i').attr('class');
console.log(classs);
var id = $(this).find('input:checked').attr('id');
if(id==1 && classs!='layui-anim layui-icon'){
if(id==1){
if(classs!='layui-anim layui-icon'){
//请求数据
$.ajax({
url: "{:url('get_seller_config_mode')}",
type: 'post',
cache: false,
data:{index:i,sid:sid},
success: function (res) {
if (res.code==1) {
$("#device_call_lite").show();
var html = '';
var is_checked_call = res.list.is_checked_call==1 ? 'checked' : '';
if(res.list.user_info){
var title = 'title = 公众号+小程序+语音电话('+res.list.user_info.nick_name+'+'+res.list.user_info.phone+'+'+res.list.user_info.is_openid_wechat_str+')';
var is_openid_wechat = (res.list.user_info.is_openid_wechat !=1 || res.list.user_info.phone_status==1) ? 'disabled' : '';
}else{
var title = 'title = 公众号+小程序+语音电话';
}
//请求数据
$.ajax({
url: "{:url('get_seller_config_mode')}",
type: 'post',
cache: false,
data:{index:i,sid:sid},
success: function (res) {
if (res.code==1) {
$("#device_call_lite").show();
var html = '';
var is_checked_call = res.list.is_checked_call==1 ? 'checked' : '';
if(res.list.user_info){
var title = 'title = 公众号+小程序+语音电话('+res.list.user_info.nick_name+'+'+res.list.user_info.phone+'+'+res.list.user_info.is_openid_wechat_str+')';
var is_openid_wechat = (res.list.user_info.is_openid_wechat !=1 || res.list.user_info.phone_status==1) ? 'disabled' : '';
var is_checked_lite = res.list.is_checked_lite==1 ? 'checked' : '';
html +='<input type="checkbox" class="device_check" lay-filter="device_check" name="is_checked_call" lay-skin="primary" title="电话机+APP" '+is_checked_call+'> <input type="checkbox" class="device_check" lay-filter="device_check" name="is_checked_lite" lay-skin="primary" '+title+' '+is_checked_lite+' '+is_openid_wechat+'>';
$("#device_call_lite").html(html);
$("#device_call_lite").show();
}else{
var title = 'title = 公众号+小程序+语音电话';
layer.msg(res.msgs,{icon:5});
return false;
}
var is_checked_lite = res.list.is_checked_lite==1 ? 'checked' : '';
html +='<input type="checkbox" class="device_check" lay-filter="device_check" name="is_checked_call" lay-skin="primary" title="电话机+APP" '+is_checked_call+'> <input type="checkbox" class="device_check" lay-filter="device_check" name="is_checked_lite" lay-skin="primary" '+title+' '+is_checked_lite+' '+is_openid_wechat+'>';
$("#device_call_lite").html(html);
$("#device_call_lite").show();
}else{
layer.msg(res.msgs,{icon:5});
return false;
form.render();
},
error: function (result) {
}
form.render();
},
error: function (result) {
}
});
});
}
$("#device_call_lite").show();
}else{
$("#device_call_lite").hide();
... ...