123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172 |
- *
- */
- $(document).ready(function(){
-
-
- function clickReplyFn(){alert("di");
- alert($(this).attr("id"));
- var consultIdStr = {
- "consultId":$(this).attr("id")
- }
-
- $.ajax({
- "url":"diloags.html",
- "dataType":"html",
- "success":function(result){
-
- $(this).attr("id");
- $(".workcon").html(result);
-
- },
- "error":function(error){
-
-
-
- }
- })
-
-
- };
-
- $(".workselectitem").bind("click",".replybtn",clickReplyFn);
-
-
-
-
-
- var url = location.search; //获取url中"?"符后的字串
- var theRequest = new Object();
- if (url.indexOf("?") != -1) {
- var str = url.substr(1);
- strs = str.split("&");
- for(var i = 0; i < strs.length; i ++) {
- theRequest[strs[i].split("=")[0]]=unescape(strs[i].split("=")[1]);
- }
- }
- return theRequest;
- };*/
-
-
- var consultId = getConsultIdFn["consultId"];
- console.log(GetRequest());
- console.log(consultId);
-
- var consultIdStr = {
- "consultId":consultId
- }*/
-
-
-
-
- "url" : "/ajax/tidings/qacon" ,//沟通内容显示 接口
- "type" : "get",
- //传值:咨询id;
- "data" :consultIdStr,//咨询问题id
- "dataType" : "json",
- "contentType" : "application/x-www-form-urlencoded",
- "beforeSend":function(){
- // console.log(this.data);
- },
- "success": function(response){
- console.log(response);
-
- //咨询沟通id : tidings_id
- //1.根据时间排序
- //2.只要是我的在左边,
- //3.其他的在右边
- // if(tidings_id != "" && tidings_id != null && tidings_id != undefined){
-
- var leftContent =
- "<div class="dialogleftitem">
- <div class="dilmod">
- <div class="diluser floatL">
- <a href="" target="_blank" class="userface">
- <img src="images/default-photo.jpg" width="100%" height="100%">
- </a>
- </div>
- <div class="dilinfobox dilinfobox_l floatL">
- <div class="dilarrow dilarrow_l"></div>
- <div class="dilarrow dilarrow_l_bor"></div>
- <div class="delinfocon clearfix">
- <div class="delinfomain floatL">
- <div class="cont">
- <p>800009jhujgkkkkkkkkkkkkkhhghhu</p>
- </div>
- </div>
- </div>
-
- </div>
- </div>
- </div>"
-
-
-
- // }
- //内容发送人id(登陆人id)
- // else if(userid != "" && userid != null && userid != undefined){
- var rightContent =
- "<div class="dialogrightitem">
- <div class="dilmod">
- <div class="diluser floatR">
- <a href="" target="_blank" class="userface">
- <img src="images/default-photo.jpg" width="100%" height="100%">
- </a>
- </div>
- <div class="dilinfobox dilinfobox_r floatR">
- <div class="delinfocon clearfix">
- <div class="dilarrow dilarrow_r"></div>
- <div class="dilarrow dilarrow_r_bor"></div>
- <div class="delinfomain floatR">
- <div class="cont">
- <p>我们国内钾肥i哦警方i哦济公活佛极度恐慌赶快回家就看不见哦go客观艰苦地方购房抵of更何况vjklvkbnklvjohgjioghfhhjgifojgoifo房价高iof囧估计哦大家哦i估计哦大家佛8恢复俄日哦i后开盘科幻片里发公告00009jhujgkkkkkkkkkkkkkhhghhu</p>
- </div>
- </div>
- </div>
-
- </div>
- </div>
- </div>";
-
-
-
- // }
-
-
- },
- "error": function(response){
- console.log(response);
- $.MsgBox.Alert("消息","获取对话信息失败!");
- },
- "complete": function(response){
- console.log(response);
- }
-
- });*/
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ConsultComment();
- alert("finish");
- }
- $(".dialogsurebtn").bind("click","#dial_confirmFinishConsult",finishConsultFn);*/
-
-
-
-
- })
|