418e325f4eeb3752d8f97608d541074f.php 62 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982
  1. <?php /*a:6:{s:71:"/data/web/mall.valimart.net/app/home/view/default/mall/index/index.html";i:1660125302;s:69:"/data/web/mall.valimart.net/app/home/view/default/base/base_home.html";i:1657785114;s:68:"/data/web/mall.valimart.net/app/home/view/default/base/mall_top.html";i:1660791884;s:71:"/data/web/mall.valimart.net/app/home/view/default/base/mall_header.html";i:1657785114;s:71:"/data/web/mall.valimart.net/app/home/view/default/base/mall_server.html";i:1657785114;s:71:"/data/web/mall.valimart.net/app/home/view/default/base/mall_footer.html";i:1657785114;}*/ ?>
  2. <!doctype html>
  3. <html>
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  6. <title><?php echo htmlentities((isset($html_title) && ($html_title !== '')?$html_title:config('ds_config.site_name'))); ?></title>
  7. <meta name="renderer" content="webkit|ie-comp|ie-stand" />
  8. <meta name="keywords" content="<?php echo htmlentities((isset($seo_keywords) && ($seo_keywords !== '')?$seo_keywords:'')); ?>" />
  9. <meta name="description" content="<?php echo htmlentities((isset($seo_description) && ($seo_description !== '')?$seo_description:'')); ?>" />
  10. <?php echo token_meta(); ?>
  11. <link rel="stylesheet" href="<?php echo htmlentities(HOME_SITE_ROOT); ?>/css/common.css">
  12. <link rel="stylesheet" href="<?php echo htmlentities(HOME_SITE_ROOT); ?>/css/home_header.css">
  13. <script>
  14. var BASESITEROOT = "<?php echo htmlentities(BASE_SITE_ROOT); ?>";
  15. var HOMESITEROOT = "<?php echo htmlentities(HOME_SITE_ROOT); ?>";
  16. var BASESITEURL = "<?php echo htmlentities(BASE_SITE_URL); ?>";
  17. var HOMESITEURL = "<?php echo htmlentities(HOME_SITE_URL); ?>";
  18. var TIMESTAMP = "<?php echo htmlentities(TIMESTAMP); ?>";
  19. </script>
  20. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery-2.1.4.min.js"></script>
  21. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/common.js"></script>
  22. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery-ui.min.js"></script>
  23. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery.ui.datepicker-zh-CN.js"></script>
  24. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.validate.min.js"></script>
  25. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/additional-methods.min.js"></script>
  26. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/layer/layer.js"></script>
  27. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/dialog/dialog.js" id="dialog_js" charset="utf-8"></script>
  28. </head>
  29. <body>
  30. <div id="append_parent"></div>
  31. <div id="ajaxwaitid"></div>
  32. <?php if($adv_top): ?>
  33. <div style="background:<?php echo htmlentities((isset($adv_top['adv_bgcolor']) && ($adv_top['adv_bgcolor'] !== '')?$adv_top['adv_bgcolor']:'')); ?>;">
  34. <div class="w1200">
  35. <a href="<?php echo url('Advclick/Advclick',['adv_id'=>$adv_top['adv_id']]); ?>" target="_blank" title="<?php echo htmlentities($adv_top['adv_title']); ?>"><img src="<?php echo ds_get_pic(ATTACH_ADV,$adv_top['adv_code']); ?>" width="1200"/></a>
  36. </div>
  37. </div>
  38. <?php endif; ?>
  39. <div class="public-top">
  40. <div class="w1200">
  41. <span class="top-link">
  42. <?php echo htmlentities(lang('welcome_to')); ?> <em><?php echo htmlentities(config('ds_config.site_name')); ?></em>
  43. </span>
  44. <ul class="login-regin">
  45. <?php if(session('member_id')): ?>
  46. <li class="line"> <a href="<?php echo url('Member/index'); ?>"><?php echo session('member_nickname'); ?></a></li>
  47. <li> <a href="<?php echo url('Login/Logout'); ?>"><?php echo htmlentities(lang('exit')); ?></a></li>
  48. <?php else: ?>
  49. <li class="line"> <a href="<?php echo url('Login/login'); ?>"><?php echo htmlentities(lang('please_log')); ?></a></li>
  50. <?php if(config('ds_config.member_normal_register')==1 || config('ds_config.sms_register')==1): ?>
  51. <li> <a href="<?php echo url('Login/register'); ?>"><?php echo htmlentities(lang('free_registration')); ?></a></li>
  52. <?php endif; ?>
  53. <?php endif; ?>
  54. </ul>
  55. <span class="top-link">
  56. <strong style="margin-left:30px;"><?php echo htmlentities(lang('ds_attention')); ?><a href="http://www.csdeshang.com" target="_blank">www.csdeshang.com</a> <?php echo htmlentities(lang('ds_continuous_update')); ?></strong>&nbsp;
  57. <?php echo htmlentities(lang('ds_purchase_authorization')); ?>:<a target="_blank" href="<?php echo htmlentities(HTTP_TYPE); ?>wpa.qq.com/msgrd?v=3&uin=858761000&site=qq&menu=yes"><img border="0" src="<?php echo htmlentities(HTTP_TYPE); ?>wpa.qq.com/pa?p=2:858761000:51" alt="<?php echo htmlentities(lang('click_here_send_message')); ?>" title="<?php echo htmlentities(lang('click_here_send_message')); ?>"/></a>
  58. </span>
  59. <ul class="quick_list">
  60. <li>
  61. <span class="outline"></span>
  62. <span class="blank"></span>
  63. <a href="<?php echo url('Member/index'); ?>"><?php echo htmlentities(lang('ds_user_center')); ?><b></b></a>
  64. <div class="dropdown-menu">
  65. <ol>
  66. <li><a href="<?php echo url('Memberorder/index'); ?>"><?php echo htmlentities(lang('ds_buying_goods')); ?></a></li>
  67. <li><a href="<?php echo url('Memberfavorites/fglist'); ?>"><?php echo htmlentities(lang('ds_care_about')); ?></a></li>
  68. <li><a href="<?php echo url('Memberfavorites/fslist'); ?>"><?php echo htmlentities(lang('ds_the_shop')); ?></a></li>
  69. </ol>
  70. </div>
  71. </li>
  72. <li>
  73. <span class="outline"></span>
  74. <span class="blank"></span>
  75. <a href="<?php echo url('Seller/index'); ?>"><?php echo htmlentities(lang('business_center')); ?><b></b></a>
  76. <div class="dropdown-menu">
  77. <ol>
  78. <?php if(session('seller_id')): ?>
  79. <li><a href="<?php echo url('Seller/index'); ?>"><?php echo htmlentities(lang('ds_shop_overview')); ?></a></li>
  80. <li><a href="<?php echo url('Sellerorder/index'); ?>"><?php echo htmlentities(lang('ds_member_path_store_order')); ?></a></li>
  81. <li><a href="<?php echo url('Sellergoodsonline/index'); ?>"><?php echo htmlentities(lang('promotion_goods_manage')); ?></a></li>
  82. <?php else: if(config('ds_config.store_joinin_open')!=0): ?>
  83. <li><a href="<?php echo url('Showjoinin/index'); ?>"><?php echo htmlentities(lang('tenants')); ?></a></li>
  84. <?php endif; ?>
  85. <li><a href="<?php echo url('Sellerlogin/login'); ?>"><?php echo htmlentities(lang('merchant_login')); ?></a></li>
  86. <?php endif; ?>
  87. </ol>
  88. </div>
  89. </li>
  90. <li>
  91. <span class="outline"></span>
  92. <span class="blank"></span>
  93. <a href="<?php echo url('Memberfavorites/fglist'); ?>"><?php echo htmlentities(lang('ds_favorites')); ?><b></b></a>
  94. <div class="dropdown-menu">
  95. <ol>
  96. <li><a href="<?php echo url('Memberfavorites/fglist'); ?>"><?php echo htmlentities(lang('ds_merchandise_collection')); ?></a></li>
  97. <li><a href="<?php echo url('Memberfavorites/fslist'); ?>"><?php echo htmlentities(lang('ds_store_collect')); ?></a></li>
  98. </ol>
  99. </div>
  100. </li>
  101. <li>
  102. <span class="outline"></span>
  103. <span class="blank"></span>
  104. <a href="javascript:void(0)"><?php echo htmlentities(lang('ds_fast_nav')); ?><b></b></a>
  105. <div class="dropdown-menu">
  106. <ol>
  107. <?php foreach($navs['header'] as $nav): ?>
  108. <li>
  109. <a href="<?php echo htmlentities($nav['nav_url']); ?>" <?php if($nav['nav_new_open'] == 1): ?>target="_blank"<?php endif; ?>><?php echo htmlentities($nav['nav_title']); ?></a>
  110. </li>
  111. <?php endforeach; ?>
  112. </ol>
  113. </div>
  114. </li>
  115. <li class="moblie-qrcode">
  116. <span class="outline"></span>
  117. <span class="blank"></span>
  118. <a href="javascript:void(0)"><?php echo htmlentities(lang('wechat_end')); ?></a>
  119. <div class="dropdown-menu">
  120. <img src="<?php echo ds_get_pic(ATTACH_COMMON,config('ds_config.site_logowx')); ?>" width="90" height="90" />
  121. </div>
  122. </li>
  123. <!--
  124. <li class="app-qrcode">
  125. <span class="outline"></span>
  126. <span class="blank"></span>
  127. <a href="javascript:void(0)">APP</a>
  128. <div class="dropdown-menu">
  129. <img width="90" height="90" src="<?php echo ds_get_pic(ATTACH_COMMON,config('ds_config.site_logowx')); ?>" />
  130. <h3>扫描二维码</h3>
  131. <p>下载手机客户端</p>
  132. </div>
  133. </li>
  134. -->
  135. </ul>
  136. </div>
  137. </div>
  138. <!--左侧导航栏-->
  139. <div class="ds-appbar">
  140. <div class="ds-appbar-tabs" id="appBarTabs">
  141. <?php if(session('is_login')): ?>
  142. <div class="user" dstype="a-barUserInfo">
  143. <div class="avatar"><img src="<?php echo get_member_avatar(session('avatar')); ?>?<?php echo htmlentities(TIMESTAMP); ?>"/></div>
  144. <p><?php echo htmlentities(lang('sns_me')); ?></p>
  145. </div>
  146. <div class="user-info" dstype="barUserInfo" style="display:none;"><i class="arrow"></i>
  147. <div class="avatar"><img src="<?php echo get_member_avatar(session('avatar')); ?>?<?php echo htmlentities(TIMESTAMP); ?>"/></div>
  148. <dl>
  149. <dt>Hi, <?php echo session('member_nickname'); ?></dt>
  150. <dd><?php echo htmlentities(lang('ds_current_level')); ?>:<strong dstype="barMemberGrade"><?php echo session('level_name'); ?></strong></dd>
  151. <dd><?php echo htmlentities(lang('ds_current_experience')); ?>:<strong dstype="barMemberExp"><?php echo session('member_exppoints'); ?></strong></dd>
  152. </dl>
  153. </div>
  154. <?php else: ?>
  155. <div class="user TA_delay" dstype="a-barLoginBox">
  156. <div class="avatar TA"><img src="<?php echo get_member_avatar(session('avatar')); ?>?<?php echo htmlentities(TIMESTAMP); ?>"/></div>
  157. <p class="TA"><?php echo htmlentities(lang('login_notlogged')); ?></p>
  158. </div>
  159. <?php endif; ?>
  160. <ul class="tools">
  161. <?php if(config('ds_config.instant_message_open') == '1'): ?>
  162. <li><a href="javascript:void(0);" id="chat_show_user" class="chat TA_delay"><span class="iconfont">&#xe71b;</span><span class="tit"><?php echo htmlentities(lang('ds_chat')); ?></span><i id="new_msg" class="new_msg" style="display:none;"></i></a></li>
  163. <?php endif; ?>
  164. <li><a href="javascript:void(0);" onclick="toglle_bar('rtoolbar_cart')" id="rtoolbar_cart" class="cart TA_delay"><span class="iconfont">&#xe69a;</span><span class="tit"><?php echo htmlentities(lang('ds_cart')); ?></span><i id="rtoobar_cart_count" class="new_msg" style="display:none;"></i></a></li>
  165. <li><a href="javascript:void(0);" onclick="toglle_bar('compare')" id="compare" class="compare TA_delay"><span class="iconfont">&#xe74a;</span><span class="tit"><?php echo htmlentities(lang('ds_comparison')); ?></span></a></li>
  166. <li>
  167. <a href="javascript:void(0);" id="qrcode" class="qrcode TA_delay"><span class="iconfont">&#xe72d;</span>
  168. <span class="tit-box">
  169. <?php echo htmlentities(lang('ds_mobile_shopping_better')); ?><br>
  170. <img src="<?php echo htmlentities(HOME_SITE_URL); ?>/qrcode?url=<?php echo htmlentities(config('ds_config.h5_site_url')); ?>" width="110" height="110" />
  171. <em class="tips_arrow"></em>
  172. </span>
  173. </a>
  174. </li>
  175. <li><a href="javascript:void(0);" onclick="$('html,body').animate({scrollTop: '0px'}, 500)" id="gotop" class="gotop TA_delay" style="position: fixed;bottom: 0"><span class="iconfont">&#xe724;</span><span class="tit"><?php echo htmlentities(lang('ds_top')); ?></span></a></li>
  176. </ul>
  177. <div class="content-box" id="content-compare">
  178. <div class="top">
  179. <h3><?php echo htmlentities(lang('ds_comparison')); ?></h3>
  180. <a href="javascript:void(0);" class="close iconfont" title="<?php echo htmlentities(lang('ds_hidden')); ?>">&#xe73d;</a></div>
  181. <div id="comparelist"></div>
  182. </div>
  183. <div class="content-box" id="content-cart">
  184. <div class="top">
  185. <h3><?php echo htmlentities(lang('ds_my_shopping_cart')); ?></h3>
  186. <a href="javascript:void(0);" class="close iconfont" title="<?php echo htmlentities(lang('ds_hidden')); ?>">&#xe73d;</a></div>
  187. <div id="rtoolbar_cartlist"></div>
  188. </div>
  189. </div>
  190. </div>
  191. <script type="text/javascript">
  192. //动画显示边条内容区域
  193. $(function() {
  194. $(".close").click(function(){
  195. close_bar();
  196. });
  197. // 右侧bar用户信息
  198. $('div[dstype="a-barUserInfo"]').click(function(){
  199. $('div[dstype="barUserInfo"]').toggle();
  200. });
  201. // 右侧bar登录
  202. $('div[dstype="a-barLoginBox"]').click(function(){
  203. login_dialog();
  204. });
  205. <?php if($cart_goods_num > 0): ?>
  206. $('#rtoobar_cart_count').html(<?php echo htmlentities($cart_goods_num); ?>).show();
  207. <?php endif; ?>
  208. });
  209. function toglle_bar(item){
  210. var member_id = "<?php echo session('member_id'); ?>";
  211. if(member_id == ''){
  212. login_dialog();
  213. return;
  214. }
  215. //判断侧边栏是否已拉出
  216. if(parseInt($('.ds-appbar').css('width')) == 36){
  217. $('.ds-appbar').css('width','306px');
  218. }
  219. //判断选中项是否已显示
  220. if(!$("#"+item).hasClass('active')){
  221. $('.tools li > a').removeClass('active');
  222. $("#"+item).addClass('active');
  223. $('.content-box').removeClass('active');
  224. switch(item){
  225. case 'rtoolbar_cart':
  226. $("#rtoolbar_cartlist").load("<?php echo url('Cart/ajax_load',['type'=>'html']); ?>");
  227. $("#content-cart").addClass('active');
  228. break;
  229. case 'compare':
  230. loadCompare(false);
  231. $("#content-compare").addClass('active');
  232. break;
  233. }
  234. }else{
  235. //关闭
  236. close_bar();
  237. $(".chat-list").css("display",'none');
  238. }
  239. }
  240. function close_bar(){
  241. $('.tools li > a').removeClass('active');
  242. $('.content-box').removeClass('active');
  243. $('.ds-appbar').css('width','36px');
  244. }
  245. </script>
  246. <link rel="stylesheet" href="<?php echo htmlentities(HOME_SITE_ROOT); ?>/css/home.css">
  247. <div class="header clearfix">
  248. <div class="w1200">
  249. <div class="logo">
  250. <a href="<?php echo htmlentities(HOME_SITE_URL); ?>"><img src="<?php echo ds_get_pic(ATTACH_COMMON,config('ds_config.site_logo')); ?>"/></a>
  251. </div>
  252. <div class="top_search">
  253. <div class="top_search_box">
  254. <div id="search">
  255. <ul class="tab" dstype="<?php echo htmlentities(app('request')->controller()); ?>">
  256. <li class="current"><span><?php echo htmlentities(lang('site_search_goods')); ?></span><i class="arrow"></i></li>
  257. <li style="display: none;"><span><?php echo htmlentities(lang('site_search_store')); ?></span></li>
  258. </ul>
  259. </div>
  260. <div class="form_fields">
  261. <form class="search-form" id="search-form" method="get" action="<?php echo url('Search/index'); ?>">
  262. <input placeholder="<?php echo htmlentities(lang('search_merchandise_keywords')); ?>" name="keyword" id="keyword" type="text" class="keyword" value="<?php echo htmlentities(app('request')->param('keyword')); ?>" maxlength="60" />
  263. <input type="submit" id="button" value="<?php echo htmlentities(lang('ds_common_search')); ?>" class="submit">
  264. </form>
  265. </div>
  266. </div>
  267. <ul class="top_search_keywords">
  268. <?php if(is_array($hot_search) || $hot_search instanceof \think\Collection || $hot_search instanceof \think\Paginator): if( count($hot_search)==0 ) : echo "" ;else: foreach($hot_search as $hot_k=>$hot_keyword): ?>
  269. <li <?php if($hot_k==0): ?>class="first"<?php endif; ?>><a href="<?php echo htmlentities(HOME_SITE_URL); ?>/Search/index.html?keyword=<?php echo htmlentities($hot_keyword); ?>"><?php echo htmlentities($hot_keyword); ?></a></li>
  270. <?php endforeach; endif; else: echo "" ;endif; ?>
  271. </ul>
  272. </div>
  273. <div class="user_menu">
  274. <dl class="my-mall">
  275. <dt><span class="ico iconfont">&#xe702;</span><?php echo htmlentities(lang('ds_user_center')); ?><i class="arrow"></i></dt>
  276. <dd>
  277. <div class="sub-title">
  278. <h4></h4>
  279. <a href="<?php echo url('Member/index'); ?>" class="arrow"><?php echo htmlentities(lang('ds_my_user_center')); ?><i></i></a>
  280. </div>
  281. <div class="user-centent-menu">
  282. <ul>
  283. <li><a href="<?php echo url('Membermessage/message'); ?>"><?php echo htmlentities(lang('ds_message')); ?>(<span><?php if(session('member_id')): ?><?php echo htmlentities((isset($message_num) && ($message_num !== '')?$message_num:0)); else: ?>0<?php endif; ?></span>)</a></li>
  284. <li><a href="<?php echo url('Memberorder/index'); ?>" class="arrow"><?php echo htmlentities(lang('ds_my_order')); ?><i></i></a></li>
  285. <li><a href="<?php echo url('Memberconsult/index'); ?>"><?php echo htmlentities(lang('ds_consulting_reply')); ?>(<span id="member_consult">0</span>)</a></li>
  286. <li><a href="<?php echo url('Memberfavorites/fglist'); ?>" class="arrow"><?php echo htmlentities(lang('ds_favorites')); ?><i></i></a></li>
  287. <li><a href="<?php echo url('Membervoucher/index'); ?>"><?php echo htmlentities(lang('ds_vouchers')); ?>(<span id="member_voucher">0</span>)</a></li>
  288. <li><a href="<?php echo url('Memberpoints/index'); ?>" class="arrow"><?php echo htmlentities(lang('ds_my_points')); ?><i></i></a></li>
  289. </ul>
  290. </div>
  291. <div class="browse-history">
  292. <div class="part-title">
  293. <h4><?php echo htmlentities(lang('ds_recently_browsed_items')); ?></h4>
  294. <span style="float:right;"><a href="<?php echo url('Membergoodsbrowse/listinfo'); ?>"><?php echo htmlentities(lang('ds_full_history')); ?></a></span>
  295. </div>
  296. <ul>
  297. <li class="no-goods"><img class="loading" src="<?php echo htmlentities(HOME_SITE_ROOT); ?>/images/loading.gif"></li>
  298. </ul>
  299. </div>
  300. </dd>
  301. </dl>
  302. <dl class="my-cart">
  303. <dt><span class="ico iconfont">&#xe69a;</span><?php echo htmlentities(lang('ds_shopping_cart_settlement')); ?><i class="arrow"></i></dt>
  304. <dd>
  305. <div class="sub-title">
  306. <h4><?php echo htmlentities(lang('ds_latest_additions')); ?></h4>
  307. </div>
  308. <div class="incart-goods-box">
  309. <div class="incart-goods"><div class="no-order"><span><?php echo htmlentities(lang('ds_shopping_cart_empty')); ?></span></div></div>
  310. </div>
  311. <div class="checkout"> <span class="total-price"></span><a href="<?php echo url('Cart/index'); ?>" class="btn-cart"><?php echo htmlentities(lang('ds_checkout_cart')); ?></a> </div>
  312. </dd>
  313. <div class="addcart-goods-num"><?php echo htmlentities($cart_goods_num); ?></div>
  314. </dl>
  315. </div>
  316. </div>
  317. </div>
  318. <div class="mall_nav">
  319. <div class="w1200">
  320. <div class="all_categorys">
  321. <div class="mt">
  322. <i></i>
  323. <h3><a href="<?php echo url('Category/goods'); ?>"><?php echo htmlentities(lang('ds_all_commodity_classes')); ?></a></h3>
  324. </div>
  325. <div class="mc">
  326. <ul class="menu">
  327. <?php if(!(empty($header_categories) || (($header_categories instanceof \think\Collection || $header_categories instanceof \think\Paginator ) && $header_categories->isEmpty()))): $i = 0; if(is_array($header_categories) || $header_categories instanceof \think\Collection || $header_categories instanceof \think\Paginator): if( count($header_categories)==0 ) : echo "" ;else: foreach($header_categories as $key=>$val): $i++; ?>
  328. <li cat_id="<?php echo htmlentities($val['gc_id']); ?>" <?php if($i>11): ?>style="display:none;"<?php endif; ?>>
  329. <div class="class">
  330. <span class="arrow"></span>
  331. <?php if(!(empty($val['gc_image']) || (($val['gc_image'] instanceof \think\Collection || $val['gc_image'] instanceof \think\Paginator ) && $val['gc_image']->isEmpty()))): ?>
  332. <span class="ico"><img src="<?php echo ds_get_pic(ATTACH_COMMON, $val['gc_image']); ?>"></span>
  333. <?php else: ?>
  334. <span class="iconfont category-ico-<?php echo htmlentities($i); ?>"></span>
  335. <?php endif; ?>
  336. <h4><a href="<?php echo url('Search/index',['cate_id'=>$val['gc_id']]); ?>"><?php echo htmlentities($val['gc_name']); ?></a></h4>
  337. </div>
  338. <div class="sub-class" cat_menu_id="<?php echo htmlentities($val['gc_id']); ?>">
  339. <div class="sub-class-content">
  340. <div class="recommend-class">
  341. <?php if(!(empty($val['cn_classs']) || (($val['cn_classs'] instanceof \think\Collection || $val['cn_classs'] instanceof \think\Paginator ) && $val['cn_classs']->isEmpty()))): if(is_array($val['cn_classs']) || $val['cn_classs'] instanceof \think\Collection || $val['cn_classs'] instanceof \think\Paginator): if( count($val['cn_classs'])==0 ) : echo "" ;else: foreach($val['cn_classs'] as $k=>$v): ?>
  342. <span><a href="<?php echo url('Search/index',['cate_id'=>$v['gc_id']]); ?>" title="<?php echo htmlentities($v['gc_name']); ?>"><?php echo htmlentities($v['gc_name']); ?></a></span>
  343. <?php endforeach; endif; else: echo "" ;endif; ?>
  344. <?php endif; ?>
  345. </div>
  346. <?php if(!(empty($val['class2']) || (($val['class2'] instanceof \think\Collection || $val['class2'] instanceof \think\Paginator ) && $val['class2']->isEmpty()))): if(is_array($val['class2']) || $val['class2'] instanceof \think\Collection || $val['class2'] instanceof \think\Paginator): if( count($val['class2'])==0 ) : echo "" ;else: foreach($val['class2'] as $k=>$v): ?>
  347. <dl>
  348. <dt>
  349. <h3><a href="<?php echo url('Search/index',['cate_id'=>$v['gc_id']]); ?>"><?php echo htmlentities($v['gc_name']); ?></a></h3>
  350. </dt>
  351. <dd class="goods-class">
  352. <?php if(!(empty($v['class3']) || (($v['class3'] instanceof \think\Collection || $v['class3'] instanceof \think\Paginator ) && $v['class3']->isEmpty()))): if(is_array($v['class3']) || $v['class3'] instanceof \think\Collection || $v['class3'] instanceof \think\Paginator): if( count($v['class3'])==0 ) : echo "" ;else: foreach($v['class3'] as $k3=>$v3): ?>
  353. <a href="<?php echo url('Search/index',['cate_id'=>$v3['gc_id']]); ?>"><?php echo htmlentities($v3['gc_name']); ?></a>
  354. <?php endforeach; endif; else: echo "" ;endif; ?>
  355. <?php endif; ?>
  356. </dd>
  357. </dl>
  358. <?php endforeach; endif; else: echo "" ;endif; ?>
  359. <?php endif; ?>
  360. </div>
  361. <div class="sub-class-right">
  362. <?php if(!(empty($val['cn_brands']) || (($val['cn_brands'] instanceof \think\Collection || $val['cn_brands'] instanceof \think\Paginator ) && $val['cn_brands']->isEmpty()))): ?>
  363. <div class="brands-list">
  364. <ul>
  365. <?php if(is_array($val['cn_brands']) || $val['cn_brands'] instanceof \think\Collection || $val['cn_brands'] instanceof \think\Paginator): if( count($val['cn_brands'])==0 ) : echo "" ;else: foreach($val['cn_brands'] as $key=>$brand): ?>
  366. <li>
  367. <a href="<?php echo url('Brand/brand_goods',['brand_id'=>$brand['brand_id']]); ?>" title="<?php echo htmlentities($brand['brand_name']); ?>"><?php if(($brand['brand_pic'] != '')): ?><img src="<?php echo brand_image($brand['brand_pic']); ?>"/><?php endif; ?>
  368. <span><?php echo htmlentities($brand['brand_name']); ?></span>
  369. </a>
  370. </li>
  371. <?php endforeach; endif; else: echo "" ;endif; ?>
  372. </ul>
  373. </div>
  374. <?php endif; ?>
  375. <div class="adv-promotions">
  376. <?php if(isset($val['goodscn_adv1']) && $val['goodscn_adv1'] != ''): ?>
  377. <a <?php if($val['goodscn_adv1_link'] == ''): ?>href="javascript:;"<?php else: ?>target="_blank" href="<?php echo htmlentities($val['goodscn_adv1_link']); ?><?php endif; ?>><img src="<?php echo htmlentities($val['goodscn_adv1']); ?>" data-url="<?php echo htmlentities($val['goodscn_adv1']); ?>" class="scrollLoading" /></a>
  378. <?php endif; if(isset($val['goodscn_adv2']) && $val['goodscn_adv2'] != ''): ?>
  379. <a <?php if($val['goodscn_adv2_link'] == ''): ?>href="javascript:;"<?php else: ?>target="_blank" href="<?php echo htmlentities($val['goodscn_adv2_link']); ?><?php endif; ?>><img src="<?php echo htmlentities($val['goodscn_adv2']); ?>" data-url="<?php echo htmlentities($val['goodscn_adv2']); ?>" class="scrollLoading" /></a>
  380. <?php endif; ?>
  381. </div>
  382. </div>
  383. </div>
  384. </li>
  385. <?php endforeach; endif; else: echo "" ;endif; ?>
  386. <?php endif; ?>
  387. </ul>
  388. </div>
  389. </div>
  390. <div class="nav_list">
  391. <ul class="site_menu">
  392. <li><a href="<?php echo url('Index/index'); ?>" class="current"><?php echo htmlentities(lang('ds_index')); ?></a></li>
  393. <?php foreach($navs['middle'] as $nav): ?>
  394. <li><a href="<?php echo htmlentities($nav['nav_url']); ?>" <?php if($nav['nav_new_open'] == 1): ?>target="_blank"<?php endif; ?>><?php echo htmlentities($nav['nav_title']); ?></a></li>
  395. <?php endforeach; ?>
  396. </ul>
  397. </div>
  398. </div>
  399. </div>
  400. <!--面包屑导航 BEGIN-->
  401. <?php if(!(empty($nav_link_list) || (($nav_link_list instanceof \think\Collection || $nav_link_list instanceof \think\Paginator ) && $nav_link_list->isEmpty()))): ?>
  402. <div class="dsh-breadcrumb-layout">
  403. <div class="dsh-breadcrumb w1200"><i class="iconfont">&#xe6ff;</i>
  404. <?php foreach($nav_link_list as $nav_link): if(empty($nav_link['link']) || (($nav_link['link'] instanceof \think\Collection || $nav_link['link'] instanceof \think\Paginator ) && $nav_link['link']->isEmpty())): ?>
  405. <span><?php echo htmlentities($nav_link['title']); ?></span>
  406. <?php else: ?>
  407. <span><a href="<?php echo htmlentities($nav_link['link']); ?>"><?php echo htmlentities($nav_link['title']); ?></a></span><span class="arrow">></span>
  408. <?php endif; ?>
  409. <?php endforeach; ?>
  410. </div>
  411. </div>
  412. <?php endif; ?>
  413. <!--面包屑导航 END-->
  414. <script>
  415. $(function() {
  416. //首页左侧分类菜单
  417. $(".all_categorys ul.menu").find("li").each(
  418. function() {
  419. $(this).hover(
  420. function() {
  421. var cat_id = $(this).attr("cat_id");
  422. var menu = $(this).find("div[cat_menu_id='"+cat_id+"']");
  423. menu.show();
  424. $(this).addClass("hover");
  425. var menu_height = menu.height();
  426. if (menu_height < 60) menu.height(80);
  427. menu_height = menu.height();
  428. var li_top = $(this).position().top;
  429. $(menu).css("top",-li_top + 40);
  430. },
  431. function() {
  432. $(this).removeClass("hover");
  433. var cat_id = $(this).attr("cat_id");
  434. $(this).find("div[cat_menu_id='"+cat_id+"']").hide();
  435. }
  436. );
  437. }
  438. );
  439. $(".user_menu dl").hover(function() {
  440. $(this).addClass("hover");
  441. }, function() {
  442. $(this).removeClass("hover");
  443. });
  444. $('.user_menu .my-mall').mouseover(function() {
  445. // 最近浏览的商品
  446. load_history_information();
  447. $(this).unbind('mouseover');
  448. });
  449. $('.user_menu .my-cart').mouseover(function() {
  450. // 运行加载购物车
  451. load_cart_information();
  452. $(this).unbind('mouseover');
  453. });
  454. });
  455. </script>
  456. <?php if(!isset($editable_page)): ?>
  457. <link rel="stylesheet" href="<?php echo htmlentities(HOME_SITE_ROOT); ?>/css/index.css">
  458. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.SuperSlide.2.1.1.js"></script>
  459. <style>
  460. .mall_nav{border-bottom:none;}
  461. .mall_nav .all_categorys .mc{display: block;}
  462. </style>
  463. <div class="clear"></div>
  464. <!-- HomeFocusLayout Begin-->
  465. <div class="home-focus-layout">
  466. <?php if($adv_index_1): ?>
  467. <div class="bd">
  468. <ul>
  469. <?php if(is_array($adv_index_1) || $adv_index_1 instanceof \think\Collection || $adv_index_1 instanceof \think\Paginator): if( count($adv_index_1)==0 ) : echo "" ;else: foreach($adv_index_1 as $key=>$v): ?>
  470. <li style="background: url(<?php echo ds_get_pic(ATTACH_ADV,$v['adv_code']); ?>) center top no-repeat rgb(35, 35, 35); display: none;background-color: <?php echo htmlentities((isset($v['adv_bgcolor']) && ($v['adv_bgcolor'] !== '')?$v['adv_bgcolor']:'')); ?>" style="<?php echo htmlentities((isset($v['adv_style']) && ($v['adv_style'] !== '')?$v['adv_style']:'')); ?>">
  471. <a href="<?php echo url('Advclick/Advclick',['adv_id'=>$v['adv_id']]); ?>" target="_blank" title="<?php echo htmlentities($v['adv_title']); ?>">&nbsp;</a>
  472. </li>
  473. <?php endforeach; endif; else: echo "" ;endif; ?>
  474. </ul>
  475. </div>
  476. <div class="hd">
  477. <ul>
  478. <?php if(is_array($adv_index_1) || $adv_index_1 instanceof \think\Collection || $adv_index_1 instanceof \think\Paginator): if( count($adv_index_1)==0 ) : echo "" ;else: foreach($adv_index_1 as $key=>$v): ?>
  479. <li class=""></li>
  480. <?php endforeach; endif; else: echo "" ;endif; ?>
  481. </ul>
  482. </div>
  483. <?php endif; ?>
  484. <div class="right-sidebar">
  485. <div class="mod_personal_center">
  486. <?php if(session('is_login')): ?>
  487. <div class="avata_pic_wrap">
  488. <a id="index_account_icon_login" href="<?php echo url('Member/index'); ?>" target="_blank"><img class="lazyload" data-original="<?php echo get_member_avatar(session('avatar')); ?>?<?php echo htmlentities(TIMESTAMP); ?>"></a>
  489. </div>
  490. <div class="info_wrap">
  491. <div class="login_box">
  492. <div class="user_info clearfix">
  493. <em>Hi,<?php echo session('member_nickname'); ?></em>
  494. </div>
  495. <div class="clearfix treasure">
  496. <a href="<?php echo url('Memberorder/index',['state_type'=>'state_new']); ?>" target="_blank" class="gold_coin">
  497. <em><?php echo htmlentities($member_order_info['order_nopay_count']); ?></em>
  498. <p><?php echo htmlentities(lang('pending_payment')); ?></p>
  499. </a>
  500. <a href="<?php echo url('Memberorder/index',['state_type'=>'state_send']); ?>" target="_blank" class="gold_coin">
  501. <em><?php echo htmlentities($member_order_info['order_noreceipt_count']); ?></em>
  502. <p><?php echo htmlentities(lang('pending_receipt')); ?></p>
  503. </a>
  504. <a href="<?php echo url('Memberorder/index',['state_type'=>'state_noeval']); ?>" target="_blank">
  505. <em><?php echo htmlentities($member_order_info['order_noeval_count']); ?></em>
  506. <p><?php echo htmlentities(lang('pending_comment')); ?></p>
  507. </a>
  508. </div>
  509. </div>
  510. </div>
  511. <?php else: ?>
  512. <div class="avata_pic_wrap">
  513. <a id="index_account_icon_unlogin" href="javascript:void(0)"><img class="lazyload" data-original="<?php echo get_member_avatar(session('avatar')); ?>?<?php echo htmlentities(TIMESTAMP); ?>"></a>
  514. </div>
  515. <div class="info_wrap">
  516. <div class="unlogin_box">
  517. <div class="title">Hi~<?php echo htmlentities(lang('hello')); ?>!</div>
  518. <div class="tips">
  519. </div>
  520. <div class="btn_wrap">
  521. <a href="<?php echo url('Login/login'); ?>" class="login_btn"><?php echo htmlentities(lang('login')); ?></a>
  522. <?php if(config('ds_config.member_normal_register')==1 || config('ds_config.sms_register')==1): ?>
  523. <a href="<?php echo url('Login/register'); ?>" class="regist_btn"><?php echo htmlentities(lang('login_index_regist_now_2')); ?></a>
  524. <?php endif; ?>
  525. </div>
  526. </div>
  527. </div>
  528. <?php endif; ?>
  529. <div class="top_line">
  530. <div class="vip_list">
  531. <a href="javascript:void(0)">
  532. <i class="iconfont" style="background:#ff9b1b">&#xe673;</i>
  533. <p class="vip_item_text"><?php echo htmlentities(lang('buyer_protection')); ?></p>
  534. </a>
  535. <a href="javascript:void(0)">
  536. <i class="iconfont" style="background:#52a6ff">&#xe67e;</i>
  537. <p class="vip_item_text"><?php echo htmlentities(lang('merchant_authentication')); ?></p>
  538. </a>
  539. <a href="javascript:void(0)">
  540. <i class="iconfont" style="background:#57c15b">&#xe74f;</i>
  541. <p class="vip_item_text"><?php echo htmlentities(lang('secure_transaction')); ?></p>
  542. </a>
  543. <div class="clear"></div>
  544. </div>
  545. </div>
  546. <div class="notice_list">
  547. <?php foreach($index_articles as $i_a): ?>
  548. <a title="<?php echo htmlentities($i_a['article_title']); ?>" href="<?php if($i_a['article_url'] !=''): ?><?php echo htmlentities($i_a['article_url']); else: ?><?php echo url('Article/show',['article_id'=>$i_a['article_id']]); ?><?php endif; ?>" target="_blank">
  549. <span><?php echo htmlentities($i_a['article_title']); ?></span>
  550. </a>
  551. <?php endforeach; ?>
  552. </div>
  553. </div>
  554. </div>
  555. </div>
  556. <!--HomeFocusLayout End-->
  557. <?php if($adv_index_2): ?>
  558. <div class="home-scroll w1200 mt10">
  559. <div class="bd">
  560. <ul>
  561. <li>
  562. <?php if(is_array($adv_index_2) || $adv_index_2 instanceof \think\Collection || $adv_index_2 instanceof \think\Paginator): if( count($adv_index_2)==0 ) : echo "" ;else: foreach($adv_index_2 as $key=>$v): ?>
  563. <a href="<?php echo url('Advclick/Advclick',['adv_id'=>$v['adv_id']]); ?>" target="_blank" title="">
  564. <img class="lazyload" data-original="<?php echo ds_get_pic(ATTACH_ADV,$v['adv_code']); ?>" style="<?php echo htmlentities((isset($v['adv_style']) && ($v['adv_style'] !== '')?$v['adv_style']:'')); ?>">
  565. </a>
  566. <?php endforeach; endif; else: echo "" ;endif; ?>
  567. </li>
  568. </ul>
  569. <a class="ctrl prev" href="javascript:void(0)"><</a>
  570. <a class="ctrl next" href="javascript:void(0)">></a>
  571. </div>
  572. </div>
  573. <?php endif; ?>
  574. <div class="home-sale-layout w1200 mt20">
  575. <div class="hd">
  576. <ul class="tabs-nav">
  577. <li class="tabs-selected on"><i class="arrow"></i><h3><?php echo htmlentities(lang('recommendation')); ?></h3></li>
  578. <li class=""><i class="arrow"></i><h3><?php echo htmlentities(lang('discount')); ?></h3></li>
  579. <li class=""><i class="arrow"></i><h3><?php echo htmlentities(lang('latest_hot_sale')); ?></h3></li>
  580. <li class=""><i class="arrow"></i><h3><?php echo htmlentities(lang('shopping_frenzy')); ?></h3></li>
  581. </ul>
  582. </div>
  583. <div class="bd tabs-panel">
  584. <ul style="display: block;">
  585. <?php if(!(empty($recommend_list) || (($recommend_list instanceof \think\Collection || $recommend_list instanceof \think\Paginator ) && $recommend_list->isEmpty()))): if(is_array($recommend_list) || $recommend_list instanceof \think\Collection || $recommend_list instanceof \think\Paginator): if( count($recommend_list)==0 ) : echo "" ;else: foreach($recommend_list as $key=>$goods): ?>
  586. <li>
  587. <dl>
  588. <dd class="goods-thumb">
  589. <a target="_blank" href="<?php echo url('Goods/index',['goods_id'=>$goods['goods_id']]); ?>">
  590. <img class="lazyload" data-original="<?php echo goods_cthumb($goods['goods_image']); ?>" alt="<?php echo htmlentities($goods['goods_name']); ?>">
  591. </a>
  592. </dd>
  593. <dt class="goods-name"><a target="_blank" href="<?php echo url('Goods/index',['goods_id'=>$goods['goods_id']]); ?>" title="<?php echo htmlentities($goods['goods_name']); ?>"><?php echo htmlentities($goods['goods_name']); ?></a></dt>
  594. <dd class="goods-price"><em>¥<?php echo htmlentities($goods['goods_price']); ?></em></dd>
  595. </dl>
  596. </li>
  597. <?php endforeach; endif; else: echo "" ;endif; ?>
  598. <?php endif; ?>
  599. </ul>
  600. <ul style="display: none;">
  601. <?php if(!(empty($promotion_list) || (($promotion_list instanceof \think\Collection || $promotion_list instanceof \think\Paginator ) && $promotion_list->isEmpty()))): if(is_array($promotion_list) || $promotion_list instanceof \think\Collection || $promotion_list instanceof \think\Paginator): if( count($promotion_list)==0 ) : echo "" ;else: foreach($promotion_list as $key=>$goods): ?>
  602. <li>
  603. <dl>
  604. <dd class="goods-thumb">
  605. <a target="_blank" href="<?php echo url('Goods/index',['goods_id'=>$goods['goods_id']]); ?>">
  606. <img class="lazyload" data-original="<?php echo goods_cthumb($goods['goods_image']); ?>" alt="<?php echo htmlentities($goods['goods_name']); ?>">
  607. </a>
  608. </dd>
  609. <dt class="goods-name"><a target="_blank" href="<?php echo url('Goods/index',['goods_id'=>$goods['goods_id']]); ?>" title="<?php echo htmlentities($goods['goods_name']); ?>"><?php echo htmlentities($goods['goods_name']); ?></a></dt>
  610. <dd class="goods-price"><?php echo htmlentities(lang('shopping_mall_price')); ?>:<em>¥<?php echo htmlentities($goods['xianshigoods_price']); ?></em></dd>
  611. </dl>
  612. </li>
  613. <?php endforeach; endif; else: echo "" ;endif; ?>
  614. <?php endif; ?>
  615. </ul>
  616. <ul style="display: none;">
  617. <?php if(!(empty($new_list) || (($new_list instanceof \think\Collection || $new_list instanceof \think\Paginator ) && $new_list->isEmpty()))): if(is_array($new_list) || $new_list instanceof \think\Collection || $new_list instanceof \think\Paginator): if( count($new_list)==0 ) : echo "" ;else: foreach($new_list as $key=>$goods): ?>
  618. <li>
  619. <dl>
  620. <dd class="goods-thumb">
  621. <a target="_blank" href="<?php echo url('Goods/index',['goods_id'=>$goods['goods_id']]); ?>">
  622. <img class="lazyload" data-original="<?php echo goods_cthumb($goods['goods_image']); ?>" alt="<?php echo htmlentities($goods['goods_name']); ?>">
  623. </a>
  624. </dd>
  625. <dt class="goods-name"><a target="_blank" href="<?php echo url('Goods/index',['goods_id'=>$goods['goods_id']]); ?>" title="<?php echo htmlentities($goods['goods_name']); ?>"><?php echo htmlentities($goods['goods_name']); ?></a></dt>
  626. <dd class="goods-price"><?php echo htmlentities(lang('shopping_mall_price')); ?>:<em>¥<?php echo htmlentities($goods['goods_price']); ?></em></dd>
  627. </dl>
  628. </li>
  629. <?php endforeach; endif; else: echo "" ;endif; ?>
  630. <?php endif; ?>
  631. </ul>
  632. <ul style="display: none;">
  633. <?php if(!(empty($groupbuy_list) || (($groupbuy_list instanceof \think\Collection || $groupbuy_list instanceof \think\Paginator ) && $groupbuy_list->isEmpty()))): if(is_array($groupbuy_list) || $groupbuy_list instanceof \think\Collection || $groupbuy_list instanceof \think\Paginator): if( count($groupbuy_list)==0 ) : echo "" ;else: foreach($groupbuy_list as $key=>$goods): ?>
  634. <li>
  635. <dl>
  636. <dd class="goods-thumb">
  637. <a target="_blank" href="<?php echo url('Goods/index',['goods_id'=>$goods['goods_id']]); ?>">
  638. <img class="lazyload" data-original="<?php echo groupbuy_thumb($goods['groupbuy_image']); ?>" alt="<?php echo htmlentities($goods['goods_name']); ?>">
  639. </a>
  640. </dd>
  641. <dt class="goods-name"><a target="_blank" href="<?php echo url('Goods/index',['goods_id'=>$goods['goods_id']]); ?>" title="<?php echo htmlentities($goods['goods_name']); ?>"><?php echo htmlentities($goods['goods_name']); ?></a></dt>
  642. <dd class="goods-price"><?php echo htmlentities(lang('shopping_mall_price')); ?>:<em>¥<?php echo htmlentities($goods['groupbuy_price']); ?></em></dd>
  643. </dl>
  644. </li>
  645. <?php endforeach; endif; else: echo "" ;endif; ?>
  646. <?php endif; ?>
  647. </ul>
  648. </div>
  649. </div>
  650. <div class="floor_wrap">
  651. <div class="floor floor0 w1200" style="height:0"></div>
  652. <?php if(is_array($floor_block) || $floor_block instanceof \think\Collection || $floor_block instanceof \think\Paginator): if( count($floor_block)==0 ) : echo "" ;else: foreach($floor_block as $k=>$vo): ?>
  653. <div class="<?php if($k>4): ?>style2<?php endif; ?> floor floor<?php echo $k+1; ?> w1200">
  654. <div class="floor-left">
  655. <div class="title">
  656. <h2 title="<?php echo htmlentities($vo['gc_name']); ?>"><?php echo htmlentities($vo['gc_name']); ?></h2>
  657. </div>
  658. <?php if($k<5): ?>
  659. <div class="left-ads">
  660. <?php if($k<5 && $vo['adv_left']): ?>
  661. <a href="<?php echo url('Advclick/Advclick',['adv_id'=>$vo['adv_left']['adv_id']]); ?>" target="_blank" title="">
  662. <img class="lazyload" data-original="<?php echo ds_get_pic(ATTACH_ADV,$vo['adv_left']['adv_code']); ?>" style="<?php echo htmlentities((isset($vo['adv_left']['adv_style']) && ($vo['adv_left']['adv_style'] !== '')?$vo['adv_left']['adv_style']:'')); ?>">
  663. </a>
  664. <?php endif; ?>
  665. </div>
  666. <?php endif; ?>
  667. </div>
  668. <div class="floor-right">
  669. <ul class="tabs-nav hd">
  670. <?php if(is_array($vo['goods_list']) || $vo['goods_list'] instanceof \think\Collection || $vo['goods_list'] instanceof \think\Paginator): if( count($vo['goods_list'])==0 ) : echo "" ;else: foreach($vo['goods_list'] as $list_key=>$list): ?>
  671. <li <?php if($list_key == '0'): ?>class="on"<?php endif; ?>><h3><?php echo htmlentities($list['gc_name']); ?></h3></li>
  672. <?php endforeach; endif; else: echo "" ;endif; ?>
  673. </ul>
  674. <div class="goods-list bd">
  675. <?php if(is_array($vo['goods_list']) || $vo['goods_list'] instanceof \think\Collection || $vo['goods_list'] instanceof \think\Paginator): if( count($vo['goods_list'])==0 ) : echo "" ;else: foreach($vo['goods_list'] as $list_key=>$list): ?>
  676. <ul class="clearfix" <?php if($list_key == '0'): ?>style="display:block"<?php endif; ?>>
  677. <?php if(!(empty($list['gc_list']) || (($list['gc_list'] instanceof \think\Collection || $list['gc_list'] instanceof \think\Paginator ) && $list['gc_list']->isEmpty()))): if(is_array($list['gc_list']) || $list['gc_list'] instanceof \think\Collection || $list['gc_list'] instanceof \think\Paginator): if( count($list['gc_list'])==0 ) : echo "" ;else: foreach($list['gc_list'] as $goods_key=>$goods): if(($k<5 && $goods_key<8) || $k>4): ?>
  678. <li>
  679. <dl>
  680. <dd class="goods-thumb">
  681. <a target="_blank" href="<?php echo url('Goods/index',['goods_id'=>$goods['goods_id']]); ?>">
  682. <img class="lazyload" data-original="<?php echo goods_cthumb($goods['goods_image']); ?>" alt="<?php echo htmlentities($goods['goods_name']); ?>"/>
  683. </a>
  684. </dd>
  685. <dt class="goods-name"><a target="_blank" href="<?php echo url('Goods/index',['goods_id'=>$goods['goods_id']]); ?>" title="<?php echo htmlentities($goods['goods_name']); ?>"><?php echo htmlentities($goods['goods_name']); ?></a></dt>
  686. <dd class="goods-price">
  687. <em><?php echo htmlentities($goods['goods_price']); ?><?php echo htmlentities(lang('ds_yuan')); ?></em>
  688. <?php if($goods['goods_marketprice'] > 0): ?>
  689. <span class="original"><?php echo htmlentities($goods['goods_marketprice']); ?><?php echo htmlentities(lang('ds_yuan')); ?></span>
  690. <?php endif; ?>
  691. </dd>
  692. </dl>
  693. </li>
  694. <?php endif; ?>
  695. <?php endforeach; endif; else: echo "" ;endif; ?>
  696. <?php endif; ?>
  697. </ul>
  698. <?php endforeach; endif; else: echo "" ;endif; ?>
  699. </div>
  700. </div>
  701. </div>
  702. <div class="w1200 floor-banner">
  703. <?php if($k<5 && $vo['adv_bottom']): ?>
  704. <a href="<?php echo url('Advclick/Advclick',['adv_id'=>$vo['adv_bottom']['adv_id']]); ?>" target="_blank" title="">
  705. <img class="lazyload" data-original="<?php echo ds_get_pic(ATTACH_ADV,$vo['adv_bottom']['adv_code']); ?>" style="<?php echo htmlentities((isset($vo['adv_bottom']['adv_style']) && ($vo['adv_bottom']['adv_style'] !== '')?$vo['adv_bottom']['adv_style']:'')); ?>">
  706. </a>
  707. <?php endif; ?>
  708. </div>
  709. <script>
  710. jQuery(".floor<?php echo $k+1; ?> .floor-right").slide({mainCell: ".bd", autoPlay: false, interTime: 5000});
  711. </script>
  712. <?php endforeach; endif; else: echo "" ;endif; ?>
  713. </div>
  714. <div class="wrapper mt10"></div>
  715. <div class="index-link wrapper">
  716. <dl class="website">
  717. <dt><?php echo htmlentities(lang('cooperative_partner')); ?> | <?php echo htmlentities(lang('friendship_link')); ?><b></b></dt>
  718. <dd>
  719. <?php if(!(empty($link_list) || (($link_list instanceof \think\Collection || $link_list instanceof \think\Paginator ) && $link_list->isEmpty()))): if(is_array($link_list) || $link_list instanceof \think\Collection || $link_list instanceof \think\Paginator): if( count($link_list)==0 ) : echo "" ;else: foreach($link_list as $key=>$val): ?>
  720. <a href="<?php echo htmlentities($val['link_url']); ?>" target="_blank" title="<?php echo htmlentities($val['link_title']); ?>"><?php echo str_cut($val['link_title'],15); ?></a>
  721. <?php endforeach; endif; else: echo "" ;endif; ?>
  722. <?php endif; ?>
  723. </dd>
  724. </dl>
  725. </div>
  726. <div class="footer-line"></div>
  727. <!--首页底部保障开始-->
  728. <!--首页底部保障结束-->
  729. <!--StandardLayout Begin-->
  730. <!--StandardLayout End-->
  731. <style>
  732. .fsFixedTopContent{display:none;overflow:visible;width:50px;height:auto;position:fixed;left:50%;top:40%;margin:-150px 0 0 -675px;z-index:3333;}
  733. .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}
  734. .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;}
  735. .fsFixedTop b{width:36px;height:36px;color:#333;font-size:13px;font-weight:600;text-align:center;display:block;}
  736. .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;}
  737. .fsFixedTop a.active{background:#ff4040 }
  738. .fsFixedTop a.active .fs-name{color:#fff;display:block;}
  739. .fsFixedTop a.active .fs {display: none}
  740. .fsFixedTop a.active .fs-name:hover {background:#ff4040;text-decoration:none}
  741. .fsFixedTop a:hover{background:#ff4040}
  742. .fsFixedTop a:hover .fs-name {display: block;color: #fff}
  743. .fsFixedTop a:hover b {display: none}
  744. </style>
  745. <div class="fsFixedTopContent" style="visibility: hidden; display: block;">
  746. <div class="fsFixedTop" style="opacity: 0;">
  747. <?php if(is_array($floor_block) || $floor_block instanceof \think\Collection || $floor_block instanceof \think\Paginator): if( count($floor_block)==0 ) : echo "" ;else: foreach($floor_block as $k=>$vo): ?>
  748. <a class="smooth active" href="javascript:;"> <b class="fs"><?php echo htmlentities($k+1); ?>F</b> <em class="fs-name"><?php echo htmlentities($vo['gc_name']); ?></em> </a>
  749. <?php endforeach; endif; else: echo "" ;endif; ?>
  750. </div>
  751. </div>
  752. <script>
  753. $(function () {
  754. $(window).scroll(function () {
  755. var scrt = $(window).scrollTop();
  756. if (scrt > 1000) {
  757. $(".fsFixedTopContent").show("fast", function () {
  758. $(".fsFixedTop").css({
  759. "-webkit-transform": "scale(1)",
  760. "-moz-transform": "scale(1)",
  761. "transform": "scale(1)",
  762. "opacity": "1"
  763. })
  764. }).css({
  765. "visibility": "visible"
  766. })
  767. } else {
  768. $(".fsFixedTop").css({
  769. "-webkit-transform": "scale(1.2)",
  770. "-moz-transform": "scale(1.2)",
  771. "transform": "scale(1.2)",
  772. "opacity": "0"
  773. });
  774. $(".fsFixedTopContent").css({
  775. "visibility": "hidden"
  776. })
  777. }
  778. setTab()
  779. });
  780. var arr = [],fsOffset = 0;
  781. for (var i = 1; i < $(".floor").length; i++) {
  782. arr.push(parseInt($(".floor").eq(i).offset().top) + 30)
  783. }
  784. $(".fsFixedTop a.smooth").on("click", function () {
  785. var _th = $(this);
  786. _th.blur();
  787. var index = $(".fsFixedTop a.smooth").index(this);
  788. if (index > 0) {
  789. fsOffset =index* 100-50;
  790. }else{
  791. fsOffset =-50;
  792. }
  793. var hh = arr[index];
  794. var clickheight = hh+fsOffset;
  795. $("html,body").stop().animate({
  796. scrollTop:clickheight+ "px"
  797. }, 400)
  798. });
  799. $(".fsFixedTop a.fsbacktotop").click(function () {
  800. $("html,body").stop().animate({
  801. scrollTop: 0
  802. }, 400)
  803. })
  804. function setTab() {
  805. var Objs = $(".floor:gt(0)");
  806. var textSt = $(window).scrollTop();
  807. for (var i = Objs.length - 1; i >= 0; i--) {
  808. if (textSt >= $(Objs[i]).offset().top - 50) {
  809. $(".fsFixedTop a").eq(i).addClass("active").siblings().removeClass("active");
  810. return;
  811. }
  812. }
  813. }
  814. });
  815. </script>
  816. <script>
  817. //轮播
  818. jQuery(".home-focus-layout").slide({mainCell: ".bd ul", autoPlay: true, delayTime: 500, interTime: 5000});
  819. jQuery(".home-scroll").slide({mainCell: ".bd li", autoPage: true,autoPlay: true, delayTime: 1000, effect: "left", interTime: 5000, vis: 5});
  820. jQuery(".home-sale-layout").slide({autoPlay: false, });
  821. </script>
  822. <?php else: ?>
  823. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.SuperSlide.2.1.1.js"></script>
  824. <link rel="stylesheet" href="<?php echo htmlentities(HOME_SITE_ROOT); ?>/css/editable_page.css">
  825. <?php if(is_array($config_list) || $config_list instanceof \think\Collection || $config_list instanceof \think\Paginator): if( count($config_list)==0 ) : echo "" ;else: foreach($config_list as $key=>$item): ?>
  826. <div data-type="html" data-id="<?php echo htmlentities($key+1); ?>"><?php echo $item['html']; ?></div>
  827. <?php endforeach; endif; else: echo "" ;endif; ?>
  828. <script>
  829. <?php if(is_array($config_list) || $config_list instanceof \think\Collection || $config_list instanceof \think\Paginator): if( count($config_list)==0 ) : echo "" ;else: foreach($config_list as $key=>$item): ?>
  830. if(typeof(window['loadHtml<?php echo htmlentities($item['val']['editable_page_model_id']); ?>'])!='undefined'){
  831. window['loadHtml<?php echo htmlentities($item['val']['editable_page_model_id']); ?>']($('*[data-type="html"][data-id=<?php echo htmlentities($key+1); ?>]'))
  832. }
  833. <?php endforeach; endif; else: echo "" ;endif; ?>
  834. </script>
  835. <?php endif; ?>
  836. <!--首页悬浮弹窗BEGIN-->
  837. <?php if(config('ds_config.fixed_suspension_state')): ?>
  838. <div class="fixed-suspension-layer" style="display: none;">
  839. <div class="fixed-suspension-con">
  840. <a href="<?php echo htmlentities(config('ds_config.fixed_suspension_url')); ?>" class="fixed-suspension-img">
  841. <img class="lazy" src="<?php echo ds_get_pic(ATTACH_COMMON,config('ds_config.fixed_suspension_img')); ?>">
  842. </a>
  843. <div class="close-fixed-suspension"></div>
  844. </div>
  845. </div>
  846. <style>
  847. /*首页悬浮窗-BEGIN*/
  848. .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;}
  849. .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;}
  850. .fixed-suspension-layer .fixed-suspension-con .fixed-suspension-img{ display: block; text-align: center; max-width: 800px; max-height: 500px;}
  851. .fixed-suspension-layer .fixed-suspension-con .fixed-suspension-img img{ max-width: 100%; max-height: 100%;}
  852. .close-fixed-suspension{ position: absolute; width: 36px; height: 36px; top: -40px; z-index: 2; background: url(<?php echo htmlentities(HOME_SITE_ROOT); ?>/images/close-fixed-suspension.png); background-size: cover; right: -40px; cursor: pointer;}
  853. /*首页悬浮窗-END*/
  854. </style>
  855. <script type="text/javascript">
  856. if(!localStorage.fixed_ad_layer){
  857. $('.fixed-suspension-layer').show();
  858. }
  859. //悬浮广告弹出层
  860. $('body').on('click','.close-fixed-suspension',function(){
  861. localStorage.fixed_ad_layer = true;
  862. $('.fixed-suspension-layer').hide();
  863. });
  864. </script>
  865. <?php endif; ?>
  866. <!--首页悬浮弹窗END-->
  867. <div class="server">
  868. <div class="ensure">
  869. <a href="#"></a>
  870. <a href="#"></a>
  871. <a href="#"></a>
  872. <a href="#"></a>
  873. </div>
  874. <div class="mall_desc">
  875. <?php if(!(empty($article_list) || (($article_list instanceof \think\Collection || $article_list instanceof \think\Paginator ) && $article_list->isEmpty()))): if(is_array($article_list) || $article_list instanceof \think\Collection || $article_list instanceof \think\Paginator): $_6440e0416b728 = is_array($article_list) ? array_slice($article_list,0,4, true) : $article_list->slice(0,4, true); if( count($_6440e0416b728)==0 ) : echo "" ;else: foreach($_6440e0416b728 as $key=>$art): ?>
  876. <dl>
  877. <dt><?php echo htmlentities($art['ac_name']); ?></dt>
  878. <dd>
  879. <?php if(!(empty($art['list']) || (($art['list'] instanceof \think\Collection || $art['list'] instanceof \think\Paginator ) && $art['list']->isEmpty()))): if(is_array($art['list']) || $art['list'] instanceof \think\Collection || $art['list'] instanceof \think\Paginator): if( count($art['list'])==0 ) : echo "" ;else: foreach($art['list'] as $key=>$list): ?>
  880. <a href="<?php if($list['article_url'] !=''): ?><?php echo htmlentities($list['article_url']); else: ?><?php echo url('Article/show',['article_id'=>$list['article_id']]); ?><?php endif; ?>"><?php echo htmlentities($list['article_title']); ?></a>
  881. <?php endforeach; endif; else: echo "" ;endif; ?>
  882. <?php endif; ?>
  883. </dd>
  884. </dl>
  885. <?php endforeach; endif; else: echo "" ;endif; ?>
  886. <?php endif; ?>
  887. <dl class="mall_mobile">
  888. <dt><?php echo htmlentities(lang('ds_mobile_mall')); ?></dt>
  889. <dd>
  890. <a href="#" class="join">
  891. <img src="<?php echo htmlentities(HOME_SITE_URL); ?>/qrcode?url=<?php echo htmlentities(config('ds_config.h5_site_url')); ?>" width="105" height="105" >
  892. </a>
  893. </dd>
  894. </dl>
  895. </div>
  896. </div>
  897. <?php if(config('ds_config.instant_message_open') == '1' && !isset($wait) && request()->controller() != 'Payment' && request()->controller() != 'Showgroupbuy'): ?>
  898. <?php echo get_chat(); ?>
  899. <?php endif; ?>
  900. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.cookie.js"></script>
  901. <script src="<?php echo htmlentities(HOME_SITE_ROOT); ?>/js/compare.js"></script>
  902. <link rel="stylesheet" href="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/perfect-scrollbar.min.css">
  903. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/perfect-scrollbar.min.js"></script>
  904. <script type="text/javascript" src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/qtip/jquery.qtip.min.js"></script>
  905. <link href="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/qtip/jquery.qtip.min.css" rel="stylesheet" type="text/css">
  906. <script type="text/javascript" src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.lazyload.min.js"></script>
  907. <script>
  908. //懒加载
  909. $("img.lazyload").lazyload({
  910. // placeholder : "<?php echo htmlentities(HOME_SITE_ROOT); ?>/images/loading.gif",
  911. effect: "fadeIn",
  912. skip_invisible : false,
  913. threshold : 200,
  914. });
  915. </script>
  916. <div class="footer-info">
  917. <div class="links w1200">
  918. <?php foreach($navs['footer'] as $nav): ?>
  919. <a href="<?php echo htmlentities($nav['nav_url']); ?>" <?php if($nav['nav_new_open'] == 1): ?>target="_blank"<?php endif; ?>><?php echo htmlentities($nav['nav_title']); ?></a>|
  920. <?php endforeach; ?>
  921. </div>
  922. <div class="copyright">
  923. <p><a href="http://www.beian.gov.cn/portal/registerSystemInfo" target="_blank"><?php echo htmlentities(config('ds_config.wab_number')); ?></a></p>
  924. <p><a href="https://beian.miit.gov.cn" target="_blank"><?php echo htmlentities(config('ds_config.icp_number')); ?></a></p>
  925. <p><?php echo htmlentities(config('ds_config.flow_static_code')); ?></p>
  926. </div>
  927. </div>