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. <!-- -->
  234. <!-- <a class="flex-item" title="团长总佣金=待结算佣金+已结算佣金" href="<?php echo U('communityhead/distribulist'); ?>"> -->
  235. <!-- <img class="icon" src="/static/images/Block-7.png">-->
  236. <!-- <div class="text">-->
  237. <!-- <div class="num total_commiss_money"></div>-->
  238. <!-- <div class="title">团长总佣金</div>-->
  239. <!-- <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>-->
  240. <!-- <div id="showDiv3" style="position: absolute; background-color: #8a8a8a; height:35px;width:320px;display:none;border-radius:20px;text-align:center;"></div>-->
  241. <!-- </div>-->
  242. <!-- </a>-->
  243. <!-- <?php } ?>-->
  244. <a class="flex-item" href="<?php echo U('order/index'); ?>">
  245. <img class="icon" src="/static/images/Block-5.png">
  246. <div class="text">
  247. <div class="num total_order_money"></div>
  248. <div class="title">订单金额</div>
  249. <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>
  250. <div id="showDiv4" style="position: absolute; right: 5px;background-color: #8a8a8a; height:35px;width:320px;display:none;border-radius:20px;text-align:center;"></div>
  251. </div>
  252. </a>
  253. </div>
  254. <div class="row-panel">
  255. <div class="row-panel-7">
  256. <div class="mypanel tasks-panel">
  257. <div class="mypanel-heading">待处理事务</div>
  258. <div class="mypanel-body">
  259. <div class="flex-items tasks">
  260. <?php if (!defined('ROLE') || ROLE != 'agenter' ) {?>
  261. <?php if(D('Seller/Menu')->check_seller_perm('goods/index')){ ?>
  262. <div class="flex-item">
  263. <div>商品库存报警</div>
  264. <a class="num hasnum goods_stock_notice_count" href="<?php echo U('goods/index', array('type' => 'stock_notice')); ?>"></a>
  265. </div>
  266. <?php } ?>
  267. <?php } ?>
  268. <?php if(D('Seller/Menu')->check_seller_perm('order/index')){ ?>
  269. <div class="flex-item">
  270. <div>待付款订单</div>
  271. <a class="num wait_pay_order_count" href="<?php echo U('order/index', array('order_status_id' => 3)); ?>"></a>
  272. </div>
  273. <?php } ?>
  274. <?php if(D('Seller/Menu')->check_seller_perm('order/index')){ ?>
  275. <div class="flex-item">
  276. <div>备货中订单
  277. <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>
  278. <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>
  279. </div>
  280. <a class="num hasnum wait_order_count" href="<?php echo U('order/index', array('order_status_id' => 1)); ?>"></a>
  281. </div>
  282. <?php } ?>
  283. </div>
  284. <?php if (!defined('ROLE') || ROLE != 'agenter' ) {?>
  285. <div class="flex-items tasks">
  286. <?php if(D('Seller/Menu')->check_seller_perm('order/index')){ ?>
  287. <div class="flex-item">
  288. <div>待处理退款</div>
  289. <a class="num hasnum after_sale_order_count" href="<?php echo U('order/orderaftersales'); ?>"></a>
  290. </div>
  291. <?php } ?>
  292. <?php if(D('Seller/Menu')->check_seller_perm('order/index')){ ?>
  293. <div class="flex-item">
  294. <div>待评价订单</div>
  295. <a class="num wai_comment_order_count" href="<?php echo U('order/index', array('order_status_id' => 6)); ?>"></a>
  296. </div>
  297. <?php } ?>
  298. <?php if(D('Seller/Menu')->check_seller_perm('order/index')){ ?>
  299. <div class="flex-item">
  300. <div>待审核评价</div>
  301. <a class="num hasnum wait_shen_order_comment_count" href="<?php echo U('order/ordercomment'); ?>"></a>
  302. </div>
  303. <?php } ?>
  304. </div>
  305. <div class="flex-items tasks">
  306. <?php if(D('Seller/Menu')->check_seller_perm('goods/index')){ ?>
  307. <div class="flex-item">
  308. <div>仓库中商品</div>
  309. <a class="num hasnum stock_goods_count" href="<?php echo U('goods/index', array('type' => 'warehouse')); ?>"></a>
  310. </div>
  311. <?php } ?>
  312. <?php if(D('Seller/Menu')->check_seller_perm('order/index')){ ?>
  313. <div class="flex-item">
  314. <div>待处理退货</div>
  315. <a class="num after_sale_order_count" href="<?php echo U('order/orderaftersales'); ?>"></a>
  316. </div>
  317. <?php } ?>
  318. <?php if(D('Seller/Menu')->check_seller_perm('communityhead/index')){ ?>
  319. <div class="flex-item">
  320. <div>团长提现</div>
  321. <a class="num tixian_count" href="<?php echo U('communityhead/distribulist'); ?>">0</a>
  322. </div>
  323. <?php } ?>
  324. </div>
  325. <?php }else{ ?>
  326. <div class="flex-items tasks">
  327. <div class="flex-item">
  328. <div>待处理退款</div>
  329. <a class="num hasnum after_sale_order_count" href="<?php echo U('order/orderaftersales'); ?>"></a>
  330. </div>
  331. <div class="flex-item">
  332. <div>待处理退货</div>
  333. <a class="num after_sale_order_count" href="<?php echo U('order/orderaftersales'); ?>"></a>
  334. </div>
  335. </div>
  336. <?php } ?>
  337. </div>
  338. </div>
  339. </div>
  340. <div class="row-panel-5">
  341. <div class="mypanel">
  342. <div class="mypanel-heading">交易统计</div>
  343. <div class="mypanel-body">
  344. <div class="ibox-loading" id="echarts-line-chart-loading"></div>
  345. <div class="chat-box" id="main" style="-webkit-tap-highlight-color: transparent; user-select: none; position: relative;height: 225px;">
  346. <div class="layui-carousel layadmin-carousel layadmin-dataview" data-anim="fade" lay-filter="LAY-index-normline">
  347. <div carousel-item id="LAY-index-normline">
  348. <div><i class="layui-icon layui-icon-loading1 layadmin-loading"></i></div>
  349. </div>
  350. </div>
  351. </div>
  352. </div>
  353. </div>
  354. </div>
  355. </div>
  356. <div class="row-panel">
  357. <div class="row-panel-7">
  358. <div class="mypanel total-panel">
  359. <div class="mypanel-heading">商城信息统计</div>
  360. <div class="mypanel-body">
  361. <?php if (!defined('ROLE') || ROLE != 'agenter' ) {?>
  362. <div class="flex-items total-mes">
  363. <div class="flex-item">
  364. <div class="num member_count"></div>
  365. <div>会员总数</div>
  366. </div>
  367. <div class="flex-item">
  368. <div class="num goods_count"></div>
  369. <div>商品总数</div>
  370. </div>
  371. <div class="flex-item">
  372. <div class="num community_head_count"></div>
  373. <div>团长总数</div>
  374. </div>
  375. </div>
  376. <div class="flex-items total-mes">
  377. <div class="flex-item">
  378. <div class="num seven_order_count"></div>
  379. <div>近七天订单数</div>
  380. </div>
  381. <div class="flex-item">
  382. <div class="num seven_pay_money"></div>
  383. <div>近7天销售额(元)</div>
  384. </div>
  385. <div class="flex-item">
  386. <div class="num seven_refund_money"></div>
  387. <div>近7天退款金额(元)</div>
  388. </div>
  389. </div>
  390. <?php }else{ ?>
  391. <div class="flex-items total-mes">
  392. <div class="flex-item">
  393. <div class="num seven_order_count"></div>
  394. <div>近七天订单数</div>
  395. </div>
  396. <div class="flex-item">
  397. <div class="num seven_pay_money"></div>
  398. <div>近7天销售额(元)</div>
  399. </div>
  400. <div class="flex-item">
  401. <div class="num seven_refund_money"></div>
  402. <div>近7天退款金额(元)</div>
  403. </div>
  404. <div class="flex-item">
  405. <div class="num goods_count"></div>
  406. <div>商品总数</div>
  407. </div>
  408. </div>
  409. <?php } ?>
  410. </div>
  411. </div>
  412. </div>
  413. <div class="row-panel-5">
  414. <div class="mypanel quick-panel">
  415. <div class="mypanel-heading">快捷入口</div>
  416. <div class="mypanel-body">
  417. <?php if (!defined('ROLE') || ROLE != 'agenter' ) {?>
  418. <div class="flex-items quick-nav">
  419. <?php if(D('Seller/Menu')->check_seller_perm('goods/index')){ ?>
  420. <a href="<?php echo U('goods/addgoods'); ?>" class="flex-item">
  421. <i class="iconfont icon-p"></i>
  422. <div>发布商品</div>
  423. </a>
  424. <?php } ?>
  425. <?php if(D('Seller/Menu')->check_seller_perm('order/index')){ ?>
  426. <a href="<?php echo U('order/index'); ?>" class="flex-item">
  427. <i class="iconfont icon--clipboard"></i>
  428. <div>订单列表</div>
  429. </a>
  430. <?php } ?>
  431. <?php if(D('Seller/Menu')->check_seller_perm('user/index')){ ?>
  432. <a href="<?php echo U('user/index'); ?>" class="flex-item">
  433. <i class="iconfont icon--users"></i>
  434. <div>会员管理</div>
  435. </a>
  436. <?php } ?>
  437. <?php if(D('Seller/Menu')->check_seller_perm('communityhead/index')){ ?>
  438. <a href="<?php echo U('communityhead/index'); ?>" class="flex-item">
  439. <i class="iconfont icon--tree"></i>
  440. <div>团长管理</div>
  441. </a>
  442. <?php } ?>
  443. <?php if(D('Seller/Menu')->check_seller_perm('supply/index')){ ?>
  444. <a href="<?php echo U('supply/index'); ?>" class="flex-item">
  445. <i class="iconfont icon--truck"></i>
  446. <div>供应商管理</div>
  447. </a>
  448. <?php } ?>
  449. </div>
  450. <div class="flex-items quick-nav">
  451. <?php if(D('Seller/Menu')->check_seller_perm('communityhead/distribulist')){ ?>
  452. <a href="<?php echo U('communityhead/distribulist'); ?>" class="flex-item">
  453. <i class="iconfont icon-p5"></i>
  454. <div>提现申请</div>
  455. </a>
  456. <?php } ?>
  457. <?php if(D('Seller/Menu')->check_seller_perm('communityhead/distributionpostal')){ ?>
  458. <a href="<?php echo U('communityhead/distributionpostal'); ?>" class="flex-item">
  459. <i class="iconfont icon--coin-yen"></i>
  460. <div>提现设置</div>
  461. </a>
  462. <?php } ?>
  463. <?php if(D('Seller/Menu')->check_seller_perm('configindex/slider')){ ?>
  464. <a href="<?php echo U('configindex/slider'); ?>" class="flex-item">
  465. <i class="iconfont icon-p6"></i>
  466. <div>幻灯片管理</div>
  467. </a>
  468. <?php } ?>
  469. <?php if(D('Seller/Menu')->check_seller_perm('order/orderaftersales')){ ?>
  470. <a href="<?php echo U('order/orderaftersales'); ?>" class="flex-item">
  471. <i class="iconfont icon--stats-bars1"></i>
  472. <div>售后处理</div>
  473. </a>
  474. <?php } ?>
  475. <?php if(D('Seller/Menu')->check_seller_perm('config/index')){ ?>
  476. <a href="<?php echo U('config/index'); ?>" class="flex-item">
  477. <i class="iconfont icon-p7"></i>
  478. <div>站点设置</div>
  479. </a>
  480. <?php } ?>
  481. </div>
  482. <?php }else{ ?>
  483. <div class="flex-items quick-nav">
  484. <a href="<?php echo U('goods/addgoods'); ?>" class="flex-item">
  485. <i class="iconfont icon-p"></i>
  486. <div>发布商品</div>
  487. </a>
  488. <a href="<?php echo U('order/index'); ?>" class="flex-item">
  489. <i class="iconfont icon--clipboard"></i>
  490. <div>订单列表</div>
  491. </a>
  492. <a href="<?php echo U('order/orderaftersales'); ?>" class="flex-item">
  493. <i class="iconfont icon--stats-bars1"></i>
  494. <div>售后处理</div>
  495. </a>
  496. </div>
  497. <?php } ?>
  498. </div>
  499. </div>
  500. </div>
  501. </div>
  502. <?php if (!defined('ROLE') || ROLE != 'agenter' ) {?>
  503. <div class="row-panel">
  504. <div class="row-panel-7">
  505. <div class="mypanel total-panel">
  506. <div class="mypanel-heading">最近7天会员增长情况</div>
  507. <div class="mypanel-body">
  508. <div id="echat_member_incr" style="height:460px;"></div>
  509. </div>
  510. </div>
  511. </div>
  512. <div class="row-panel-5">
  513. <div class="mypanel total-panel">
  514. <div class="mypanel-heading">最近7天团长增长情况</div>
  515. <div class="mypanel-body">
  516. <div id="echat_head_incr" style="height:460px;"></div>
  517. </div>
  518. </div>
  519. </div>
  520. </div>
  521. <div class="row-panel">
  522. <div class="row-panel-7">
  523. <div class="mypanel total-panel">
  524. <div class="mypanel-heading">本月团长销售排行</div>
  525. <div class="mypanel-body">
  526. <div id="echat_month_head_sales" style="height:460px;"></div>
  527. </div>
  528. </div>
  529. </div>
  530. <div class="row-panel-5">
  531. <div class="mypanel total-panel">
  532. <div class="mypanel-heading">上月团长销售排行</div>
  533. <div class="mypanel-body">
  534. <div id="echat_lastmonth_head_sales" style="height:460px;"></div>
  535. </div>
  536. </div>
  537. </div>
  538. </div>
  539. <div class="row-panel">
  540. <div class="row-panel-7">
  541. <div class="mypanel total-panel">
  542. <div class="mypanel-heading">本月商品销售排行</div>
  543. <div class="mypanel-body">
  544. <div id="echat_month_goods_sales" style="height:460px;"></div>
  545. </div>
  546. </div>
  547. </div>
  548. <div class="row-panel-5">
  549. <div class="mypanel total-panel">
  550. <div class="mypanel-heading">上月商品销售排行</div>
  551. <div class="mypanel-body">
  552. <div id="echat_lastmonth_goods_sales" style="height:460px;"></div>
  553. </div>
  554. </div>
  555. </div>
  556. </div>
  557. <?php } ?>
  558. </div>
  559. </div>
  560. <script src="/layuiadmin/layui/layui.js"></script>
  561. <script src="/layuiadmin/lib/extend/echarts.min.js"></script>
  562. <script src="/static/js/roll/jquery-1.11.0.min.js" type="text/javascript"></script>
  563. <script src="/static/js/roll/jquery.waypoints.min.js"></script>
  564. <script type="text/javascript" src="/static/js/roll/jquery.countup.min.js"></script>
  565. <script>
  566. layui.config({
  567. base: '/layuiadmin/' //静态资源所在路径
  568. }).extend({
  569. index: 'lib/index' //主入口模块
  570. }).use('index');
  571. </script>
  572. <script>
  573. function overShow1() {
  574. var showDiv = document.getElementById('showDiv');
  575. //showDiv.style.left = event.clientX;
  576. //showDiv.style.top = event.clientY;
  577. showDiv.style.display = 'block';
  578. 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>';
  579. }
  580. function outHide1() {
  581. var showDiv = document.getElementById('showDiv');
  582. showDiv.style.display = 'none';
  583. showDiv.innerHTML = '';
  584. }
  585. </script>
  586. <script>
  587. function overShow2() {
  588. var showDiv = document.getElementById('showDiv2');
  589. //showDiv.style.left = event.clientX;
  590. //showDiv.style.top = event.clientY;
  591. showDiv.style.display = 'block';
  592. 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>';
  593. }
  594. function outHide2() {
  595. var showDiv = document.getElementById('showDiv2');
  596. showDiv.style.display = 'none';
  597. showDiv.innerHTML = '';
  598. }
  599. function overShow3() {
  600. var showDiv = document.getElementById('showDiv3');
  601. //showDiv.style.left = event.clientX;
  602. //showDiv.style.top = event.clientY;
  603. showDiv.style.display = 'block';
  604. showDiv.innerHTML = '<div class="table"><div class="table-tr"><div class="table-td">统计金额不包含退款金额和已取消订单金额</div></div></div>';
  605. }
  606. function outHide3() {
  607. var showDiv = document.getElementById('showDiv3');
  608. showDiv.style.display = 'none';
  609. showDiv.innerHTML = '';
  610. }
  611. function overShow4() {
  612. var showDiv = document.getElementById('showDiv4');
  613. //showDiv.style.left = event.clientX;
  614. //showDiv.style.top = event.clientY;
  615. showDiv.style.display = 'block';
  616. showDiv.innerHTML = '<div class="table"><div class="table-tr"><div class="table-td">统计金额不包含退款金额和已取消订单金额</div></div></div>';
  617. }
  618. function outHide4() {
  619. var showDiv = document.getElementById('showDiv4');
  620. showDiv.style.display = 'none';
  621. showDiv.innerHTML = '';
  622. }
  623. function overShowWait() {
  624. var showDiv = document.getElementById('showDivWait');
  625. //showDiv.style.left = event.clientX;
  626. //showDiv.style.top = event.clientY;
  627. showDiv.style.display = 'block';
  628. showDiv.innerHTML = '<div class="table"><div class="table-tr"><div class="table-td">备货中订单包含普通订单,拼团订单和积分兑换订单</div></div></div>';
  629. }
  630. function outHideWait() {
  631. var showDiv = document.getElementById('showDivWait');
  632. showDiv.style.display = 'none';
  633. showDiv.innerHTML = '';
  634. }
  635. </script>
  636. <script>
  637. //由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
  638. var layer = layui.layer;
  639. var $;
  640. var cur_type = 'normal';
  641. layui.use(['jquery', 'layer'], function(){
  642. $ = layui.$;
  643. load_data();
  644. //后面就跟你平时使用jQuery一样
  645. loadEchartsLine();
  646. load_echat_member_incr();
  647. load_echat_head_incr();
  648. load_echat_month_head_sales();
  649. load_echat_lastmonth_head_sales();
  650. load_echat_month_goods_sales();
  651. load_echat_lastmonth_goods_sales();
  652. });
  653. function load_echat_member_incr()
  654. {
  655. var hasLineChart = $("#echat_member_incr").length>0;
  656. if(hasLineChart){
  657. var lineChart = echarts.init(document.getElementById("echat_member_incr"));
  658. }
  659. window.onresize = function () {
  660. if(hasLineChart) {
  661. lineChart.resize();
  662. }
  663. };
  664. $.ajax({
  665. type: "GET",
  666. url: "{:U('statistics/load_echat_member_incr')}",
  667. dataType: "json",
  668. success: function (data) {
  669. if(data.code == 0)
  670. {
  671. //echo json_encode( array('code' => 0, 'date_arr' => $date_arr, 'member_count' => $member_count_arr ) );
  672. //die();
  673. var option = null;
  674. option = {
  675. color: ['#009688'],
  676. tooltip : {
  677. trigger: 'axis',
  678. axisPointer : { // 坐标轴指示器,坐标轴触发有效
  679. type : 'shadow' // 默认为直线,可选为:'line' | 'shadow'
  680. }
  681. },
  682. grid: {
  683. left: '3%',
  684. right: '4%',
  685. bottom: '3%',
  686. containLabel: true
  687. },
  688. xAxis : [
  689. {
  690. type : 'category',
  691. data : data.date_arr,
  692. axisTick: {
  693. alignWithLabel: true
  694. }
  695. }
  696. ],
  697. yAxis : [
  698. {
  699. type : 'value'
  700. }
  701. ],
  702. series : [
  703. {
  704. name:'会员增长',
  705. type:'bar',
  706. label: {
  707. normal: {
  708. show: true,
  709. position: 'top'
  710. }
  711. },
  712. barWidth: '60%',
  713. itemStyle: {
  714. normal: {
  715. // 定制显示(按顺序)
  716. color: function(params) {
  717. var colorList = ['#58b4ff','#f6bf00','#f3550e','#51c284','#7ebbd8', '#dbdd7c','#ee9992'];
  718. return colorList[params.dataIndex]
  719. }
  720. },
  721. },
  722. data:data.member_count
  723. }
  724. ]
  725. };
  726. if (option && typeof option === "object") {
  727. lineChart.setOption(option, true);
  728. }
  729. }
  730. }
  731. })
  732. }
  733. function load_echat_head_incr()
  734. {
  735. var hasLineChart = $("#echat_head_incr").length>0;
  736. if(hasLineChart){
  737. var lineChart = echarts.init(document.getElementById("echat_head_incr"));
  738. }
  739. window.onresize = function () {
  740. if(hasLineChart) {
  741. lineChart.resize();
  742. }
  743. };
  744. $.ajax({
  745. type: "GET",
  746. url: "{:U('statistics/load_echat_head_incr')}",
  747. dataType: "json",
  748. success: function (data) {
  749. if(data.code == 0)
  750. {
  751. //echo json_encode( array('code' => 0, 'date_arr' => $date_arr, 'member_count' => $member_count_arr ) );
  752. //die();
  753. var option = null;
  754. option = {
  755. color: ['#009688'],
  756. tooltip : {
  757. trigger: 'axis',
  758. axisPointer : { // 坐标轴指示器,坐标轴触发有效
  759. type : 'shadow' // 默认为直线,可选为:'line' | 'shadow'
  760. }
  761. },
  762. grid: {
  763. left: '3%',
  764. right: '4%',
  765. bottom: '3%',
  766. containLabel: true
  767. },
  768. xAxis : [
  769. {
  770. type : 'category',
  771. data : data.date_arr,
  772. axisTick: {
  773. alignWithLabel: true
  774. }
  775. }
  776. ],
  777. yAxis : [
  778. {
  779. type : 'value'
  780. }
  781. ],
  782. series : [
  783. {
  784. name:'团长增长',
  785. type:'bar',
  786. label: {
  787. normal: {
  788. show: true,
  789. position: 'top'
  790. }
  791. },
  792. barWidth: '60%',
  793. itemStyle: {
  794. normal: {
  795. // 定制显示(按顺序)
  796. color: function(params) {
  797. var colorList = ['#58b4ff','#f6bf00','#f3550e','#51c284','#7ebbd8', '#dbdd7c','#ee9992'];
  798. return colorList[params.dataIndex]
  799. }
  800. },
  801. },
  802. data:data.member_count
  803. }
  804. ]
  805. };
  806. if (option && typeof option === "object") {
  807. lineChart.setOption(option, true);
  808. }
  809. }
  810. }
  811. })
  812. }
  813. function load_echat_month_head_sales()
  814. {
  815. var hasLineChart = $("#echat_month_head_sales").length>0;
  816. if(hasLineChart){
  817. var lineChart = echarts.init(document.getElementById("echat_month_head_sales"));
  818. }
  819. window.onresize = function () {
  820. if(hasLineChart) {
  821. lineChart.resize();
  822. }
  823. };
  824. $.ajax({
  825. type: "GET",
  826. url: "{:U('statistics/load_echat_month_head_sales', array('type' => 1))}",
  827. dataType: "json",
  828. success: function (data) {
  829. if(data.code == 0)
  830. {
  831. var le_arr = [];
  832. var data_obj_arr = [];
  833. for( var i in data.list )
  834. {
  835. le_arr.push( data.list[i].head_name );
  836. data_obj_arr.push({value:data.list[i].total, name:data.list[i].head_name });
  837. }
  838. var option = null;
  839. option = {
  840. title : {
  841. text: '销售金额'+data.total,
  842. subtext: data.month,
  843. x:'center'
  844. },
  845. tooltip : {
  846. trigger: 'item',
  847. formatter: "{a} <br/>{b} : {c} ({d}%)"
  848. },
  849. legend: {
  850. orient: 'vertical',
  851. left: 'left',
  852. data: le_arr
  853. },
  854. series : [
  855. {
  856. name: '销售金额',
  857. type: 'pie',
  858. radius : '55%',
  859. center: ['50%', '60%'],
  860. data:data_obj_arr,
  861. itemStyle: {
  862. emphasis: {
  863. shadowBlur: 10,
  864. shadowOffsetX: 0,
  865. shadowColor: 'rgba(0, 0, 0, 0.5)'
  866. }
  867. }
  868. }
  869. ]
  870. };
  871. if (option && typeof option === "object") {
  872. lineChart.setOption(option, true);
  873. }
  874. }
  875. }
  876. })
  877. }
  878. function load_echat_month_goods_sales()
  879. {
  880. var hasLineChart = $("#echat_month_goods_sales").length>0;
  881. if(hasLineChart){
  882. var lineChart = echarts.init(document.getElementById("echat_month_goods_sales"));
  883. }
  884. window.onresize = function () {
  885. if(hasLineChart) {
  886. lineChart.resize();
  887. }
  888. };
  889. $.ajax({
  890. type: "GET",
  891. url: "{:U('statistics/load_echat_month_goods_sales', array('type' => 1))}",
  892. dataType: "json",
  893. success: function (data) {
  894. if(data.code == 0)
  895. {
  896. var le_arr = [];
  897. var data_obj_arr = [];
  898. for( var i in data.list )
  899. {
  900. le_arr.push( data.list[i].name );
  901. data_obj_arr.push({value:data.list[i].total, name:data.list[i].name });
  902. }
  903. var option = null;
  904. option = {
  905. title : {
  906. text: '销售金额'+data.total,
  907. subtext: '销售总数:'+data.total_quantity+' ('+data.month+')',
  908. x:'center'
  909. },
  910. tooltip : {
  911. trigger: 'item',
  912. formatter: "{a} <br/>{b} : {c} ({d}%)"
  913. },
  914. legend: {
  915. orient: 'vertical',
  916. left: 'left',
  917. data: le_arr
  918. },
  919. series : [
  920. {
  921. name: '销售金额',
  922. type: 'pie',
  923. radius : '55%',
  924. center: ['50%', '60%'],
  925. data:data_obj_arr,
  926. itemStyle: {
  927. emphasis: {
  928. shadowBlur: 10,
  929. shadowOffsetX: 0,
  930. shadowColor: 'rgba(0, 0, 0, 0.5)'
  931. }
  932. }
  933. }
  934. ]
  935. };
  936. if (option && typeof option === "object") {
  937. lineChart.setOption(option, true);
  938. }
  939. }
  940. }
  941. })
  942. }
  943. function load_echat_lastmonth_goods_sales()
  944. {
  945. var hasLineChart = $("#echat_lastmonth_goods_sales").length>0;
  946. if(hasLineChart){
  947. var lineChart = echarts.init(document.getElementById("echat_lastmonth_goods_sales"));
  948. }
  949. window.onresize = function () {
  950. if(hasLineChart) {
  951. lineChart.resize();
  952. }
  953. };
  954. $.ajax({
  955. type: "GET",
  956. url: "{:U('statistics/load_echat_month_goods_sales', array('type' => 2))}",
  957. dataType: "json",
  958. success: function (data) {
  959. if(data.code == 0)
  960. {
  961. var le_arr = [];
  962. var data_obj_arr = [];
  963. for( var i in data.list )
  964. {
  965. le_arr.push( data.list[i].name );
  966. data_obj_arr.push({value:data.list[i].total, name:data.list[i].name });
  967. }
  968. var option = null;
  969. option = {
  970. title : {
  971. text: '销售金额'+data.total,
  972. subtext: '销售总数:'+data.total_quantity+' ('+data.month+')',
  973. x:'center'
  974. },
  975. tooltip : {
  976. trigger: 'item',
  977. formatter: "{a} <br/>{b} : {c} ({d}%)"
  978. },
  979. legend: {
  980. orient: 'vertical',
  981. left: 'left',
  982. data: le_arr
  983. },
  984. series : [
  985. {
  986. name: '销售金额',
  987. type: 'pie',
  988. radius : '55%',
  989. center: ['50%', '60%'],
  990. data:data_obj_arr,
  991. itemStyle: {
  992. emphasis: {
  993. shadowBlur: 10,
  994. shadowOffsetX: 0,
  995. shadowColor: 'rgba(0, 0, 0, 0.5)'
  996. }
  997. }
  998. }
  999. ]
  1000. };
  1001. if (option && typeof option === "object") {
  1002. lineChart.setOption(option, true);
  1003. }
  1004. }
  1005. }
  1006. })
  1007. }
  1008. function load_echat_lastmonth_head_sales()
  1009. {
  1010. var hasLineChart = $("#echat_lastmonth_head_sales").length>0;
  1011. if(hasLineChart){
  1012. var lineChart = echarts.init(document.getElementById("echat_lastmonth_head_sales"));
  1013. }
  1014. window.onresize = function () {
  1015. if(hasLineChart) {
  1016. lineChart.resize();
  1017. }
  1018. };
  1019. $.ajax({
  1020. type: "GET",
  1021. url: "{:U('statistics/load_echat_month_head_sales', array('type' => 2))}",
  1022. dataType: "json",
  1023. success: function (data) {
  1024. if(data.code == 0)
  1025. {
  1026. var le_arr = [];
  1027. var data_obj_arr = [];
  1028. for( var i in data.list )
  1029. {
  1030. le_arr.push( data.list[i].head_name );
  1031. data_obj_arr.push({value:data.list[i].total, name:data.list[i].head_name });
  1032. }
  1033. var option = null;
  1034. option = {
  1035. title : {
  1036. text: '销售金额'+data.total,
  1037. subtext: data.month,
  1038. x:'center'
  1039. },
  1040. tooltip : {
  1041. trigger: 'item',
  1042. formatter: "{a} <br/>{b} : {c} ({d}%)"
  1043. },
  1044. legend: {
  1045. orient: 'vertical',
  1046. left: 'left',
  1047. data: le_arr
  1048. },
  1049. series : [
  1050. {
  1051. name: '销售金额',
  1052. type: 'pie',
  1053. radius : '55%',
  1054. center: ['50%', '60%'],
  1055. data:data_obj_arr,
  1056. itemStyle: {
  1057. emphasis: {
  1058. shadowBlur: 10,
  1059. shadowOffsetX: 0,
  1060. shadowColor: 'rgba(0, 0, 0, 0.5)'
  1061. }
  1062. }
  1063. }
  1064. ]
  1065. };
  1066. if (option && typeof option === "object") {
  1067. lineChart.setOption(option, true);
  1068. }
  1069. }
  1070. }
  1071. })
  1072. }
  1073. function loadEchartsLine()
  1074. {
  1075. var hasLineChart = $("#main").length>0;
  1076. if(hasLineChart){
  1077. var lineChart = echarts.init(document.getElementById("main"));
  1078. }
  1079. window.onresize = function () {
  1080. if(hasLineChart) {
  1081. lineChart.resize();
  1082. }
  1083. };
  1084. $.ajax({
  1085. type: "GET",
  1086. url: "<?php echo U('statistics/load_goods_chart'); ?>",
  1087. data:{type:cur_type},
  1088. dataType: "json",
  1089. success: function (json) {
  1090. var option = {
  1091. title: {
  1092. text: ''
  1093. },
  1094. tooltip: {
  1095. trigger: 'axis',
  1096. formatter: function (a) {
  1097. var str = '';
  1098. a.forEach(function (item) {
  1099. str += item.seriesName + ':' + item.value + (item.seriesIndex > 2 ? '%' : '') + '<br/>';
  1100. });
  1101. return str;
  1102. }
  1103. },
  1104. legend: {
  1105. data: []
  1106. },
  1107. grid: {
  1108. left: 50,
  1109. right: 20,
  1110. top: 40,
  1111. bottom: 10,
  1112. containLabel: true
  1113. },
  1114. xAxis: {
  1115. type: 'category',
  1116. axisLabel: {
  1117. rotate: 30
  1118. },
  1119. boundaryGap: false,
  1120. data: []
  1121. },
  1122. yAxis: [
  1123. {
  1124. type: 'value',
  1125. name: '金额',
  1126. }
  1127. ],
  1128. series: [
  1129. {
  1130. areaStyle: { normal: {} },
  1131. },
  1132. ]
  1133. };
  1134. if(hasLineChart) {
  1135. //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]}]}}}};
  1136. var lines = json.data.lines;
  1137. option.xAxis.data = lines.payAmountLine.xAxisData;
  1138. option.series = [];
  1139. option.series.push(buildLine("付款金额", lines.payAmountLine, 0));
  1140. option.series.push(buildLine2("退款金额", lines.payAmountLine, 0));
  1141. lineChart.setOption(option);
  1142. lineChart.resize();
  1143. }
  1144. $("#echarts-line-chart-loading").hide();
  1145. $("#main").show();
  1146. }
  1147. })
  1148. }
  1149. function buildLine2(name, data, yIndex) {
  1150. return {
  1151. name: name,
  1152. type: "line",
  1153. areaStyle: { normal: {} },
  1154. smooth: true,
  1155. data: data.seriesData[1].data,
  1156. yAxisIndex: yIndex
  1157. };
  1158. }
  1159. function buildLine(name, data, yIndex) {
  1160. return {
  1161. name: name,
  1162. type: "line",
  1163. areaStyle: { normal: {} },
  1164. smooth: true,
  1165. data: data.seriesData[0].data,
  1166. yAxisIndex: yIndex
  1167. };
  1168. }
  1169. function load_goods_paihang()
  1170. {
  1171. var s_index = $('#sale li.active').index();
  1172. $.ajax({
  1173. type: "GET",
  1174. url: "<?php echo U('statistics/load_goods_paihang'); ?>",
  1175. data:{type:cur_type,s_index:s_index},
  1176. dataType: "json",
  1177. success: function (data) {
  1178. $('#sale_div .ibox-loading').hide();
  1179. if(data.code ==0 )
  1180. {
  1181. $('#goods_rank_0 tbody').html( data.html );
  1182. }
  1183. }
  1184. })
  1185. }
  1186. function load_order_buy_data()
  1187. {
  1188. var s_index = $('#orderinfo li.active').index();
  1189. $.ajax({
  1190. type: "GET",
  1191. url: "<?php echo U('statistics/order_buy_data'); ?>",
  1192. data:{type:cur_type,s_index:s_index},
  1193. dataType: "json",
  1194. success: function (data) {
  1195. $('#order_info_div .ibox-loading').hide();
  1196. if(data.code ==0 )
  1197. {
  1198. $('.order_count_0').html( data.data.count );
  1199. $('.order_price_0').html( data.data.total );
  1200. $('.order_avg_0').html( data.data.per_money );
  1201. }
  1202. }
  1203. })
  1204. }
  1205. function load_data()
  1206. {
  1207. cur_type = $('#select_type').val();
  1208. $.ajax({
  1209. type: "GET",
  1210. url: "<?php echo U('statistics/index_data'); ?>",
  1211. data:{type:cur_type},
  1212. dataType: "json",
  1213. success: function (data) {
  1214. if(data.code ==0 )
  1215. {
  1216. $('.today_member_count').html( data.data.today_member_count );
  1217. $('.today_pay_order_count').html( data.data.today_pay_order_count );
  1218. $('.today_pay_money').html( '<em>¥</em><span class="counter">'+data.data.today_pay_money +'</span>' );
  1219. $('.total_tixian_money').html( '<em>¥</em><span class="counter">'+data.data.total_tixian_money +'</span>' );
  1220. $('.total_commiss_money').html( '<em>¥</em><span class="counter">'+data.data.total_commiss_money +'</span>' );
  1221. $('.total_order_money').html( '<em>¥</em><span class="counter">'+data.data.total_order_money +'</span>' );
  1222. $('.counter').countUp();
  1223. $('.goods_stock_notice_count').html( data.data.goods_stock_notice_count );
  1224. $('.wait_pay_order_count').html( data.data.wait_pay_order_count );
  1225. $('.wait_order_count').html( data.data.wait_order_count );
  1226. $('.after_sale_order_count').html( data.data.after_sale_order_count );
  1227. $('.wai_comment_order_count').html( data.data.wai_comment_order_count );
  1228. $('.wait_shen_order_comment_count').html( data.data.wait_shen_order_comment_count );
  1229. $('.stock_goods_count').html( data.data.stock_goods_count );
  1230. $('.seven_order_count').html( data.data.seven_order_count );
  1231. $('.seven_pay_money').html(data.data.seven_pay_money);
  1232. $('.seven_refund_money').html(data.data.seven_refund_money);
  1233. $('.community_head_count').html(data.data.community_head_count);
  1234. $('.seven_order_count').html(data.data.seven_order_count);
  1235. $('.member_count').html( data.data.member_count );
  1236. $('.goods_count').html( data.data.goods_count );
  1237. $('.order_count').html( data.data.order_count );
  1238. $('.tixian_count').html( data.data.apply_count );
  1239. if(data.data.wait_order_type == 'pintuan'){
  1240. var url = "<?php echo U('group/orderlist', array('order_status_id' => 1)); ?>";
  1241. $('.wait_order_count').attr('href',url);
  1242. }else if(data.data.wait_order_type == 'integral'){
  1243. var url = "<?php echo U('points/order', array('order_status_id' => 1)); ?>";
  1244. $('.wait_order_count').attr('href',url);
  1245. }
  1246. $('.goods_totals').html( data.data.goods_stock_notice_count );
  1247. }
  1248. }
  1249. })
  1250. load_order_buy_data();
  1251. load_goods_paihang();
  1252. }
  1253. </script>
  1254. <script type="text/javascript">
  1255. $('.counter').countUp();
  1256. </script>
  1257. </body>
  1258. </html>