a5650da851bc165018508d2d667b6541.php 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582
  1. <?php /*a:5:{s:71:"/data/web/pl.valimart.net/app/home/view/default/base/dispatch_jump.html";i:1657785114;s:66:"/data/web/pl.valimart.net/app/home/view/default/base/mall_top.html";i:1660791884;s:69:"/data/web/pl.valimart.net/app/home/view/default/base/mall_header.html";i:1657785114;s:69:"/data/web/pl.valimart.net/app/home/view/default/base/mall_server.html";i:1657785114;s:69:"/data/web/pl.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="https://www.valimart.net/" 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. <style type="text/css">
  457. .system-message{ padding:120px 0;border: 1px solid #E6E6E6;margin-top:20px;}
  458. .system-message p{margin-left:400px;}
  459. .system-message .jump{ padding-top: 10px; }
  460. .system-message .jump a{ color: #333; }
  461. .system-message i{float: left;padding-right: 10px;width: 41px;height: 40px;background: url(<?php echo htmlentities(HOME_SITE_ROOT); ?>/images/pw-icon.gif) no-repeat;}
  462. .system-message .success i{background-position: 0 -40px !important;}
  463. .system-message .error i{background-position: 0 -85px !important;}
  464. .system-message .success,.system-message .error{ line-height:40px; font-size:26px;}
  465. .system-message .detail{ font-size: 12px; line-height: 20px; margin-top: 12px; display: none; }
  466. </style>
  467. <div class="w1200">
  468. <div class="system-message">
  469. <?php switch ($code) {case 1:?>
  470. <p class="success"><i></i><?php echo(strip_tags($msg));?></p>
  471. <?php break;case 0:?>
  472. <p class="error"><i></i><?php echo(strip_tags($msg));?></p>
  473. <?php break;} ?>
  474. <p class="detail"></p>
  475. <p class="jump">
  476. <?php echo htmlentities(lang('page_automatic')); ?> <a id="href" href="<?php echo($url);?>"><?php echo htmlentities(lang('jump')); ?></a> <?php echo htmlentities(lang('waiting_time')); ?>: <b id="wait"><?php echo($wait);?></b>
  477. </p>
  478. </div>
  479. </div>
  480. <script type="text/javascript">
  481. (function(){
  482. var wait = document.getElementById('wait'),
  483. href = document.getElementById('href').href;
  484. var interval = setInterval(function(){
  485. var time = --(wait.innerHTML);
  486. if(time <= 0) {
  487. location.href = href;
  488. clearInterval(interval);
  489. };
  490. }, 1000);
  491. })();
  492. </script>
  493. <div class="server">
  494. <div class="ensure">
  495. <a href="#"></a>
  496. <a href="#"></a>
  497. <a href="#"></a>
  498. <a href="#"></a>
  499. </div>
  500. <div class="mall_desc">
  501. <?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): $_6444feba8c33f = is_array($article_list) ? array_slice($article_list,0,4, true) : $article_list->slice(0,4, true); if( count($_6444feba8c33f)==0 ) : echo "" ;else: foreach($_6444feba8c33f as $key=>$art): ?>
  502. <dl>
  503. <dt><?php echo htmlentities($art['ac_name']); ?></dt>
  504. <dd>
  505. <?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): ?>
  506. <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>
  507. <?php endforeach; endif; else: echo "" ;endif; ?>
  508. <?php endif; ?>
  509. </dd>
  510. </dl>
  511. <?php endforeach; endif; else: echo "" ;endif; ?>
  512. <?php endif; ?>
  513. <dl class="mall_mobile">
  514. <dt><?php echo htmlentities(lang('ds_mobile_mall')); ?></dt>
  515. <dd>
  516. <a href="#" class="join">
  517. <img src="<?php echo htmlentities(HOME_SITE_URL); ?>/qrcode?url=<?php echo htmlentities(config('ds_config.h5_site_url')); ?>" width="105" height="105" >
  518. </a>
  519. </dd>
  520. </dl>
  521. </div>
  522. </div>
  523. <?php if(config('ds_config.instant_message_open') == '1' && !isset($wait) && request()->controller() != 'Payment' && request()->controller() != 'Showgroupbuy'): ?>
  524. <?php echo get_chat(); ?>
  525. <?php endif; ?>
  526. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.cookie.js"></script>
  527. <script src="<?php echo htmlentities(HOME_SITE_ROOT); ?>/js/compare.js"></script>
  528. <link rel="stylesheet" href="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/perfect-scrollbar.min.css">
  529. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/perfect-scrollbar.min.js"></script>
  530. <script type="text/javascript" src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/qtip/jquery.qtip.min.js"></script>
  531. <link href="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/qtip/jquery.qtip.min.css" rel="stylesheet" type="text/css">
  532. <script type="text/javascript" src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.lazyload.min.js"></script>
  533. <script>
  534. //懒加载
  535. $("img.lazyload").lazyload({
  536. // placeholder : "<?php echo htmlentities(HOME_SITE_ROOT); ?>/images/loading.gif",
  537. effect: "fadeIn",
  538. skip_invisible : false,
  539. threshold : 200,
  540. });
  541. </script>
  542. <div class="footer-info">
  543. <div class="links w1200">
  544. <?php foreach($navs['footer'] as $nav): ?>
  545. <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>|
  546. <?php endforeach; ?>
  547. </div>
  548. <div class="copyright">
  549. <p><a href="http://www.beian.gov.cn/portal/registerSystemInfo" target="_blank"><?php echo htmlentities(config('ds_config.wab_number')); ?></a></p>
  550. <p><a href="https://beian.miit.gov.cn" target="_blank"><?php echo htmlentities(config('ds_config.icp_number')); ?></a></p>
  551. <p><?php echo htmlentities(config('ds_config.flow_static_code')); ?></p>
  552. </div>
  553. </div>