首页基本统计数据
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>/admin/home/statistics</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>GET </li>
</ul>
<p><strong>参数:</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">type</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">int</td>
<td>1 今天 2 本周 3 本月</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code> {
"code": 0,
"msg": "返回成功",
"time": 1595997699,
"data": {
"visit": {//访问量
"current_cycle": 1,
"last_cycle": 2
},
"user": {//用户量
"current_cycle": 1,
"last_cycle": 91
},
"comment": {//评论数
"current_cycle": 0,
"last_cycle": 72
},
"goods": {//商品数
"current_cycle": 2,
"last_cycle": 72
},
"submit_price": {//提交金额
"current_cycle": 185,
"last_cycle": 112.8
},
"success_price": {//成功金额
"current_cycle": 147,
"last_cycle": 65.799999999999997
},
"refund_price": {//退款金额
"current_cycle": 108,
"last_cycle": 44
},
"seller_income": {//分成金额
"current_cycle": 39,
"last_cycle": 15.800000000000001
},
"order_transform": {//订单转化
"current_cycle": "7/10",
"last_cycle": "70.00"
},
"card": {//卖卡数
"current_cycle": 3,
"last_cycle": 8
}
}
}
current_cycle 当前周期的数据
last_cycle 上个周期的数据 或总数据
</code></pre>