Commit 408de364 authored by agping's avatar agping

首页轮播修改

parent 859dcacc
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
height: 34px; height: 34px;
line-height: 34px; line-height: 34px;
} }
.ld-Marheight{ ld-Marheight{
margin-top: 15px;! margin-top: 15px;!
} }
...@@ -403,9 +403,9 @@ ...@@ -403,9 +403,9 @@
</div> </div>
<div class="modal-body"> <div class="modal-body">
<br> <br>
<input class="form-control btn5" data-rule-phoneus="false" data-rule-required="false" name="user1" placeholder="请输入经纪人姓名" type="text" value=""> <input class="form-control btn5" data-rule-phoneus="false" data-rule-required="false" name="old_agents" placeholder="请输入经纪人姓名" type="text" value="">
<span class="btn3" id="batch">批量修改为</span> <span class="btn3" id="batch">批量修改为</span>
<input class="form-control btn5" data-rule-phoneus="false" data-rule-required="false" name="phone1" placeholder="请输入经纪人姓名" type="text" value=""> <input class="form-control btn5" data-rule-phoneus="false" data-rule-required="false" name="new_agents" placeholder="请输入经纪人姓名" type="text" value="">
<br><br><br> <br><br><br>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
......
...@@ -94,6 +94,17 @@ define (['doT', 'text!temp/banner_template_tpl.html', 'ckfinder', 'ckfinderStart ...@@ -94,6 +94,17 @@ define (['doT', 'text!temp/banner_template_tpl.html', 'ckfinder', 'ckfinderStart
$ ("#title").val (item.eq (0).html ()); $ ("#title").val (item.eq (0).html ());
$ ("#url").val (item.eq (3).html ()); $ ("#url").val (item.eq (3).html ());
$ ("#cover_image").val (item.eq (1).find ("input").val ()); $ ("#cover_image").val (item.eq (1).find ("input").val ());
console.log($.trim(item.eq (2).html ()));
if($.trim(item.eq (2).html ())=="用户app"){
// $ ("#client").attr ("checked",true);/prop能够反复改变 attr不能反复改变属性
$ ("#client").prop ("checked",true);
// $ ("#agent_side").attr ("checked",false);
}
if($.trim(item.eq (2).html ())=="经纪人app"){
// $ ("#agent_side").attr ("checked",true)
$ ("#agent_side").prop("checked", true);
console.log(66)
}
$ ("#sort").val (item.eq (4).html ()); $ ("#sort").val (item.eq (4).html ());
}); });
......
...@@ -58,10 +58,16 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', ' ...@@ -58,10 +58,16 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
user.user_id = $ (this).attr ("data-id"); user.user_id = $ (this).attr ("data-id");
user.add_user(); user.add_user();
}); });
// 跟进的提交按钮 点击
$ (document).delegate ("#edit_add", "click", function () { $ (document).delegate ("#edit_add", "click", function () {
user.edit_add(); user.edit_add();
}); });
// 批量修改客方
$ (document).delegate ("#modify_add", "click", function () {
user.modify_add();
});
$ (document).delegate (".caozuo", "click", function () {//点击操作跟进详情 $ (document).delegate (".caozuo", "click", function () {//点击操作跟进详情
user.user_id = $ (this).attr ("data-id"); user.user_id = $ (this).attr ("data-id");
user.Caozuo(); user.Caozuo();
...@@ -204,6 +210,40 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', ' ...@@ -204,6 +210,40 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
} }
}); });
}, },
//
modify_add : function () {//modify_add批量修改客方
var old_agents_text = $("input[name = 'old_agents']").val();
var new_agents_text = $("input[name = 'new_agents']").val();
if (old_agents_text == '') {
alert('请输入经纪人内容为空');
return false;
}
if (new_agents_text == '') {
alert('请输入经纪人内容为空');
return false;
}
$.ajax ({
url: '/index/batchEditCustomer',
type: 'POST',
async: true,
data: {
// "user_id" : user.user_id,
// "content" : genj_text,
// "user_status": user_status
},
dataType: 'json',
success: function (data) {
if (data.code != 200) {
console.log(data);
alert(data.msg);
}
}
});
},
// ====================新增客户页面================== // ====================新增客户页面==================
Caozuo:function(){//获取跟进详情的数据 Caozuo:function(){//获取跟进详情的数据
$.ajax({ $.ajax({
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
<img src='/resource/lib/Attachments/[%= it[item]["pic_path"] %]' class="diagram-image J_preview" <img src='/resource/lib/Attachments/[%= it[item]["pic_path"] %]' class="diagram-image J_preview"
data-bimg='/resource/lib/Attachments/[%= it[item]["pic_path"] %]'> data-bimg='/resource/lib/Attachments/[%= it[item]["pic_path"] %]'>
</td> </td>
<td> <td>
[% if( it[item]["type"]==0 || it[item]["type"]==1) { %] [% if( it[item]["type"]==0 || it[item]["type"]==1) { %]
用户app 用户app
...@@ -88,11 +89,11 @@ ...@@ -88,11 +89,11 @@
<label class="col-sm-3 control-label">显示:</label> <label class="col-sm-3 control-label">显示:</label>
<div class="col-sm-9"> <div class="col-sm-9">
<label> <label>
<input type="radio" name="banner_type" value="0" checked> <input type="radio" name="banner_type" value="0" id="client">
用户端 用户端
</label> </label>
<label> <label>
<input type="radio" name="banner_type" value="1"> <input type="radio" name="banner_type" value="1" id="agent_side">
经纪人端 经纪人端
</label> </label>
</div> </div>
......
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