Без опису
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

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