b002dd52676545937cbf1a6ccff903bb.php 63 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884
  1. <?php /*a:7:{s:73:"/data/web/mall.valimart.net/app/home/view/default/mall/search/search.html";i:1657785114;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:78:"/data/web/mall.valimart.net/app/home/view/default/base/home/goods_squares.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. <script src="<?php echo htmlentities(HOME_SITE_ROOT); ?>/js/search_goods.js"></script>
  457. <div class="dsh-container wrapper" >
  458. <div class="left">
  459. <?php if(!(empty($goods_class_array) || (($goods_class_array instanceof \think\Collection || $goods_class_array instanceof \think\Paginator ) && $goods_class_array->isEmpty()))): ?>
  460. <div class="dsh-module dsh-module-style02">
  461. <div class="title">
  462. <h3><?php echo htmlentities(lang('category_filtering')); ?></h3>
  463. </div>
  464. <div class="content">
  465. <ul id="files" class="tree">
  466. <?php if(is_array($goods_class_array) || $goods_class_array instanceof \think\Collection || $goods_class_array instanceof \think\Paginator): if( count($goods_class_array)==0 ) : echo "" ;else: foreach($goods_class_array as $key=>$value): ?>
  467. <li><i class="tree-parent tree-parent-collapsed"></i><a href="<?php echo url('Search/index',['cate_id'=>$value['gc_id'],'keyword'=>app('request')->param('keyword')]); ?>" <?php if($value['gc_id'] == app('request')->param('cate_id')): ?>class="selected"<?php endif; ?>><?php echo htmlentities($value['gc_name']); ?></a>
  468. <?php if(!(empty($value['class2']) || (($value['class2'] instanceof \think\Collection || $value['class2'] instanceof \think\Paginator ) && $value['class2']->isEmpty()))): ?>
  469. <ul>
  470. <?php if(is_array($value['class2']) || $value['class2'] instanceof \think\Collection || $value['class2'] instanceof \think\Paginator): if( count($value['class2'])==0 ) : echo "" ;else: foreach($value['class2'] as $key=>$val): ?>
  471. <li><i class="tree-parent tree-parent-collapsed"></i><a href="<?php echo url('Search/index',['cate_id'=>$val['gc_id'],'keyword'=>app('request')->param('keyword')]); ?>" <?php if($val['gc_id'] == app('request')->param('cate_id')): ?>class="selected"<?php endif; ?>><?php echo htmlentities($val['gc_name']); ?></a>
  472. <?php if(!(empty($val['class3']) || (($val['class3'] instanceof \think\Collection || $val['class3'] instanceof \think\Paginator ) && $val['class3']->isEmpty()))): ?>
  473. <ul>
  474. <?php if(is_array($val['class3']) || $val['class3'] instanceof \think\Collection || $val['class3'] instanceof \think\Paginator): if( count($val['class3'])==0 ) : echo "" ;else: foreach($val['class3'] as $key=>$v): ?>
  475. <li class="tree-parent tree-parent-collapsed"><i></i><a href="<?php echo url('Search/index',['cate_id'=>$v['gc_id'],'keyword'=>app('request')->param('keyword')]); ?>" <?php if($v['gc_id'] == app('request')->param('cate_id')): ?>class="selected"<?php endif; ?>><?php echo htmlentities($v['gc_name']); ?></a></li>
  476. <?php endforeach; endif; else: echo "" ;endif; ?>
  477. </ul>
  478. <?php endif; ?>
  479. </li>
  480. <?php endforeach; endif; else: echo "" ;endif; ?>
  481. </ul>
  482. <?php endif; ?>
  483. </li>
  484. <?php endforeach; endif; else: echo "" ;endif; ?>
  485. </ul>
  486. </div>
  487. </div>
  488. <?php endif; ?>
  489. <!-- S 推荐展位 -->
  490. <div dstype="booth_goods" class="dsh-module" style="display:none;"> </div>
  491. <!-- F 同类排行 -->
  492. <div stype="listhot_goods" style="display:none;"></div>
  493. <!-- E 推荐展位 -->
  494. <!-- 最近浏览 -->
  495. <div class="dsh-module dsh-module-style03">
  496. <div class="title">
  497. <h3><?php echo htmlentities(lang('goods_class_viewed_goods')); ?></h3>
  498. </div>
  499. <div class="content">
  500. <div class="dsh-sidebar-viewed" id="dshSidebarViewed">
  501. <ul>
  502. <?php if(!(empty($viewed_goods) || (($viewed_goods instanceof \think\Collection || $viewed_goods instanceof \think\Paginator ) && $viewed_goods->isEmpty()))): if(is_array($viewed_goods) || $viewed_goods instanceof \think\Collection || $viewed_goods instanceof \think\Paginator): if( count($viewed_goods)==0 ) : echo "" ;else: foreach($viewed_goods as $k=>$v): ?>
  503. <li class="dsh-sidebar-bowers">
  504. <div class="goods-pic"><a href="<?php echo url('Goods/index',['goods_id'=>$v['goods_id']]); ?>" target="_blank"><img class="lazyload" data-original="<?php echo goods_thumb($v, 240);; ?>" title="<?php echo htmlentities($v['goods_name']); ?>" alt="<?php echo htmlentities($v['goods_name']); ?>" ></a></div>
  505. <dl>
  506. <dt><a href="<?php echo url('Goods/index',['goods_id'=>$v['goods_id']]); ?>" target="_blank"><?php echo htmlentities($v['goods_name']); ?></a></dt>
  507. <dd><?php echo htmlentities(lang('currency')); ?><?php echo htmlentities($v['goods_promotion_price']); ?></dd>
  508. </dl>
  509. </li>
  510. <?php endforeach; endif; else: echo "" ;endif; ?>
  511. <?php endif; ?>
  512. </ul>
  513. </div>
  514. <a href="<?php echo url('Membergoodsbrowse/listinfo'); ?>" class="dsh-sidebar-all-viewed"><?php echo htmlentities(lang('full_browsing_history')); ?></a></div>
  515. </div>
  516. </div>
  517. <div class="right">
  518. <div id="gc_goods_recommend_div" style="width:980px;"></div>
  519. <?php if(!isset($goods_class_array['child']) && empty($goods_class_array['child']) && !empty($goods_class_array)){$dl=1; //dl标记if((!empty($brand_array) && is_array($brand_array)) || (!empty($attr_array) && is_array($attr_array))){?>
  520. <div class="dsh-module dsh-module-style01">
  521. <div class="title">
  522. <h3>
  523. <?php if(!(empty($show_keyword) || (($show_keyword instanceof \think\Collection || $show_keyword instanceof \think\Paginator ) && $show_keyword->isEmpty()))): ?>
  524. <em><?php echo htmlentities($show_keyword); ?></em> -
  525. <?php endif; ?>
  526. <?php echo htmlentities(lang('product_screening')); ?></h3>
  527. </div>
  528. <div class="content">
  529. <div class="dsh-module-filter">
  530. <?php if((isset($checked_brand) && is_array($checked_brand)) || (isset($checked_attr) && is_array($checked_attr))): ?>
  531. <dl ds_type="ul_filter">
  532. <dt><?php echo htmlentities(lang('goods_class_index_selected')); ?><?php echo htmlentities(lang('ds_colon')); ?></dt>
  533. <dd class="list">
  534. <?php if(!(empty($checked_brand) || (($checked_brand instanceof \think\Collection || $checked_brand instanceof \think\Paginator ) && $checked_brand->isEmpty()))): if(is_array($checked_brand) || $checked_brand instanceof \think\Collection || $checked_brand instanceof \think\Paginator): if( count($checked_brand)==0 ) : echo "" ;else: foreach($checked_brand as $key=>$val): ?>
  535. <span class="selected" dstype="span_filter"><?php echo htmlentities(lang('goods_class_index_brand')); ?>:<em><?php echo htmlentities($val['brand_name']); ?></em><i data-uri="<?php echo removeParam(array('b_id' => $key)); ?>">X</i></span>
  536. <?php endforeach; endif; else: echo "" ;endif; ?>
  537. <?php endif; if(!(empty($checked_attr) || (($checked_attr instanceof \think\Collection || $checked_attr instanceof \think\Paginator ) && $checked_attr->isEmpty()))): if(is_array($checked_attr) || $checked_attr instanceof \think\Collection || $checked_attr instanceof \think\Paginator): if( count($checked_attr)==0 ) : echo "" ;else: foreach($checked_attr as $key=>$val): ?>
  538. <span class="selected" dstype="span_filter"><?php echo htmlentities($val['attr_name']); ?>:<em><?php echo htmlentities($val['attrvalue_name']); ?></em><i data-uri="<?php echo removeParam(array('a_id' => $val['attrvalue_id'])); ?>">X</i></span>
  539. <?php endforeach; endif; else: echo "" ;endif; ?>
  540. <?php endif; ?>
  541. </dd>
  542. </dl>
  543. <?php endif; if(!(empty($brand_array) || (($brand_array instanceof \think\Collection || $brand_array instanceof \think\Paginator ) && $brand_array->isEmpty()))): ?>
  544. <dl>
  545. <dt><?php echo htmlentities(lang('goods_class_index_brand')); ?><?php echo htmlentities(lang('ds_colon')); ?></dt>
  546. <dd class="list">
  547. <ul class="dsh-brand-tab" dstype="ul_initial" style="display:none;">
  548. <li data-initial="all"><a href="javascript:void(0);"><?php echo htmlentities(lang('all_brands')); ?><i class="arrow"></i></a></li>
  549. <?php if(!(empty($initial_array) || (($initial_array instanceof \think\Collection || $initial_array instanceof \think\Paginator ) && $initial_array->isEmpty()))): if(is_array($initial_array) || $initial_array instanceof \think\Collection || $initial_array instanceof \think\Paginator): if( count($initial_array)==0 ) : echo "" ;else: foreach($initial_array as $key=>$val): ?>
  550. <li data-initial="<?php echo htmlentities($val); ?>"><a href="javascript:void(0);"><?php echo htmlentities($val); ?><i class="arrow"></i></a></li>
  551. <?php endforeach; endif; else: echo "" ;endif; ?>
  552. <?php endif; ?>
  553. </ul>
  554. <div id="dsBrandlist">
  555. <ul class="dsh-brand-con" dstype="ul_brand">
  556. <?php $i = 0; if(is_array($brand_array) || $brand_array instanceof \think\Collection || $brand_array instanceof \think\Paginator): if( count($brand_array)==0 ) : echo "" ;else: foreach($brand_array as $k=>$v): $i++; ?>
  557. <li data-initial="<?php echo htmlentities($v['brand_initial']); ?>" <?php if($i > 14): ?>style="display:none;"<?php endif; ?>>
  558. <a href="<?php echo replaceParam(array('b_id' => $k)); ?>">
  559. <?php if($v['brand_showtype'] == 0): ?>
  560. <img class="lazyload" data-original="<?php echo brand_image($v['brand_pic']); ?>" alt="<?php echo htmlentities($v['brand_name']); ?>" /> <span><?php echo htmlentities($v['brand_name']); ?></span>
  561. <?php else: ?>
  562. <?php echo htmlentities($v['brand_name']); ?>
  563. <?php endif; ?>
  564. </a>
  565. </li>
  566. <?php endforeach; endif; else: echo "" ;endif; ?>
  567. </ul>
  568. </div>
  569. </dd>
  570. <?php if(count($brand_array) > 16): ?>
  571. <dd class="all"><span dstype="brand_show"><i class="iconfont">&#xe689;</i><?php echo htmlentities(lang('goods_class_index_more')); ?></span></dd>
  572. <?php endif; ?>
  573. </dl>
  574. <?php $dl++; ?>
  575. <?php endif; if(!(empty($attr_array) || (($attr_array instanceof \think\Collection || $attr_array instanceof \think\Paginator ) && $attr_array->isEmpty()))): $j = 0; if(is_array($attr_array) || $attr_array instanceof \think\Collection || $attr_array instanceof \think\Paginator): if( count($attr_array)==0 ) : echo "" ;else: foreach($attr_array as $key=>$val): $j++; if(!isset($checked_attr[$key]) && !empty($val['value']) && is_array($val['value'])): ?>
  576. <dl>
  577. <dt><?php echo htmlentities($val['name']); ?><?php echo htmlentities(lang('ds_colon')); ?></dt>
  578. <dd class="list">
  579. <ul>
  580. <?php $i = 0; if(is_array($val['value']) || $val['value'] instanceof \think\Collection || $val['value'] instanceof \think\Paginator): if( count($val['value'])==0 ) : echo "" ;else: foreach($val['value'] as $k=>$v): $i++; ?>
  581. <li <?php if($i>10): ?>style="display:none" ds_type="none"<?php endif; ?>><a href="<?php $a_id = ((input('param.a_id')!= '' && input('param.a_id')!= 0)?input('param.a_id').'_'.$k:$k); echo replaceParam(array('a_id' => $a_id));?>"><?php echo htmlentities($v['attrvalue_name']); ?></a></li>
  582. <?php endforeach; endif; else: echo "" ;endif; ?>
  583. </ul>
  584. </dd>
  585. <?php if(count($val['value']) > 10): ?>
  586. <dd class="all"><span ds_type="show"><i class="iconfont">&#xe689;</i><?php echo htmlentities(lang('goods_class_index_more')); ?></span></dd>
  587. <?php endif; ?>
  588. </dl>
  589. <?php endif; $dl++; ?>
  590. <?php endforeach; endif; else: echo "" ;endif; ?>
  591. <?php endif; ?>
  592. </div>
  593. </div>
  594. </div>
  595. <?php } ?>
  596. <div class="shop_con_list" id="main-nav-holder">
  597. <nav class="sort-bar" id="main-nav">
  598. <div class="pagination"></div>
  599. <div class="dsh-sortbar-array"> <?php echo htmlentities(lang('sort')); ?>:
  600. <ul>
  601. <li <?php if(app('request')->param('key') == '0'): ?>class="selected"<?php endif; ?>><a href="<?php echo dropParam(array('order', 'key')); ?>" title="<?php echo htmlentities(lang('goods_class_index_default_sort')); ?>"><?php echo htmlentities(lang('goods_class_index_default')); ?></a></li>
  602. <li <?php if(app('request')->param('key') == '1'): ?>class="selected"<?php endif; ?>><a href="<?php if(app('request')->param('order')=='2' && app('request')->param('key')=='1'): ?><?php echo replaceParam(array('key' => '1', 'order' => '1')); else: ?><?php echo replaceParam(array('key' => '1', 'order' => '2')); ?><?php endif; ?>" <?php if(app('request')->param('key')=='1'): ?>class="<?php if(app('request')->param('order')==1): ?>asc<?php else: ?>desc<?php endif; ?>"<?php endif; ?> ><?php echo htmlentities(lang('goods_class_index_sold')); ?><i></i></a></li>
  603. <li <?php if(app('request')->param('key') == '2'): ?>class="selected"<?php endif; ?>><a href="<?php if(app('request')->param('order')=='2' && app('request')->param('key')=='2'): ?><?php echo replaceParam(array('key' => '2', 'order' => '1')); else: ?><?php echo replaceParam(array('key' => '2', 'order' => '2')); ?><?php endif; ?>" <?php if(app('request')->param('key')=='2'): ?>class="<?php if(app('request')->param('order')==1): ?>asc<?php else: ?>desc<?php endif; ?>"<?php endif; ?> ><?php echo htmlentities(lang('goods_class_index_click')); ?><i></i></a></li>
  604. <li <?php if(app('request')->param('key') == '3'): ?>class="selected"<?php endif; ?>><a href="<?php if(app('request')->param('order')=='2' && app('request')->param('key')=='3'): ?><?php echo replaceParam(array('key' => '3', 'order' => '1')); else: ?><?php echo replaceParam(array('key' => '3', 'order' => '2')); ?><?php endif; ?>" <?php if(app('request')->param('key')=='3'): ?>class="<?php if(app('request')->param('order')==1): ?>asc<?php else: ?>desc<?php endif; ?>"<?php endif; ?> ><?php echo htmlentities(lang('goods_class_index_price')); ?><i></i></a></li>
  605. <li><div><input id="priceMin" title=<?php echo htmlentities(lang('lowest_price')); ?> value="<?php echo htmlentities(app('request')->param('priceMin')); ?>" maxlength="6" onkeyup="this.value=this.value.replace(/[^0-9]/g,'');" class="input-txt"><em>-</em><input id="priceMax" title=<?php echo htmlentities(lang('highest_price')); ?> value="<?php echo htmlentities(app('request')->param('priceMax')); ?>" maxlength="6" onkeyup="this.value=this.value.replace(/[^0-9]/g,'');" class="input-txt"><a id="priceBtn" class="priceBtn"><?php echo htmlentities(lang('ds_ok')); ?></a></div></li>
  606. </ul>
  607. </div>
  608. <div class="dsh-sortbar-owner"><span><a href="<?php if(app('request')->param('type') == '1'): ?><?php echo dropParam(array('type')); else: ?><?php echo replaceParam(array('type' => '1')); ?><?php endif; ?>" <?php if(app('request')->param('type') == '1'): ?>class="selected"<?php endif; ?>><i></i><?php echo htmlentities(lang('platform_proprietary')); ?></a></span></div>
  609. <div class="dsh-sortbar-owner"><span><a href="<?php if(app('request')->param('gift') == '1'): ?><?php echo dropParam(array('gift')); else: ?><?php echo replaceParam(array('gift' => '1')); ?><?php endif; ?>" <?php if(app('request')->param('gift') == '1'): ?>class="selected"<?php endif; ?>><i></i><?php echo htmlentities(lang('complimentary')); ?></a></span></div>
  610. <div class="dsh-sortbar-location"><?php echo htmlentities(lang('location_goods')); ?>:
  611. <span class="area-wrapper">
  612. <input type="hidden" id="goods_area" value="<?php echo htmlentities(app('request')->param('area_id')); ?>" />
  613. <input type="hidden" id="_area" />
  614. <input onclick="change_area()" type="button" class="input-btn" value="<?php echo htmlentities(lang('ds_ok')); ?>" />
  615. </span>
  616. </div>
  617. </nav>
  618. <!-- 商品列表循环 -->
  619. <div>
  620. <!--商品列表BEGIN-->
  621. <style type="text/css">
  622. #box{background: #FFF;width: 238px;height: 410px;margin: -390px 0 0 0;display: block;border: solid 4px #D93600;position: absolute;z-index: 999;opacity: .5}
  623. .shopMenu{position: fixed;z-index: 1;right: 25%;top: 0;}
  624. </style>
  625. <div class="squares" ds_type="current_display_mode">
  626. <input type="hidden" id="lockcompare" value="unlock" />
  627. <?php if(!(empty($goods_list) || (($goods_list instanceof \think\Collection || $goods_list instanceof \think\Paginator ) && $goods_list->isEmpty()))): ?>
  628. <ul class="list_pic">
  629. <?php if(is_array($goods_list) || $goods_list instanceof \think\Collection || $goods_list instanceof \think\Paginator): if( count($goods_list)==0 ) : echo "" ;else: foreach($goods_list as $key=>$value): ?>
  630. <li class="item">
  631. <div class="goods-content" dstype_goods=" <?php echo htmlentities($value['goods_id']); ?>" dstype_store="<?php echo htmlentities($value['store_id']); ?>">
  632. <div class="goods-pic"><a href="<?php echo url('Goods/index',['goods_id'=>$value['goods_id']]); ?>" target="_blank" title="<?php echo htmlentities($value['goods_name']); ?>"><img class="lazyload" data-original="<?php echo goods_thumb($value, 240); ?>" title="<?php echo htmlentities($value['goods_name']); ?>" src="<?php echo htmlentities(HOME_SITE_ROOT); ?>/images/loading.gif" alt="<?php echo htmlentities($value['goods_name']); ?>" /></a></div>
  633. <?php if((config('ds_config.groupbuy_allow') && $value['goods_promotion_type'] == 1)): ?>
  634. <div class="goods-promotion"><span><?php echo htmlentities(lang('goods_class_index_groupbuy')); ?></span></div>
  635. <?php elseif((config('ds_config.promotion_allow') && $value['goods_promotion_type'] == 2)): ?>
  636. <div class="goods-promotion"><span><?php echo htmlentities(lang('goods_class_index_xianshi')); ?></span></div>
  637. <?php endif; ?>
  638. <div class="goods-info">
  639. <div class="goods-pic-scroll-show">
  640. <ul>
  641. <?php if(!(empty($value['image']) || (($value['image'] instanceof \think\Collection || $value['image'] instanceof \think\Paginator ) && $value['image']->isEmpty()))): $i=1; if(is_array($value['image']) || $value['image'] instanceof \think\Collection || $value['image'] instanceof \think\Paginator): if( count($value['image'])==0 ) : echo "" ;else: foreach($value['image'] as $key=>$val): ?>
  642. <li <?php if($i==1): ?>class="selected"<?php endif; ?>><a href="javascript:void(0);"><img class="lazyload" data-original="<?php echo goods_cthumb($val['goodsimage_url'], 240); ?>" src="<?php echo htmlentities(HOME_SITE_ROOT); ?>/images/loading.gif" /></a></li>
  643. <?php $i++; ?>
  644. <?php endforeach; endif; else: echo "" ;endif; else: ?>
  645. <li class="selected"><a href="javascript:void(0);"><img class="lazyload" data-original="<?php echo goods_thumb($value, 240); ?>" src="<?php echo htmlentities(HOME_SITE_ROOT); ?>/images/loading.gif" /></a></li>
  646. <?php endif; ?>
  647. </ul>
  648. </div>
  649. <div class="goods-price"> <em class="sale-price" title="<?php echo htmlentities(lang('goods_class_index_store_goods_price')); ?><?php echo htmlentities(lang('ds_colon')); ?><?php echo htmlentities(lang('currency')); ?><?php echo htmlentities($value['goods_promotion_price']); ?>"><?php echo ds_price_format_forlist($value['goods_promotion_price']); ?></em> <span class='goods-sales'><?php echo htmlentities(lang('sold')); ?><?php echo htmlentities($value['goods_salenum']); ?><?php echo htmlentities(lang('piece')); ?></span></div>
  650. <div class="goods-name">
  651. <?php if($value['is_virtual'] == 1): if($value['virtual_type'] == 0): ?>
  652. <span class="virtual" title="<?php echo htmlentities(lang('virtual_exchange')); ?>"><?php echo htmlentities(lang('virtual_exchange')); ?></span>
  653. <?php endif; if($value['virtual_type'] == 1): ?>
  654. <span class="virtual" title="卡券商品">卡券商品</span>
  655. <?php endif; if($value['virtual_type'] == 2): ?>
  656. <span class="virtual" title="网盘商品">网盘商品</span>
  657. <?php endif; if($value['virtual_type'] == 3): ?>
  658. <span class="virtual" title="下载商品">下载商品</span>
  659. <?php endif; ?>
  660. <?php endif; if($value['is_goodsfcode'] == 1): ?>
  661. <span class="fcode" title="<?php echo htmlentities(lang('f_code_priority_buy_goods')); ?>"><?php echo htmlentities(lang('f_code_priority')); ?></span>
  662. <?php endif; if($value['is_have_gift'] == 1): ?>
  663. <span class="gift" title="<?php echo htmlentities(lang('bundling_freebies')); ?>"><?php echo htmlentities(lang('complimentary')); ?></span>
  664. <?php endif; ?>
  665. <a href="<?php echo url('Goods/index',['goods_id'=>$value['goods_id']]); ?>" target="_blank" title="<?php echo htmlentities($value['goods_advword']); ?>"><?php echo $value['goods_name_highlight']; ?><em><?php echo htmlentities($value['goods_advword']); ?></em></a>
  666. </div>
  667. <div class="goods-sub">
  668. <span class="goods-compare" ds_type="compare_<?php echo htmlentities($value['goods_id']); ?>" data-param='{"gid":"<?php echo htmlentities($value['goods_id']); ?>"}'><i></i><?php echo htmlentities(lang('comparison')); ?></span>
  669. <span onclick="collect_goods('<?php echo htmlentities($value['goods_id']); ?>','count','goods_collect');"><i class='iconfont'>&#xe685;</i><?php echo htmlentities(lang('collect')); ?></span>
  670. <span><i class='iconfont'>&#xe730;</i><?php echo htmlentities($value['evaluation_count']); ?></span>
  671. </div>
  672. <div class="store"><a href="<?php echo url('Store/index',['store_id'=>$value['store_id']]); ?>" title="<?php echo htmlentities($value['store_name']); ?>" class="name"><?php echo htmlentities($value['store_name']); ?></a><em member_id="<?php echo htmlentities($value['member_id']); ?>">&nbsp;</em> </div>
  673. <div class="add-cart">
  674. <?php if($value['goods_storage'] == 0): if($value['is_appoint'] == 1): ?>
  675. <a href="javascript:void(0);" onclick="<?php if((session('is_login') !== '1')): ?>login_dialog();<?php else: ?>ajax_form('arrival_notice', '<?php echo htmlentities(lang('immediately_appointment')); ?>', '<?php echo url('Goods/arrival_notice',['goods_id'=>$value['goods_id'],'type'=>'2']); ?>', 350);<?php endif; ?>"><i class="iconfont" title=<?php echo htmlentities(lang('immediately_appointment')); ?>>&#xe70f;</i></a>
  676. <?php else: ?>
  677. <a href="javascript:void(0);" onclick="<?php if((session('is_login') !== '1')): ?>login_dialog();<?php else: ?>ajax_form('arrival_notice', '<?php echo htmlentities(lang('receiving_notification')); ?>', '<?php echo url('Goods/arrival_notice',['goods_id'=>$value['goods_id'],'type'=>'2']); ?>', 350);<?php endif; ?>"><i class="iconfont" title=<?php echo htmlentities(lang('receiving_notification')); ?>>&#xe70f;</i></a>
  678. <?php endif; else: if((session('is_login') === '1')): if($value['is_virtual'] == 1 || $value['is_goodsfcode'] == 1 || $value['presell_info']): ?>
  679. <a href="javascript:void(0);" dstype="buy_now" data-param="{goods_id:<?php echo htmlentities($value['goods_id']); ?>}"><i class="iconfont" title="<?php if(($value['is_goodsfcode'] == 1)): ?><?php echo htmlentities(lang('f_code_buy')); else: ?><?php echo htmlentities(lang('text_buy_now')); ?><?php endif; ?>">&#xe69a;</i></a>
  680. <?php else: ?>
  681. <a href="javascript:void(0);" dstype="add_cart" data-param="{goods_id:<?php echo htmlentities($value['goods_id']); ?>}"><i class="iconfont" title='<?php echo htmlentities(lang('add_cart')); ?>'>&#xe69a;</i></a>
  682. <?php endif; ?>
  683. <?php endif; ?>
  684. <?php endif; ?>
  685. </div>
  686. </div>
  687. </div>
  688. </li>
  689. <?php endforeach; endif; else: echo "" ;endif; ?>
  690. <div class="clear"></div>
  691. </ul>
  692. <?php else: ?>
  693. <div class="no_results"><?php echo htmlentities(lang('index_no_record')); ?></div>
  694. <?php endif; ?>
  695. </div>
  696. <form id="buynow_form" method="post" action="<?php echo url('Buy/buy_step1'); ?> ">
  697. <input id="goods_id" name="cart_id[]" type="hidden"/>
  698. </form>
  699. <script type="text/javascript" src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery.raty/jquery.raty.min.js"></script>
  700. <script type="text/javascript" src="<?php echo htmlentities(HOME_SITE_ROOT); ?>/js/compare.js"></script>
  701. <script type="text/javascript">
  702. $(document).ready(function(){
  703. //初始化对比按钮
  704. initCompare();
  705. });
  706. </script>
  707. <!--商品列表END-->
  708. </div>
  709. <div class="tc mt20 mb20">
  710. <div class="pagination"><?php echo $show_page; ?></div>
  711. </div>
  712. </div>
  713. <!-- 猜你喜欢 -->
  714. <div id="guesslike_div" style="width:980px;"></div>
  715. </div>
  716. <div class="clear"></div>
  717. </div>
  718. <script src="<?php echo htmlentities(HOME_SITE_ROOT); ?>/js/waypoints.js"></script>
  719. <script src="<?php echo htmlentities(HOME_SITE_ROOT); ?>/js/search_category_menu.js"></script>
  720. <script type="text/javascript" src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.query.js" charset="utf-8"></script>
  721. <script type="text/javascript">
  722. var defaultSmallGoodsImage = '<?php echo ds_get_pic(ATTACH_COMMON,config('ds_config.default_goods_image')); ?>';
  723. var defaultTinyGoodsImage = '<?php echo ds_get_pic(ATTACH_COMMON,config('ds_config.default_goods_image')); ?>';
  724. function change_area(){
  725. if($.query.get('area_id')!=$('#_area').val()){
  726. location.assign($.query.set('area_id', $('#_area').val()));
  727. }
  728. }
  729. $(function(){
  730. $('#goods_area').ds_region();
  731. $('#files').tree({
  732. expanded: 'li:lt(2)'
  733. });
  734. //品牌索引过长滚条
  735. $('#dsBrandlist').perfectScrollbar({suppressScrollX:true});
  736. //浮动导航 waypoints.js
  737. $('#main-nav-holder').waypoint(function(event, direction) {
  738. $(this).parent().toggleClass('sticky', direction === "down");
  739. event.stopPropagation();
  740. });
  741. // 单行显示更多
  742. $('span[ds_type="show"]').click(function(){
  743. s = $(this).parents('dd').prev().find('li[ds_type="none"]');
  744. if(s.css('display') == 'none'){
  745. s.show();
  746. $(this).html('<i class="iconfont">&#xe688;</i><?php echo htmlentities(lang('goods_class_index_retract')); ?>');
  747. }else{
  748. s.hide();
  749. $(this).html('<i class="iconfont">&#xe689;</i><?php echo htmlentities(lang('goods_class_index_more')); ?>');
  750. }
  751. });
  752. <?php if(app('request')->param('cate_id') > 0): ?>
  753. $('div[dstype="booth_goods"]').load("<?php echo url('Search/get_booth_goods',['cate_id'=>app('request')->param('cate_id')]); ?>", function(){
  754. $(this).show();
  755. });
  756. <?php endif; if(app('request')->param('cate_id') > 0): ?>
  757. $('div[id="gc_goods_recommend_div"]').load("<?php echo url('Search/get_hot_goods',['cate_id'=>app('request')->param('cate_id')]); ?>", function(){
  758. $(this).show();
  759. });
  760. <?php endif; ?>
  761. //浏览历史处滚条
  762. $('#dshSidebarViewed').perfectScrollbar({suppressScrollX:true});
  763. //猜你喜欢
  764. $('#guesslike_div').load("<?php echo url('Search/get_guesslike'); ?>", function(){
  765. $(this).show();
  766. });
  767. $('#priceBtn').click(function(){
  768. var priceMin = $('#priceMin').val();
  769. var priceMax = $('#priceMax').val();
  770. location.assign($.query.set('priceMin', priceMin).set('priceMax', priceMax));
  771. });
  772. });
  773. </script>
  774. <div class="server">
  775. <div class="ensure">
  776. <a href="#"></a>
  777. <a href="#"></a>
  778. <a href="#"></a>
  779. <a href="#"></a>
  780. </div>
  781. <div class="mall_desc">
  782. <?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): $_6440e3c08fae3 = is_array($article_list) ? array_slice($article_list,0,4, true) : $article_list->slice(0,4, true); if( count($_6440e3c08fae3)==0 ) : echo "" ;else: foreach($_6440e3c08fae3 as $key=>$art): ?>
  783. <dl>
  784. <dt><?php echo htmlentities($art['ac_name']); ?></dt>
  785. <dd>
  786. <?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): ?>
  787. <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>
  788. <?php endforeach; endif; else: echo "" ;endif; ?>
  789. <?php endif; ?>
  790. </dd>
  791. </dl>
  792. <?php endforeach; endif; else: echo "" ;endif; ?>
  793. <?php endif; ?>
  794. <dl class="mall_mobile">
  795. <dt><?php echo htmlentities(lang('ds_mobile_mall')); ?></dt>
  796. <dd>
  797. <a href="#" class="join">
  798. <img src="<?php echo htmlentities(HOME_SITE_URL); ?>/qrcode?url=<?php echo htmlentities(config('ds_config.h5_site_url')); ?>" width="105" height="105" >
  799. </a>
  800. </dd>
  801. </dl>
  802. </div>
  803. </div>
  804. <?php if(config('ds_config.instant_message_open') == '1' && !isset($wait) && request()->controller() != 'Payment' && request()->controller() != 'Showgroupbuy'): ?>
  805. <?php echo get_chat(); ?>
  806. <?php endif; ?>
  807. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.cookie.js"></script>
  808. <script src="<?php echo htmlentities(HOME_SITE_ROOT); ?>/js/compare.js"></script>
  809. <link rel="stylesheet" href="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/perfect-scrollbar.min.css">
  810. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/perfect-scrollbar.min.js"></script>
  811. <script type="text/javascript" src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/qtip/jquery.qtip.min.js"></script>
  812. <link href="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/qtip/jquery.qtip.min.css" rel="stylesheet" type="text/css">
  813. <script type="text/javascript" src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.lazyload.min.js"></script>
  814. <script>
  815. //懒加载
  816. $("img.lazyload").lazyload({
  817. // placeholder : "<?php echo htmlentities(HOME_SITE_ROOT); ?>/images/loading.gif",
  818. effect: "fadeIn",
  819. skip_invisible : false,
  820. threshold : 200,
  821. });
  822. </script>
  823. <div class="footer-info">
  824. <div class="links w1200">
  825. <?php foreach($navs['footer'] as $nav): ?>
  826. <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>|
  827. <?php endforeach; ?>
  828. </div>
  829. <div class="copyright">
  830. <p><a href="http://www.beian.gov.cn/portal/registerSystemInfo" target="_blank"><?php echo htmlentities(config('ds_config.wab_number')); ?></a></p>
  831. <p><a href="https://beian.miit.gov.cn" target="_blank"><?php echo htmlentities(config('ds_config.icp_number')); ?></a></p>
  832. <p><?php echo htmlentities(config('ds_config.flow_static_code')); ?></p>
  833. </div>
  834. </div>