Browse Source

替换文化获取接口

lite
453530270@qq.com 3 years ago
parent
commit
c855b18d7f
  1. 19
      src/api/home.js
  2. 12
      src/views/cultrue/index.vue

19
src/api/home.js

@ -132,4 +132,23 @@ export function getAllfFlow(params) {
method: 'get', method: 'get',
params, params,
}) })
}
//文化板块
//24小时服务数据
export function wh24hdata(params){
return request({
url: '/library.pass/getLibraryHours24List',
method: 'get',
params,
})
}
// 文化板块今日数据
export function whDaydata(params){
return request({
url: '/library.pass/getLibraryGroupHoursList',
method: 'get',
params,
})
} }

12
src/views/cultrue/index.vue

@ -886,14 +886,11 @@ export default {
idArr += "|"+item.groupId; idArr += "|"+item.groupId;
} }
}) })
homeApi.getAllfFlow({groupsId:"510"}).then(res=>{ // 24
// console.log(res, '====='); homeApi.wh24hdata().then(res=>{
that.data24h = res.data.data.dvalue; that.data24h = res.data.data.dvalue;
that.data24hX = res.data.data.dkeys; that.data24hX = res.data.data.dkeys;
})
// ZONGRENSH
});
}); });
}, },
// 线 // 线
@ -909,7 +906,7 @@ export default {
// idArr = idArr.slice(1) // idArr = idArr.slice(1)
// }) // })
homeApi.allGcgNumDatas({groupsId:"510"}).then(res=>{ homeApi.whDaydata().then(res=>{
console.log( 'toDayGroupsEnterNum',res); console.log( 'toDayGroupsEnterNum',res);
const tmpdata = res.data.data; const tmpdata = res.data.data;
tmpdata.forEach((item) => { tmpdata.forEach((item) => {
@ -934,6 +931,7 @@ export default {
that.rsqsDataAll.push(rsqsData) that.rsqsDataAll.push(rsqsData)
}) })
}); });
}); });
}, },
}, },

Loading…
Cancel
Save