説明なし
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

details.htm 37KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>{$eyou.field.info.seo_title}</title>
  5. <meta name="description" content="{$eyou.field.info.seo_description}" />
  6. <meta name="keywords" content="{$eyou.field.info.seo_keywords}" />
  7. <meta name="renderer" content="webkit" />
  8. <meta charset="utf-8" />
  9. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=0,minimal-ui" />
  11. <link href="{eyou:global name='web_cmspath' /}/favicon.ico" rel="shortcut icon" type="image/x-icon" />
  12. {eyou:static file="skin/css/eyoucms.css" code="ask"/}
  13. {eyou:static file="skin/css/ask.css" code="ask"/}
  14. <script>
  15. var __root_dir__ = "__ROOT_DIR__";
  16. </script>
  17. {eyou:static file="/public/static/common/js/jquery.min.js"/}
  18. {eyou:static file="/public/plugins/layer-v3.1.0/layer.js"/}
  19. {eyou:static file="skin/js/ask.js" code="ask"/}
  20. </head>
  21. <body>
  22. <!-- 头部 -->
  23. {eyou:include file="ask/mobile/ask_header.htm" /}
  24. <!-- END -->
  25. <main class="mian-body container">
  26. <aside class="aside-left col-md-9">
  27. <!-- 栏目导航、搜索 -->
  28. {eyou:include file="ask/mobile/hotsearch.htm" /}
  29. <!-- END -->
  30. <!-- 问题详情 -->
  31. <div class="wenda">
  32. <h3 class="wt-head {eyou:eq name='$eyou.field.info.status' value='1'}solved{eyou:else/}no_solve{/eyou:eq}">{$eyou.field.info.ask_title}</h3>
  33. <div class="wt-desc">
  34. {$eyou.field.info.content}
  35. </div>
  36. <div class="wt-bucong">
  37. <div class="wt-opt">
  38. <span>
  39. {$eyou.field.info.add_time}
  40. <span style="margin:0 5px"> | </span>
  41. {$eyou.field.info.click}人阅读
  42. {eyou:notempty name="$users.admin_id"}
  43. <span style="margin:0 5px"> | </span>
  44. <a href="{$eyou.field.EditAskUrl}">编辑</a>
  45. <span style="margin:0 5px"> | </span>
  46. <a href="javascript:void(0);" data-url="{$eyou.field.DelAnswerUrl}" onclick="DataDel(this, '{$eyou.field.info.ask_id}', 1)" class="secend-huifu-btn">删除</a>
  47. {eyou:else/}
  48. {eyou:notempty name="$eyou.field.IsUsers"}
  49. <span style="margin:0 5px"> | </span>
  50. <a href="{$eyou.field.EditAskUrl}">编辑</a>
  51. {/eyou:notempty}
  52. {/eyou:notempty}
  53. {eyou:eq name='$AdminParentId' value='0'}
  54. <!-- AdminParentId=0表示创始人 -->
  55. {eyou:eq name='$eyou.field.info.is_review' value='0'}
  56. <!-- is_review=0表示未审核 -->
  57. <span id='{$eyou.field.info.ask_id}_Ask'>
  58. <span style="margin:0 10px"> | </span>
  59. <span data-url='{$eyou.field.ReviewAskUrl}' onclick="ReviewAsk(this, '{$eyou.field.info.ask_id}');" class="secend-huifu-btn" style="cursor: pointer; color: red;" title="该问题未审核,可点击审核,仅创始人可操作">审核</span>
  60. </span>
  61. {/eyou:eq}
  62. {/eyou:eq}
  63. </span>
  64. </div>
  65. </div>
  66. </div>
  67. <!-- END -->
  68. <!-- 最佳答案 -->
  69. {eyou:notempty name="$eyou.field.BestAnswer"}
  70. <div class="wenti-huifu">
  71. <div class="huifu-head"><div><strong>最佳答案</strong></div></div>
  72. <ul class="huifu-list" id="BestAnswer">
  73. <div>
  74. {eyou:volist name="$eyou.field.BestAnswer" id="vo"}
  75. <li class="huifu-li" id="ul_div_li_{$vo.answer_id}">
  76. <div class="huifu-user">
  77. <a class="user_card" href="javascript:void(0);">
  78. <img src="{$vo.head_pic}" style="width:40px;height:40px;border-radius:100%">
  79. </a>
  80. <a href="javascript:void(0);">
  81. <div class="user-nice">
  82. <p class="nice" style="line-height: initial;margin-bottom: 7px">{$vo.username}</p>
  83. <p class="jianjie" style="margin-top: -5px"></p>
  84. </div>
  85. </a>
  86. <div style="flex-grow:1"></div>
  87. <div class="dianzan-bnt" data-url="{$eyou.field.ClickLikeUrl}" data-is_like='' onclick="ClickLike(this, '{$vo.ask_id}', '{$vo.answer_id}')">
  88. <span id="click_like_{$vo.answer_id}">{$vo.AnswerLike.LikeNum|default='0'}</span>
  89. <i class="fa fa-thumbs-up" style="margin-left:5px;"></i>
  90. </div>
  91. </div>
  92. <div class="weiguan-people" id="click_like_name_{$vo.answer_id}">
  93. <span id="click_like_span_{$vo.answer_id}">
  94. {$vo.AnswerLike.LikeName}
  95. </span>
  96. <span id="is_show_{$vo.answer_id}" {eyou:empty name="$vo.AnswerLike.LikeNum"} style="display: none;" {/eyou:empty}>
  97. 等<font id="askanswer_click_like_{$vo.answer_id}">{$vo.AnswerLike.LikeNum}</font>人赞同
  98. </span>
  99. </div>
  100. <div class="huifu-text-box">
  101. <div class="huifu-content resetEditer">
  102. {$vo.content}
  103. </div>
  104. <div class="huifu-time">
  105. <span>{$vo.add_time}</span>
  106. {eyou:notempty name="$users.admin_id"}
  107. <span style="float:right">
  108. <a class="a" href="javascript:void(0);" onclick="EditAnswer(this, '{$vo.answer_id}');" data-url="{$eyou.field.EditAnswer}">编辑</a>
  109. <span style="margin:0 5px;">|</span>
  110. <a class="a" href="javascript:void(0);" data-url="{$eyou.field.DelAnswerUrl}" onclick="DataDel(this, '{$vo.answer_id}', 3)">删除</a>
  111. </span>
  112. {eyou:else/}
  113. {eyou:eq name="$vo.users_id" value="$users.users_id"}
  114. <span style="float:right">
  115. <a class="a" href="javascript:void(0);" onclick="EditAnswer(this, '{$vo.answer_id}');" data-url="{$eyou.field.EditAnswer}">编辑</a>
  116. </span>
  117. {/eyou:eq}
  118. {/eyou:notempty}
  119. </div>
  120. <div class="secend-huifu">
  121. <ul class="secend-ul">
  122. <div id="{$vo.answer_id}_ReplyContainer">
  123. {eyou:volist name="$vo.AnswerSubData" id="vo_sub"}
  124. <li class="secend-li" id="{$vo_sub.answer_id}_answer_li">
  125. <div class="head-secend">
  126. <a href="javascript:void(0);">
  127. <img src="{$vo_sub.head_pic}" style="width:30px;height:30px;border-radius:100%;margin-right: 16px;">
  128. </a>
  129. <strong>{$vo_sub.username}</strong>
  130. <span style="margin:0 10px"> | </span>
  131. <span>{$vo_sub.add_time}</span>
  132. <div style="flex-grow:1"></div>
  133. {eyou:eq name='$AdminParentId' value='0'}
  134. <!-- AdminParentId=0表示创始人 -->
  135. {eyou:eq name='$vo_sub.is_review' value='0'}
  136. <!-- is_review=0表示未审核 -->
  137. <span id='{$vo_sub.answer_id}_Review'>
  138. <span data-url='{$eyou.field.ReviewCommentUrl}' onclick="Review(this, '{$vo_sub.answer_id}', 0)" class="secend-huifu-btn" style="cursor: pointer; color: red;" title="该评论未审核,可点击审核,仅创始人可操作">审核</span>
  139. <span style="margin:0 10px"> | </span>
  140. </span>
  141. {/eyou:eq}
  142. {/eyou:eq}
  143. <span onclick="replyUser('{$vo_sub.answer_pid}','{$vo_sub.users_id}','{$vo_sub.username}','{$vo_sub.answer_id}')" class="secend-huifu-btn" style="cursor: pointer;">回复</span>
  144. {eyou:notempty name="$users.admin_id"}
  145. &nbsp;&nbsp;|&nbsp;&nbsp;
  146. <a href="javascript:void(0);" data-url="{$eyou.field.DelAnswerUrl}" onclick="DataDel(this, '{$vo_sub.answer_id}', 2)" class="secend-huifu-btn" style="cursor: pointer; color:red;">删除</a>
  147. {eyou:else/}
  148. {eyou:eq name="$vo_sub.users_id" value="$users.users_id"}
  149. &nbsp;&nbsp;|&nbsp;&nbsp;
  150. <a href="javascript:void(0);" data-url="{$eyou.field.DelAnswerUrl}" onclick="DataDel(this, '{$vo_sub.answer_id}', 2)" class="secend-huifu-btn" style="cursor: pointer; color:red;">删除</a>
  151. {/eyou:eq}
  152. {/eyou:notempty}
  153. </div>
  154. <div class="secend-huifu-text">
  155. {eyou:empty name="$vo_sub.at_users_id"}
  156. {$vo_sub.content}
  157. {eyou:else/}
  158. 回复 @{$vo_sub.at_usersname}: &nbsp; {$vo_sub.content}
  159. {/eyou:empty}
  160. </div>
  161. </li>
  162. {/eyou:volist}
  163. </div>
  164. <!--分页 begin-->
  165. {gt name='$eyou.field.AnswerCount' value='$eyou.field.listRows+1'}
  166. <a href="javascript:void(0);" data-url="{$eyou.field.ShowCommentUrl}" onclick="ShowComment(this, '{$vo.answer_id}', 0)" data-firstRow="{$eyou.field.firstRow}" data-listRows="{$eyou.field.listRows}" {eyou:empty name='$vo.AnswerSubData'}style="display: none;"{/eyou:empty}>查看更多</a>
  167. {/gt}
  168. <!--分页 end-->
  169. <div class="huifu-area">
  170. <div id="{$vo.answer_id}_init_ta">
  171. <div class="pro_rela">
  172. <textarea style="height: 42px" onfocus="initReply('{$vo.answer_id}');" id="{$vo.answer_id}_contentInput" name="content" rows="1" class="pl_text" maxlength="300" deftips="^-^我来说两句......" placeholder="^-^我来说两句......"></textarea>
  173. {eyou:empty name="$users.users_id"}
  174. <p class="login_tips1">请先
  175. <a class="org_font" href="{:url('user/Users/login')}">登录</a>
  176. <em>·</em>
  177. <a class="org_font" href="{:url('user/Users/reg')}">注册</a>
  178. </p>
  179. {/eyou:empty}
  180. </div>
  181. </div>
  182. <form id="{$vo.answer_id}_replyForm">
  183. <input type="hidden" id="answer_id" value="{$vo.answer_id}" name="answer_id">
  184. <input type="hidden" name="type_id" value="{$eyou.field.info.type_id}">
  185. <input type="hidden" id="{$vo.answer_id}_at_users_id" value="" name="at_users_id">
  186. <input type="hidden" id="{$vo.answer_id}_at_answer_id" value="" name="at_answer_id">
  187. <div id="{$vo.answer_id}_ta" style="display: none;">
  188. <p>
  189. <textarea sdtyle="height: 70px" id="{$vo.answer_id}_i_contentInput" name="content" rows="3" class="pl_text" onfocus="focusTextArea(this);" onblur="blurTextArea(this);" onkeyup="dealInputContentAndSize(this);" maxlength="300" deftips="^-^我来说两句......" placeholder="^-^我来说两句......"></textarea>
  190. </p>
  191. <input type="hidden" name="form_id" value="AnswerFormAddData" />
  192. <input type="hidden" name="__token__add_answer" class="token_answer_1652345941" value="" />
  193. <p class="mar_t10 text_r">
  194. <span class="jiu_font float_l" id="{$vo.answer_id}_errorMsg" style="color: red;"></span>
  195. <a href="javascript:void(0);" class="mar_r10" onclick="unReplyUser('{$vo.answer_id}');">取消</a>
  196. <span value="评论" class="editreplaybtn" data-url="{$eyou.field.AddAnswerUrl}" onclick="reply('{$vo.answer_id}', this);" style="cursor: pointer">评论</span>
  197. </p>
  198. </div>
  199. </form>
  200. </div>
  201. </ul>
  202. </div>
  203. <input type="hidden" id="{$vo.answer_id}_page" value="1">
  204. </li>
  205. {/eyou:volist}
  206. </div>
  207. </ul>
  208. </div>
  209. {/eyou:notempty}
  210. <!-- END -->
  211. <!-- 回答 -->
  212. {eyou:empty name="$eyou.field.AnswerData"}
  213. <div class="huifu-edit">
  214. <div class="huifu-null" > <img src="{eyou:static file="skin/images/kong_pic2.png" code="ask"/}" alt="">
  215. <p style="margin-top: 10px;">暂时还没回答,等你发挥</p>
  216. </div>
  217. </div>
  218. {eyou:else/}
  219. <div class="wenti-huifu" id='comment'>
  220. <div class="huifu-head">
  221. <div>
  222. <strong>回答</strong>
  223. <span style="margin:0 10px;color:#E5E5E5">|</span>
  224. <span style="font-size: 14px;color:#999">共
  225. <span id="detail_comment_count_DIV">{$eyou.field.AnswerCount}</span> 个
  226. </span>
  227. </div>
  228. <div class="hf-head-flr">
  229. <span class="hf-head-flr-span" id="orderName" style="color:#406080;font-size:14px;cursor: pointer;">
  230. <a href="javascript:void(0);" data-url="{$eyou.field.AnswerLikeNum}" data-sort_order='{$eyou.field.SortOrder}' onclick="AnswerLike(this);">
  231. 按点赞量排序
  232. </a>
  233. </span>
  234. <i class="icon iconfont icon-down" style="font-size: 12px;color: #999;display: inline-block;margin-left: 5px;"></i>
  235. </div>
  236. </div>
  237. <ul class="huifu-list" id="AnswerData">
  238. <div>
  239. {eyou:volist name="$eyou.field.AnswerData" id="vo"}
  240. <li class="huifu-li" id="ul_div_li_{$vo.answer_id}">
  241. <div class="huifu-user">
  242. <a class="user_card" href="javascript:void(0);">
  243. <img src="{$vo.head_pic}" style="width:40px;height:40px;border-radius:100%">
  244. </a>
  245. <a href="javascript:void(0);">
  246. <div class="user-nice">
  247. <p class="nice" style="line-height: initial;margin-bottom: 7px">{$vo.nickname}</p>
  248. <p class="jianjie" style="margin-top: -5px"></p>
  249. </div>
  250. </a>
  251. <div style="flex-grow:1"></div>
  252. <div class="dianzan-bnt" data-url="{$eyou.field.ClickLikeUrl}" data-is_like='' onclick="ClickLike(this, '{$vo.ask_id}', '{$vo.answer_id}')">
  253. <span id="click_like_{$vo.answer_id}">{$vo.AnswerLike.LikeNum|default='0'}</span>
  254. <i class="fa fa-thumbs-up" style="margin-left:5px;"></i>
  255. </div>
  256. </div>
  257. <div class="weiguan-people" id="click_like_name_{$vo.answer_id}">
  258. <span id="click_like_span_{$vo.answer_id}">
  259. {$vo.AnswerLike.LikeName}
  260. </span>
  261. <span id="is_show_{$vo.answer_id}" {eyou:empty name="$vo.AnswerLike.LikeNum"} style="display: none;" {/eyou:empty}>
  262. 等<font id="askanswer_click_like_{$vo.answer_id}">{$vo.AnswerLike.LikeNum}</font>人赞同
  263. </span>
  264. </div>
  265. <div class="huifu-text-box">
  266. <div class="huifu-content resetEditer">
  267. {$vo.content}
  268. </div>
  269. <div class="huifu-time">
  270. <span>{$vo.add_time}</span>
  271. {eyou:notempty name="$users.admin_id"}
  272. <span style="float:right">
  273. {eyou:eq name='$AdminParentId' value='0'}
  274. <!-- AdminParentId=0表示创始人 -->
  275. {eyou:eq name='$vo.is_review' value='0'}
  276. <!-- is_review=0表示未审核 -->
  277. <span id='{$vo.answer_id}_Review'>
  278. <span data-url='{$eyou.field.ReviewCommentUrl}' onclick="Review(this, '{$vo.answer_id}', 1)" class="secend-huifu-btn" style="cursor: pointer; color: red;" title="该评论未审核,可点击审核,仅创始人可操作">审核</span>
  279. <span style="margin:0 5px"> | </span>
  280. </span>
  281. {/eyou:eq}
  282. {/eyou:eq}
  283. <a class="a" href="javascript:void(0);" onclick="EditAnswer(this, '{$vo.answer_id}');" data-url="{$eyou.field.EditAnswer}">编辑</a>
  284. <span style="margin:0 5px;">|</span>
  285. <a class="a" href="javascript:void(0);" data-url="{$eyou.field.DelAnswerUrl}" onclick="DataDel(this, '{$vo.answer_id}', 3)">删除</a>
  286. <span id='{$vo.answer_id}_Best' {eyou:eq name='$vo.is_review' value='0'}style="display: none;"{/eyou:eq}>
  287. <span style="margin:0 5px;">|</span>
  288. <a class="a" data-url="{$eyou.field.BestAnswerUrl}" style="color: red" onclick="BestAnswer(this, '{$vo.answer_id}', '0')">采纳最佳答案</a>
  289. </span>
  290. </span>
  291. {eyou:else/}
  292. {eyou:if condition="empty($eyou.field.info.bestanswer_id) && $eyou.field.info.users_id == $users.users_id"}
  293. <span style="float:right">
  294. <span style="margin:0 5px;">|</span>
  295. <a class="a" data-url="{$eyou.field.BestAnswerUrl}" style="color: red" onclick="BestAnswer(this, '{$vo.answer_id}', '{$eyou.field.info.users_id}')">采纳最佳答案</a>
  296. </span>
  297. {/eyou:if}
  298. {eyou:eq name="$vo.users_id" value="$users.users_id"}
  299. <span style="float:right">
  300. <a class="a" href="javascript:void(0);" onclick="EditAnswer(this, '{$vo.answer_id}');" data-url="{$eyou.field.EditAnswer}">编辑</a>
  301. </span>
  302. {/eyou:eq}
  303. {/eyou:notempty}
  304. </div>
  305. <div class="secend-huifu">
  306. <ul class="secend-ul">
  307. <div id="{$vo.answer_id}_ReplyContainer">
  308. {eyou:volist name="$vo.AnswerSubData" id="vo_sub"}
  309. <li class="secend-li" id="{$vo_sub.answer_id}_answer_li">
  310. <div class="head-secend">
  311. <a href="javascript:void(0);">
  312. <img src="{$vo_sub.head_pic}" style="width:30px;height:30px;border-radius:100%;margin-right: 16px;">
  313. </a>
  314. <strong>{$vo_sub.username}</strong>
  315. <span style="margin:0 10px"> | </span>
  316. <span>{$vo_sub.add_time}</span>
  317. <div style="flex-grow:1"></div>
  318. {eyou:eq name='$AdminParentId' value='0'}
  319. <!-- AdminParentId=0表示创始人 -->
  320. {eyou:eq name='$vo_sub.is_review' value='0'}
  321. <!-- is_review=0表示未审核 -->
  322. <span id='{$vo_sub.answer_id}_Review'>
  323. <span data-url='{$eyou.field.ReviewCommentUrl}' onclick="Review(this, '{$vo_sub.answer_id}', 0)" class="secend-huifu-btn" style="cursor: pointer; color: red;" title="该评论未审核,可点击审核,仅创始人可操作">审核</span>
  324. <span style="margin:0 10px"> | </span>
  325. </span>
  326. {/eyou:eq}
  327. {/eyou:eq}
  328. <span onclick="replyUser('{$vo_sub.answer_pid}','{$vo_sub.users_id}','{$vo_sub.username}','{$vo_sub.answer_id}')" class="secend-huifu-btn" style="cursor: pointer;">回复</span>
  329. {eyou:notempty name="$users.admin_id"}
  330. &nbsp;&nbsp;|&nbsp;&nbsp;
  331. <a href="javascript:void(0);" data-url="{$eyou.field.DelAnswerUrl}" onclick="DataDel(this, '{$vo_sub.answer_id}', 2)" class="secend-huifu-btn" style="cursor: pointer; color:red;">删除</a>
  332. {eyou:else/}
  333. {eyou:eq name="$vo_sub.users_id" value="$users.users_id"}
  334. &nbsp;&nbsp;|&nbsp;&nbsp;
  335. <a href="javascript:void(0);" data-url="{$eyou.field.DelAnswerUrl}" onclick="DataDel(this, '{$vo_sub.answer_id}', 2)" class="secend-huifu-btn" style="cursor: pointer; color:red;">删除</a>
  336. {/eyou:eq}
  337. {/eyou:notempty}
  338. </div>
  339. <div class="secend-huifu-text">
  340. {eyou:empty name="$vo_sub.at_users_id"}
  341. {$vo_sub.content}
  342. {eyou:else/}
  343. 回复 @{$vo_sub.at_usersname}: &nbsp; {$vo_sub.content}
  344. {/eyou:empty}
  345. </div>
  346. </li>
  347. {/eyou:volist}
  348. </div>
  349. <!--分页 begin-->
  350. <a href="javascript:void(0);" data-url="{$eyou.field.ShowCommentUrl}" onclick="ShowComment(this, '{$vo.answer_id}', 1)" data-firstRow="{$eyou.field.firstRow}" data-listRows="{$eyou.field.listRows}" {eyou:empty name='$vo.AnswerSubData'}style="display: none;"{/eyou:empty}>查看更多</a>
  351. <!--分页 end-->
  352. <div class="huifu-area">
  353. <div id="{$vo.answer_id}_init_ta">
  354. <div class="pro_rela">
  355. <textarea style="height: 42px" onfocus="initReply('{$vo.answer_id}');" id="{$vo.answer_id}_contentInput" name="content" rows="1" class="pl_text" maxlength="300" deftips="^-^我来说两句......" placeholder="^-^我来说两句......"></textarea>
  356. {eyou:empty name="$users.users_id"}
  357. <p class="login_tips1">请先
  358. <a class="org_font" href="{:url('user/Users/login')}">登录</a>
  359. <em>·</em>
  360. <a class="org_font" href="{:url('user/Users/reg')}">注册</a>
  361. </p>
  362. {/eyou:empty}
  363. </div>
  364. </div>
  365. <form id="{$vo.answer_id}_replyForm">
  366. <input type="hidden" id="answer_id" value="{$vo.answer_id}" name="answer_id">
  367. <input type="hidden" name="type_id" value="{$eyou.field.info.type_id}">
  368. <input type="hidden" id="{$vo.answer_id}_at_users_id" value="" name="at_users_id">
  369. <input type="hidden" id="{$vo.answer_id}_at_answer_id" value="" name="at_answer_id">
  370. <div id="{$vo.answer_id}_ta" style="display: none;">
  371. <p>
  372. <textarea sdtyle="height: 70px" id="{$vo.answer_id}_i_contentInput" name="content" rows="3" class="pl_text" onfocus="focusTextArea(this);" onblur="blurTextArea(this);" onkeyup="dealInputContentAndSize(this);" maxlength="300" deftips="^-^我来说两句......" placeholder="^-^我来说两句......"></textarea>
  373. </p>
  374. <input type="hidden" name="form_id" value="AnswerFormAddData" />
  375. <input type="hidden" name="__token__add_answer" class="token_answer_1652345941" value="" />
  376. <p class="mar_t10 text_r">
  377. <span class="jiu_font float_l" id="{$vo.answer_id}_errorMsg" style="color: red;"></span>
  378. <a href="javascript:;" class="mar_r10" onclick="unReplyUser('{$vo.answer_id}');">取消</a>
  379. <span value="评论" class="editreplaybtn" data-url="{$eyou.field.AddAnswerUrl}" onclick="reply('{$vo.answer_id}', this);" style="cursor: pointer">评论</span>
  380. </p>
  381. </div>
  382. </form>
  383. </div>
  384. </ul>
  385. </div>
  386. <input type="hidden" id="{$vo.answer_id}_page" value="1">
  387. </li>
  388. {/eyou:volist}
  389. </div>
  390. </ul>
  391. </div>
  392. {/eyou:empty}
  393. <div class="huifu-edit" id='hedit'>
  394. <div class="huifu-user">
  395. <a href="javascript:void(0);">
  396. {eyou:empty name="$users.users_id"}
  397. <img src="{eyou:static file="skin/images/kong_pic2.png" code="ask"/}" style="width:40px;height:40px;border-radius:100%">
  398. {eyou:else/}
  399. <img src="{$users.head_pic}" style="width:40px;height:40px;border-radius:100%">
  400. {/eyou:empty}
  401. </a>
  402. <div class="user-nice">
  403. {eyou:empty name="$users.users_id"}
  404. <p class="nice">游客</p>
  405. {eyou:else/}
  406. <p class="nice">{$users.nickname}</p>
  407. {/eyou:empty}
  408. </div>
  409. </div>
  410. <form id="commentForm" method="post" action="{$eyou.field.AddAnswerUrl}">
  411. <input type="hidden" name="m" value="plugins">
  412. <input type="hidden" name="c" value="Ask">
  413. <input type="hidden" name="a" value="ajax_add_answer">
  414. <input type="hidden" name="type_id" value="{$eyou.field.info.type_id}">
  415. {eyou:empty name="$users.users_id"}
  416. <div id="container" class="edui-default" style="">
  417. <div id="edui1" class="edui-editor edui-default" style="text-indent: 0.5em; height:40px; z-index: 5; border:1px solid #ff6600; padding-top: 6px;">^-^我来说两句,请先
  418. <a href="{:url('user/Users/login')}" style="color: red;">登录</a>
  419. <em>·</em>
  420. <a href="{:url('user/Users/reg')}" style="color: red;">注册</a>
  421. </div>
  422. </div>
  423. {eyou:else/}
  424. <script type="text/javascript">
  425. window.UEDITOR_HOME_URL = "__ROOT_DIR__/public/plugins/Ueditor/";
  426. </script>
  427. {eyou:static file="/public/plugins/Ueditor/ueditor.config.js"/}
  428. {eyou:static file="/public/plugins/Ueditor/ueditor.all.min.js"/}
  429. {eyou:static file="/public/plugins/Ueditor/lang/zh-cn/zh-cn.js"/}
  430. <!-- HTML文本 start -->
  431. <div class="row">
  432. <div class="col-xs-9">
  433. <textarea class="span12 ckeditor" id="ask_content" name="ask_content"></textarea>
  434. </div>
  435. </div>
  436. <script type="text/javascript">
  437. UE.getEditor('ask_content',{
  438. serverUrl :"{:url('user/Uploadify/index',array('savepath'=>'weapp'))}",
  439. zIndex: 999,
  440. initialFrameWidth: "135%", //初化宽度
  441. initialFrameHeight: 300, //初化高度
  442. focus: false, //初始化时,是否让编辑器获得焦点true或false
  443. maximumWords: 99999,
  444. removeFormatAttributes: 'class,style,lang,width,height,align,hspace,valign',//允许的最大字符数 'fullscreen',
  445. pasteplain:false, //是否默认为纯文本粘贴。false为不使用纯文本粘贴,true为使用纯文本粘贴
  446. autoHeightEnabled: false,
  447. toolbars: [["forecolor", "backcolor", "removeformat", "|", "simpleupload", "unlink"]],
  448. // xss 过滤是否开启,inserthtml等操作
  449. xssFilterRules: true,
  450. //input xss过滤
  451. inputXssFilter: true,
  452. //output xss过滤
  453. outputXssFilter: true
  454. });
  455. //必须在提交前渲染编辑器;
  456. function ask_content() {
  457. //判断编辑模式状态:0表示【源代码】HTML视图;1是【设计】视图,即可见即所得;-1表示不可用
  458. if(UE.getEditor("ask_content").queryCommandState('source') != 0) {
  459. UE.getEditor("ask_content").execCommand('source'); //切换到【设计】视图
  460. }
  461. }
  462. </script>
  463. {/eyou:empty}
  464. <input type="hidden" name="form_id" value="AnswerFormAddData" />
  465. <input type="hidden" name="__token__add_answer" id="add_answer_1652345941" class="token_answer_1652345941" value="" />
  466. <div class="edit-opt">
  467. <span class="editbutton" id="CommentButtonDiv" style="cursor: pointer;" data-url="{$eyou.field.AddAnswerUrl}" onclick="return answer_submit(this);">发表回答</span>
  468. </div>
  469. </form>
  470. </div>
  471. <!-- END -->
  472. </aside>
  473. <aside class="aside-right col-md-3">
  474. <div class="wt-opti">
  475. <!-- 个人信息 -->
  476. <div class="people-info">
  477. <a class="user_card" href="javascript:void(0);">
  478. <img src="{$eyou.field.info.head_pic}" style="width:40px;height:40px;border-radius:100%;cursor: pointer">
  479. </a>
  480. <div class="people-info-a">
  481. <h3>{$eyou.field.info.nickname}</h3>
  482. <div></div>
  483. </div>
  484. </div>
  485. <div class="people-btn">
  486. <button class="act tw" onclick="window.location.href='#hedit';">
  487. <i class="fa fa-plus"></i>写回答
  488. </button>
  489. </div>
  490. </div>
  491. <!-- END -->
  492. <!-- 热门帖子 -->
  493. {eyou:include file="ask/mobile/hotpost.htm" /}
  494. <!-- END -->
  495. </aside>
  496. </main>
  497. <script type="text/javascript">
  498. get_token("__token__add_answer");
  499. </script>
  500. </body>
  501. </html>