4c3f5c66f6006ffff6454cc74eac2ba0.php 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  1. <?php /*a:6:{s:78:"/data/web/mall.valimart.net/app/home/view/default/seller/sellerspec/index.html";i:1657785122;s:71:"/data/web/mall.valimart.net/app/home/view/default/base/base_seller.html";i:1657785114;s:70:"/data/web/mall.valimart.net/app/home/view/default/base/seller_top.html";i:1660125338;s:71:"/data/web/mall.valimart.net/app/home/view/default/base/seller_left.html";i:1657785114;s:72:"/data/web/mall.valimart.net/app/home/view/default/base/seller_items.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 if(isset($html_title) && $html_title): ?><?php echo htmlentities($html_title); else: ?><?php echo htmlentities(lang('store_callcenter')); ?><?php endif; ?></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. <link rel="stylesheet" href="<?php echo htmlentities(HOME_SITE_ROOT); ?>/css/common.css">
  11. <link rel="stylesheet" href="<?php echo htmlentities(HOME_SITE_ROOT); ?>/css/seller.css">
  12. <link rel="stylesheet" href="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery-ui.min.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. </script>
  19. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery-2.1.4.min.js"></script>
  20. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery-ui.min.js"></script>
  21. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery.ui.datepicker-zh-CN.js"></script>
  22. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/common.js"></script>
  23. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.validate.min.js"></script>
  24. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/additional-methods.min.js"></script>
  25. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/layer/layer.js"></script>
  26. <script src="<?php echo htmlentities(HOME_SITE_ROOT); ?>/js/member.js"></script>
  27. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/dialog/dialog.js" id="dialog_js" charset="utf-8"></script>
  28. <script>
  29. jQuery.browser={};(function(){jQuery.browser.msie=false; jQuery.browser.version=0;if(navigator.userAgent.match(/MSIE ([0-9]+)./)){ jQuery.browser.msie=true;jQuery.browser.version=RegExp.$1;}})();
  30. </script>
  31. </head>
  32. <body>
  33. <div id="append_parent"></div>
  34. <div id="ajaxwaitid"></div>
  35. <div class="seller_main">
  36. <div class="seller_left">
  37. <div class="seller_left_1">
  38. <div class="logo">
  39. <a href="<?php echo url('Seller/index'); ?>">
  40. <img src="<?php if(config('ds_config.seller_center_logo') == ''): ?><?php echo htmlentities(BASE_SITE_ROOT); ?>/uploads/home/common/seller_center_logo.png<?php else: ?><?php echo ds_get_pic(ATTACH_COMMON,config('ds_config.seller_center_logo')); ?><?php endif; ?>"/>
  41. </a>
  42. </div>
  43. <div class="sidebar">
  44. <a href="<?php echo url('Store/index',['store_id'=>session('store_id')]); ?>" target="_blank"><i class="iconfont">&#xe6da;</i><?php echo htmlentities(lang('ds_mystroe')); ?></a>
  45. <?php if(config('ds_config.instant_message_open') == '1'): ?>
  46. <a href="javascript:void(0);" id="chat_show_user"><i class="iconfont">&#xe71b;</i><?php echo htmlentities(lang('ds_chat')); ?></a>
  47. <?php endif; if(is_array($seller_menu) || $seller_menu instanceof \think\Collection || $seller_menu instanceof \think\Paginator): if( count($seller_menu)==0 ) : echo "" ;else: foreach($seller_menu as $menu_key=>$menu): ?>
  48. <a href="<?php echo htmlentities($menu['url']); ?>" <?php if($menu_key == $curmenu): ?>class="active"<?php endif; ?>><i class="iconfont"><?php echo $menu['ico']; ?></i><?php echo htmlentities($menu['text']); ?></a>
  49. <?php endforeach; endif; else: echo "" ;endif; ?>
  50. </div>
  51. <div class="mb">
  52. <a href="<?php echo url('Sellerlogin/logout'); ?>"><?php echo htmlentities(lang('exit')); ?></a>
  53. </div>
  54. </div>
  55. <div class="seller_left_2">
  56. <div class="mt">
  57. <?php if(is_array($seller_menu) || $seller_menu instanceof \think\Collection || $seller_menu instanceof \think\Paginator): if( count($seller_menu)==0 ) : echo "" ;else: foreach($seller_menu as $menu_key=>$menu): if($menu_key == $curmenu): ?><?php echo htmlentities($menu['text']); ?><?php endif; ?>
  58. <?php endforeach; endif; else: echo "" ;endif; ?>
  59. </div>
  60. <div class="mc">
  61. <?php if(is_array($seller_menu) || $seller_menu instanceof \think\Collection || $seller_menu instanceof \think\Paginator): if( count($seller_menu)==0 ) : echo "" ;else: foreach($seller_menu as $menu_key=>$menu): if($menu_key == $curmenu): if(is_array($menu['submenu']) || $menu['submenu'] instanceof \think\Collection || $menu['submenu'] instanceof \think\Paginator): if( count($menu['submenu'])==0 ) : echo "" ;else: foreach($menu['submenu'] as $key=>$submenu): ?>
  62. <a href="<?php echo htmlentities($submenu['url']); ?>" <?php if($submenu['name'] == $cursubmenu): ?>class="active"<?php endif; ?>><?php echo htmlentities($submenu['text']); ?></a>
  63. <?php endforeach; endif; else: echo "" ;endif; ?>
  64. <?php endif; ?>
  65. <?php endforeach; endif; else: echo "" ;endif; ?>
  66. </div>
  67. </div>
  68. </div>
  69. <div class="seller_right">
  70. <div class="seller_items">
  71. <?php if(!(empty($seller_item) || (($seller_item instanceof \think\Collection || $seller_item instanceof \think\Paginator ) && $seller_item->isEmpty()))): ?>
  72. <ul>
  73. <?php if(is_array($seller_item) || $seller_item instanceof \think\Collection || $seller_item instanceof \think\Paginator): if( count($seller_item)==0 ) : echo "" ;else: foreach($seller_item as $key=>$item): ?>
  74. <li <?php if($item['name'] == $curitem): ?>class="current"<?php endif; ?>><a href="<?php echo htmlentities($item['url']); ?>"><?php echo htmlentities($item['text']); ?></a></li>
  75. <?php endforeach; endif; else: echo "" ;endif; ?>
  76. </ul>
  77. <?php endif; ?>
  78. </div>
  79. <div class="p20">
  80. <?php if(isset($store_closed) && $store_closed): ?>
  81. <div class="alert mt10"> <strong><?php echo htmlentities(lang('store_closed_reason')); ?>:<?php echo htmlentities($store_closed); ?>。</strong> <?php echo htmlentities(lang('please_contact_admin')); ?>!</div>
  82. <?php endif; ?>
  83. <div class="alert mt15 mb5"><strong><?php echo htmlentities(lang('operating_instructions')); ?>:</strong>
  84. <ul>
  85. <li><?php echo htmlentities(lang('sellerspec_tip1')); ?></li>
  86. <li><?php echo htmlentities(lang('sellerspec_tip2')); ?><font color="red"><?php echo htmlentities(lang('sellerspec_tip3')); ?></font><?php echo htmlentities(lang('sellerspec_tip4')); ?></li>
  87. <li><?php echo htmlentities(lang('sellerspec_tip5')); ?></li>
  88. </ul>
  89. </div>
  90. <table class="search-form">
  91. <tr>
  92. <td class="w20">&nbsp;</td>
  93. <td class="w120"><strong><?php echo htmlentities(lang('select_business_category')); ?></strong></td>
  94. <td>
  95. <span dstype="gc1">
  96. <?php if(!(empty($gc_list) || (($gc_list instanceof \think\Collection || $gc_list instanceof \think\Paginator ) && $gc_list->isEmpty()))): ?>
  97. <select dstype="gc" data-param="{deep:1}">
  98. <option><?php echo htmlentities(lang('ds_please_choose')); ?></option>
  99. <?php if(is_array($gc_list) || $gc_list instanceof \think\Collection || $gc_list instanceof \think\Paginator): if( count($gc_list)==0 ) : echo "" ;else: foreach($gc_list as $key=>$val): ?>
  100. <option value="<?php echo htmlentities($val['gc_id']); ?>"><?php echo htmlentities($val['gc_name']); ?></option>
  101. <?php endforeach; endif; else: echo "" ;endif; ?>
  102. </select>
  103. <?php endif; ?>
  104. </span>
  105. <span dstype="gc2"></span>
  106. <span dstype="gc3"></span>
  107. </td>
  108. <td>&nbsp;</td>
  109. </tr>
  110. </table>
  111. <div dstype="class_spec" class="dssc-goods-spec">
  112. <div dstype="spec_ul" class="spec-tabmenu"></div>
  113. <div dstype="spec_iframe" class="spec-iframe">
  114. <div class="norecord tc">
  115. <div class="warning-option"><i class="iconfont">&#xe64c;</i><span><?php echo htmlentities(lang('no_record')); ?></span>
  116. </div>
  117. </div>
  118. </div>
  119. </div>
  120. <!--<script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/mlselection.js"></script>
  121. <script>
  122. $(function () {
  123. gcategoryInit("gcategory");
  124. });
  125. </script>-->
  126. <script>
  127. $(function() {
  128. // 查询下级分类,分类不存在显示当前分类绑定的规格
  129. $('select[dstype="gc"]').change(function() {
  130. $(this).parents('td:first').nextAll().html('');
  131. $('div[dstype="spec_ul"]').html('');
  132. $('div[dstype="spec_iframe"]').html('');
  133. getClassSpec($(this));
  134. });
  135. });
  136. // ajax选择商品分类
  137. function getClassSpec($this) {
  138. var id = parseInt($this.val());
  139. var data_str = '';
  140. eval('data_str =' + $this.attr('data-param'));
  141. var deep = data_str.deep;
  142. if (isNaN(id)) {
  143. // 清理分类
  144. clearClassHtml(parseInt(deep) + 1);
  145. }
  146. $.getJSON('ajax_class?id=' + id + '&deep=' + deep, function(data) {
  147. $('div[dstype="spec_iframe"]').empty();
  148. $('div[dstype="spec_ul"]').empty();
  149. if (data) {
  150. if (data.type == 'class') {
  151. nextClass(data.data, data.deep);
  152. } else if (data.type == 'spec') {
  153. specList(data.data, data.deep, data.gcid);
  154. }
  155. }
  156. });
  157. }
  158. // 下一级商品分类
  159. function nextClass(data, deep) {
  160. $('span[dstype="gc' + deep + '"]').html('').append('<select data-param="{deep:' + deep + '}"></select>')
  161. .find('select').change(function() {
  162. getClassSpec($(this));
  163. }).append('<option><?php echo htmlentities(lang('ds_please_choose')); ?></option>');
  164. $.each(data, function(i, n) {
  165. if (n != null) {
  166. $('span[dstype="gc' + deep + '"] > select').append('<option value="' + n.gc_id + '">' + n.gc_name + '</option>');
  167. }
  168. });
  169. // 清理分类
  170. clearClassHtml(parseInt(deep) + 1);
  171. }
  172. // 列出规格信息
  173. function specList(data, deep, gcid) {
  174. if (typeof(data) != 'undefined' && data != '') {
  175. var $_ul = $('<ul></ul>');
  176. $.each(data, function(i, n) {
  177. $_ul.append('<li><a href="javascript:void(0);" dstype="editSpec" data-param="{spid:' + n.sp_id + ',gcid:' + gcid + '}"><?php echo htmlentities(lang('ds_edit')); ?>' + n.sp_name + '<?php echo htmlentities(lang('specifications')); ?></a></li>');
  178. });
  179. $_ul.find('a').click(function() {
  180. $_ul.find('li').removeClass('selected');
  181. $(this).parents('li:first').addClass('selected');
  182. editSpecvalue($(this));
  183. });
  184. $_ul.find('a:first').click();
  185. $('div[dstype="spec_ul"]').append($_ul);
  186. } else {
  187. $('div[dstype="spec_ul"]').append('<div class="warning-option"><i class="iconfont">&#xe64c;</i><span><?php echo htmlentities(lang('category_cannot_add_specifications')); ?></span></div>');
  188. }
  189. // 清理分类
  190. clearClassHtml(deep);
  191. }
  192. // 清理二级分类信息
  193. function clearClassHtml(deep) {
  194. switch (deep) {
  195. case 2:
  196. $('span[dstype="gc2"]').empty();
  197. case 3:
  198. $('span[dstype="gc3"]').empty();
  199. break;
  200. }
  201. }
  202. // ajax编辑规格值
  203. function editSpecvalue(o) {
  204. $('div[dstype="spec_iframe"]').html('');
  205. var data_str = '';
  206. eval('data_str =' + o.attr('data-param'));
  207. $_iframe = $('<iframe id="iframepage" name="iframepage" frameBorder=0 scrolling=no width="100%" height="630px" ' + 'src="<?php echo url('Sellerspec/add_spec'); ?>?spid=' + data_str.spid + '&gcid=' + data_str.gcid + '" ></iframe>'
  208. )
  209. ;
  210. $('div[dstype="spec_iframe"]').append($_iframe);
  211. }
  212. </script>
  213. </div>
  214. </div>
  215. </div>
  216. <?php if(config('ds_config.instant_message_open') == '1' && !isset($wait) && request()->controller() != 'Payment' && request()->controller() != 'Showgroupbuy'): ?>
  217. <?php echo get_chat(); ?>
  218. <?php endif; ?>
  219. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.cookie.js"></script>
  220. <script src="<?php echo htmlentities(HOME_SITE_ROOT); ?>/js/compare.js"></script>
  221. <link rel="stylesheet" href="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/perfect-scrollbar.min.css">
  222. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/perfect-scrollbar.min.js"></script>
  223. <script type="text/javascript" src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/qtip/jquery.qtip.min.js"></script>
  224. <link href="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/qtip/jquery.qtip.min.css" rel="stylesheet" type="text/css">
  225. <script type="text/javascript" src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.lazyload.min.js"></script>
  226. <script>
  227. //懒加载
  228. $("img.lazyload").lazyload({
  229. // placeholder : "<?php echo htmlentities(HOME_SITE_ROOT); ?>/images/loading.gif",
  230. effect: "fadeIn",
  231. skip_invisible : false,
  232. threshold : 200,
  233. });
  234. </script>
  235. <div class="footer-info">
  236. <div class="links w1200">
  237. <?php foreach($navs['footer'] as $nav): ?>
  238. <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>|
  239. <?php endforeach; ?>
  240. </div>
  241. <div class="copyright">
  242. <p><a href="http://www.beian.gov.cn/portal/registerSystemInfo" target="_blank"><?php echo htmlentities(config('ds_config.wab_number')); ?></a></p>
  243. <p><a href="https://beian.miit.gov.cn" target="_blank"><?php echo htmlentities(config('ds_config.icp_number')); ?></a></p>
  244. <p><?php echo htmlentities(config('ds_config.flow_static_code')); ?></p>
  245. </div>
  246. </div>