main.php 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449
  1. <!--{extend name="public/container"}-->
  2. <!--{block name="head_top"}-->
  3. <!--<!-- 全局js -->-->
  4. <!--<script src="{__PLUG_PATH}echarts/echarts.common.min.js"></script>-->
  5. <!--<script src="{__PLUG_PATH}echarts/theme/macarons.js"></script>-->
  6. <!--<script src="{__PLUG_PATH}echarts/theme/westeros.js"></script>-->
  7. <!--{/block}-->
  8. <!--{block name="content"}-->
  9. <!-- <div class="row">-->
  10. <!-- <div class="col-sm-3 ui-sortable">-->
  11. <!-- <div class="ibox float-e-margins">-->
  12. <!-- <div class="ibox-title">-->
  13. <!-- <span class="label label-danger pull-right">急</span>-->
  14. <!-- <h5>订单</h5>-->
  15. <!-- </div>-->
  16. <!-- <div class="ibox-content">-->
  17. <!-- <h1 class="no-margins">{$topData.orderDeliveryNum}</h1>-->
  18. <!-- <small><a href="javascript:;" class="opFrames" data-name="订单管理" data-href="{:Url('order.store_order/index',['status'=>1])}">待发货</a> </small>-->
  19. <!-- </div>-->
  20. <!-- </div>-->
  21. <!-- </div>-->
  22. <!-- <div class="col-sm-3 ui-sortable">-->
  23. <!-- <div class="ibox float-e-margins">-->
  24. <!-- <div class="ibox-title">-->
  25. <!-- <span class="label label-info pull-right">待</span>-->
  26. <!-- <h5>订单</h5>-->
  27. <!-- </div>-->
  28. <!-- <div class="ibox-content">-->
  29. <!-- <h1 class="no-margins">{$topData.orderRefundNum}</h1>-->
  30. <!-- <small><a href="javascript:;" class="opFrames" data-name="订单管理" data-href="{:Url('order.store_order/index',['status'=>-1])}">退换货</a></small>-->
  31. <!-- </div>-->
  32. <!-- </div>-->
  33. <!-- </div>-->
  34. <!-- <div class="col-sm-3 ui-sortable" >-->
  35. <!-- <div class="ibox float-e-margins">-->
  36. <!-- <div class="ibox-title">-->
  37. <!-- <span class="label label-danger pull-right">急</span>-->
  38. <!-- <h5>商品</h5>-->
  39. <!-- </div>-->
  40. <!-- <div class="ibox-content">-->
  41. <!-- <h1 class="no-margins">{$topData.stockProduct}</h1>-->
  42. <!-- <small><a href="javascript:;" class="opFrames" data-name="商品管理" data-href="{:Url('store.store_product/index',array('type'=>5))}">库存预警</a></small>-->
  43. <!-- </div>-->
  44. <!-- </div>-->
  45. <!-- </div>-->
  46. <!-- <div class="col-sm-3 ui-sortable">-->
  47. <!-- <div class="ibox float-e-margins">-->
  48. <!-- <div class="ibox-title">-->
  49. <!-- <span class="label label-danger pull-right">待</span>-->
  50. <!-- <h5>待提现</h5>-->
  51. <!-- </div>-->
  52. <!-- <div class="ibox-content">-->
  53. <!-- <h1 class="no-margins">{$topData.treatedExtract}</h1>-->
  54. <!-- <small><a href="javascript:;" class="opFrames" data-name="提现盛情" data-href="{:Url('finance.user_extract/index')}">待提现</a></small>-->
  55. <!-- </div>-->
  56. <!-- </div>-->
  57. <!-- </div>-->
  58. <!-- <div class="col-sm-3 ui-sortable">-->
  59. <!-- <div class="ibox float-e-margins">-->
  60. <!-- <div class="ibox-title">-->
  61. <!-- <span class="label label-info pull-right">昨</span>-->
  62. <!-- <h5>订单</h5>-->
  63. <!-- </div>-->
  64. <!-- <div class="ibox-content">-->
  65. <!-- <h1 class="no-margins">{$first_line.d_num.data}</h1>-->
  66. <!-- <div class="stat-percent font-bold text-navy">-->
  67. <!-- {$first_line.d_num.percent}%-->
  68. <!-- {if condition='$first_line.d_num.is_plus egt 0'}<i class="fa {if condition='$first_line.d_num.is_plus eq 1'}fa-level-up{else /}fa-level-down{/if}"></i>{/if}-->
  69. <!-- </div>-->
  70. <!-- <small><a href="javascript:;" class="opFrames" data-name="订单管理" data-href="{:Url('order.store_order/index')}?data=yesterday">昨日支付订单数</a></small>-->
  71. <!-- </div>-->
  72. <!-- </div>-->
  73. <!-- </div>-->
  74. <!-- <div class="col-sm-3 ui-sortable">-->
  75. <!-- <div class="ibox float-e-margins">-->
  76. <!-- <div class="ibox-title">-->
  77. <!-- <span class="label label-info pull-right">昨</span>-->
  78. <!-- <h5>交易</h5>-->
  79. <!-- </div>-->
  80. <!-- <div class="ibox-content">-->
  81. <!-- <h1 class="no-margins">{$first_line.d_price.data}</h1>-->
  82. <!-- <div class="stat-percent font-bold text-info">-->
  83. <!-- {$first_line.d_price.percent}%-->
  84. <!-- {if condition='$first_line.d_price.is_plus egt 0'}<i class="fa {if condition='$first_line.d_price.is_plus eq 1'}fa-level-up{else /}fa-level-down{/if}"></i>{/if}-->
  85. <!-- </div>-->
  86. <!-- <small><a href="javascript:;" class="opFrames" data-name="订单管理" data-href="{:Url('order.store_order/index')}?data=yesterday">昨日交易额</a></small>-->
  87. <!-- </div>-->
  88. <!-- </div>-->
  89. <!-- </div>-->
  90. <!-- <div class="col-sm-3 ui-sortable">-->
  91. <!-- <div class="ibox float-e-margins">-->
  92. <!-- <div class="ibox-title">-->
  93. <!-- <span class="label label-info pull-right">今</span>-->
  94. <!-- <h5>粉丝</h5>-->
  95. <!-- </div>-->
  96. <!-- <div class="ibox-content">-->
  97. <!-- <h1 class="no-margins">{$first_line.day.data}</h1>-->
  98. <!-- <div class="stat-percent font-bold text-info">-->
  99. <!-- {$first_line.day.percent}%-->
  100. <!-- {if condition='$first_line.day.is_plus egt 0'}<i class="fa {if condition='$first_line.day.is_plus eq 1'}fa-level-up{else /}fa-level-down{/if}"></i>{/if}-->
  101. <!-- </div>-->
  102. <!-- <small><a href="javascript:;" class="opFrames" data-name="会员管理" data-href="{:Url('user.user/index')}">今日新增粉丝</a></small>-->
  103. <!-- </div>-->
  104. <!-- </div>-->
  105. <!-- </div>-->
  106. <!-- <div class="col-sm-3 ui-sortable">-->
  107. <!-- <div class="ibox float-e-margins">-->
  108. <!-- <div class="ibox-title">-->
  109. <!-- <span class="label label-info pull-right">月</span>-->
  110. <!-- <h5>粉丝</h5>-->
  111. <!-- </div>-->
  112. <!-- <div class="ibox-content">-->
  113. <!-- <h1 class="no-margins">{$first_line.month.data}</h1>-->
  114. <!-- <div class="stat-percent font-bold text-info">-->
  115. <!-- {$first_line.month.percent}%-->
  116. <!-- {if condition='$first_line.month.is_plus egt 0'}<i class="fa {if condition='$first_line.month.is_plus eq 1'}fa-level-up{else /}fa-level-down{/if}"></i>{/if}-->
  117. <!-- </div>-->
  118. <!-- <small><a href="javascript:;" class="opFrames" data-name="会员管理" data-href="{:Url('user.user/index')}">本月新增粉丝</a></small>-->
  119. <!-- </div>-->
  120. <!-- </div>-->
  121. <!-- </div>-->
  122. <!---->
  123. <!-- </div>-->
  124. <!--<div id="app">-->
  125. <!-- <div class="row">-->
  126. <!-- <div class="col-lg-12">-->
  127. <!-- <div class="ibox float-e-margins">-->
  128. <!-- <div class="ibox-title">-->
  129. <!-- <h5>订单</h5>-->
  130. <!-- <div class="pull-right">-->
  131. <!-- <div class="btn-group">-->
  132. <!-- <button type="button" class="btn btn-xs btn-white" :class="{'active': active == 'thirtyday'}" v-on:click="getlist('thirtyday')">30天</button>-->
  133. <!-- <button type="button" class="btn btn-xs btn-white" :class="{'active': active == 'week'}" v-on:click="getlist('week')">周</button>-->
  134. <!-- <button type="button" class="btn btn-xs btn-white" :class="{'active': active == 'month'}" v-on:click="getlist('month')">月</button>-->
  135. <!-- <button type="button" class="btn btn-xs btn-white" :class="{'active': active == 'year'}" v-on:click="getlist('year')">年</button>-->
  136. <!-- </div>-->
  137. <!-- </div>-->
  138. <!-- </div>-->
  139. <!-- <div class="ibox-content">-->
  140. <!-- <div class="row">-->
  141. <!-- <div class="col-lg-9">-->
  142. <!-- <div class="flot-chart-content echarts" ref="order_echart" id="flot-dashboard-chart1"></div>-->
  143. <!-- </div>-->
  144. <!-- <div class="col-lg-3">-->
  145. <!-- <ul class="stat-list">-->
  146. <!-- <li>-->
  147. <!-- <h2 class="no-margins ">{{pre_cycleprice}}</h2>-->
  148. <!-- <small>{{precyclename}}销售额</small>-->
  149. <!-- </li>-->
  150. <!-- <li>-->
  151. <!-- <h2 class="no-margins ">{{cycleprice}}</h2>-->
  152. <!-- <small>{{cyclename}}销售额</small>-->
  153. <!-- <div class="stat-percent text-navy" v-if='cycleprice_is_plus ===1'>-->
  154. <!-- {{cycleprice_percent}}%-->
  155. <!-- <i class="fa fa-level-up"></i>-->
  156. <!-- </div>-->
  157. <!-- <div class="stat-percent text-danger" v-else-if='cycleprice_is_plus === -1'>-->
  158. <!-- {{cycleprice_percent}}%-->
  159. <!-- <i class="fa fa-level-down"></i>-->
  160. <!-- </div>-->
  161. <!-- <div class="stat-percent" v-else>-->
  162. <!-- {{cycleprice_percent}}%-->
  163. <!-- </div>-->
  164. <!-- <div class="progress progress-mini">-->
  165. <!-- <div :style="{width:cycleprice_percent+'%'}" class="progress-bar box"></div>-->
  166. <!-- </div>-->
  167. <!-- </li>-->
  168. <!-- <li>-->
  169. <!-- <h2 class="no-margins ">{{pre_cyclecount}}</h2>-->
  170. <!-- <small>{{precyclename}}订单总数</small>-->
  171. <!-- </li>-->
  172. <!-- <li>-->
  173. <!-- <h2 class="no-margins">{{cyclecount}}</h2>-->
  174. <!-- <small>{{cyclename}}订单总数</small>-->
  175. <!-- <div class="stat-percent text-navy" v-if='cyclecount_is_plus ===1'>-->
  176. <!-- {{cyclecount_percent}}%-->
  177. <!-- <i class="fa fa-level-up"></i>-->
  178. <!-- </div>-->
  179. <!-- <div class="stat-percent text-danger" v-else-if='cyclecount_is_plus === -1'>-->
  180. <!-- {{cyclecount_percent}}%-->
  181. <!-- <i class="fa fa-level-down"></i>-->
  182. <!-- </div>-->
  183. <!-- <div class="stat-percent " v-else>-->
  184. <!-- {{cyclecount_percent}}%-->
  185. <!-- </div>-->
  186. <!-- <div class="progress progress-mini">-->
  187. <!-- <div :style="{width:cyclecount_percent+'%'}" class="progress-bar box"></div>-->
  188. <!-- </div>-->
  189. <!-- </li>-->
  190. <!---->
  191. <!---->
  192. <!-- </ul>-->
  193. <!-- </div>-->
  194. <!-- </div>-->
  195. <!-- </div>-->
  196. <!-- </div>-->
  197. <!-- </div>-->
  198. <!-- </div>-->
  199. <!-- <div class="row" >-->
  200. <!-- <div class="col-lg-12">-->
  201. <!-- <div class="ibox float-e-margins">-->
  202. <!-- <div class="ibox-title">-->
  203. <!-- <h5>用户</h5>-->
  204. <!-- </div>-->
  205. <!-- <div class="ibox-content">-->
  206. <!-- <div class="row">-->
  207. <!-- <div class="col-lg-12">-->
  208. <!-- <div class="flot-chart">-->
  209. <!-- <div class="flot-chart-content" ref="user_echart" id="flot-dashboard-chart2"></div>-->
  210. <!-- </div>-->
  211. <!-- </div>-->
  212. <!-- </div>-->
  213. <!-- </div>-->
  214. <!-- </div>-->
  215. <!-- </div>-->
  216. <!-- </div>-->
  217. <!--</div>-->
  218. <!--{/block}-->
  219. <!--{block name="script"}-->
  220. <!--<style scoped>-->
  221. <!-- .box{width:0px;}-->
  222. <!--</style>-->
  223. <!--<script>-->
  224. <!-- require(['vue','axios','layer'],function(Vue,axios,layer){-->
  225. <!-- new Vue({-->
  226. <!-- el:"#app",-->
  227. <!-- data:{-->
  228. <!-- option:{},-->
  229. <!-- myChart:{},-->
  230. <!-- active:'thirtyday',-->
  231. <!-- cyclename:'最近30天',-->
  232. <!-- precyclename:'上个30天',-->
  233. <!-- cyclecount:0,-->
  234. <!-- cycleprice:0,-->
  235. <!-- cyclecount_percent:0,-->
  236. <!-- cycleprice_percent:0,-->
  237. <!-- cyclecount_is_plus:0,-->
  238. <!-- cycleprice_is_plus:0,-->
  239. <!-- pre_cyclecount:0,-->
  240. <!-- pre_cycleprice:0-->
  241. <!-- },-->
  242. <!-- methods:{-->
  243. <!-- info:function () {-->
  244. <!-- var that=this;-->
  245. <!-- axios.get("{:Url('userchart')}").then((res)=>{-->
  246. <!-- that.myChart.user_echart.setOption(that.userchartsetoption(res.data.data));-->
  247. <!-- });-->
  248. <!-- },-->
  249. <!-- getlist:function (e) {-->
  250. <!-- var that=this;-->
  251. <!-- var cycle = e!=null ? e :'thirtyday';-->
  252. <!-- axios.get("{:Url('orderchart')}?cycle="+cycle).then((res)=>{-->
  253. <!-- that.myChart.order_echart.clear();-->
  254. <!-- that.myChart.order_echart.setOption(that.orderchartsetoption(res.data.data));-->
  255. <!-- that.active = cycle;-->
  256. <!-- switch (cycle){-->
  257. <!-- case 'thirtyday':-->
  258. <!-- that.cyclename = '最近30天';-->
  259. <!-- that.precyclename = '上个30天';-->
  260. <!-- break;-->
  261. <!-- case 'week':-->
  262. <!-- that.precyclename = '上周';-->
  263. <!-- that.cyclename = '本周';-->
  264. <!-- break;-->
  265. <!-- case 'month':-->
  266. <!-- that.precyclename = '上月';-->
  267. <!-- that.cyclename = '本月';-->
  268. <!-- break;-->
  269. <!-- case 'year':-->
  270. <!-- that.cyclename = '去年';-->
  271. <!-- that.precyclename = '今年';-->
  272. <!-- break;-->
  273. <!-- default:-->
  274. <!-- break;-->
  275. <!-- }-->
  276. <!-- var data=res.data.data;-->
  277. <!-- if(data) {-->
  278. <!-- that.cyclecount = data.cycle.count.data;-->
  279. <!-- that.cyclecount_percent = data.cycle.count.percent;-->
  280. <!-- that.cyclecount_is_plus = data.cycle.count.is_plus;-->
  281. <!-- that.cycleprice = data.cycle.price.data;-->
  282. <!-- that.cycleprice_percent = data.cycle.price.percent;-->
  283. <!-- that.cycleprice_is_plus = data.cycle.price.is_plus;-->
  284. <!-- that.pre_cyclecount = data.pre_cycle.count.data;-->
  285. <!-- that.pre_cycleprice = data.pre_cycle.price.data;-->
  286. <!-- }-->
  287. <!-- });-->
  288. <!-- },-->
  289. <!-- orderchartsetoption:function(data){-->
  290. <!-- data = data == undefined ? {} : data;-->
  291. <!-- this.option = {-->
  292. <!-- tooltip: {-->
  293. <!-- trigger: 'axis',-->
  294. <!-- axisPointer: {-->
  295. <!-- type: 'cross',-->
  296. <!-- crossStyle: {-->
  297. <!-- color: '#999'-->
  298. <!-- }-->
  299. <!-- }-->
  300. <!-- },-->
  301. <!-- toolbox: {-->
  302. <!-- feature: {-->
  303. <!-- dataView: {show: true, readOnly: false},-->
  304. <!-- magicType: {show: true, type: ['line', 'bar']},-->
  305. <!-- restore: {show: false},-->
  306. <!-- saveAsImage: {show: true}-->
  307. <!-- }-->
  308. <!-- },-->
  309. <!-- legend: {-->
  310. <!-- data: data.legend || []-->
  311. <!-- },-->
  312. <!-- grid: {-->
  313. <!-- x: 70,-->
  314. <!-- x2: 50,-->
  315. <!-- y: 60,-->
  316. <!-- y2: 50-->
  317. <!-- },-->
  318. <!-- xAxis: [-->
  319. <!-- {-->
  320. <!-- type: 'category',-->
  321. <!-- data: data.xAxis,-->
  322. <!-- axisPointer: {-->
  323. <!-- type: 'shadow'-->
  324. <!-- },-->
  325. <!-- axisLabel:{-->
  326. <!-- interval: 0,-->
  327. <!-- rotate:40-->
  328. <!-- }-->
  329. <!---->
  330. <!---->
  331. <!-- }-->
  332. <!-- ],-->
  333. <!-- yAxis:[{type : 'value'}],-->
  334. <!--// yAxis: [-->
  335. <!--// {-->
  336. <!--// type: 'value',-->
  337. <!--// name: '',-->
  338. <!--// min: 0,-->
  339. <!--// max: data.yAxis.maxprice,-->
  340. <!--//// interval: 0,-->
  341. <!--// axisLabel: {-->
  342. <!--// formatter: '{value} 元'-->
  343. <!--// }-->
  344. <!--// },-->
  345. <!--// {-->
  346. <!--// type: 'value',-->
  347. <!--// name: '',-->
  348. <!--// min: 0,-->
  349. <!--// max: data.yAxis.maxnum,-->
  350. <!--// interval: 5,-->
  351. <!--// axisLabel: {-->
  352. <!--// formatter: '{value} 个'-->
  353. <!--// }-->
  354. <!--// }-->
  355. <!--// ],-->
  356. <!-- series: data.series-->
  357. <!-- };-->
  358. <!-- return this.option;-->
  359. <!-- },-->
  360. <!-- userchartsetoption:function(data){-->
  361. <!-- this.option = {-->
  362. <!-- tooltip: {-->
  363. <!-- trigger: 'axis',-->
  364. <!-- axisPointer: {-->
  365. <!-- type: 'cross',-->
  366. <!-- crossStyle: {-->
  367. <!-- color: '#999'-->
  368. <!-- }-->
  369. <!-- }-->
  370. <!-- },-->
  371. <!-- toolbox: {-->
  372. <!-- feature: {-->
  373. <!-- dataView: {show: false, readOnly: false},-->
  374. <!-- magicType: {show: true, type: ['line', 'bar']},-->
  375. <!-- restore: {show: false},-->
  376. <!-- saveAsImage: {show: false}-->
  377. <!-- }-->
  378. <!-- },-->
  379. <!-- legend: {-->
  380. <!-- data:data.legend-->
  381. <!-- },-->
  382. <!-- grid: {-->
  383. <!-- x: 70,-->
  384. <!-- x2: 50,-->
  385. <!-- y: 60,-->
  386. <!-- y2: 50-->
  387. <!-- },-->
  388. <!-- xAxis: [-->
  389. <!-- {-->
  390. <!-- type: 'category',-->
  391. <!-- data: data.xAxis,-->
  392. <!-- axisPointer: {-->
  393. <!-- type: 'shadow'-->
  394. <!-- }-->
  395. <!-- }-->
  396. <!-- ],-->
  397. <!-- yAxis: [-->
  398. <!-- {-->
  399. <!-- type: 'value',-->
  400. <!-- name: '人数',-->
  401. <!-- min: 0,-->
  402. <!-- max: data.yAxis.maxnum,-->
  403. <!-- interval: 5,-->
  404. <!-- axisLabel: {-->
  405. <!-- formatter: '{value} 人'-->
  406. <!-- }-->
  407. <!-- }-->
  408. <!-- ],-->
  409. <!--// series: data.series-->
  410. <!-- series : [ {-->
  411. <!-- name : '人数',-->
  412. <!-- type : 'bar',-->
  413. <!-- barWidth : '50%',-->
  414. <!-- itemStyle: {-->
  415. <!-- normal: {-->
  416. <!-- label: {-->
  417. <!-- show: true, //开启显示-->
  418. <!-- position: 'top', //在上方显示-->
  419. <!-- textStyle: { //数值样式-->
  420. <!-- color: '#666',-->
  421. <!-- fontSize: 12-->
  422. <!-- }-->
  423. <!-- }-->
  424. <!-- }-->
  425. <!-- },-->
  426. <!-- data : data.series-->
  427. <!-- } ]-->
  428. <!---->
  429. <!-- };-->
  430. <!-- return this.option;-->
  431. <!-- },-->
  432. <!-- setChart:function(name,myChartname){-->
  433. <!-- this.myChart[myChartname] = echarts.init(name,'macarons');//初始化echart-->
  434. <!-- }-->
  435. <!-- },-->
  436. <!-- mounted:function () {-->
  437. <!-- const self = this;-->
  438. <!-- this.setChart(self.$refs.order_echart,'order_echart');//订单图表-->
  439. <!-- this.setChart(self.$refs.user_echart,'user_echart');//用户图表-->
  440. <!-- this.info();-->
  441. <!-- this.getlist();-->
  442. <!-- $('.opFrames').on('click',function () {-->
  443. <!-- parent.addframes($(this).data('href'),'',$(this).data('name'));-->
  444. <!-- });-->
  445. <!-- }-->
  446. <!-- });-->
  447. <!-- });-->
  448. <!--</script>-->
  449. <!--{/block}-->