pollcus_detail.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410
  1. {extend name="public/layout"}
  2. {block name="body"}
  3. <link rel="stylesheet" href="__LAYUI__/layui/css/layui.css" media="all">
  4. <link rel="stylesheet" " href=" /static/css/common.css">
  5. <script src="/static/js/jquery.min.js"></script>
  6. <style>
  7. body {
  8. font-size: 12px;
  9. padding-bottom: 60px;
  10. background-color: #F3F3F3;
  11. }
  12. .topbox {
  13. display: block;
  14. border-bottom: 1px solid #F0F0F0;
  15. background: #FCFCFC;
  16. width: 100%;
  17. height: 42px;
  18. line-height: 35px;
  19. font-size: 14px;
  20. text-indent: 5px;
  21. font-family: Arial;
  22. padding-top: 3px;
  23. padding-bottom: 3px;
  24. }
  25. .topbox a {
  26. display: block;
  27. font-size: 12px;
  28. font-weight: normal;
  29. margin-right: 15px;
  30. color: #0000FF;
  31. }
  32. .topbox a:hover {
  33. color: #FF0000
  34. }
  35. .phonebox{
  36. display: block;
  37. background-color: #F2F3F7;
  38. border-right: 1px solid #DFDFDF;
  39. border-bottom: 1px solid #DFDFDF;
  40. line-height: 25px;
  41. padding: 5px;
  42. text-align: center;
  43. font-family: Arial;
  44. font-size: 12px;
  45. letter-spacing: 1px;
  46. color: #333;
  47. }
  48. .phonebox span{
  49. padding-right: 3px;
  50. cursor: pointer;
  51. text-decoration: underline;
  52. }
  53. .ore_div {
  54. width: 100%;
  55. padding: 10px;
  56. border: 1px solid #f5f5f5;
  57. margin: 6px auto 0px;
  58. text-align: left;
  59. letter-spacing: 1px;
  60. background-color: #f8f8f8;
  61. }
  62. .oinfocon {
  63. padding: 0 10px;
  64. text-align: left;
  65. }
  66. .oinfocon h3 {
  67. margin: 15px 0 10px 0;
  68. border-bottom: 1px solid #ccc;
  69. width: 100%;
  70. padding-bottom: 5px;
  71. font-size: 14px;
  72. letter-spacing: 1px;
  73. }
  74. .oinfocon p {
  75. line-height: 25px;
  76. padding-left: 10px;
  77. }
  78. .red {
  79. color: #FF0000;
  80. }
  81. .recordbox {
  82. display: block;
  83. table-layout: fixed;
  84. _width: 100%;
  85. width: 100%;
  86. border: 1px solid #DFDFDF;
  87. border-collapse: separate !important;
  88. background-color: #FFF;
  89. border-right: 0;
  90. border-bottom: 2px solid #DFDFDF;
  91. margin-top: 6px;
  92. }
  93. .maintable {
  94. width: 100%;
  95. }
  96. .maintable th {
  97. background-color: #F2F3F7;
  98. border-right: 1px solid #DFDFDF;
  99. border-bottom: 1px solid #DFDFDF;
  100. line-height: 25px;
  101. padding: 5px;
  102. text-align: center;
  103. font-family: Arial;
  104. font-size: 12px;
  105. letter-spacing: 1px;
  106. color: #333
  107. }
  108. .maintable td {
  109. border-right: 1px solid #DFDFDF;
  110. border-bottom: 1px solid #EAEAEC;
  111. padding: 7px;
  112. line-height: 25px;
  113. font-size: 13px;
  114. position: relative;
  115. }
  116. .maintable h2 {
  117. border-bottom: 1px solid #999;
  118. margin: 0;
  119. font-weight: bold;
  120. font-size: 15px;
  121. margin-bottom: 10px;
  122. margin-top: 5px;
  123. text-indent: 3px;
  124. font-family: Arial;
  125. letter-spacing: 1px;
  126. }
  127. .maintable td label {
  128. cursor: pointer
  129. }
  130. #showphone {
  131. text-decoration: underline;
  132. font-weight: bold;
  133. cursor: pointer;
  134. }
  135. .sortnum {
  136. display: block;
  137. width: 25px;
  138. height: 18px;
  139. background-color: #eee
  140. /*#d3ccd6*/
  141. ;
  142. text-decoration: none;
  143. position: absolute;
  144. bottom: 0;
  145. left: 0;
  146. line-height: 18px;
  147. border-radius: 0 6px 0 0;
  148. text-align: center;
  149. }
  150. .logmsgbox {
  151. padding: 7px;
  152. }
  153. .logmsgbox span {
  154. display: block;
  155. color: #009900;
  156. font-weight: bold;
  157. font-size: 14px;
  158. letter-spacing: 1px;
  159. }
  160. .footimebox {
  161. display: block;
  162. background-color: #f5f5f5;
  163. color: #999;
  164. width: 100%;
  165. padding: 3px 11px 3px 3px;
  166. height: 20px;
  167. line-height: 20px;
  168. position: relative;
  169. top: 7px;
  170. left: -7px;
  171. box-sizing: content-box;
  172. }
  173. .hfstate {
  174. position: absolute;
  175. right: 5px;
  176. }
  177. .linebox {
  178. display: block;
  179. width: 100%;
  180. padding: 10px;
  181. border: 1px solid #f5f5f5;
  182. margin: 6px auto 0px;
  183. text-align: left;
  184. letter-spacing: 1px;
  185. background-color: #f8f8f8;
  186. }
  187. .leftcheckbox {
  188. display: block;
  189. position: absolute;
  190. display: block;
  191. width: 78px;
  192. height: 27px;
  193. top: 0;
  194. left: 0;
  195. padding-top: 12px;
  196. background-color: #FFCC00;
  197. text-align: center;
  198. box-sizing: content-box;
  199. }
  200. </style>
  201. <body>
  202. <div class="addlogbox">
  203. <div class="clearfix topbox">
  204. <div class="left" style="color: #FF0000;">回访记录:</div>
  205. <a class="right closediv" href="javascript:void(0)" title="关闭该窗口">关闭该窗口</a>
  206. </div>
  207. </div>
  208. <div class="phonebox clearfix">
  209. <div class="right">{$data.name|default='未知'}:<span id="showphone">{$data.phone}</span></div>
  210. </div>
  211. <div class="ore_div oinfocon">
  212. <h3>&nbsp;客户详情</h3>
  213. <p>
  214. 客户姓名:{$data.name|default='未知'}&nbsp;性别:{if $data.sex == 1}男{elseif $data.sex == 2 /}女{/if}&nbsp;&nbsp;备用电话: {$data.phone1}
  215. </p>
  216. <p>客户来源: {$data.source.source|default='无'}&nbsp;{if $data.subjection_plan}→{/if}&nbsp;{$data.subjection_plan}</p>
  217. <h3>&nbsp;小区信息</h3>
  218. <p>
  219. 小区名称: {$data.community_name}&nbsp;&nbsp;房屋状态: {$data.jiaofang}<span class="red"></span>&nbsp;&nbsp;面积: {$data.square}
  220. </p>
  221. <p>
  222. 意向产品: {$data.package_name}&nbsp;&nbsp;意向风格: {$data.deco_style_name}&nbsp;&nbsp;户型: {$data.housetype}
  223. </p>
  224. <p>
  225. 装修预算: {$data.budget}&nbsp;&nbsp;楼栋楼号: {$data.unit_number}&nbsp;&nbsp;交房时间: {$data.house_delivery_time}
  226. </p>
  227. <h3>&nbsp;必填信息</h3>
  228. <p>重要级别: {$data.level}&nbsp;&nbsp;报名时间: {$data.sign_time|default='无'}</p>
  229. <p>录入时间: {$data.addtime}</p>
  230. <p>家装顾问: {$data.employee.name|default='无'}&nbsp;&nbsp;设计师: {$data.designer.name|default='无'}</p>
  231. <p>信息录入: {$data.lrname}&nbsp;&nbsp;公司: {$data.company_name}</p>
  232. <br>
  233. </div>
  234. <div class="recordbox">
  235. <table class="maintable">
  236. <tbody>
  237. <tr>
  238. <td width="55">记录人</td>
  239. <td>
  240. <span class="left">记录内容</span>
  241. <div class="right">{if $data.name==''}未知{else/}{$data.name}{/if}:<span id="showphone" title="双击查看完整号码" style="letter-spacing:1px;"></span>
  242. </div>
  243. </td>
  244. </tr>
  245. {volist name="data.visitLog" id="vo" key="k"}
  246. <tr>
  247. <td class="relative">{$vo.empname}<span class="sortnum">{php} echo count($data['visitLog'])-$k+1; {/php}</span>
  248. </td>
  249. <td class="relative">
  250. <div class="logmsgbox">
  251. <div class="clearfix">
  252. <span class="left" {if $vo.save_portrait_field neq null}style="display:none;"{/if}>
  253. {if $vo.type == 1}电话:
  254. {elseif $vo.type == 2 /}短信:
  255. {elseif $vo.type == 3 /}微信:
  256. {elseif $vo.type == 4 /}见面:
  257. {/if}
  258. </span>
  259. <div class="right" {if $vo.wisdom_url eq null}style="display: none;"{/if}>
  260. <audio src="{$vo.wisdom_url}" controls="controls" style="display: none;" id="audioEle{$vo.id}"></audio>
  261. <img data-audio="audioEle{$vo.id}" class="aduioimg playaduio" width="17px" src="__STATIC__/img/nosound.png" />
  262. <img data-audio="audioEle{$vo.id}" class="aduioimg pausebtn" width="17px" style="display:none;" src="__STATIC__/img/sourceicon.png" />
  263. </div>
  264. </div>
  265. <div data-html="{$vo.remark}" class="remarkbox"></div>
  266. {if $vo.img neq ''}
  267. {volist name="vo.img" id="v"}
  268. <img class="nowimgbox" src="{$v}" str="1" img="{$v}" width="150px"/>
  269. {/volist}
  270. {/if}
  271. {if $vo.img1 neq ''}
  272. {volist name="vo.img1" id="v"}
  273. <img class="nowimgbox" src="{$v}" str="1" img="{$v}" width="150px"/>
  274. {/volist}
  275. {/if}
  276. {if $vo.sign_img neq ''}
  277. {volist name="vo.sign_img" id="v"}
  278. <img class="nowimgbox" src="{$v}" str="1" img="{$v}" width="150px"/>
  279. {/volist}
  280. {/if}
  281. {if $vo.delivery_img neq ''}
  282. {volist name="vo.delivery_img" id="v"}
  283. <img class="nowimgbox" src="{$v}" str="1" img="{$v}" width="150px"/>
  284. {/volist}
  285. {/if}
  286. {if $vo.save_portrait_field neq ''}
  287. {volist name="vo.save_portrait_field" id="v"}
  288. {if $v.type neq 6}
  289. <span style="color:#000;">{$v.name}:{$v.valname}</span>
  290. {else/}
  291. <p>
  292. <span style="color:#000;">{$v.name}:</span>
  293. {volist name="v.valname" id="p"}
  294. <img class="nowimgbox" src="{$p}" str="1" img="{$p}" width="150px"/>
  295. {/volist}
  296. </p>
  297. {/if}
  298. {/volist}
  299. {/if}
  300. </div>
  301. <div class="footimebox">
  302. <span>上次:{$vo.addtime}</span>
  303. <span style="margin-left: 10px;">下次:{$vo.next_contact_date}</span>
  304. {if $vo.isyes == 0}
  305. <span class="hfstate" title="已回访">Yes</span>
  306. {/if}
  307. {if $vo.isyes == 1}
  308. <span class="hfstate" title="还没有回访">No</span>
  309. {/if}
  310. </div>
  311. </td>
  312. </tr>
  313. {/volist}
  314. </tbody>
  315. </table>
  316. </div>
  317. </body>
  318. <script src="__LAYUI__/layui/layui.js"></script>
  319. {/block}{block name="js"}
  320. <script type="text/javascript">
  321. layui.config({
  322. base: '__LAYUI__/',
  323. urlbase: '/sys'
  324. }).extend({
  325. index: 'lib/index' //主入口模块
  326. }).use(['table','laydate'], function () {
  327. var table = layui.table,
  328. $ = layui.$;
  329. for(let i=0;i< $('.remarkbox').length;i++){
  330. $($('.remarkbox')[i]).html($($('.remarkbox')[i]).data('html'));
  331. }
  332. for(let j=0;j<$('.playaduio').length;j++){
  333. $('.playaduio')[j].index=j;
  334. $($('.playaduio')[j]).click(function() {
  335. let index=this.index;
  336. for (let j = 0; j < $('.playaduio').length; j++) {
  337. let aid1 = $($('.playaduio')[j]).data('audio');
  338. $('#'+aid1)[0].pause();
  339. $($('.playaduio')[j]).show();
  340. $($('.pausebtn')[j]).hide();
  341. }
  342. $($('.playaduio')[index]).hide();
  343. $($('.pausebtn')[index]).show();
  344. let aid = $($('.playaduio')[index]).data('audio');
  345. $('#' + aid)[0].play();
  346. })
  347. $('.pausebtn')[j].index = j;
  348. $('.pausebtn').click(function() {
  349. let index = this.index;
  350. let aid = $($('.pausebtn')[index]).data('audio');
  351. $('#' + aid)[0].pause();
  352. $($('.playaduio')[index]).show();
  353. $($('.pausebtn')[index]).hide();
  354. })
  355. }
  356. let phone="{$data.phone}";
  357. if(phone){
  358. let parr= phone.split('');
  359. $('#showphone').html(parr[0]+''+ parr[1]+'******'+ parr[parr.length-3]+ parr[parr.length - 2]+ parr[parr.length - 1]);
  360. }
  361. $('#showphone').dblclick(function () {
  362. $('#showphone').html(phone);
  363. })
  364. $('.closebtn').click(function(){
  365. $('.addlogbox').show();
  366. $('.setinvalidbox').hide();
  367. })
  368. $('.closediv').click(function(){
  369. window.parent.removealog();
  370. })
  371. })
  372. function GetRequest() {
  373. var url = location.search; //获取url中"?"符后的字串
  374. var theRequest = new Object();
  375. if (url.indexOf("?") != -1) {
  376. var str = url.substr(1);
  377. strs = str.split("&");
  378. for (var i = 0; i < strs.length; i++) {
  379. theRequest[strs[i].split("=")[0]] = (strs[i].split("=")[1]);
  380. }
  381. }
  382. return theRequest;
  383. }
  384. </script>
  385. {/block}