diff --git a/src/views/ty/index.vue b/src/views/ty/index.vue
index 4237ab8..c675298 100644
--- a/src/views/ty/index.vue
+++ b/src/views/ty/index.vue
@@ -62,11 +62,11 @@
24小时进馆人数
- {{ cgv_1 }}
+ {{ cgdata[0].gval }}
体育场
- {{ cgv_2 }}
+ {{ cgdata[1].gval }}
体育馆
- {{ cgv_3 }}
+ {{ cgdata[2].gval }}
游泳场馆
@@ -96,7 +96,7 @@
- {{ cgn_1 }}
+ {{ cgdata[0].gname }}
@@ -111,7 +111,7 @@
- {{ cgn_2 }}
+ {{ cgdata[0].gname }}
@@ -126,7 +126,7 @@
- {{ cgn_3 }}
+ {{ cgdata[0].gname }}
@@ -176,6 +176,8 @@ export default {
data24h: [],
// 场馆人次占比
groupsData: [],
+ // 场馆信息数组
+ cgdata:[],
// cgp 场馆比例
cgp_1:'',
cgp_2:'',
@@ -247,6 +249,14 @@ export default {
},
methods: {
+ // 画中画开启
+ istygShowfn() {
+ if (this.istygShow === false) {
+ this.istygShow = true
+ } else {
+ this.istygShow = false
+ }
+ },
ty_bar1() {
let that = this;
@@ -886,8 +896,14 @@ export default {
// 场馆人次占比
homeApi.homeBarData({groupsId:idArr}).then(res=>{
// console.log(res, '=场馆人次占比=');
+ console.log(res.data.data.groupsData)
res.data.data.groupsData.forEach(item=>{
that.groupsData.push(item);
+ that.cgdata.push({
+ gname:item.groupName,
+ grate:item.proportion,
+ gval:item.noRepeatInNum
+ })
});
// console.log(that.groupsData, 'that.groupsData')
that.cgn_1 = that.groupsData[0].groupName;