Commit 2ee5579c authored by 王's avatar

微信统计

parent b8684593
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
</template> </template>
<script> <script>
import {getWatchListApi} from "../../service/api"; import {getWechatStatisticListApi} from "../../service/api";
export default { export default {
name: "index", name: "index",
data(){ data(){
...@@ -69,10 +69,10 @@ ...@@ -69,10 +69,10 @@
let json = { let json = {
}; };
if(this.searchFrom.watchTime && this.searchFrom.watchTime.length > 0){ if(this.searchFrom.watchTime && this.searchFrom.watchTime.length > 0){
json.start_at = this.searchFrom.watchTime[0] json.date_start = this.searchFrom.watchTime[0]
json.end_at = this.searchFrom.watchTime[1] json.date_end = this.searchFrom.watchTime[1]
} }
getWatchListApi(json).then((res)=>{ getWechatStatisticListApi(json).then((res)=>{
this.tableHead = res[0] this.tableHead = res[0]
this.tableData = res.slice(1); this.tableData = res.slice(1);
}) })
......
...@@ -620,3 +620,8 @@ const bannerChangeStatusUrl = `/api/admin/banner/status/`; ...@@ -620,3 +620,8 @@ const bannerChangeStatusUrl = `/api/admin/banner/status/`;
export const bannerChangeStatusApi = function (id,json) { export const bannerChangeStatusApi = function (id,json) {
return Vue.prototype.$put(`${bannerChangeStatusUrl}${id}`,json) return Vue.prototype.$put(`${bannerChangeStatusUrl}${id}`,json)
}; };
// 微信用户数据分析
const getWechatStatisticListUrl = '/api/admin/wechat/statistics';
export const getWechatStatisticListApi = function (json) {
return Vue.prototype.$fetch(getWechatStatisticListUrl,json)
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment