analys.html 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
  6. <title><?php echo $shoname; ?></title>
  7. <link rel="shortcut icon" href="" />
  8. <meta name="renderer" content="webkit">
  9. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  11. <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
  12. <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
  13. <link href="/static/css/snailfish.css?v=2.0.0" rel="stylesheet">
  14. <style>
  15. .tab-content>.tab-pane {margin-top: 10px;}
  16. .tab-content>.tab-pane>.fui-list-group {border-bottom: 0;}
  17. .userNum, .goodsNum, .orderNum {
  18. height: 4.5rem;
  19. width: 4.5rem;
  20. margin: 0 auto;
  21. cursor: pointer;
  22. color:#000;
  23. }
  24. .nav {
  25. display: -webkit-box;
  26. display: -webkit-flex;
  27. display: -ms-flexbox;
  28. display: flex;
  29. padding-left: 0;
  30. margin-bottom: 0;
  31. list-style: none;
  32. }
  33. .panel-1 .nav-left {
  34. height: 4.8rem;
  35. line-height: 4.8rem;
  36. margin-left: 0.2rem;
  37. }
  38. .panel-1 .nav-left span{
  39. font-size:14px;
  40. }
  41. .nav select {
  42. width: 50%;
  43. margin: 1rem 1rem;
  44. }
  45. .panel-1 {
  46. height: 13rem;
  47. }
  48. .panel {
  49. padding: 0 1rem;
  50. background: #fff;
  51. }
  52. .no-border{border:none;}
  53. .table, .table * {margin: 0 auto; padding: 0;}
  54. .table {display: table; border-collapse: collapse;}
  55. .table-tr {display: table-row; color:#FFF;}
  56. .table-td {display: table-cell; height: 30px; text-align: center;vertical-align: middle;}
  57. </style>
  58. <style>
  59. .flex-items {
  60. display: flex;
  61. }
  62. .flex-items .flex-item {
  63. flex: 1;
  64. }
  65. .todayboxs {
  66. margin: 24px 0;
  67. }
  68. .todayboxs .flex-item {
  69. background-color: #fff;
  70. width: 100%;
  71. height: 104px;
  72. padding: 10px;
  73. display: flex;
  74. align-items: center;
  75. margin-right: 10px;
  76. color: #333;
  77. box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.05);
  78. }
  79. .todayboxs .flex-item:last-child {
  80. margin-right: 0;
  81. }
  82. .todayboxs .icon {
  83. width: 56px;
  84. margin-right: 16px;
  85. }
  86. .todayboxs .num {
  87. font-size: 24px;
  88. }
  89. .todayboxs .title {
  90. display:inline;
  91. color: #747474;
  92. }
  93. .row-panel {
  94. margin-bottom: 24px;
  95. display: flex;
  96. }
  97. .row-panel .row-panel-7 {
  98. width: 50%;
  99. flex-shrink: 1;
  100. }
  101. .row-panel .row-panel-5 {
  102. width: 50%;
  103. margin-left: 24px;
  104. flex-shrink: 0;
  105. }
  106. .mypanel {
  107. position: relative;
  108. background-color: #fff;
  109. padding: 0 20px;
  110. box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.05);
  111. }
  112. .mypanel .mypanel-heading {
  113. font-size: 15px;
  114. font-weight: 600;
  115. border-bottom: 1px solid #f0f0f0;
  116. height: 48px;
  117. line-height: 48px;
  118. }
  119. .tasks .flex-item {
  120. height: 75px;
  121. display: flex;
  122. align-items: center;
  123. justify-content: space-between;
  124. margin-right: 20px;
  125. border-bottom: 1px solid #f0f0f0;
  126. color: #747474;
  127. }
  128. .tasks .flex-item:last-child {
  129. margin-right: 0;
  130. }
  131. .tasks .num {
  132. font-size: 15px;
  133. color: #9e9e9e;
  134. font-weight: 600;
  135. }
  136. .tasks .num.hasnum {
  137. color: #436be6;
  138. }
  139. .chat-box {
  140. width: 100%;
  141. height: 192px;
  142. }
  143. .tasks-panel .tasks:last-child .flex-item {
  144. border-bottom: none;
  145. }
  146. .quick-panel .mypanel-body, .total-panel .mypanel-body {
  147. padding: 20px 0;
  148. }
  149. .quick-nav .flex-item, .total-mes .flex-item {
  150. display: flex;
  151. align-items: center;
  152. justify-content: center;
  153. flex-direction: column;
  154. height: 68px;
  155. margin-bottom: 20px;
  156. margin-right: 20px;
  157. color: #747474;
  158. }
  159. .total-mes .flex-item {
  160. margin-bottom: 20px;
  161. height: 68px;
  162. }
  163. .quick-nav .flex-item:last-child, .total-mes .flex-item:last-child {
  164. margin-right: 0;
  165. }
  166. .total-mes .num {
  167. height: 48px;
  168. line-height: 48px;
  169. font-size: 15px;
  170. color: #333;
  171. font-weight: 600;
  172. }
  173. .quick-nav .flex-item:hover {
  174. color: #436be6;
  175. }
  176. .quick-nav .iconfont {
  177. height: 48px;
  178. line-height: 48px;
  179. font-size: 24px;
  180. display: block;
  181. transition: all 0.3s;
  182. }
  183. .quick-nav .flex-item:hover i {
  184. font-size: 48px;
  185. }
  186. </style>
  187. </head>
  188. <body layadmin-themealias="default">
  189. <div class="layui-row">
  190. <div class="layui-row layui-col-space15">
  191. <div class="flex-items todayboxs">
  192. <?php if (!defined('ROLE') || ROLE != 'agenter' ) {?>
  193. <?php if(D('Seller/Menu')->check_seller_perm('user/index')){ ?>
  194. <a class="flex-item" href="<?php echo U('user/index'); ?>">
  195. <img class="icon" src="/static/images/Block-1.png">
  196. <div class="text">
  197. <div class="num today_member_count"></div>
  198. <div class="title">今日新增会员</div>
  199. </div>
  200. </a>
  201. <?php } ?>
  202. <?php } ?>
  203. <?php if(D('Seller/Menu')->check_seller_perm('order/index')){ ?>
  204. <a class="flex-item" href="<?php echo U('order/index'); ?>">
  205. <img class="icon" src="/static/images/Block-3.png">
  206. <div class="text">
  207. <div class="num today_pay_order_count"></div>
  208. <div class="title">今日付款订单</div>
  209. <span onmouseover="overShow1()" onmouseout="outHide1()" style="display:inline;border-radius: 50%; height: 15px;width:15px; display: inline-block; border-style: solid; border-color: #8a8a8a; border-width:1px; font-size:11px"><span style="padding-left: 4px;font-weight:bold;color:#8a8a8a;">?</span></span>
  210. <div id="showDiv" style="position: absolute; background-color: #8a8a8a; height:65px;width:220px;display:none;border-radius:20px;text-align:center;"></div>
  211. </div>
  212. </a>
  213. <?php } ?>
  214. <?php if(D('Seller/Menu')->check_seller_perm('order/index')){ ?>
  215. <a class="flex-item" href="<?php echo U('order/index'); ?>">
  216. <img class="icon" src="/static/images/Block-2.png">
  217. <div class="text">
  218. <div class="num today_pay_money"></div>
  219. <div class="title">今日付款金额</div>
  220. <span onmouseover="overShow2()" onmouseout="outHide2()"style="display:inline;border-radius: 50%; height: 15px;width:15px; display: inline-block; border-style: solid; border-color: #8a8a8a; border-width:1px;font-size:11px" ><span style="padding-left: 4px;font-weight:bold;color:#8a8a8a;">?</span></span>
  221. <div id="showDiv2" style="position: absolute; background-color: #8a8a8a; height:65px;width:320px;display:none;border-radius:20px;text-align:center;"></div>
  222. </div>
  223. </a>
  224. <?php } ?>
  225. <?php if (!defined('ROLE') || ROLE != 'agenter' ) {?>
  226. <a class="flex-item" href="<?php echo U('communityhead/distribulist'); ?>">
  227. <img class="icon" src="/static/images/Block-6.png">
  228. <div class="text">
  229. <div class="num total_tixian_money"></div>
  230. <div class="title">团长提现中金额</div>
  231. </div>
  232. </a>
  233. <a class="flex-item" title="团长总佣金=待结算佣金+已结算佣金" href="<?php echo U('communityhead/distribulist'); ?>">
  234. <img class="icon" src="/static/images/Block-7.png">
  235. <div class="text">
  236. <div class="num total_commiss_money"></div>
  237. <div class="title">团长总佣金</div>
  238. <span onmouseover="overShow3()" onmouseout="outHide3()"style="display:inline;border-radius: 50%; height: 15px;width:15px; display: inline-block; border-style: solid; border-color: #8a8a8a; border-width:1px;font-size:11px" ><span style="padding-left: 4px;font-weight:bold;color:#8a8a8a;">?</span></span>
  239. <div id="showDiv3" style="position: absolute; background-color: #8a8a8a; height:35px;width:320px;display:none;border-radius:20px;text-align:center;"></div>
  240. </div>
  241. </a>
  242. <?php } ?>
  243. <a class="flex-item" href="<?php echo U('order/index'); ?>">
  244. <img class="icon" src="/static/images/Block-5.png">
  245. <div class="text">
  246. <div class="num total_order_money"></div>
  247. <div class="title">订单金额</div>
  248. <span onmouseover="overShow4()" onmouseout="outHide4()"style="display:inline;border-radius: 50%; height: 15px;width:15px; display: inline-block; border-style: solid; border-color: #8a8a8a; border-width:1px;font-size:11px" ><span style="padding-left: 4px;font-weight:bold;color:#8a8a8a;">?</span></span>
  249. <div id="showDiv4" style="position: absolute; right: 5px;background-color: #8a8a8a; height:35px;width:320px;display:none;border-radius:20px;text-align:center;"></div>
  250. </div>
  251. </a>
  252. </div>
  253. <div class="row-panel">
  254. <div class="row-panel-7">
  255. <div class="mypanel tasks-panel">
  256. <div class="mypanel-heading">待处理事务</div>
  257. <div class="mypanel-body">
  258. <div class="flex-items tasks">
  259. <?php if (!defined('ROLE') || ROLE != 'agenter' ) {?>
  260. <?php if(D('Seller/Menu')->check_seller_perm('goods/index')){ ?>
  261. <div class="flex-item">
  262. <div>商品库存报警</div>
  263. <a class="num hasnum goods_stock_notice_count" href="<?php echo U('goods/index', array('type' => 'stock_notice')); ?>"></a>
  264. </div>
  265. <?php } ?>
  266. <?php } ?>
  267. <?php if(D('Seller/Menu')->check_seller_perm('order/index')){ ?>
  268. <div class="flex-item">
  269. <div>待付款订单</div>
  270. <a class="num wait_pay_order_count" href="<?php echo U('order/index', array('order_status_id' => 3)); ?>"></a>
  271. </div>
  272. <?php } ?>
  273. <?php if(D('Seller/Menu')->check_seller_perm('order/index')){ ?>
  274. <div class="flex-item">
  275. <div>备货中订单
  276. <span onmouseover="overShowWait()" onmouseout="outHideWait()"style="display:inline;border-radius: 50%; height: 15px;width:15px; display: inline-block; border-style: solid; border-color: #8a8a8a; border-width:1px;font-size:11px" ><span style="padding-left: 4px;font-weight:bold;color:#8a8a8a;">?</span></span>
  277. <div id="showDivWait" style="position: absolute; background-color: #8a8a8a; height:35px;width:320px;display:none;border-radius:20px;text-align:center;z-index:1000;"></div>
  278. </div>
  279. <a class="num hasnum wait_order_count" href="<?php echo U('order/index', array('order_status_id' => 1)); ?>"></a>
  280. </div>
  281. <?php } ?>
  282. </div>
  283. <?php if (!defined('ROLE') || ROLE != 'agenter' ) {?>
  284. <div class="flex-items tasks">
  285. <?php if(D('Seller/Menu')->check_seller_perm('order/index')){ ?>
  286. <div class="flex-item">
  287. <div>待处理退款</div>
  288. <a class="num hasnum after_sale_order_count" href="<?php echo U('order/orderaftersales'); ?>"></a>
  289. </div>
  290. <?php } ?>
  291. <?php if(D('Seller/Menu')->check_seller_perm('order/index')){ ?>
  292. <div class="flex-item">
  293. <div>待评价订单</div>
  294. <a class="num wai_comment_order_count" href="<?php echo U('order/index', array('order_status_id' => 6)); ?>"></a>
  295. </div>
  296. <?php } ?>
  297. <?php if(D('Seller/Menu')->check_seller_perm('order/index')){ ?>
  298. <div class="flex-item">
  299. <div>待审核评价</div>
  300. <a class="num hasnum wait_shen_order_comment_count" href="<?php echo U('order/ordercomment'); ?>"></a>
  301. </div>
  302. <?php } ?>
  303. </div>
  304. <div class="flex-items tasks">
  305. <?php if(D('Seller/Menu')->check_seller_perm('goods/index')){ ?>
  306. <div class="flex-item">
  307. <div>仓库中商品</div>
  308. <a class="num hasnum stock_goods_count" href="<?php echo U('goods/index', array('type' => 'warehouse')); ?>"></a>
  309. </div>
  310. <?php } ?>
  311. <?php if(D('Seller/Menu')->check_seller_perm('order/index')){ ?>
  312. <div class="flex-item">
  313. <div>待处理退货</div>
  314. <a class="num after_sale_order_count" href="<?php echo U('order/orderaftersales'); ?>"></a>
  315. </div>
  316. <?php } ?>
  317. <?php if(D('Seller/Menu')->check_seller_perm('communityhead/index')){ ?>
  318. <div class="flex-item">
  319. <div>团长提现</div>
  320. <a class="num tixian_count" href="<?php echo U('communityhead/distribulist'); ?>">0</a>
  321. </div>
  322. <?php } ?>
  323. </div>
  324. <?php }else{ ?>
  325. <div class="flex-items tasks">
  326. <div class="flex-item">
  327. <div>待处理退款</div>
  328. <a class="num hasnum after_sale_order_count" href="<?php echo U('order/orderaftersales'); ?>"></a>
  329. </div>
  330. <div class="flex-item">
  331. <div>待处理退货</div>
  332. <a class="num after_sale_order_count" href="<?php echo U('order/orderaftersales'); ?>"></a>
  333. </div>
  334. </div>
  335. <?php } ?>
  336. </div>
  337. </div>
  338. </div>
  339. <div class="row-panel-5">
  340. <div class="mypanel">
  341. <div class="mypanel-heading">交易统计</div>
  342. <div class="mypanel-body">
  343. <div class="ibox-loading" id="echarts-line-chart-loading"></div>
  344. <div class="chat-box" id="main" style="-webkit-tap-highlight-color: transparent; user-select: none; position: relative;height: 225px;">
  345. <div class="layui-carousel layadmin-carousel layadmin-dataview" data-anim="fade" lay-filter="LAY-index-normline">
  346. <div carousel-item id="LAY-index-normline">
  347. <div><i class="layui-icon layui-icon-loading1 layadmin-loading"></i></div>
  348. </div>
  349. </div>
  350. </div>
  351. </div>
  352. </div>
  353. </div>
  354. </div>
  355. <div class="row-panel">
  356. <div class="row-panel-7">
  357. <div class="mypanel total-panel">
  358. <div class="mypanel-heading">商城信息统计</div>
  359. <div class="mypanel-body">
  360. <?php if (!defined('ROLE') || ROLE != 'agenter' ) {?>
  361. <div class="flex-items total-mes">
  362. <div class="flex-item">
  363. <div class="num member_count"></div>
  364. <div>会员总数</div>
  365. </div>
  366. <div class="flex-item">
  367. <div class="num goods_count"></div>
  368. <div>商品总数</div>
  369. </div>
  370. <div class="flex-item">
  371. <div class="num community_head_count"></div>
  372. <div>团长总数</div>
  373. </div>
  374. </div>
  375. <div class="flex-items total-mes">
  376. <div class="flex-item">
  377. <div class="num seven_order_count"></div>
  378. <div>近七天订单数</div>
  379. </div>
  380. <div class="flex-item">
  381. <div class="num seven_pay_money"></div>
  382. <div>近7天销售额(元)</div>
  383. </div>
  384. <div class="flex-item">
  385. <div class="num seven_refund_money"></div>
  386. <div>近7天退款金额(元)</div>
  387. </div>
  388. </div>
  389. <?php }else{ ?>
  390. <div class="flex-items total-mes">
  391. <div class="flex-item">
  392. <div class="num seven_order_count"></div>
  393. <div>近七天订单数</div>
  394. </div>
  395. <div class="flex-item">
  396. <div class="num seven_pay_money"></div>
  397. <div>近7天销售额(元)</div>
  398. </div>
  399. <div class="flex-item">
  400. <div class="num seven_refund_money"></div>
  401. <div>近7天退款金额(元)</div>
  402. </div>
  403. <div class="flex-item">
  404. <div class="num goods_count"></div>
  405. <div>商品总数</div>
  406. </div>
  407. </div>
  408. <?php } ?>
  409. </div>
  410. </div>
  411. </div>
  412. <div class="row-panel-5">
  413. <div class="mypanel quick-panel">
  414. <div class="mypanel-heading">快捷入口</div>
  415. <div class="mypanel-body">
  416. <?php if (!defined('ROLE') || ROLE != 'agenter' ) {?>
  417. <div class="flex-items quick-nav">
  418. <?php if(D('Seller/Menu')->check_seller_perm('goods/index')){ ?>
  419. <a href="<?php echo U('goods/addgoods'); ?>" class="flex-item">
  420. <i class="iconfont icon-p"></i>
  421. <div>发布商品</div>
  422. </a>
  423. <?php } ?>
  424. <?php if(D('Seller/Menu')->check_seller_perm('order/index')){ ?>
  425. <a href="<?php echo U('order/index'); ?>" class="flex-item">
  426. <i class="iconfont icon--clipboard"></i>
  427. <div>订单列表</div>
  428. </a>
  429. <?php } ?>
  430. <?php if(D('Seller/Menu')->check_seller_perm('user/index')){ ?>
  431. <a href="<?php echo U('user/index'); ?>" class="flex-item">
  432. <i class="iconfont icon--users"></i>
  433. <div>会员管理</div>
  434. </a>
  435. <?php } ?>
  436. <?php if(D('Seller/Menu')->check_seller_perm('communityhead/index')){ ?>
  437. <a href="<?php echo U('communityhead/index'); ?>" class="flex-item">
  438. <i class="iconfont icon--tree"></i>
  439. <div>团长管理</div>
  440. </a>
  441. <?php } ?>
  442. <?php if(D('Seller/Menu')->check_seller_perm('supply/index')){ ?>
  443. <a href="<?php echo U('supply/index'); ?>" class="flex-item">
  444. <i class="iconfont icon--truck"></i>
  445. <div>供应商管理</div>
  446. </a>
  447. <?php } ?>
  448. </div>
  449. <div class="flex-items quick-nav">
  450. <?php if(D('Seller/Menu')->check_seller_perm('communityhead/distribulist')){ ?>
  451. <a href="<?php echo U('communityhead/distribulist'); ?>" class="flex-item">
  452. <i class="iconfont icon-p5"></i>
  453. <div>提现申请</div>
  454. </a>
  455. <?php } ?>
  456. <?php if(D('Seller/Menu')->check_seller_perm('communityhead/distributionpostal')){ ?>
  457. <a href="<?php echo U('communityhead/distributionpostal'); ?>" class="flex-item">
  458. <i class="iconfont icon--coin-yen"></i>
  459. <div>提现设置</div>
  460. </a>
  461. <?php } ?>
  462. <?php if(D('Seller/Menu')->check_seller_perm('configindex/slider')){ ?>
  463. <a href="<?php echo U('configindex/slider'); ?>" class="flex-item">
  464. <i class="iconfont icon-p6"></i>
  465. <div>幻灯片管理</div>
  466. </a>
  467. <?php } ?>
  468. <?php if(D('Seller/Menu')->check_seller_perm('order/orderaftersales')){ ?>
  469. <a href="<?php echo U('order/orderaftersales'); ?>" class="flex-item">
  470. <i class="iconfont icon--stats-bars1"></i>
  471. <div>售后处理</div>
  472. </a>
  473. <?php } ?>
  474. <?php if(D('Seller/Menu')->check_seller_perm('config/index')){ ?>
  475. <a href="<?php echo U('config/index'); ?>" class="flex-item">
  476. <i class="iconfont icon-p7"></i>
  477. <div>站点设置</div>
  478. </a>
  479. <?php } ?>
  480. </div>
  481. <?php }else{ ?>
  482. <div class="flex-items quick-nav">
  483. <a href="<?php echo U('goods/addgoods'); ?>" class="flex-item">
  484. <i class="iconfont icon-p"></i>
  485. <div>发布商品</div>
  486. </a>
  487. <a href="<?php echo U('order/index'); ?>" class="flex-item">
  488. <i class="iconfont icon--clipboard"></i>
  489. <div>订单列表</div>
  490. </a>
  491. <a href="<?php echo U('order/orderaftersales'); ?>" class="flex-item">
  492. <i class="iconfont icon--stats-bars1"></i>
  493. <div>售后处理</div>
  494. </a>
  495. </div>
  496. <?php } ?>
  497. </div>
  498. </div>
  499. </div>
  500. </div>
  501. <?php if (!defined('ROLE') || ROLE != 'agenter' ) {?>
  502. <div class="row-panel">
  503. <div class="row-panel-7">
  504. <div class="mypanel total-panel">
  505. <div class="mypanel-heading">最近7天会员增长情况</div>
  506. <div class="mypanel-body">
  507. <div id="echat_member_incr" style="height:460px;"></div>
  508. </div>
  509. </div>
  510. </div>
  511. <div class="row-panel-5">
  512. <div class="mypanel total-panel">
  513. <div class="mypanel-heading">最近7天团长增长情况</div>
  514. <div class="mypanel-body">
  515. <div id="echat_head_incr" style="height:460px;"></div>
  516. </div>
  517. </div>
  518. </div>
  519. </div>
  520. <div class="row-panel">
  521. <div class="row-panel-7">
  522. <div class="mypanel total-panel">
  523. <div class="mypanel-heading">本月团长销售排行</div>
  524. <div class="mypanel-body">
  525. <div id="echat_month_head_sales" style="height:460px;"></div>
  526. </div>
  527. </div>
  528. </div>
  529. <div class="row-panel-5">
  530. <div class="mypanel total-panel">
  531. <div class="mypanel-heading">上月团长销售排行</div>
  532. <div class="mypanel-body">
  533. <div id="echat_lastmonth_head_sales" style="height:460px;"></div>
  534. </div>
  535. </div>
  536. </div>
  537. </div>
  538. <div class="row-panel">
  539. <div class="row-panel-7">
  540. <div class="mypanel total-panel">
  541. <div class="mypanel-heading">本月商品销售排行</div>
  542. <div class="mypanel-body">
  543. <div id="echat_month_goods_sales" style="height:460px;"></div>
  544. </div>
  545. </div>
  546. </div>
  547. <div class="row-panel-5">
  548. <div class="mypanel total-panel">
  549. <div class="mypanel-heading">上月商品销售排行</div>
  550. <div class="mypanel-body">
  551. <div id="echat_lastmonth_goods_sales" style="height:460px;"></div>
  552. </div>
  553. </div>
  554. </div>
  555. </div>
  556. <?php } ?>
  557. </div>
  558. </div>
  559. <script src="/layuiadmin/layui/layui.js"></script>
  560. <script src="/layuiadmin/lib/extend/echarts.min.js"></script>
  561. <script src="/static/js/roll/jquery-1.11.0.min.js" type="text/javascript"></script>
  562. <script src="/static/js/roll/jquery.waypoints.min.js"></script>
  563. <script type="text/javascript" src="/static/js/roll/jquery.countup.min.js"></script>
  564. <script>
  565. layui.config({
  566. base: '/layuiadmin/' //静态资源所在路径
  567. }).extend({
  568. index: 'lib/index' //主入口模块
  569. }).use('index');
  570. </script>
  571. <script>
  572. function overShow1() {
  573. var showDiv = document.getElementById('showDiv');
  574. //showDiv.style.left = event.clientX;
  575. //showDiv.style.top = event.clientY;
  576. showDiv.style.display = 'block';
  577. showDiv.innerHTML = '<div style="color:#FFF;margin-top:10px;">支付成功订单数:'+ {$today_success_order_count} +' </div><div style="color:#FFF;margin-top:10px;">支付取消订单数:'+ {$today_cancel_order_count} +'</div>';
  578. }
  579. function outHide1() {
  580. var showDiv = document.getElementById('showDiv');
  581. showDiv.style.display = 'none';
  582. showDiv.innerHTML = '';
  583. }
  584. </script>
  585. <script>
  586. function overShow2() {
  587. var showDiv = document.getElementById('showDiv2');
  588. //showDiv.style.left = event.clientX;
  589. //showDiv.style.top = event.clientY;
  590. showDiv.style.display = 'block';
  591. showDiv.innerHTML = '<div class="table"><div class="table-tr"><div class="table-td">余额付款:</div> <div class="table-td">¥'+ {$yuer_pay_money }+'</div>&nbsp&nbsp&nbsp&nbsp <div class="table-td">在线付款:</div><div class="table-td">¥'+ {$online_pay_money }+'</div></div><div class="table-tr"><div class="table-td">积分抵现:</div><div class="table-td">¥'+ {$score_for_money }+'</div>&nbsp&nbsp&nbsp&nbsp<div class="table-td">使用积分:</div><div class="table-td">'+ {$sum_score }+'积分</div></div>';
  592. }
  593. function outHide2() {
  594. var showDiv = document.getElementById('showDiv2');
  595. showDiv.style.display = 'none';
  596. showDiv.innerHTML = '';
  597. }
  598. function overShow3() {
  599. var showDiv = document.getElementById('showDiv3');
  600. //showDiv.style.left = event.clientX;
  601. //showDiv.style.top = event.clientY;
  602. showDiv.style.display = 'block';
  603. showDiv.innerHTML = '<div class="table"><div class="table-tr"><div class="table-td">统计金额不包含退款金额和已取消订单金额</div></div></div>';
  604. }
  605. function outHide3() {
  606. var showDiv = document.getElementById('showDiv3');
  607. showDiv.style.display = 'none';
  608. showDiv.innerHTML = '';
  609. }
  610. function overShow4() {
  611. var showDiv = document.getElementById('showDiv4');
  612. //showDiv.style.left = event.clientX;
  613. //showDiv.style.top = event.clientY;
  614. showDiv.style.display = 'block';
  615. showDiv.innerHTML = '<div class="table"><div class="table-tr"><div class="table-td">统计金额不包含退款金额和已取消订单金额</div></div></div>';
  616. }
  617. function outHide4() {
  618. var showDiv = document.getElementById('showDiv4');
  619. showDiv.style.display = 'none';
  620. showDiv.innerHTML = '';
  621. }
  622. function overShowWait() {
  623. var showDiv = document.getElementById('showDivWait');
  624. //showDiv.style.left = event.clientX;
  625. //showDiv.style.top = event.clientY;
  626. showDiv.style.display = 'block';
  627. showDiv.innerHTML = '<div class="table"><div class="table-tr"><div class="table-td">备货中订单包含普通订单,拼团订单和积分兑换订单</div></div></div>';
  628. }
  629. function outHideWait() {
  630. var showDiv = document.getElementById('showDivWait');
  631. showDiv.style.display = 'none';
  632. showDiv.innerHTML = '';
  633. }
  634. </script>
  635. <script>
  636. //由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
  637. var layer = layui.layer;
  638. var $;
  639. var cur_type = 'normal';
  640. layui.use(['jquery', 'layer'], function(){
  641. $ = layui.$;
  642. load_data();
  643. //后面就跟你平时使用jQuery一样
  644. loadEchartsLine();
  645. load_echat_member_incr();
  646. load_echat_head_incr();
  647. load_echat_month_head_sales();
  648. load_echat_lastmonth_head_sales();
  649. load_echat_month_goods_sales();
  650. load_echat_lastmonth_goods_sales();
  651. });
  652. function load_echat_member_incr()
  653. {
  654. var hasLineChart = $("#echat_member_incr").length>0;
  655. if(hasLineChart){
  656. var lineChart = echarts.init(document.getElementById("echat_member_incr"));
  657. }
  658. window.onresize = function () {
  659. if(hasLineChart) {
  660. lineChart.resize();
  661. }
  662. };
  663. $.ajax({
  664. type: "GET",
  665. url: "{:U('statistics/load_echat_member_incr')}",
  666. dataType: "json",
  667. success: function (data) {
  668. if(data.code == 0)
  669. {
  670. //echo json_encode( array('code' => 0, 'date_arr' => $date_arr, 'member_count' => $member_count_arr ) );
  671. //die();
  672. var option = null;
  673. option = {
  674. color: ['#009688'],
  675. tooltip : {
  676. trigger: 'axis',
  677. axisPointer : { // 坐标轴指示器,坐标轴触发有效
  678. type : 'shadow' // 默认为直线,可选为:'line' | 'shadow'
  679. }
  680. },
  681. grid: {
  682. left: '3%',
  683. right: '4%',
  684. bottom: '3%',
  685. containLabel: true
  686. },
  687. xAxis : [
  688. {
  689. type : 'category',
  690. data : data.date_arr,
  691. axisTick: {
  692. alignWithLabel: true
  693. }
  694. }
  695. ],
  696. yAxis : [
  697. {
  698. type : 'value'
  699. }
  700. ],
  701. series : [
  702. {
  703. name:'会员增长',
  704. type:'bar',
  705. label: {
  706. normal: {
  707. show: true,
  708. position: 'top'
  709. }
  710. },
  711. barWidth: '60%',
  712. itemStyle: {
  713. normal: {
  714. // 定制显示(按顺序)
  715. color: function(params) {
  716. var colorList = ['#58b4ff','#f6bf00','#f3550e','#51c284','#7ebbd8', '#dbdd7c','#ee9992'];
  717. return colorList[params.dataIndex]
  718. }
  719. },
  720. },
  721. data:data.member_count
  722. }
  723. ]
  724. };
  725. if (option && typeof option === "object") {
  726. lineChart.setOption(option, true);
  727. }
  728. }
  729. }
  730. })
  731. }
  732. function load_echat_head_incr()
  733. {
  734. var hasLineChart = $("#echat_head_incr").length>0;
  735. if(hasLineChart){
  736. var lineChart = echarts.init(document.getElementById("echat_head_incr"));
  737. }
  738. window.onresize = function () {
  739. if(hasLineChart) {
  740. lineChart.resize();
  741. }
  742. };
  743. $.ajax({
  744. type: "GET",
  745. url: "{:U('statistics/load_echat_head_incr')}",
  746. dataType: "json",
  747. success: function (data) {
  748. if(data.code == 0)
  749. {
  750. //echo json_encode( array('code' => 0, 'date_arr' => $date_arr, 'member_count' => $member_count_arr ) );
  751. //die();
  752. var option = null;
  753. option = {
  754. color: ['#009688'],
  755. tooltip : {
  756. trigger: 'axis',
  757. axisPointer : { // 坐标轴指示器,坐标轴触发有效
  758. type : 'shadow' // 默认为直线,可选为:'line' | 'shadow'
  759. }
  760. },
  761. grid: {
  762. left: '3%',
  763. right: '4%',
  764. bottom: '3%',
  765. containLabel: true
  766. },
  767. xAxis : [
  768. {
  769. type : 'category',
  770. data : data.date_arr,
  771. axisTick: {
  772. alignWithLabel: true
  773. }
  774. }
  775. ],
  776. yAxis : [
  777. {
  778. type : 'value'
  779. }
  780. ],
  781. series : [
  782. {
  783. name:'团长增长',
  784. type:'bar',
  785. label: {
  786. normal: {
  787. show: true,
  788. position: 'top'
  789. }
  790. },
  791. barWidth: '60%',
  792. itemStyle: {
  793. normal: {
  794. // 定制显示(按顺序)
  795. color: function(params) {
  796. var colorList = ['#58b4ff','#f6bf00','#f3550e','#51c284','#7ebbd8', '#dbdd7c','#ee9992'];
  797. return colorList[params.dataIndex]
  798. }
  799. },
  800. },
  801. data:data.member_count
  802. }
  803. ]
  804. };
  805. if (option && typeof option === "object") {
  806. lineChart.setOption(option, true);
  807. }
  808. }
  809. }
  810. })
  811. }
  812. function load_echat_month_head_sales()
  813. {
  814. var hasLineChart = $("#echat_month_head_sales").length>0;
  815. if(hasLineChart){
  816. var lineChart = echarts.init(document.getElementById("echat_month_head_sales"));
  817. }
  818. window.onresize = function () {
  819. if(hasLineChart) {
  820. lineChart.resize();
  821. }
  822. };
  823. $.ajax({
  824. type: "GET",
  825. url: "{:U('statistics/load_echat_month_head_sales', array('type' => 1))}",
  826. dataType: "json",
  827. success: function (data) {
  828. if(data.code == 0)
  829. {
  830. var le_arr = [];
  831. var data_obj_arr = [];
  832. for( var i in data.list )
  833. {
  834. le_arr.push( data.list[i].head_name );
  835. data_obj_arr.push({value:data.list[i].total, name:data.list[i].head_name });
  836. }
  837. var option = null;
  838. option = {
  839. title : {
  840. text: '销售金额'+data.total,
  841. subtext: data.month,
  842. x:'center'
  843. },
  844. tooltip : {
  845. trigger: 'item',
  846. formatter: "{a} <br/>{b} : {c} ({d}%)"
  847. },
  848. legend: {
  849. orient: 'vertical',
  850. left: 'left',
  851. data: le_arr
  852. },
  853. series : [
  854. {
  855. name: '销售金额',
  856. type: 'pie',
  857. radius : '55%',
  858. center: ['50%', '60%'],
  859. data:data_obj_arr,
  860. itemStyle: {
  861. emphasis: {
  862. shadowBlur: 10,
  863. shadowOffsetX: 0,
  864. shadowColor: 'rgba(0, 0, 0, 0.5)'
  865. }
  866. }
  867. }
  868. ]
  869. };
  870. if (option && typeof option === "object") {
  871. lineChart.setOption(option, true);
  872. }
  873. }
  874. }
  875. })
  876. }
  877. function load_echat_month_goods_sales()
  878. {
  879. var hasLineChart = $("#echat_month_goods_sales").length>0;
  880. if(hasLineChart){
  881. var lineChart = echarts.init(document.getElementById("echat_month_goods_sales"));
  882. }
  883. window.onresize = function () {
  884. if(hasLineChart) {
  885. lineChart.resize();
  886. }
  887. };
  888. $.ajax({
  889. type: "GET",
  890. url: "{:U('statistics/load_echat_month_goods_sales', array('type' => 1))}",
  891. dataType: "json",
  892. success: function (data) {
  893. if(data.code == 0)
  894. {
  895. var le_arr = [];
  896. var data_obj_arr = [];
  897. for( var i in data.list )
  898. {
  899. le_arr.push( data.list[i].name );
  900. data_obj_arr.push({value:data.list[i].total, name:data.list[i].name });
  901. }
  902. var option = null;
  903. option = {
  904. title : {
  905. text: '销售金额'+data.total,
  906. subtext: '销售总数:'+data.total_quantity+' ('+data.month+')',
  907. x:'center'
  908. },
  909. tooltip : {
  910. trigger: 'item',
  911. formatter: "{a} <br/>{b} : {c} ({d}%)"
  912. },
  913. legend: {
  914. orient: 'vertical',
  915. left: 'left',
  916. data: le_arr
  917. },
  918. series : [
  919. {
  920. name: '销售金额',
  921. type: 'pie',
  922. radius : '55%',
  923. center: ['50%', '60%'],
  924. data:data_obj_arr,
  925. itemStyle: {
  926. emphasis: {
  927. shadowBlur: 10,
  928. shadowOffsetX: 0,
  929. shadowColor: 'rgba(0, 0, 0, 0.5)'
  930. }
  931. }
  932. }
  933. ]
  934. };
  935. if (option && typeof option === "object") {
  936. lineChart.setOption(option, true);
  937. }
  938. }
  939. }
  940. })
  941. }
  942. function load_echat_lastmonth_goods_sales()
  943. {
  944. var hasLineChart = $("#echat_lastmonth_goods_sales").length>0;
  945. if(hasLineChart){
  946. var lineChart = echarts.init(document.getElementById("echat_lastmonth_goods_sales"));
  947. }
  948. window.onresize = function () {
  949. if(hasLineChart) {
  950. lineChart.resize();
  951. }
  952. };
  953. $.ajax({
  954. type: "GET",
  955. url: "{:U('statistics/load_echat_month_goods_sales', array('type' => 2))}",
  956. dataType: "json",
  957. success: function (data) {
  958. if(data.code == 0)
  959. {
  960. var le_arr = [];
  961. var data_obj_arr = [];
  962. for( var i in data.list )
  963. {
  964. le_arr.push( data.list[i].name );
  965. data_obj_arr.push({value:data.list[i].total, name:data.list[i].name });
  966. }
  967. var option = null;
  968. option = {
  969. title : {
  970. text: '销售金额'+data.total,
  971. subtext: '销售总数:'+data.total_quantity+' ('+data.month+')',
  972. x:'center'
  973. },
  974. tooltip : {
  975. trigger: 'item',
  976. formatter: "{a} <br/>{b} : {c} ({d}%)"
  977. },
  978. legend: {
  979. orient: 'vertical',
  980. left: 'left',
  981. data: le_arr
  982. },
  983. series : [
  984. {
  985. name: '销售金额',
  986. type: 'pie',
  987. radius : '55%',
  988. center: ['50%', '60%'],
  989. data:data_obj_arr,
  990. itemStyle: {
  991. emphasis: {
  992. shadowBlur: 10,
  993. shadowOffsetX: 0,
  994. shadowColor: 'rgba(0, 0, 0, 0.5)'
  995. }
  996. }
  997. }
  998. ]
  999. };
  1000. if (option && typeof option === "object") {
  1001. lineChart.setOption(option, true);
  1002. }
  1003. }
  1004. }
  1005. })
  1006. }
  1007. function load_echat_lastmonth_head_sales()
  1008. {
  1009. var hasLineChart = $("#echat_lastmonth_head_sales").length>0;
  1010. if(hasLineChart){
  1011. var lineChart = echarts.init(document.getElementById("echat_lastmonth_head_sales"));
  1012. }
  1013. window.onresize = function () {
  1014. if(hasLineChart) {
  1015. lineChart.resize();
  1016. }
  1017. };
  1018. $.ajax({
  1019. type: "GET",
  1020. url: "{:U('statistics/load_echat_month_head_sales', array('type' => 2))}",
  1021. dataType: "json",
  1022. success: function (data) {
  1023. if(data.code == 0)
  1024. {
  1025. var le_arr = [];
  1026. var data_obj_arr = [];
  1027. for( var i in data.list )
  1028. {
  1029. le_arr.push( data.list[i].head_name );
  1030. data_obj_arr.push({value:data.list[i].total, name:data.list[i].head_name });
  1031. }
  1032. var option = null;
  1033. option = {
  1034. title : {
  1035. text: '销售金额'+data.total,
  1036. subtext: data.month,
  1037. x:'center'
  1038. },
  1039. tooltip : {
  1040. trigger: 'item',
  1041. formatter: "{a} <br/>{b} : {c} ({d}%)"
  1042. },
  1043. legend: {
  1044. orient: 'vertical',
  1045. left: 'left',
  1046. data: le_arr
  1047. },
  1048. series : [
  1049. {
  1050. name: '销售金额',
  1051. type: 'pie',
  1052. radius : '55%',
  1053. center: ['50%', '60%'],
  1054. data:data_obj_arr,
  1055. itemStyle: {
  1056. emphasis: {
  1057. shadowBlur: 10,
  1058. shadowOffsetX: 0,
  1059. shadowColor: 'rgba(0, 0, 0, 0.5)'
  1060. }
  1061. }
  1062. }
  1063. ]
  1064. };
  1065. if (option && typeof option === "object") {
  1066. lineChart.setOption(option, true);
  1067. }
  1068. }
  1069. }
  1070. })
  1071. }
  1072. function loadEchartsLine()
  1073. {
  1074. var hasLineChart = $("#main").length>0;
  1075. if(hasLineChart){
  1076. var lineChart = echarts.init(document.getElementById("main"));
  1077. }
  1078. window.onresize = function () {
  1079. if(hasLineChart) {
  1080. lineChart.resize();
  1081. }
  1082. };
  1083. $.ajax({
  1084. type: "GET",
  1085. url: "<?php echo U('statistics/load_goods_chart'); ?>",
  1086. data:{type:cur_type},
  1087. dataType: "json",
  1088. success: function (json) {
  1089. var option = {
  1090. title: {
  1091. text: ''
  1092. },
  1093. tooltip: {
  1094. trigger: 'axis',
  1095. formatter: function (a) {
  1096. var str = '';
  1097. a.forEach(function (item) {
  1098. str += item.seriesName + ':' + item.value + (item.seriesIndex > 2 ? '%' : '') + '<br/>';
  1099. });
  1100. return str;
  1101. }
  1102. },
  1103. legend: {
  1104. data: []
  1105. },
  1106. grid: {
  1107. left: 50,
  1108. right: 20,
  1109. top: 40,
  1110. bottom: 10,
  1111. containLabel: true
  1112. },
  1113. xAxis: {
  1114. type: 'category',
  1115. axisLabel: {
  1116. rotate: 30
  1117. },
  1118. boundaryGap: false,
  1119. data: []
  1120. },
  1121. yAxis: [
  1122. {
  1123. type: 'value',
  1124. name: '金额',
  1125. }
  1126. ],
  1127. series: [
  1128. {
  1129. areaStyle: { normal: {} },
  1130. },
  1131. ]
  1132. };
  1133. if(hasLineChart) {
  1134. //var json = {"success":true,"data":{"date":"0001-01-01 00:00:00","visits":3080,"orderUsers":24,"orderCount":52,"orderProducts":69,"orderAmount":14986.83,"payUsers":16,"payOrders":25,"payProducts":36,"payAmount":4380.31,"refundProducts":4,"refundOrderCounts":8,"refundAmount":1899.04,"refundRate":32.00,"preOrderRate":175.21,"preProductRate":121.68,"jointRate":1.44,"orderRate":1.69,"payRate":48.08,"tradeRate":0.81,"payAmountRank":1,"brokerageAmount":0.00,"lines":{"payAmountLine":{"xAxisData":["12-01","12-02","12-03","12-04","12-05","12-06","12-07","12-08"],"seriesData":[{"data":[0.00,3196.00,0.20,162.14,379.01,642.96,0.00,0.0]}]},"payUserLine":{"xAxisData":["12-01","12-02","12-03","12-04","12-05","12-06","12-07","12-08"],"seriesData":[{"data":[0,1,2,2,6,5,0,0]}]},"payProductLine":{"xAxisData":["12-01","12-02","12-03","12-04","12-05","12-06","12-07","12-08"],"seriesData":[{"data":[0,3,2,13,10,8,0,0]}]},"orderRateLine":{"xAxisData":["12-01","12-02","12-03","12-04","12-05","12-06","12-07","12-08"],"seriesData":[{"data":[0.0,4.00,1.22,1.53,2.74,1.52,1.00,0.0]}]},"payRateLine":{"xAxisData":["12-01","12-02","12-03","12-04","12-05","12-06","12-07","12-08"],"seriesData":[{"data":[0.0,75.00,33.33,77.78,35.00,50.0,0.0,0.0]}]},"tradeRateLine":{"xAxisData":["12-01","12-02","12-03","12-04","12-05","12-06","12-07","12-08"],"seriesData":[{"data":[0.0,3.00,0.41,1.19,0.96,0.76,0.0,0.0]}]}}}};
  1135. var lines = json.data.lines;
  1136. option.xAxis.data = lines.payAmountLine.xAxisData;
  1137. option.series = [];
  1138. option.series.push(buildLine("付款金额", lines.payAmountLine, 0));
  1139. option.series.push(buildLine2("退款金额", lines.payAmountLine, 0));
  1140. lineChart.setOption(option);
  1141. lineChart.resize();
  1142. }
  1143. $("#echarts-line-chart-loading").hide();
  1144. $("#main").show();
  1145. }
  1146. })
  1147. }
  1148. function buildLine2(name, data, yIndex) {
  1149. return {
  1150. name: name,
  1151. type: "line",
  1152. areaStyle: { normal: {} },
  1153. smooth: true,
  1154. data: data.seriesData[1].data,
  1155. yAxisIndex: yIndex
  1156. };
  1157. }
  1158. function buildLine(name, data, yIndex) {
  1159. return {
  1160. name: name,
  1161. type: "line",
  1162. areaStyle: { normal: {} },
  1163. smooth: true,
  1164. data: data.seriesData[0].data,
  1165. yAxisIndex: yIndex
  1166. };
  1167. }
  1168. function load_goods_paihang()
  1169. {
  1170. var s_index = $('#sale li.active').index();
  1171. $.ajax({
  1172. type: "GET",
  1173. url: "<?php echo U('statistics/load_goods_paihang'); ?>",
  1174. data:{type:cur_type,s_index:s_index},
  1175. dataType: "json",
  1176. success: function (data) {
  1177. $('#sale_div .ibox-loading').hide();
  1178. if(data.code ==0 )
  1179. {
  1180. $('#goods_rank_0 tbody').html( data.html );
  1181. }
  1182. }
  1183. })
  1184. }
  1185. function load_order_buy_data()
  1186. {
  1187. var s_index = $('#orderinfo li.active').index();
  1188. $.ajax({
  1189. type: "GET",
  1190. url: "<?php echo U('statistics/order_buy_data'); ?>",
  1191. data:{type:cur_type,s_index:s_index},
  1192. dataType: "json",
  1193. success: function (data) {
  1194. $('#order_info_div .ibox-loading').hide();
  1195. if(data.code ==0 )
  1196. {
  1197. $('.order_count_0').html( data.data.count );
  1198. $('.order_price_0').html( data.data.total );
  1199. $('.order_avg_0').html( data.data.per_money );
  1200. }
  1201. }
  1202. })
  1203. }
  1204. function load_data()
  1205. {
  1206. cur_type = $('#select_type').val();
  1207. $.ajax({
  1208. type: "GET",
  1209. url: "<?php echo U('statistics/index_data'); ?>",
  1210. data:{type:cur_type},
  1211. dataType: "json",
  1212. success: function (data) {
  1213. if(data.code ==0 )
  1214. {
  1215. $('.today_member_count').html( data.data.today_member_count );
  1216. $('.today_pay_order_count').html( data.data.today_pay_order_count );
  1217. $('.today_pay_money').html( '<em>¥</em><span class="counter">'+data.data.today_pay_money +'</span>' );
  1218. $('.total_tixian_money').html( '<em>¥</em><span class="counter">'+data.data.total_tixian_money +'</span>' );
  1219. $('.total_commiss_money').html( '<em>¥</em><span class="counter">'+data.data.total_commiss_money +'</span>' );
  1220. $('.total_order_money').html( '<em>¥</em><span class="counter">'+data.data.total_order_money +'</span>' );
  1221. $('.counter').countUp();
  1222. $('.goods_stock_notice_count').html( data.data.goods_stock_notice_count );
  1223. $('.wait_pay_order_count').html( data.data.wait_pay_order_count );
  1224. $('.wait_order_count').html( data.data.wait_order_count );
  1225. $('.after_sale_order_count').html( data.data.after_sale_order_count );
  1226. $('.wai_comment_order_count').html( data.data.wai_comment_order_count );
  1227. $('.wait_shen_order_comment_count').html( data.data.wait_shen_order_comment_count );
  1228. $('.stock_goods_count').html( data.data.stock_goods_count );
  1229. $('.seven_order_count').html( data.data.seven_order_count );
  1230. $('.seven_pay_money').html(data.data.seven_pay_money);
  1231. $('.seven_refund_money').html(data.data.seven_refund_money);
  1232. $('.community_head_count').html(data.data.community_head_count);
  1233. $('.seven_order_count').html(data.data.seven_order_count);
  1234. $('.member_count').html( data.data.member_count );
  1235. $('.goods_count').html( data.data.goods_count );
  1236. $('.order_count').html( data.data.order_count );
  1237. $('.tixian_count').html( data.data.apply_count );
  1238. if(data.data.wait_order_type == 'pintuan'){
  1239. var url = "<?php echo U('group/orderlist', array('order_status_id' => 1)); ?>";
  1240. $('.wait_order_count').attr('href',url);
  1241. }else if(data.data.wait_order_type == 'integral'){
  1242. var url = "<?php echo U('points/order', array('order_status_id' => 1)); ?>";
  1243. $('.wait_order_count').attr('href',url);
  1244. }
  1245. $('.goods_totals').html( data.data.goods_stock_notice_count );
  1246. }
  1247. }
  1248. })
  1249. load_order_buy_data();
  1250. load_goods_paihang();
  1251. }
  1252. </script>
  1253. <script type="text/javascript">
  1254. $('.counter').countUp();
  1255. </script>
  1256. </body>
  1257. </html>