gitlink首页style

This commit is contained in:
caishi 2021-11-26 10:15:53 +08:00
parent 633dee9655
commit 9299a1667e
3 changed files with 6 additions and 3 deletions

View File

@ -25,7 +25,7 @@ if (isDev) {
} }
debugType = window.location.search.indexOf('debug=t') !== -1 ? 'teacher' : debugType = window.location.search.indexOf('debug=t') !== -1 ? 'teacher' :
window.location.search.indexOf('debug=s') !== -1 ? 'student' : window.location.search.indexOf('debug=s') !== -1 ? 'student' :
window.location.search.indexOf('debug=a') !== -1 ? 'admin' : parsed.debug || 'admin' window.location.search.indexOf('debug=a') !== -1 ? 'admin' : parsed.debug || 'student'
} }
window._debugType = debugType; window._debugType = debugType;
export function initAxiosInterceptors(props) { export function initAxiosInterceptors(props) {

View File

@ -310,7 +310,6 @@
margin:0px auto; margin:0px auto;
.left{ .left{
width: 850px; width: 850px;
box-shadow: 0px 0px 4px 5px rgba(0, 0, 0, 0.02);
display: flex; display: flex;
.leftTypes{ .leftTypes{
width: 220px; width: 220px;
@ -343,6 +342,7 @@
} }
.leftLists{ .leftLists{
flex:1; flex:1;
box-shadow: 0px 0px 4px 5px rgba(0, 0, 0, 0.02);
.leftTitles{ .leftTitles{
height: 60px; height: 60px;
display: flex; display: flex;

View File

@ -35,9 +35,11 @@ function Calendar({ userLogin , time , chooseTime }) {
const url = `/users/${userLogin}/headmaps.json`; const url = `/users/${userLogin}/headmaps.json`;
Axios.get(url).then(result=>{ Axios.get(url).then(result=>{
if(result && result.data){ if(result && result.data){
let m = result.data.headmaps; // result.data.headmaps
let m = [];
m.sort(compare('contributions')); m.sort(compare('contributions'));
let max = m[m.length -1].contributions; let max = m[m.length -1].contributions;
Init(m,max); Init(m,max);
} }
}).catch(error=>{}) }).catch(error=>{})
@ -52,6 +54,7 @@ function Calendar({ userLogin , time , chooseTime }) {
} }
function getVirtulData(data) { function getVirtulData(data) {
debugger;
var date = +echarts.number.parseDate(baginT); var date = +echarts.number.parseDate(baginT);
var end = +echarts.number.parseDate(endT); var end = +echarts.number.parseDate(endT);
var dayTime = 3600 * 24 * 1000; var dayTime = 3600 * 24 * 1000;