index.html 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447
  1. {extend name="default/base/base_home" /}
  2. {block name="mall_main"}
  3. {notpresent name='editable_page'}
  4. <link rel="stylesheet" href="{$Think.HOME_SITE_ROOT}/css/index.css">
  5. <script src="{$Think.PLUGINS_SITE_ROOT}/jquery.SuperSlide.2.1.1.js"></script>
  6. <style>
  7. .mall_nav{border-bottom:none;}
  8. .mall_nav .all_categorys .mc{display: block;}
  9. </style>
  10. <div class="clear"></div>
  11. <!-- HomeFocusLayout Begin-->
  12. <div class="home-focus-layout">
  13. {if $adv_index_1}
  14. <div class="bd">
  15. <ul>
  16. {foreach name='adv_index_1' item="v"}
  17. <li style="background: url({:ds_get_pic(ATTACH_ADV,$v.adv_code)}) center top no-repeat rgb(35, 35, 35); display: none;background-color: {$v.adv_bgcolor|default=''}" style="{$v.adv_style|default=''}">
  18. <a href="{:url('Advclick/Advclick',['adv_id'=>$v['adv_id']])}" target="_blank" title="{$v.adv_title}">&nbsp;</a>
  19. </li>
  20. {/foreach}
  21. </ul>
  22. </div>
  23. <div class="hd">
  24. <ul>
  25. {foreach name='adv_index_1' item="v"}
  26. <li class=""></li>
  27. {/foreach}
  28. </ul>
  29. </div>
  30. {/if}
  31. <div class="right-sidebar">
  32. <div class="mod_personal_center">
  33. {if session('is_login')}
  34. <div class="avata_pic_wrap">
  35. <a id="index_account_icon_login" href="{:url('Member/index')}" target="_blank"><img class="lazyload" data-original="{:get_member_avatar(session('avatar'))}?{$Think.TIMESTAMP}"></a>
  36. </div>
  37. <div class="info_wrap">
  38. <div class="login_box">
  39. <div class="user_info clearfix">
  40. <em>Hi,{:session('member_nickname')}</em>
  41. </div>
  42. <div class="clearfix treasure">
  43. <a href="{:url('Memberorder/index',['state_type'=>'state_new'])}" target="_blank" class="gold_coin">
  44. <em>{$member_order_info.order_nopay_count}</em>
  45. <p>{$Think.lang.pending_payment}</p>
  46. </a>
  47. <a href="{:url('Memberorder/index',['state_type'=>'state_send'])}" target="_blank" class="gold_coin">
  48. <em>{$member_order_info.order_noreceipt_count}</em>
  49. <p>{$Think.lang.pending_receipt}</p>
  50. </a>
  51. <a href="{:url('Memberorder/index',['state_type'=>'state_noeval'])}" target="_blank">
  52. <em>{$member_order_info.order_noeval_count}</em>
  53. <p>{$Think.lang.pending_comment}</p>
  54. </a>
  55. </div>
  56. </div>
  57. </div>
  58. {else /}
  59. <div class="avata_pic_wrap">
  60. <a id="index_account_icon_unlogin" href="javascript:void(0)"><img class="lazyload" data-original="{:get_member_avatar(session('avatar'))}?{$Think.TIMESTAMP}"></a>
  61. </div>
  62. <div class="info_wrap">
  63. <div class="unlogin_box">
  64. <div class="title">Hi~{$Think.lang.hello}!</div>
  65. <div class="tips">
  66. </div>
  67. <div class="btn_wrap">
  68. <a href="{:url('Login/login')}" class="login_btn">{$Think.lang.login}</a>
  69. {if $Think.config.ds_config.member_normal_register==1 || $Think.config.ds_config.sms_register==1}
  70. <a href="{:url('Login/register')}" class="regist_btn">{$Think.lang.login_index_regist_now_2}</a>
  71. {/if}
  72. </div>
  73. </div>
  74. </div>
  75. {/if}
  76. <div class="top_line">
  77. <div class="vip_list">
  78. <a href="javascript:void(0)">
  79. <i class="iconfont" style="background:#ff9b1b">&#xe673;</i>
  80. <p class="vip_item_text">{$Think.lang.buyer_protection}</p>
  81. </a>
  82. <a href="javascript:void(0)">
  83. <i class="iconfont" style="background:#52a6ff">&#xe67e;</i>
  84. <p class="vip_item_text">{$Think.lang.merchant_authentication}</p>
  85. </a>
  86. <a href="javascript:void(0)">
  87. <i class="iconfont" style="background:#57c15b">&#xe74f;</i>
  88. <p class="vip_item_text">{$Think.lang.secure_transaction}</p>
  89. </a>
  90. <div class="clear"></div>
  91. </div>
  92. </div>
  93. <div class="notice_list">
  94. {foreach $index_articles as $i_a}
  95. <a title="{$i_a.article_title}" href="{if $i_a.article_url !=''}{$i_a.article_url}{else /}{:url('Article/show',['article_id'=>$i_a.article_id])}{/if}" target="_blank">
  96. <span>{$i_a.article_title}</span>
  97. </a>
  98. {/foreach}
  99. </div>
  100. </div>
  101. </div>
  102. </div>
  103. <!--HomeFocusLayout End-->
  104. {if $adv_index_2}
  105. <div class="home-scroll w1200 mt10">
  106. <div class="bd">
  107. <ul>
  108. <li>
  109. {foreach name='adv_index_2' item="v"}
  110. <a href="{:url('Advclick/Advclick',['adv_id'=>$v['adv_id']])}" target="_blank" title="">
  111. <img class="lazyload" data-original="{:ds_get_pic(ATTACH_ADV,$v.adv_code)}" style="{$v.adv_style|default=''}">
  112. </a>
  113. {/foreach}
  114. </li>
  115. </ul>
  116. <a class="ctrl prev" href="javascript:void(0)"><</a>
  117. <a class="ctrl next" href="javascript:void(0)">></a>
  118. </div>
  119. </div>
  120. {/if}
  121. <div class="home-sale-layout w1200 mt20">
  122. <div class="hd">
  123. <ul class="tabs-nav">
  124. <li class="tabs-selected on"><i class="arrow"></i><h3>{$Think.lang.recommendation}</h3></li>
  125. <li class=""><i class="arrow"></i><h3>{$Think.lang.discount}</h3></li>
  126. <li class=""><i class="arrow"></i><h3>{$Think.lang.latest_hot_sale}</h3></li>
  127. <li class=""><i class="arrow"></i><h3>{$Think.lang.shopping_frenzy}</h3></li>
  128. </ul>
  129. </div>
  130. <div class="bd tabs-panel">
  131. <ul style="display: block;">
  132. {notempty name="recommend_list"}
  133. {foreach name="recommend_list" item="goods"}
  134. <li>
  135. <dl>
  136. <dd class="goods-thumb">
  137. <a target="_blank" href="{:url('Goods/index',['goods_id'=>$goods.goods_id])}">
  138. <img class="lazyload" data-original="{:goods_cthumb($goods.goods_image)}" alt="{$goods.goods_name}">
  139. </a>
  140. </dd>
  141. <dt class="goods-name"><a target="_blank" href="{:url('Goods/index',['goods_id'=>$goods.goods_id])}" title="{$goods.goods_name}">{$goods.goods_name}</a></dt>
  142. <dd class="goods-price"><em>¥{$goods.goods_price}</em></dd>
  143. </dl>
  144. </li>
  145. {/foreach}
  146. {/notempty}
  147. </ul>
  148. <ul style="display: none;">
  149. {notempty name="promotion_list"}
  150. {foreach name="promotion_list" item="goods"}
  151. <li>
  152. <dl>
  153. <dd class="goods-thumb">
  154. <a target="_blank" href="{:url('Goods/index',['goods_id'=>$goods.goods_id])}">
  155. <img class="lazyload" data-original="{:goods_cthumb($goods.goods_image)}" alt="{$goods.goods_name}">
  156. </a>
  157. </dd>
  158. <dt class="goods-name"><a target="_blank" href="{:url('Goods/index',['goods_id'=>$goods.goods_id])}" title="{$goods.goods_name}">{$goods.goods_name}</a></dt>
  159. <dd class="goods-price">{$Think.lang.shopping_mall_price}:<em>¥{$goods.xianshigoods_price}</em></dd>
  160. </dl>
  161. </li>
  162. {/foreach}
  163. {/notempty}
  164. </ul>
  165. <ul style="display: none;">
  166. {notempty name="new_list"}
  167. {foreach name="new_list" item="goods"}
  168. <li>
  169. <dl>
  170. <dd class="goods-thumb">
  171. <a target="_blank" href="{:url('Goods/index',['goods_id'=>$goods.goods_id])}">
  172. <img class="lazyload" data-original="{:goods_cthumb($goods.goods_image)}" alt="{$goods.goods_name}">
  173. </a>
  174. </dd>
  175. <dt class="goods-name"><a target="_blank" href="{:url('Goods/index',['goods_id'=>$goods.goods_id])}" title="{$goods.goods_name}">{$goods.goods_name}</a></dt>
  176. <dd class="goods-price">{$Think.lang.shopping_mall_price}:<em>¥{$goods.goods_price}</em></dd>
  177. </dl>
  178. </li>
  179. {/foreach}
  180. {/notempty}
  181. </ul>
  182. <ul style="display: none;">
  183. {notempty name="groupbuy_list"}
  184. {foreach name="groupbuy_list" item="goods"}
  185. <li>
  186. <dl>
  187. <dd class="goods-thumb">
  188. <a target="_blank" href="{:url('Goods/index',['goods_id'=>$goods.goods_id])}">
  189. <img class="lazyload" data-original="{:groupbuy_thumb($goods.groupbuy_image)}" alt="{$goods.goods_name}">
  190. </a>
  191. </dd>
  192. <dt class="goods-name"><a target="_blank" href="{:url('Goods/index',['goods_id'=>$goods.goods_id])}" title="{$goods.goods_name}">{$goods.goods_name}</a></dt>
  193. <dd class="goods-price">{$Think.lang.shopping_mall_price}:<em>¥{$goods.groupbuy_price}</em></dd>
  194. </dl>
  195. </li>
  196. {/foreach}
  197. {/notempty}
  198. </ul>
  199. </div>
  200. </div>
  201. <div class="floor_wrap">
  202. <div class="floor floor0 w1200" style="height:0"></div>
  203. {foreach name="floor_block" item="vo" key="k" }
  204. <div class="{if $k>4}style2{/if} floor floor{php}echo $k+1;{/php} w1200">
  205. <div class="floor-left">
  206. <div class="title">
  207. <h2 title="{$vo.gc_name}">{$vo.gc_name}</h2>
  208. </div>
  209. {if $k<5}
  210. <div class="left-ads">
  211. {if $k<5 && $vo.adv_left}
  212. <a href="{:url('Advclick/Advclick',['adv_id'=>$vo['adv_left']['adv_id']])}" target="_blank" title="">
  213. <img class="lazyload" data-original="{:ds_get_pic(ATTACH_ADV,$vo.adv_left.adv_code)}" style="{$vo.adv_left.adv_style|default=''}">
  214. </a>
  215. {/if}
  216. </div>
  217. {/if}
  218. </div>
  219. <div class="floor-right">
  220. <ul class="tabs-nav hd">
  221. {foreach name="vo.goods_list" item="list" key="list_key"}
  222. <li {if condition="$list_key eq '0'"}class="on"{/if}><h3>{$list.gc_name}</h3></li>
  223. {/foreach}
  224. </ul>
  225. <div class="goods-list bd">
  226. {foreach name="vo.goods_list" item="list" key="list_key"}
  227. <ul class="clearfix" {if condition="$list_key eq '0'"}style="display:block"{/if}>
  228. {notempty name="list.gc_list"}
  229. {foreach name="list.gc_list" key="goods_key" item="goods"}
  230. {if ($k<5 && $goods_key<8) || $k>4}
  231. <li>
  232. <dl>
  233. <dd class="goods-thumb">
  234. <a target="_blank" href="{:url('Goods/index',['goods_id'=>$goods.goods_id])}">
  235. <img class="lazyload" data-original="{:goods_cthumb($goods.goods_image)}" alt="{$goods.goods_name}"/>
  236. </a>
  237. </dd>
  238. <dt class="goods-name"><a target="_blank" href="{:url('Goods/index',['goods_id'=>$goods.goods_id])}" title="{$goods.goods_name}">{$goods.goods_name}</a></dt>
  239. <dd class="goods-price">
  240. <em>{$goods.goods_price}{$Think.lang.ds_yuan}</em>
  241. {if $goods.goods_marketprice > 0}
  242. <span class="original">{$goods.goods_marketprice}{$Think.lang.ds_yuan}</span>
  243. {/if}
  244. </dd>
  245. </dl>
  246. </li>
  247. {/if}
  248. {/foreach}
  249. {/notempty}
  250. </ul>
  251. {/foreach}
  252. </div>
  253. </div>
  254. </div>
  255. <div class="w1200 floor-banner">
  256. {if $k<5 && $vo.adv_bottom}
  257. <a href="{:url('Advclick/Advclick',['adv_id'=>$vo['adv_bottom']['adv_id']])}" target="_blank" title="">
  258. <img class="lazyload" data-original="{:ds_get_pic(ATTACH_ADV,$vo.adv_bottom.adv_code)}" style="{$vo.adv_bottom.adv_style|default=''}">
  259. </a>
  260. {/if}
  261. </div>
  262. <script>
  263. jQuery(".floor{php}echo $k+1;{/php} .floor-right").slide({mainCell: ".bd", autoPlay: false, interTime: 5000});
  264. </script>
  265. {/foreach}
  266. </div>
  267. <div class="wrapper mt10"></div>
  268. <div class="index-link wrapper">
  269. <dl class="website">
  270. <dt>{$Think.lang.cooperative_partner} | {$Think.lang.friendship_link}<b></b></dt>
  271. <dd>
  272. {notempty name="link_list"}
  273. {foreach name="link_list" item="val"}
  274. <a href="{$val.link_url}" target="_blank" title="{$val.link_title}">{:str_cut($val.link_title,15)}</a>
  275. {/foreach}
  276. {/notempty}
  277. </dd>
  278. </dl>
  279. </div>
  280. <div class="footer-line"></div>
  281. <!--首页底部保障开始-->
  282. <!--首页底部保障结束-->
  283. <!--StandardLayout Begin-->
  284. <!--StandardLayout End-->
  285. <style>
  286. .fsFixedTopContent{display:none;overflow:visible;width:50px;height:auto;position:fixed;left:50%;top:40%;margin:-150px 0 0 -675px;z-index:3333;}
  287. .fsFixedTop{width:50px;height:auto;background:#fdfdfd;box-shadow: 0 0 4px rgba(0,0,0,.2);-webkit-transform:scale(1.2);-moz-transform:scale(1.2);transform:scale(1.2);opacity:0;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;transition:all .3s ease;position:absolute;left:0;top:0}
  288. .fsFixedTop a{width:36px;height:36px;line-height:36px;display:block;position:relative;cursor:pointer;text-decoration:none;padding:7px;border-top: 1px solid #D4D4D4;}
  289. .fsFixedTop b{width:36px;height:36px;color:#333;font-size:13px;font-weight:600;text-align:center;display:block;}
  290. .fsFixedTop .fs-name{width:36px;height:36px;line-height:18px;color:#ff4040;text-align:center;display:none;overflow:hidden;font-size:13px;letter-spacing: 1px;word-wrap:break-word;}
  291. .fsFixedTop a.active{background:#ff4040 }
  292. .fsFixedTop a.active .fs-name{color:#fff;display:block;}
  293. .fsFixedTop a.active .fs {display: none}
  294. .fsFixedTop a.active .fs-name:hover {background:#ff4040;text-decoration:none}
  295. .fsFixedTop a:hover{background:#ff4040}
  296. .fsFixedTop a:hover .fs-name {display: block;color: #fff}
  297. .fsFixedTop a:hover b {display: none}
  298. </style>
  299. <div class="fsFixedTopContent" style="visibility: hidden; display: block;">
  300. <div class="fsFixedTop" style="opacity: 0;">
  301. {foreach name="floor_block" item="vo" key="k" }
  302. <a class="smooth active" href="javascript:;"> <b class="fs">{$k+1}F</b> <em class="fs-name">{$vo.gc_name}</em> </a>
  303. {/foreach}
  304. </div>
  305. </div>
  306. <script>
  307. $(function () {
  308. $(window).scroll(function () {
  309. var scrt = $(window).scrollTop();
  310. if (scrt > 1000) {
  311. $(".fsFixedTopContent").show("fast", function () {
  312. $(".fsFixedTop").css({
  313. "-webkit-transform": "scale(1)",
  314. "-moz-transform": "scale(1)",
  315. "transform": "scale(1)",
  316. "opacity": "1"
  317. })
  318. }).css({
  319. "visibility": "visible"
  320. })
  321. } else {
  322. $(".fsFixedTop").css({
  323. "-webkit-transform": "scale(1.2)",
  324. "-moz-transform": "scale(1.2)",
  325. "transform": "scale(1.2)",
  326. "opacity": "0"
  327. });
  328. $(".fsFixedTopContent").css({
  329. "visibility": "hidden"
  330. })
  331. }
  332. setTab()
  333. });
  334. var arr = [],fsOffset = 0;
  335. for (var i = 1; i < $(".floor").length; i++) {
  336. arr.push(parseInt($(".floor").eq(i).offset().top) + 30)
  337. }
  338. $(".fsFixedTop a.smooth").on("click", function () {
  339. var _th = $(this);
  340. _th.blur();
  341. var index = $(".fsFixedTop a.smooth").index(this);
  342. if (index > 0) {
  343. fsOffset =index* 100-50;
  344. }else{
  345. fsOffset =-50;
  346. }
  347. var hh = arr[index];
  348. var clickheight = hh+fsOffset;
  349. $("html,body").stop().animate({
  350. scrollTop:clickheight+ "px"
  351. }, 400)
  352. });
  353. $(".fsFixedTop a.fsbacktotop").click(function () {
  354. $("html,body").stop().animate({
  355. scrollTop: 0
  356. }, 400)
  357. })
  358. function setTab() {
  359. var Objs = $(".floor:gt(0)");
  360. var textSt = $(window).scrollTop();
  361. for (var i = Objs.length - 1; i >= 0; i--) {
  362. if (textSt >= $(Objs[i]).offset().top - 50) {
  363. $(".fsFixedTop a").eq(i).addClass("active").siblings().removeClass("active");
  364. return;
  365. }
  366. }
  367. }
  368. });
  369. </script>
  370. <script>
  371. //轮播
  372. jQuery(".home-focus-layout").slide({mainCell: ".bd ul", autoPlay: true, delayTime: 500, interTime: 5000});
  373. jQuery(".home-scroll").slide({mainCell: ".bd li", autoPage: true,autoPlay: true, delayTime: 1000, effect: "left", interTime: 5000, vis: 5});
  374. jQuery(".home-sale-layout").slide({autoPlay: false, });
  375. </script>
  376. {else}
  377. <script src="{$Think.PLUGINS_SITE_ROOT}/jquery.SuperSlide.2.1.1.js"></script>
  378. <link rel="stylesheet" href="{$Think.HOME_SITE_ROOT}/css/editable_page.css">
  379. {foreach name='config_list' item='item' key='key'}
  380. <div data-type="html" data-id="{$key+1}">{$item.html|raw}</div>
  381. {/foreach}
  382. <script>
  383. {foreach name='config_list' item='item' key='key'}
  384. if(typeof(window['loadHtml{$item.val.editable_page_model_id}'])!='undefined'){
  385. window['loadHtml{$item.val.editable_page_model_id}']($('*[data-type="html"][data-id={$key+1}]'))
  386. }
  387. {/foreach}
  388. </script>
  389. {/notpresent}
  390. <!--首页悬浮弹窗BEGIN-->
  391. {if $Think.config.ds_config.fixed_suspension_state}
  392. <div class="fixed-suspension-layer" style="display: none;">
  393. <div class="fixed-suspension-con">
  394. <a href="{$Think.config.ds_config.fixed_suspension_url}" class="fixed-suspension-img">
  395. <img class="lazy" src="{:ds_get_pic(ATTACH_COMMON,$Think.config.ds_config.fixed_suspension_img)}">
  396. </a>
  397. <div class="close-fixed-suspension"></div>
  398. </div>
  399. </div>
  400. <style>
  401. /*首页悬浮窗-BEGIN*/
  402. .fixed-suspension-layer{ position: fixed; top: 0; left: 0;right: 0; bottom: 0; z-index:100000; background: rgba(0,0,0,.5); text-align: center;}
  403. .fixed-suspension-layer .fixed-suspension-con{ width: 800px; height: 500px; margin: 0 auto; position: absolute; left: 50%; top: 50%; margin-left: -400px; margin-top: -250px;}
  404. .fixed-suspension-layer .fixed-suspension-con .fixed-suspension-img{ display: block; text-align: center; max-width: 800px; max-height: 500px;}
  405. .fixed-suspension-layer .fixed-suspension-con .fixed-suspension-img img{ max-width: 100%; max-height: 100%;}
  406. .close-fixed-suspension{ position: absolute; width: 36px; height: 36px; top: -40px; z-index: 2; background: url({$Think.HOME_SITE_ROOT}/images/close-fixed-suspension.png); background-size: cover; right: -40px; cursor: pointer;}
  407. /*首页悬浮窗-END*/
  408. </style>
  409. <script type="text/javascript">
  410. if(!localStorage.fixed_ad_layer){
  411. $('.fixed-suspension-layer').show();
  412. }
  413. //悬浮广告弹出层
  414. $('body').on('click','.close-fixed-suspension',function(){
  415. localStorage.fixed_ad_layer = true;
  416. $('.fixed-suspension-layer').hide();
  417. });
  418. </script>
  419. {/if}
  420. <!--首页悬浮弹窗END-->
  421. {/block}