recent.html 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657
  1. {extend name="layout/layout" /}
  2. {block name="title"}最近阅读{/block}
  3. {block name="css"}
  4. <!-- 这里引入css -->
  5. <link href="{:asset('/css/frontend/common.css')}" rel="stylesheet" type="text/css">
  6. <link href="{:asset('/css/frontend/recently_new.css')}" rel="stylesheet" type="text/css">
  7. <link href="{:asset('/css/frontend/classify.css')}" rel="stylesheet" type="text/css">
  8. <link href="{:asset('/css/frontend/ad/image.css')}" rel="stylesheet" type="text/css">
  9. <style type="text/css">
  10. .content_null_top_border{
  11. border-top: 0;
  12. }
  13. </style>
  14. <style type="text/css">
  15. .read_popup_box, .custom_popup_box{
  16. position: fixed;
  17. left: 0;
  18. right: 0;
  19. bottom: 0;
  20. top: 0;
  21. z-index: 999;
  22. background-color: rgba(0,0,0,.5);
  23. font-size: 0;
  24. text-align: center;
  25. white-space: nowrap;
  26. }
  27. .rpb_main,
  28. .rpb_jgb{
  29. display: inline-block;
  30. vertical-align: middle;
  31. }
  32. .rpb_jgb{
  33. overflow: hidden;
  34. height: 100%;
  35. margin-left: -1px;
  36. width: 1px;
  37. }
  38. .rpb_main{
  39. overflow: hidden;
  40. width: 100%;
  41. }
  42. .rpbm_box{
  43. padding: .3rem .16rem .1rem;
  44. position: relative;
  45. left: 0;
  46. top: 0;
  47. overflow: hidden;
  48. background-color: #fff;
  49. margin: .14rem .48rem;
  50. border-radius: .16rem;
  51. white-space: normal;
  52. -webkit-box-shadow: 0 .03rem .1rem rgba(0, 0, 0, 1);
  53. box-shadow: 0 .03rem .1rem rgba(0, 0, 0, 1);
  54. }
  55. .rpbm_box a{
  56. display: block;
  57. }
  58. .rpb_img{
  59. overflow: hidden;
  60. margin: 0 auto .16rem;
  61. height: 1.39rem;
  62. width: 1.04rem;
  63. border-radius: .04rem;
  64. -webkit-box-shadow: 0 0 .1rem rgba(0, 0, 0, 0.4);
  65. box-shadow: 0 0 .1rem rgba(0, 0, 0, 0.4);
  66. }
  67. .rpb_img a,
  68. .rpb_img img{
  69. overflow: hidden;
  70. display: block;
  71. width: 100%;
  72. height: 100%;
  73. border-radius: .04rem;
  74. }
  75. .rpb_tit{
  76. overflow: hidden;
  77. margin: 0 0 .16rem;
  78. height: .26rem;
  79. font-size: .18rem;
  80. color: #000;
  81. line-height: .26rem;
  82. }
  83. .rpb_tit a{
  84. overflow: hidden;
  85. display: block;
  86. height: .26rem;
  87. font-size: .18rem;
  88. color: #000;
  89. line-height: .26rem;
  90. display: -webkit-box;
  91. -webkit-box-orient: vertical;
  92. -webkit-line-clamp: 1;
  93. }
  94. .rpb_p{
  95. margin-bottom: .1rem;
  96. overflow: hidden;
  97. max-height: .72rem;
  98. }
  99. .rpb_p a{
  100. overflow: hidden;
  101. display: block;
  102. font-size: .14rem;
  103. color: rgba(0,0,0,.5);
  104. text-align: left;
  105. line-height: .24rem;
  106. display: -webkit-box;
  107. -webkit-box-orient: vertical;
  108. -webkit-line-clamp: 3;
  109. }
  110. .rpb_but{
  111. text-align: center;
  112. height: .3rem;
  113. }
  114. .rpb_but a{
  115. display: block;
  116. height: .3rem;
  117. text-align: center;
  118. font-size: .16rem;
  119. color: #007aff;
  120. line-height: .3rem;
  121. }
  122. .rpbm_close_but{
  123. display: block;
  124. position: absolute;
  125. right: .1rem;
  126. top: .1rem;
  127. height: .2rem;
  128. width: .2rem;
  129. background: url(/assets/img/frontend/icon/cha_icon_2.png) no-repeat center center;
  130. background-size: .14rem .14rem;
  131. border-radius: .2rem;
  132. }
  133. .top{
  134. width: 100%;
  135. height: 0.31rem;
  136. padding: 0 0.144rem;
  137. box-sizing: border-box;
  138. margin-top: 0.134rem;
  139. }
  140. .top .toptab{ float: left;}
  141. .top-myshelf{
  142. font-family: PingFangSC;
  143. font-weight: 400;
  144. color: rgba(147,129,129,1);
  145. font-size: 0.144rem;
  146. margin-right: 0.3125rem;
  147. float: left;
  148. height: 0.31rem;
  149. line-height: 0.31rem;
  150. margin-left: 0.9rem;
  151. }
  152. .top .toptab.active{
  153. width: 1rem;
  154. height: 0.31rem;
  155. text-align: center;
  156. line-height: 0.31rem;
  157. border-radius: 0.31rem;
  158. background: rgba(254,237,190,1);
  159. float: left;
  160. margin: 0 0.144rem 0 0rem;
  161. font-family: PingFang-SC;
  162. font-weight: bold;
  163. font-size: 0.144rem;
  164. }
  165. .top .toptab a{
  166. color: rgba(147,129,129,1);
  167. }
  168. .top .toptab.active a{
  169. color: rgba(81,61,61,1);
  170. }
  171. .head_tit_tab{
  172. overflow: hidden;
  173. margin: 0 .5rem;
  174. height: .44rem;
  175. font-size: .15rem;
  176. color: #513D3D;
  177. text-align: center;
  178. line-height: .44rem;
  179. font-size: 0;
  180. text-align: center;
  181. white-space: nowrap;
  182. }
  183. .head_tit_tab a{
  184. display: inline-block;
  185. padding: 0 .05rem;
  186. margin: 0 .05rem;
  187. height: .44rem;
  188. }
  189. .head_tit_tab strong{
  190. display: block;
  191. padding: .14rem 0 .03rem;
  192. height: .2rem;
  193. font-size: .14rem;
  194. font-weight: normal;
  195. text-align: center;
  196. color: #938181;
  197. line-height: .2rem;
  198. }
  199. .head_tit_tab span{
  200. display: block;
  201. margin: 0 auto;
  202. height: .01rem;
  203. width: .5rem;
  204. }
  205. .head_tit_tab .htt_hover strong{
  206. color: #FFB473;
  207. }
  208. .head_tit_tab .htt_hover span{
  209. background-color: #5EBEA1;
  210. }
  211. /*历史记录开始*/
  212. /*书架的返回*/
  213. .head_return_page_but{
  214. background-image: url("{:asset('/img/frontend/icon/back.png')}");
  215. background-size: .2rem auto;
  216. }
  217. /*头部右侧的iconsf*/
  218. .head_menu_but{
  219. background-image: url("{:asset('/img/frontend/icon/shelf_menu.png')}");
  220. background-size: .2rem auto;
  221. }
  222. /*我的书架的文字颜色*/
  223. .head_tit_tab .htt_hover strong{
  224. color: #5EBEA1;
  225. }
  226. /*管理图标和文字颜色*/
  227. .r_img_edit_open, .r_bookshelf_edit_open{
  228. background-image: url("{:asset('/img/frontend/icon/icon_setting.png')}");
  229. color: #938181;
  230. background-size: .2rem auto;
  231. }
  232. /*历史记录总共多少本基础颜色*/
  233. .r_book_num strong{
  234. color: #EA5E5E;
  235. }
  236. /*历史记录总共多少本,数字颜色*/
  237. .r_book_num strong span{
  238. color: #EA5E5E;
  239. }
  240. /*更新至*/
  241. .r_img_chaptername{
  242. color: #EA5E5E;
  243. }
  244. .r_img_chaptername_prev.r_img_chaptername{
  245. color: #828B88;
  246. position: relative;
  247. padding-left: 0.18rem;
  248. }
  249. .r_img_chaptername_prev::before{
  250. content: '';
  251. position: absolute;
  252. display: block;
  253. width: 0.15rem;
  254. height: 0.15rem;
  255. left: 0rem;
  256. top: 0.01rem;
  257. background: url("{:asset('/img/frontend/icon/sunshine_clock_1.png')}") no-repeat center center/100% 100%;
  258. }
  259. .r_book_num strong{
  260. color: #938181;
  261. }
  262. .r_book_num strong span{
  263. color: #EA5E5E;
  264. }
  265. .r_book_num .select_num{
  266. display: none;
  267. }
  268. .r_img_list_edit .r_book_num .select_num{
  269. display: block;
  270. }
  271. /*删除的颜色和icon*/
  272. .r_img_edit_close{
  273. color: #828B88;
  274. background-image: url("{:asset('/img/frontend/icon/del.png')}");
  275. background-size: .2rem auto;
  276. }
  277. .r_img_edit_remove{
  278. color: #EA5E5E;
  279. background-image: url("{:asset('/img/frontend/icon/del.png')}");
  280. background-size: .2rem auto;
  281. }
  282. .loading_box {
  283. overflow: hidden;
  284. height: .5rem;
  285. background-color: #fff;
  286. border-top: 0;
  287. text-align: center;
  288. line-height: .5rem;
  289. font-size: 0;
  290. }
  291. .loading_box span {
  292. padding-left: .57rem;
  293. *display: inline-block;
  294. *display: inline;
  295. *zoom: 1;
  296. height: .5rem;
  297. background: url("{:asset('/yg/img/frontend/icon/loading_heart_icon.png')}") no-repeat 0 center, url("{:asset('/yg/img/frontend/icon/loading_heart_icon.png')}") no-repeat .19rem center, url("{:asset('/yg/img/frontend/icon/loading_heart_icon.png')}") no-repeat .38rem center;
  298. background-size: .14rem auto;
  299. font-size: .12rem;
  300. color: #5EBEA1;
  301. line-height: .5rem;
  302. }
  303. .body_sytle{
  304. background-color: #fff;
  305. }
  306. /* 历史记录结束*/
  307. </style>
  308. {/block}
  309. {block name="zepto"}
  310. <!-- 这是zepto插件 -->
  311. <script type="text/javascript" src="{:asset('/libs/zepto/zepto.picLazyLoad.min.js')}"></script>
  312. {/block}
  313. {block name="menu"}
  314. <div class="head_tit_box">
  315. <a href="javascript:;" class="head_return_page_but"></a>
  316. <div class="head_menu_but_box">
  317. {if condition="!$is_show_tabbar" }
  318. <a href="javascript:;" class="head_menu_but"></a>
  319. {/if}
  320. </div>
  321. <div class="head_tit_tab">
  322. {if condition="$showBookShelf"}
  323. <a href="/index/book/shelf"><strong>我的书架</strong><span></span></a>
  324. <a href="javascript:;" class="htt_hover"><strong>阅读记录</strong><span></span></a>
  325. {else /}
  326. <a href="javascript:;"><strong>阅读记录</strong><span></span></a>
  327. {/if}
  328. </div>
  329. </div>
  330. <!-- 三期天降阅读历史记录福利广告 -->
  331. <div class="ad_welfare_toast">
  332. 恭喜获得xx书币
  333. </div>
  334. <div class="ad_welfare_icon ad_welfare">
  335. <img class="ad_welfareclick" src="{:asset('/img/frontend/chapter/iconwelfare.png')}"/>
  336. </div>
  337. <!--head_tit_box 分类 head_menu_but_open-->
  338. <div class="pop_up_menu_box">
  339. <i></i>
  340. <div class="pum_box">
  341. <div class="pum_nav_list">
  342. <ul class="pum_nav_list_ul">
  343. <li>
  344. <a href="/index/index?type=boy">
  345. <div class="pum_icon"><img alt="" src="{:asset('/img/frontend/icon/module_icon_1.png')}" /></div>
  346. <strong>男生</strong>
  347. </a>
  348. </li>
  349. <li>
  350. <a href="/index/index?type=girl">
  351. <div class="pum_icon"><img alt="" src="{:asset('/img/frontend/icon/module_icon_2.png')}" /></div>
  352. <strong>女生</strong>
  353. </a>
  354. </li>
  355. <li>
  356. <a href="/index/category">
  357. <div class="pum_icon"><img alt="" src="{:asset('/img/frontend/icon/module_icon_3.png')}" /></div>
  358. <strong>分类</strong>
  359. </a>
  360. </li>
  361. <li>
  362. <a href="/index/book/list?type=finish">
  363. <div class="pum_icon"><img alt="" src="{:asset('/img/frontend/icon/module_icon_4.png')}" /></div>
  364. <strong>完本</strong>
  365. </a>
  366. </li>
  367. <li>
  368. <a href="/index/book/list?type=free">
  369. <div class="pum_icon"><img alt="" src="{:asset('/img/frontend/icon/module_icon_5.png')}" /></div>
  370. <strong>免费</strong>
  371. </a>
  372. </li>
  373. <li>
  374. <a href="/index/user">
  375. <div class="pum_icon"><img alt="" src="{:asset('/img/frontend/icon/module_icon_6.png')}" /></div>
  376. <strong>个人中心</strong>
  377. </a>
  378. </li>
  379. </ul>
  380. <div class="pum_but_box">
  381. <a href="/index/user/recent">最近阅读</a>
  382. </div>
  383. <input type="hidden" value="/index/user/recent" class="js_recent_url">
  384. </div>
  385. </div>
  386. </div>
  387. <!--pop_up_menu_box 菜单弹框-->
  388. {/block}
  389. {block name="main"}
  390. <!-- 这是正文 body_sytle_girl -->
  391. <!-- 提示置顶 -->
  392. <div class="set_top_box" style="display:none;">点击右上角[在聊天中置顶或者浮窗]阅读有惊喜↑</div>
  393. <!--<div class="top">-->
  394. <!-- <div class="top-myshelf toptab "><a href="/index/book/shelf">我的书架</a></div>-->
  395. <!-- <div class="top-history toptab active"><a href="/index/user/recent">阅读记录</a></div>-->
  396. <!--</div>-->
  397. <div style="clear: both"></div>
  398. <div class="body_sytle" style="min-height: 600px">
  399. <!--i_nav_box 顶部导航-->
  400. <!--广告 最近阅读页顶部广告条-->
  401. <div class="ad_position_4"></div>
  402. {notempty name="rencently"}
  403. <div class="r_img_list_box">
  404. <div class="r_img_edit_box">
  405. <div class="r_book_num">
  406. <strong class="all_num" totalnum="{$totalNum}">共<span>{$totalNum}</span>本</strong>
  407. <strong class="select_num">选中<span>0</span>本</strong>
  408. </div>
  409. <div class="r_img_edit_but_box" {if condition="$login eq '0' "}style="display:none"{/if}>
  410. <a href="javascript:;" class="r_img_edit_open">管理</a>
  411. <a href="javascript:;" class="r_img_edit_close">取消</a>
  412. <a href="javascript:;" class="r_img_edit_remove">删除</a>
  413. </div>
  414. </div>
  415. <ul class="r_img_ul" id="recent_ul">
  416. {foreach name="$rencently" item="data" }
  417. <li supdatet="{$data.updatetime}" sbid = "{$data.book_id}" recentid = "{$data.id}">
  418. {if condition="$data.state eq '0'"}
  419. <a href="javascript:;" class="r_img_book_null">
  420. {else /}
  421. <a href="/index/book/chapter?book_id={$data.book_id}&chapter_id={$data.chapter_id}">
  422. {/if}
  423. <div class="r_img">
  424. <img src="{$data.image}" />
  425. {if condition="$data.state eq '0'"}<span></span>{/if}
  426. </div>
  427. <div class="r_img_text">
  428. <h3>{$data.book_name}</h3>
  429. {if condition="$data.state neq '0'"}
  430. <div class="r_img_chaptername">更新至:{$data.last_chapter_name}</div>
  431. {else}
  432. <div class="r_img_other">本书已下架</div>
  433. {/if}
  434. <div class="r_img_chaptername r_img_chaptername_prev">上次读到:{$data.chapter_name}</div>
  435. </div>
  436. </a>
  437. </li>
  438. {/foreach}
  439. </ul>
  440. <!--r_img_ul 最近阅读列表 r_img_remove_select-->
  441. <div class="loading_box"><span>已显示全部图书</span></div>
  442. </div>
  443. {/notempty}
  444. <!--r_img_list 编辑最近阅读列表 r_img_list_edit_remove r_img_list_edit -->
  445. <div class="content_null_box content_null_top_border" {if condition="count($rencently) eq 0 "} style="display:block;" {else /} style="display:none;"{/if}>
  446. <img src="{:asset('/img/frontend/icon/icon_5.png')}" style="width: 1.05rem;" />
  447. <span>你还没有<i>阅读</i>记录</span>
  448. </div>
  449. <div class="r_img_list_other" {if condition="count($rencently) elt 3 "} style="display:block;" {else /} style="display:none;"{/if}>
  450. {if condition="count($ranklist['idx']) gt 0"}
  451. <div class="r_img_list_other_tit">
  452. <h2>为你推荐</h2>
  453. </div>
  454. {/if}
  455. <ul class="r_img_ul">
  456. {volist name="$ranklist['idx']" id="data" offset="0" length='10'}
  457. <li class="section-block">
  458. <a href="/index/book/info?book_id={$data.id}" class="section-data" data-book_id="{$data.id}" data-zone="为你推荐">
  459. <div class="r_img">
  460. <img src="{$data.image}" />
  461. <span></span>
  462. </div>
  463. <div class="r_img_text">
  464. <h3>{$data.name}</h3>
  465. <p>{$data.description}</p>
  466. <div class="i_images_txt_other">
  467. <strong>
  468. {if condition="$data.is_finish eq 1"}
  469. <i>已完结</i>
  470. {else/}
  471. <i style="color: #7fdae9;">连载中</i>
  472. {/if}
  473. <b>{$data.author}</b>
  474. </strong>
  475. <em>{$data.read_num}人在追</em>
  476. </div>
  477. </div>
  478. </a>
  479. </li>
  480. {/volist}
  481. </ul>
  482. </div>
  483. {if condition="$is_show_tabbar" }
  484. {include file="sf/public/tabbar" /}
  485. {/if}
  486. </div>
  487. {/block}
  488. {block name="footer"}
  489. <div style="display: none" id="poptype" data-poptype="yunying,activity,continue,camp,subscribe,custom"></div>
  490. {/block}
  491. {block name="js"}
  492. <!-- 这里引入js -->
  493. <script type="text/javascript" src="{:asset('/js/frontend/recently.js')}"></script>
  494. <script>
  495. //接口调用测试,海波,log里有返回的数据
  496. // $(function(){
  497. // $.post('/api/user/getReadRecently',{pageNo:1,pageSize:5},function(data){
  498. // console.log(data);
  499. // })
  500. // })
  501. var pagenum=2,
  502. sBookstop=true,
  503. sBookstopTime=null,
  504. pagesize=10,
  505. block_id = $("#block_id").val(),
  506. user_id=$.fn.cookie('user_id');
  507. $(function(){
  508. $('img').picLazyLoad({
  509. effect : "fadeIn"
  510. });
  511. if(user_id && $('#recent_ul li').length >= pagesize){
  512. console.log(user_id);
  513. $(window).scroll(function(){
  514. var nWinH = document.documentElement.clientHeight;
  515. var nScrollTop = (document.body.scrollTop || document.documentElement.scrollTop) + nWinH;
  516. var nBodyScrollH = document.body.scrollHeight;
  517. if(sBookstop && nBodyScrollH - nScrollTop < 600){
  518. bookstoptime();
  519. loadingList();
  520. }
  521. });
  522. }
  523. });
  524. function loadingList(){
  525. var sUpadateTime = '';
  526. if($('#recent_ul li').length > 0){
  527. var sUpadateTime = $('#recent_ul li').last().attr('supdatet');
  528. }
  529. $('.loading_box').html('<span>正在加載中,请稍候......</span>').show();
  530. console.log(sUpadateTime);
  531. $.ajax({
  532. type: 'post',
  533. url: '/api/user/getReadRecently',
  534. timeout: 10000,
  535. cache: false,
  536. dataType: 'json',
  537. data: {
  538. 'pageSize':pagesize,
  539. 'updatetime':sUpadateTime
  540. },
  541. success: function (data) {
  542. clearTimeout(sBookstopTime);
  543. if (typeof data == 'string') {
  544. data = JSON.parse(data);
  545. }
  546. console.log(data);
  547. data = data.data;
  548. var sLi = '';
  549. for(var i=0; i<data.length; i++){
  550. if(data[i]['state'] == 1 || data[i]['state'] == '-1'){
  551. sLi += '<li supdatet="' + data[i].updatetime + '" sbid = "' + data[i].book_id + '"'+ 'recentid = "'+ data[i].id+'">\
  552. <a href="/index/book/chapter?book_id='+ data[i]['book_id']+'&chapter_id='+ data[i]['chapter_id']+'">\
  553. <div class="r_img">\
  554. <img src="{:asset('/img/frontend/images/default_img.png')}" data-original="'+ data[i]['image'] +'" />\
  555. <span></span>\
  556. </div>\
  557. <div class="r_img_text">\
  558. <h3>'+ data[i]['book_name'] +'</h3>\
  559. <div class="r_img_chaptername">更新至:'+ data[i]['last_chapter_name'] +'</div>\
  560. <div class="r_img_chaptername r_img_chaptername_prev">上次读到:'+ data[i]['chapter_name'] +'</div>\
  561. </div>\
  562. </a>\
  563. </li>';
  564. }else{
  565. sLi += '<li supdatet="' + data[i].updatetime + '" sbid = "' + data[i].book_id + '"'+ 'recentid = "'+ data[i].id+'">\
  566. <a href="javascript:;" class="r_img_book_null">\
  567. <div class="r_img">\
  568. <img src="{:asset('/img/frontend/images/default_img.png')}" data-original="'+ data[i]['image'] +'" />\
  569. <span></span>\
  570. </div>\
  571. <div class="r_img_text">\
  572. <h3>'+ data[i]['book_name'] +'</h3>\
  573. <div class="r_img_other">本书已下架</div>\
  574. <div class="r_img_chaptername r_img_chaptername_prev">上次读到:'+ data[i]['chapter_name'] +'</div>\
  575. </div>\
  576. </a>\
  577. </li>';
  578. }
  579. }
  580. $('#recent_ul').append(sLi);
  581. pagenum ++;
  582. if(data.length < pagesize){
  583. $('.loading_box').html('<span>已显示全部</span>').show();
  584. sBookstop = false;
  585. }else{
  586. $('.loading_box').html('<span>下拉加载更多</span>').show();
  587. sBookstop = true;
  588. }
  589. $('img').picLazyLoad({
  590. effect : "fadeIn"
  591. });
  592. },
  593. error: function (XMLHttpRequest, textStatus, errorThrown) {
  594. }
  595. });
  596. }
  597. //防止重复请求数据
  598. function bookstoptime() {
  599. clearTimeout(sBookstopTime);
  600. sBookstop = false;
  601. sBookstopTime = setTimeout(function () {
  602. sBookstop = true;
  603. }, 10000);
  604. }
  605. </script>
  606. <!-- 这里引入js -->
  607. <script type="text/javascript" src="{:asset('/js/frontend/common_tips.js')}"></script>
  608. <!-- 多条广告如下脚本只需引入一次 -->
  609. {if condition="$isAdPick"}
  610. {include file="public/ad_common_js"}
  611. <script type="text/javascript" src="{:asset('/js/frontend/ad/ad_welfare.js')}"></script>
  612. {/if}
  613. <script>
  614. window.$isAdPick = '{$isAdPick}'
  615. window.$adLatestVersion = '{$ad_latest_version}'
  616. $(function(){
  617. window.$isAdPick == '1' && window.simpleAD.render(window.AD_PAGE_CODE.RECENT_READ)
  618. })
  619. </script>
  620. {/block}