Commit ab09f500 by huyue

去掉学习之星

1 parent 65e53de6
......@@ -86,7 +86,7 @@ export default {
currentIndex: 0,
levelIndex: 100,
groupList: [
{ title: '学习之星', style: 'background: #FFFAED;', medalType: 1, logo: require('@/assets/images/point/study_star.png'), logo_grey: require('@/assets/images/point/study_grey.png'), content: '月度学习类积分排名前10名' },
// { title: '学习之星', style: 'background: #FFFAED;', medalType: 1, logo: require('@/assets/images/point/study_star.png'), logo_grey: require('@/assets/images/point/study_grey.png'), content: '月度学习类积分排名前10名' },
{ title: '全勤之星', style: 'background: #FFFAED;', medalType: 2, logo: require('@/assets/images/point/time_star.png'), logo_grey: require('@/assets/images/point/time_grey.png'), content: '当月全勤准时打卡,不包含请假特批' },
{ title: '平板接待精英', style: 'background: #FFFAED;', medalType: 3, logo: require('@/assets/images/point/elite_star.png'), logo_grey: require('@/assets/images/point/elite_grey.png'), content: '平板接待月度无扣分记录' }
],
......
......@@ -70,10 +70,10 @@ export default {
style: 'background: #fef2cb99;',
isCrown: true
},
{
src: require('@/assets/images/point/study_bg.png'),
style: 'background-image: linear-gradient(270deg, #c2d8fc59 0%, #d1e9ff59 100%);'
},
// {
// src: require('@/assets/images/point/study_bg.png'),
// style: 'background-image: linear-gradient(270deg, #c2d8fc59 0%, #d1e9ff59 100%);'
// },
{
src: require('@/assets/images/point/diligent_bg.png'),
style: 'background-image: linear-gradient(270deg, #c2d8fc59 0%, #d1e9ff59 100%);'
......@@ -82,14 +82,16 @@ export default {
src: require('@/assets/images/point/ipad_bg.png'),
style: 'background-image: linear-gradient(270deg, #c2d8fc59 0%, #d1e9ff59 100%);'
}
]
],
}
},
mounted() {},
methods: {
getDetail(countDate) {
for (let i = 0; i < 3; i++) {
this.getList(countDate, i + 1)
if(i != 0) {
this.getList(countDate, i + 1)
}
}
this.getList(countDate)
},
......@@ -97,11 +99,17 @@ export default {
this.getDetail(countDate)
},
getList(countDate, rankingType) {
console.log(rankingType);
uni.$api.pointApi.pointMonthRanking({ countDate, rankingType }).then(res => {
const i = rankingType ? rankingType : 0
const userInfo = uni.$storage.get('userInfo')
let myInfo = res.find(i => i.staffPhone == userInfo.phone)
this.$set(this.pointList, i, { ...this.pointList[i], list: res, ...myInfo })
if (rankingType) {
this.$set(this.pointList, i-1, { ...this.pointList[i-1], list: res, ...myInfo })
} else {
this.$set(this.pointList, i, { ...this.pointList[i], list: res, ...myInfo })
}
console.log(this.pointList);
})
}
}
......
......@@ -156,7 +156,8 @@ export default {
logo: require('@/assets/images/point/masonry.png'),
}
],
starList:[ { title: '学习之星',medalType: 1, logo: require('@/assets/images/point/study_star.png'), logo_grey: require('@/assets/images/point/study_grey.png'), },
starList:[
// { title: '学习之星',medalType: 1, logo: require('@/assets/images/point/study_star.png'), logo_grey: require('@/assets/images/point/study_grey.png'), },
{ title: '全勤之星',medalType: 2, logo: require('@/assets/images/point/time_star.png'), logo_grey: require('@/assets/images/point/time_grey.png'), },
{ title: '平板接待精英',medalType: 4, logo: require('@/assets/images/point/elite_star.png'), logo_grey: require('@/assets/images/point/elite_grey.png'), }],
myStar: [],
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!