人人商城

index.html 10KB

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