activity_detail.html 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635
  1. <!DOCTYPE HTML>
  2. <html xmlns:th="http://www.thymeleaf.org"
  3. xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
  4. layout:decorate="~{admin/common/common}">
  5. <head>
  6. <title>活动详情</title>
  7. <style>
  8. .ke-container-default {
  9. width: 100% !important
  10. }
  11. .error {
  12. color: red;
  13. }
  14. .upload-box {
  15. width: 400px;
  16. height: 200px;
  17. background: #f5f5f5;
  18. border: solid 1px #ccc;
  19. text-align: center;
  20. }
  21. .shc-box {
  22. margin-top: 60px;
  23. }
  24. .icon-add {
  25. display: inline-block;
  26. width: 60px;
  27. height: 60px;
  28. border: solid 1px #0c80fe;
  29. color: #0c80fe;
  30. border-radius: 50%;
  31. font-size: 40px;
  32. line-height: 60px;
  33. }
  34. .formControls_ul {
  35. width: 95%;
  36. margin: 0 auto;
  37. padding-top: 20px;
  38. }
  39. .formControls_ul li {
  40. }
  41. .formControls_p {
  42. border-bottom: 1px solid #ddd;
  43. padding-bottom: 15px;
  44. }
  45. .formControls_p span:last-child {
  46. padding-left: 15px;
  47. }
  48. .r {
  49. padding: 10px 20px;
  50. }
  51. .l {
  52. padding: 10px 20px;
  53. }
  54. .activity-top {
  55. border: solid 1px #dadada;
  56. padding: 15px;
  57. }
  58. .activity-box {
  59. margin-bottom: 10px;
  60. }
  61. .activity-box:last-child {
  62. margin-bottom: 0;
  63. }
  64. .activity-box-label {
  65. display: block;
  66. float: left;
  67. width: 80px;
  68. padding: 5px 0;
  69. }
  70. .activity-box-list {
  71. float: left;
  72. }
  73. .activity-box-list ul {
  74. border: solid 1px #dadada;
  75. }
  76. .activity-box-list ul li {
  77. float: left;
  78. border-right: solid 1px #dadada;
  79. padding: 5px 20px;
  80. cursor: pointer;
  81. }
  82. .activity-box-list ul li.active {
  83. background: #7DB4D8;
  84. color: #fff;
  85. }
  86. .activity-box-list ul li:last-child {
  87. border-right: 0;
  88. }
  89. </style>
  90. </head>
  91. <body layout:fragment="content">
  92. <article class="page-container">
  93. <div class="tabBar cl">
  94. <span>活动详情</span>
  95. <span>报名信息</span>
  96. <span>签到信息</span>
  97. <span onclick="setTabFlag(3)">反馈信息</span>
  98. </div>
  99. <!--活动热度-->
  100. <div>
  101. <div class="tabCon">
  102. <div class="form form-horizontal" id="form-activity-add">
  103. <div class="row cl">
  104. <label class="form-label col-xs-4 col-sm-2">活动类别:</label>
  105. <div class="formControls col-xs-8 col-sm-9">
  106. <p th:text="${activity?.activity_type}"></p>
  107. </div>
  108. </div>
  109. <div class="row cl">
  110. <label class="form-label col-xs-4 col-sm-2">活动标题:</label>
  111. <div class="formControls col-xs-8 col-sm-9">
  112. <p th:text="${activity?.activity_title}"></p>
  113. </div>
  114. </div>
  115. <div class="row cl">
  116. <label class="form-label col-xs-4 col-sm-2">活动地址:</label>
  117. <div class="formControls col-xs-8 col-sm-9">
  118. <p th:text="${activity?.activity_location}"></p>
  119. </div>
  120. </div>
  121. <div class="row cl">
  122. <label class="form-label col-xs-4 col-sm-2"><span>活动时间:</span></label>
  123. <div class="formControls col-xs-8 col-sm-9 clearfix" style="margin-bottom: 10px;">
  124. <label class="form-label col-xs-2 col-sm-2"><span>开始时间:</span></label>
  125. <div class="formControls col-xs-4 col-sm-4">
  126. <p th:text="(${activity.activity_starttime!=null && activity.activity_starttime!=''})?${#strings.substring(activity?.activity_starttime,0,16)}:''"></p>
  127. </div>
  128. </div>
  129. <div class="clearfix">
  130. <label class="form-label col-xs-4 col-sm-2"></label>
  131. <div class="formControls col-xs-8 col-sm-9 clearfix">
  132. <label class="form-label col-xs-2 col-sm-2"><span>结束时间:</span></label>
  133. <div class="formControls col-xs-4 col-sm-4">
  134. <p th:text="(${activity.activity_endtime!=null && activity.activity_endtime!=''})?${#strings.substring(activity?.activity_endtime,0,16)}:''"></p>
  135. </div>
  136. </div>
  137. </div>
  138. </div>
  139. <div class="row cl">
  140. <label class="form-label col-xs-4 col-sm-2"><span>活动海报:</span></label>
  141. <div class="formControls col-xs-8 col-sm-9">
  142. <!-- <img th:src="${activity.fileDown.download_uri} +${activity.fileDown.file_url}" style="max-width: 500px;"> -->
  143. <img th:if="${activity.fileDown.file_url!=null && activity.fileDown.file_url!=''}"
  144. th:src=" ${fileUrl} +${activity.fileDown.file_url}" style="max-width: 500px;">
  145. </div>
  146. </div>
  147. <div class="row cl">
  148. <label class="form-label col-xs-4 col-sm-2"><span>活动限额:</span></label>
  149. <div class="formControls col-xs-2 col-sm-2">
  150. <p th:if="${activity.activity_quota==''||activity.activity_quota==null}">否</p>
  151. <p th:if="${activity.activity_quota!=''&&activity.activity_quota!=null}">是</p>
  152. </div>
  153. </div>
  154. <div class="row cl" th:if="${activity.activity_quota!=null}">
  155. <label class="form-label col-xs-4 col-sm-2">活动名额:</label>
  156. <div class="formControls col-xs-8 col-sm-9">
  157. <p th:text="${activity?.activity_quota}"></p>
  158. </div>
  159. </div>
  160. <div class="row cl">
  161. <label class="form-label col-xs-4 col-sm-2"><span>报名截止日期:</span></label>
  162. <div class="formControls col-xs-3 col-sm-3">
  163. <p th:text="(${activity.activity_deadline!=null && activity.activity_deadline!=''})?${#strings.substring(activity?.activity_deadline,0,16)}:''"></p>
  164. </div>
  165. </div>
  166. <div class="row cl">
  167. <label class="form-label col-xs-4 col-sm-2">审核报名者:</label>
  168. <div class="formControls col-xs-8 col-sm-9">
  169. <p th:if="${activity.is_review=='0'}">是</p>
  170. <p th:if="${activity.is_review=='1'}">否</p>
  171. </div>
  172. </div>
  173. <div class="row cl">
  174. <label class="form-label col-xs-4 col-sm-2">是否公开:</label>
  175. <div class="formControls col-xs-8 col-sm-9">
  176. <p th:if="${activity.is_public=='0'}">是</p>
  177. <p th:if="${activity.is_public=='1'}">否</p>
  178. </div>
  179. </div>
  180. <div class="row cl">
  181. <label class="form-label col-xs-4 col-sm-2">推送对象:</label>
  182. <div class="formControls col-xs-8 col-sm-9">
  183. <!--<p >难道是老了吗?为什么开始抛弃小白鞋爱上小粉鞋了?</p>-->
  184. </div>
  185. </div>
  186. <div class="row cl">
  187. <label class="form-label col-xs-4 col-sm-2"></label>
  188. <span id="pushNames" th:text="${activity.push_names}"></span>
  189. </div>
  190. <div class="row cl">
  191. <label class="form-label col-xs-4 col-sm-2"><span>推送级别:</span></label>
  192. <div class="formControls col-xs-2 col-sm-2">
  193. <p th:if="${activity.push_level=='0'}">普通</p>
  194. <p th:if="${activity.push_level=='1'}">重要</p>
  195. </div>
  196. </div>
  197. <div class="row cl">
  198. <label class="form-label col-xs-4 col-sm-2">内容:</label>
  199. <div class="formControls col-xs-8 col-sm-9">
  200. <!--<p>[[${activity?.content}]]</p>-->
  201. <span th:utext="*{activity.content}"></span>
  202. </div>
  203. </div>
  204. <div class="row cl" style="text-align: center">
  205. <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
  206. <a onclick="removeIframe();" class="btn btn-default radius" type="button">返回</a>
  207. </div>
  208. </div>
  209. </div>
  210. </div>
  211. <!--报名信息-->
  212. <div class="tabCon">
  213. <span class="l" th:if="${quota != null && quota != ''}" th:text="${'审核通过/名额人数:'+num+'/'+quota}"></span>
  214. <span class="r" th:text="${'共报名'+#lists.size(registrationSuccessList)+'人'}"></span>
  215. <table class="table table-border table-bordered table-bg table-hover"
  216. style="table-layout: fixed;width:100%;">
  217. <thead>
  218. <tr class="text-c">
  219. <th>单位名称</th>
  220. <th width="90">姓名</th>
  221. <th>手机号码</th>
  222. <th>邮箱</th>
  223. <th>职位</th>
  224. <th>报名途径</th>
  225. <th width="90">审核结果</th>
  226. </tr>
  227. </thead>
  228. <tbody>
  229. <tr class="text-c" th:each="m,iterStat:${registrationList}">
  230. <td th:text="${m.user_name}"></td>
  231. <td th:text="${m.name}"></td>
  232. <td th:text="${m.phone}"></td>
  233. <td th:text="${m.mail}"></td>
  234. <td th:text="${m.position}"></td>
  235. <!--报名途径-->
  236. <td th:if="${m.registration_way=='0'}">门户</td>
  237. <td th:if="${m.registration_way=='1'}">微信</td>
  238. <!--报名途径-->
  239. <td th:if="${m.review_state=='0'}">待审核</td>
  240. <td th:if="${m.review_state=='1'}">通过</td>
  241. <td th:if="${m.review_state=='2'}">驳回</td>
  242. <td th:if="${m.review_state=='3'}">取消报名</td>
  243. </tr>
  244. </tbody>
  245. </table>
  246. <div class="row cl" style="padding-top: 10px">
  247. <div style="text-align: center">
  248. <!--<a th:onclick="'javascript:print(\'打印\',\'/government/activity/printReg/'+${activity.id}+'\');'"
  249. class="btn btn-secondary radius" type="button">打印全部</a>-->
  250. <a th:onclick="'javascript:exportExcelRegistration(\''+${activity.id}+'\');'"
  251. class="btn btn-secondary radius" type="button">下载</a>
  252. <a onclick="removeIframe();" class="btn btn-default radius" type="button">返回</a>
  253. </div>
  254. </div>
  255. </div>
  256. <!--签到信息-->
  257. <div class="tabCon">
  258. <span class="r" th:text="${'共报名'+#lists.size(signList)+'人'}"></span>
  259. <table class="table table-border table-bordered table-bg table-hover"
  260. style="table-layout: fixed;width:100%;">
  261. <thead>
  262. <tr class="text-c">
  263. <th>单位名称</th>
  264. <th width="90">姓名</th>
  265. <th>职位</th>
  266. <th>手机号码</th>
  267. <th>报名时间</th>
  268. <th>签到信息</th>
  269. <th>签到时间</th>
  270. </tr>
  271. </thead>
  272. <tbody>
  273. <tr class="text-c" th:each="m,iterStat:${signList}">
  274. <!--单位名称-->
  275. <td th:text="${m.user_name}"></td>
  276. <!--姓名-->
  277. <td th:text="${m.name}"></td>
  278. <!--职位-->
  279. <td th:text="${m.position}"></td>
  280. <!--手机号码-->
  281. <td th:text="${m.phone}"></td>
  282. <!--报名时间-->
  283. <td th:text="${#dates.format(m.registration_time, 'yyyy-MM-dd HH:mm:ss')}"></td>
  284. <!--签到信息-->
  285. <td th:if="${m.sign_state=='' || m.sign_state==null}">待确认</td>
  286. <td th:if="${m.sign_state=='0'}">已签到</td>
  287. <td th:if="${m.sign_state=='1'}">未参加</td>
  288. <!--签到时间-->
  289. <td th:text="${#dates.format(m.sign_time, 'yyyy-MM-dd HH:mm:ss')}"></td>
  290. </tr>
  291. </tbody>
  292. </table>
  293. <div class="row cl" style="padding-top: 10px">
  294. <div style="text-align: center">
  295. <a th:onclick="'javascript:exportExcelSign(\''+${activity.id}+'\');'"
  296. class="btn btn-secondary radius" type="button">下载</a>
  297. <a onclick="removeIframe();" class="btn btn-default radius" type="button">返回</a>
  298. </div>
  299. </div>
  300. </div>
  301. <!--反馈信息-->
  302. <div class="tabCon">
  303. <form id="myForm" th:action="@{/government/activity/get/{activity_id}(activity_id=${activity_id})}"
  304. th:method="get">
  305. <div class="activity-top">
  306. <div class="clearfix activity-box">
  307. <span class="activity-box-label">综合评分:</span>
  308. <div class="activity-box-list">
  309. <ul class="clearfix" id="feedback_type">
  310. <li th:class="${maxScore=='101'&&minScore=='-1'}? 'active' : ''">
  311. <input hidden name="maxScore" type="radio" th:checked="${maxScore=='101'}"
  312. value="101">
  313. <input hidden name="minScore" type="radio" th:checked="${minScore=='-1'}"
  314. value="-1">
  315. <span>全部</span>
  316. <span th:text="${'('+scoreCount.score_all+')'}">(0)</span>
  317. </li>
  318. <li th:class="${maxScore=='100'&&minScore=='80'}? 'active' : ''">
  319. <input hidden name="maxScore" type="radio" th:checked="${maxScore=='100'}"
  320. value="100">
  321. <input hidden name="minScore" type="radio" th:checked="${minScore=='80'}"
  322. value="80">
  323. <span>100-80</span>
  324. <span th:text="${'('+scoreCount.score100_80+')'}">(0)</span>
  325. </li>
  326. <li th:class="${maxScore=='80'&&minScore=='60'}? 'active' : ''">
  327. <input hidden name="maxScore" type="radio" th:checked="${maxScore=='80'}"
  328. value="80">
  329. <input hidden name="minScore" type="radio" th:checked="${minScore=='60'}"
  330. value="60">
  331. <span>80-60</span>
  332. <span th:text="${'('+scoreCount.score80_60+')'}">(0)</span>
  333. </li>
  334. <li th:class="${maxScore=='60'&&minScore=='40'}? 'active' : ''">
  335. <input hidden name="maxScore" type="radio" th:checked="${maxScore=='60'}"
  336. value="60">
  337. <input hidden name="minScore" type="radio" th:checked="${minScore=='40'}"
  338. value="40">
  339. <span>60-40</span>
  340. <span th:text="${'('+scoreCount.score60_40+')'}">(0)</span>
  341. </li>
  342. <li th:class="${maxScore=='40'&&minScore=='20'}? 'active' : ''">
  343. <input hidden name="maxScore" type="radio" th:checked="${maxScore=='40'}"
  344. value="40">
  345. <input hidden name="minScore" type="radio" th:checked="${minScore=='20'}"
  346. value="20">
  347. <span>40-20</span>
  348. <span th:text="${'('+scoreCount.score40_20+')'}">(0)</span>
  349. </li>
  350. <li th:class="${maxScore=='20'&&minScore=='-2'}? 'active' : ''">
  351. <input hidden name="maxScore" type="radio" th:checked="${maxScore=='20'}"
  352. value="20">
  353. <input hidden name="minScore" type="radio" th:checked="${minScore=='-2'}"
  354. value="-2">
  355. <span>20-0</span>
  356. <span th:text="${'('+scoreCount.score20_0+')'}">(0)</span>
  357. </li>
  358. </ul>
  359. </div>
  360. </div>
  361. </div>
  362. <div class="page-container">
  363. <div class="cl pd-5 bg-1 bk-gray mt-20">
  364. <span class="l">
  365. </span>
  366. <span class="r">共有数据:<strong th:text="${pageInfo?.total}" id="total">0</strong> 条</span>
  367. </div>
  368. <table class="table table-border table-bordered table-bg table-hover"
  369. style="table-layout: fixed;width:100%;">
  370. <thead>
  371. <tr class="text-c">
  372. <th width="60">用户姓名</th>
  373. <th width="100">反馈时间</th>
  374. <th>活动评价</th>
  375. <th width="60">综合评分</th>
  376. <th>反馈及建议</th>
  377. <th>回复内容</th>
  378. <th width="60">反馈类型</th>
  379. <th width="60">是否显示</th>
  380. <th width="120">操作</th>
  381. </tr>
  382. </thead>
  383. <tbody>
  384. <tr class="text-c" th:each="m,iterStat:${pageInfo.list}">
  385. <!-- 用户姓名 -->
  386. <td th:text="${m.feedback_name}"></td>
  387. <!-- 反馈时间 -->
  388. <td>
  389. <p th:text="${#dates.format(m.feedback_time,'yyyy年MM月dd日')}"></p>
  390. <p th:text="${#dates.format(m.feedback_time,'HH:mm:ss')}"></p>
  391. </td>
  392. <!-- 活动评价 -->
  393. <td>
  394. <p>内容设计(20分)
  395. <i th:if="${m.score_1 > 0}">
  396. <i th:each="i:${#numbers.sequence(1,m.score_1)}" class="ifont-xing"
  397. style="color:#FFD700"></i>
  398. </i>
  399. <i th:if="${m.score_1 < 5}">
  400. <i th:each="i:${#numbers.sequence(m.score_1,4)}" class="ifont-star"
  401. style="color:#DCDCDC"></i>
  402. </i>
  403. </p>
  404. <p>讲师水平(20分)
  405. <i th:if="${m.score_2 > 0}">
  406. <i th:each="i:${#numbers.sequence(1,m.score_2)}" class="ifont-xing"
  407. style="color:#FFD700"></i>
  408. </i>
  409. <i th:if="${m.score_2 < 5}">
  410. <i th:each="i:${#numbers.sequence(m.score_2,4)}" class="ifont-star"
  411. style="color:#DCDCDC"></i>
  412. </i>
  413. </p>
  414. <p>活动效果(60分)
  415. <i th:if="${m.score_3 > 0}">
  416. <i th:each="i:${#numbers.sequence(1,m.score_3)}" class="ifont-xing"
  417. style="color:#FFD700"></i>
  418. </i>
  419. <i th:if="${m.score_3 < 5}">
  420. <i th:each="i:${#numbers.sequence(m.score_3,4)}" class="ifont-star"
  421. style="color:#DCDCDC"></i>
  422. </i>
  423. </p>
  424. </td>
  425. <!-- 综合评分 -->
  426. <td th:text="${m.score}"></td>
  427. <!-- 反馈及建议 -->
  428. <td th:text="${m.content}"></td>
  429. <!-- 回复内容 -->
  430. <td th:id="'reply_'+${m.id}" th:text="${m.reply}"></td>
  431. <!-- 反馈类型 -->
  432. <td th:if="${m.is_public==true}">公开</td>
  433. <td th:if="${m.is_public==false}">不公开</td>
  434. <!-- 是否显示 -->
  435. <!-- <td th:text="${m.is_view}"></td> -->
  436. <td th:if="${m.is_view==true}">显示</td>
  437. <td th:if="${m.is_view==false}">不显示</td>
  438. <!-- 操作 -->
  439. <td>
  440. <a class="ml-5" style="color: rgb(14, 144, 210);"
  441. th:if="${m.is_top==false && m.is_public==true}"
  442. th:onclick="'javascript:top_feedback('+${m.id}+')'">
  443. 置顶
  444. </a>
  445. <i class="ml-5" style="font-style:normal"
  446. th:if="${m.is_top==false && m.is_public==false}">
  447. 置顶
  448. </i>
  449. <i class="ml-5" style="font-style:normal"
  450. th:if="${m.is_top==true}">
  451. 已置顶
  452. </i>
  453. <a class="ml-5" style="color: rgb(14, 144, 210);"
  454. th:if="${m.is_view==false}" th:onclick="'javascript:show_feedback('+${m.id}+')'">
  455. 显示
  456. </a>
  457. <a class="ml-5" style="color: rgb(14, 144, 210);"
  458. th:if="${m.is_view==true}" th:onclick="'javascript:display_feedback('+${m.id}+')'">
  459. 不显示
  460. </a>
  461. <a class="ml-5" style="color: rgb(14, 144, 210);"
  462. th:onclick="'javascript:reply_dialog(\'回复\',\'/government/activity/reply/'+${m.id}+'\',\'800\',\'500\');'">回复</a>
  463. </td>
  464. </tr>
  465. </tbody>
  466. </table>
  467. <div th:replace="admin/common/page :: page"></div>
  468. </div>
  469. </form>
  470. </div>
  471. </div>
  472. </article>
  473. <script type="text/javascript" th:src="@{/js/common/page.js}"></script>
  474. <script th:inline="javascript">
  475. $(function () {
  476. $(".activity-box-list ul li").on("click", function () {
  477. if ($(this).hasClass("active")) {
  478. $(this).removeClass("active")
  479. } else {
  480. $(this).addClass("active").siblings().removeClass("active")
  481. }
  482. });
  483. });
  484. $("ul#feedback_type").on("click", "li", function () {
  485. maxScore = $(this).children("input").eq(0).val();
  486. minScore = $(this).children("input").eq(1).val();
  487. $('input:radio[name="maxScore"]').removeAttr('checked');
  488. $('input:radio[name="minScore"]').removeAttr('checked');
  489. $(this).children("input").eq(0).attr('checked', true);
  490. $(this).children("input").eq(1).attr('checked', true);
  491. url = pagePath + "/government/activity/get/" + [[${activity_id}]] + "?minScore=" + minScore + "&maxScore=" + maxScore;
  492. location.replace(url);
  493. });
  494. // tab切换
  495. tabChange_custom(".tabBar", ".tabCon");
  496. function tabChange_custom(tabMenu, tabContent) {
  497. var tabIndex = 0;
  498. if (sessionStorage.getItem("tabIndex") != undefined && sessionStorage.getItem("tabIndex") != null) {
  499. tabIndex = sessionStorage.getItem("tabIndex")
  500. }
  501. var $tab = $(tabMenu);
  502. $tab.find("span").eq(tabIndex).addClass("current");
  503. $(tabContent).eq(tabIndex).show();
  504. $tab.find("span").on("click", function () {
  505. var index = $(this).index();
  506. $(this).addClass("current").siblings().removeClass("current");
  507. $(tabContent).eq(index).show().siblings().hide();
  508. })
  509. }
  510. function setTabFlag(index) {
  511. sessionStorage.setItem("tabIndex", index);
  512. }
  513. function print(title, url, w, h) {
  514. var index = layer_show(title, pagePath + url, w, h);
  515. layer.full(index);
  516. }
  517. function exportExcelRegistration(id) {
  518. window.open(pagePath + "/government/activity/exportExcelRegistration?id=" + id);
  519. }
  520. function exportExcelSign(id) {
  521. window.open(pagePath + "/government/activity/exportExcelSign?id=" + id);
  522. }
  523. function reply_dialog(title, url, w, h) {
  524. var index = layer_show(title, pagePath + url, w, h);
  525. }
  526. function show_feedback(feedback_id) {
  527. $.ajax({
  528. type: 'put',
  529. url: pagePath + "/activity/comment/feedback",
  530. dataType: "json",
  531. data: {
  532. id: feedback_id,
  533. is_view: true
  534. },
  535. success: function (data) {
  536. smileMessage('操作成功!')
  537. setTime();
  538. },
  539. error: function () {
  540. errorMessage('系统错误!');
  541. }
  542. });
  543. }
  544. function display_feedback(feedback_id) {
  545. $.ajax({
  546. type: 'put',
  547. url: pagePath + "/activity/comment/feedback",
  548. dataType: "json",
  549. data: {
  550. id: feedback_id,
  551. is_view: false
  552. },
  553. success: function (data) {
  554. smileMessage('操作成功!')
  555. setTime();
  556. },
  557. error: function () {
  558. errorMessage('系统错误!');
  559. }
  560. });
  561. }
  562. function top_feedback(feedback_id) {
  563. layer.confirm('确定置顶此条反馈内容吗?', function () {
  564. //此处请求后台程序,下方是成功后的前台处理……
  565. $.ajax({
  566. type: 'put',
  567. url: pagePath + "/activity/comment/feedback",
  568. dataType: "json",
  569. data: {
  570. id: feedback_id,
  571. is_top: true
  572. },
  573. success: function (data) {
  574. smileMessage('操作成功!')
  575. setTime();
  576. },
  577. error: function () {
  578. errorMessage('系统错误!');
  579. }
  580. });
  581. });
  582. }
  583. /**
  584. * 取消
  585. */
  586. function removeIframe() {
  587. var index = parent.layer.getFrameIndex(window.name);
  588. parent.layer.close(index);
  589. }
  590. </script>
  591. </body>
  592. </html>