人人商城

index.html 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  1. {template '_header'}
  2. <div class="page-heading">
  3. <span class='pull-right'>
  4. {ifp 'goods.add'}
  5. <a class='btn btn-primary btn-sm' href="{php echo webUrl('goods/add')}"><i class='fa fa-plus'></i> 添加商品</a>
  6. {/if}
  7. </span>
  8. <h2>商城概述</h2>
  9. </div>
  10. <div class="row">
  11. <div class="col-md-12 col-sm-12">
  12. <div class="contact-box">
  13. <div class="col-sm-1" style="padding:0">
  14. <img src="{if empty($shop_data['logo'])}{EWEI_SHOPV2_LOCAL}static/images/nopic100.jpg{else}{php echo tomedia($shop_data['logo'])}{/if}" style="width:65px;height:65px;border-radius:5px">
  15. </div>
  16. <div class="col-sm-10" style="padding-left:10px">
  17. <h3>{if empty($shop_data['name'])}未设置商城名称{else}{$shop_data['name']}{/if}</h3>
  18. <p>{if empty($shop_data['name'])}未设置商城描述{else}{$shop_data['description']}{/if}</p>
  19. </div>
  20. {ifp 'sysset.shop.edit'}
  21. <div class="col-sm-1" style="padding-left: 0"><a class="btn btn-primary btn-sm" href="{php echo webUrl('sysset/shop')}" style="color: #fff"> 点击修改</a></div>
  22. {/if}
  23. <div class="clearfix"></div>
  24. </div>
  25. </div>
  26. {if count($notice)>0}
  27. <div class="col-md-12 col-sm-12">
  28. <div id="w0" class="list-group">
  29. <a class="list-group-item" href="#w0-1" data-toggle="collapse" data-parent="#w0" id="notice" onclick="$(this).find('b').toggleClass('deg180')">
  30. <span style="padding-left: 2rem;">{$notice[0]['title']}</span><b class="caret pull-right" style="margin-top: 8px;"></b>
  31. </a>
  32. <div id="w0-1" class="submenu panel-collapse collapse">
  33. {loop $notice $key $value}
  34. <a class="list-group-item" href="javascript:" data-toggle="ajaxModal" data-href="{php echo webUrl('shop/index/view',array('id'=>$value['id']));}">
  35. <span style="padding-left: 2rem;">{$value['title']}</span>
  36. </a>
  37. {/loop}
  38. </div>
  39. </div>
  40. </div>
  41. {/if}
  42. <div class="col-md-12 col-sm-12">
  43. <div class="contact-box" style="border: 1px solid #e7eaec">
  44. <div class="forum-item">
  45. <div class="row">
  46. {ifp 'goods'}
  47. <a href="{php echo webUrl('goods',array('goodsfrom'=>'out'))}">
  48. <div class="col-sm-3 forum-info">
  49. <span class="views-number goods_totals">
  50. --
  51. </span>
  52. <div>
  53. <small>已售罄商品</small>
  54. </div>
  55. </div>
  56. </a>
  57. {/if}
  58. {ifp 'order.list.status1'}
  59. <a href="{php echo webUrl('order/list/status1')}">
  60. <div class="col-sm-3 forum-info">
  61. <span class="views-number status1">
  62. --
  63. </span>
  64. <div>
  65. <small>{if $is_openmerch == 1}自营{/if}待发货订单</small>
  66. </div>
  67. </div>
  68. </a>
  69. {/if}
  70. {ifp 'order.list.status4'}
  71. <a href="{php echo webUrl('order/list/status4')}">
  72. <div class="col-sm-3 forum-info">
  73. <span class="views-number status4">
  74. --
  75. </span>
  76. <div>
  77. <small>{if $is_openmerch == 1}自营{/if}维权中订单</small>
  78. </div>
  79. </div>
  80. </a>
  81. {/if}
  82. {ifp 'finance.log.withdraw'}
  83. <a href="{php echo webUrl('finance/log/withdraw',array('status'=>0))}">
  84. <div class="col-sm-3 forum-info">
  85. <span class="views-number finance_total">
  86. --
  87. </span>
  88. <div>
  89. <small>待审核提现</small>
  90. </div>
  91. </div>
  92. </a>
  93. {/if}
  94. </div>
  95. </div>
  96. {if $hascommission}
  97. <div class="forum-item">
  98. <div class="row">
  99. {ifp 'commission.agent'}
  100. <a href="{php echo webUrl('commission/agent')}">
  101. <div class="col-sm-3 forum-info">
  102. <span class="views-number commission_agent_total">
  103. --
  104. </span>
  105. <div>
  106. <small>分销商总数</small>
  107. </div>
  108. </div>
  109. </a>
  110. <a href="{php echo webUrl('commission/agent',array('status'=>0))}">
  111. <div class="col-sm-3 forum-info">
  112. <span class="views-number commission_agent_status0_total">
  113. --
  114. </span>
  115. <div>
  116. <small>待审核分销商</small>
  117. </div>
  118. </div>
  119. </a>
  120. {/if}
  121. {ifp 'commission.apply.view1'}
  122. <a href="{php echo webUrl('commission/apply',array('status'=>1))}">
  123. <div class="col-sm-3 forum-info">
  124. <span class="views-number commission_apply_status1_total">
  125. --
  126. </span>
  127. <div>
  128. <small>待审核佣金申请</small>
  129. </div>
  130. </div>
  131. </a>
  132. {/if}
  133. {ifp 'commission.apply.view2'}
  134. <a href="{php echo webUrl('commission/apply',array('status'=>2))}">
  135. <div class="col-sm-3 forum-info">
  136. <span class="views-number commission_apply_status2_total">
  137. --
  138. </span>
  139. <div>
  140. <small>待打款佣金申请</small>
  141. </div>
  142. </div>
  143. </a>
  144. {/if}
  145. </div>
  146. </div>
  147. {/if}
  148. </div>
  149. </div>
  150. <div class="col-md-12 col-sm-12">
  151. {if !empty($order_ok)}
  152. <div class="ibox float-e-margins" style="border: 1px solid #e7eaec">
  153. <div class="ibox-title">
  154. <h5>用户购买待发货订单</h5>
  155. </div>
  156. <div class="ibox-content">
  157. <table class="table table-hover no-margins">
  158. <thead>
  159. <tr>
  160. <th class="col-sm-1">状态</th>
  161. <th class="col-sm-2">日期</th>
  162. <th class="col-sm-1">金额</th>
  163. <th class="col-sm-2">用户</th>
  164. <th class="col-sm-3">订单号</th>
  165. <th class="col-sm-2">操作</th>
  166. </tr>
  167. </thead>
  168. <tbody>
  169. {loop $order_ok $key $value}
  170. <tr>
  171. <td><span class="label label-warning">待发货</span>
  172. </td>
  173. <td>{php echo date('Y-m-d H:i',$value['createtime'])}</td>
  174. <td class="text-navy">{$value['price']}</td>
  175. <td>{php echo !empty($value['address']['realname']) ? $value['address']['realname'] : $value['invoicename']}</td>
  176. <td class="text-navy">{$value['ordersn']}</td>
  177. <td>
  178. {ifp 'order.detail'}
  179. <a href="{php echo webUrl('order/detail',array('id'=>$value['id']))}" class="btn btn-xs btn-primary">查看详情</a></td>
  180. {/if}
  181. </tr>
  182. {/loop}
  183. </tbody>
  184. </table>
  185. </div>
  186. </div>
  187. {else}
  188. <div class="panel panel-default">
  189. <div class="panel-body" style="text-align: center;padding:30px;">
  190. 暂时没有任何待处理订单!
  191. </div>
  192. </div>
  193. {/if}
  194. </div>
  195. </div>
  196. <input type="hidden" name="len" value="0">
  197. <input type="hidden" name="index" value="0">
  198. <script>
  199. function selectImage(obj){
  200. util.image('',function(val){
  201. $(obj).attr('src',val.url);
  202. $.post("{php echo WebUrl('shop/index/ajaxshopconfig',array('type'=>'logo'))}", { value: val.attachment},
  203. function(data){
  204. if (data.status == 1)
  205. {
  206. tip.msgbox.suc('修改成功!' || tip.lang.success);
  207. }
  208. else
  209. {
  210. tip.msgbox.err('修改失败!' || tip.lang.error);
  211. }
  212. }, "json");
  213. });
  214. }
  215. </script>
  216. <script type="text/javascript">
  217. function AutoScroll(obj,len){
  218. var text = $(obj).find("a span");
  219. var index = $("input[name='index']").val();
  220. $("input[name='index']").val(parseInt(index)+1);
  221. $("input[name='len']").val(text.length);
  222. if (text.length > index)
  223. {
  224. $("#notice span").text($(text[index]).text());
  225. }
  226. else
  227. {
  228. $("input[name='index']").val(parseInt(0));
  229. $("#notice span").text($(text[0]).text());
  230. }
  231. }
  232. $(document).ready(function(){
  233. var scrollDiv = setInterval('AutoScroll("#w0-1")',3000);
  234. $("#w0").hover(
  235. function () {
  236. clearInterval(scrollDiv);
  237. },
  238. function () {
  239. scrollDiv = setInterval('AutoScroll("#w0-1")',3000);
  240. }
  241. );
  242. $.ajax({
  243. type: "GET",
  244. url: "{php echo webUrl('order/list/ajaxgettotals', array('merch' => -1))}",
  245. dataType: "json",
  246. success: function (data) {
  247. var res = data.result;
  248. $("span.status1").text(res.status1);
  249. $("span.status4").text(res.status4);
  250. $.ajax({
  251. type: "GET",
  252. url: "{php echo webUrl('shop/ajax')}",
  253. dataType: "json",
  254. success: function (data) {
  255. var res = data.result;
  256. $("span.goods_totals").text(res.goods_totals);
  257. $("span.finance_total").text(res.finance_total);
  258. $("span.commission_agent_total").text(res.commission_agent_total);
  259. $("span.commission_agent_status0_total").text(res.commission_agent_status0_total);
  260. $("span.commission_apply_status1_total").text(res.commission_apply_status1_total);
  261. $("span.commission_apply_status2_total").text(res.commission_apply_status2_total);
  262. }
  263. });
  264. }
  265. });
  266. });
  267. </script>
  268. {template '_footer'}