Commit ab09f500 by huyue

去掉学习之星

1 parent 65e53de6
...@@ -86,7 +86,7 @@ export default { ...@@ -86,7 +86,7 @@ export default {
currentIndex: 0, currentIndex: 0,
levelIndex: 100, levelIndex: 100,
groupList: [ 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: 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: '平板接待月度无扣分记录' } { 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 { ...@@ -70,10 +70,10 @@ export default {
style: 'background: #fef2cb99;', style: 'background: #fef2cb99;',
isCrown: true isCrown: true
}, },
{ // {
src: require('@/assets/images/point/study_bg.png'), // src: require('@/assets/images/point/study_bg.png'),
style: 'background-image: linear-gradient(270deg, #c2d8fc59 0%, #d1e9ff59 100%);' // style: 'background-image: linear-gradient(270deg, #c2d8fc59 0%, #d1e9ff59 100%);'
}, // },
{ {
src: require('@/assets/images/point/diligent_bg.png'), src: require('@/assets/images/point/diligent_bg.png'),
style: 'background-image: linear-gradient(270deg, #c2d8fc59 0%, #d1e9ff59 100%);' style: 'background-image: linear-gradient(270deg, #c2d8fc59 0%, #d1e9ff59 100%);'
...@@ -82,26 +82,34 @@ export default { ...@@ -82,26 +82,34 @@ export default {
src: require('@/assets/images/point/ipad_bg.png'), src: require('@/assets/images/point/ipad_bg.png'),
style: 'background-image: linear-gradient(270deg, #c2d8fc59 0%, #d1e9ff59 100%);' style: 'background-image: linear-gradient(270deg, #c2d8fc59 0%, #d1e9ff59 100%);'
} }
] ],
} }
}, },
mounted() {}, mounted() {},
methods: { methods: {
getDetail(countDate) { getDetail(countDate) {
for (let i = 0; i < 3; i++) { for (let i = 0; i < 3; i++) {
if(i != 0) {
this.getList(countDate, i + 1) this.getList(countDate, i + 1)
} }
}
this.getList(countDate) this.getList(countDate)
}, },
updateDetail(countDate) { updateDetail(countDate) {
this.getDetail(countDate) this.getDetail(countDate)
}, },
getList(countDate, rankingType) { getList(countDate, rankingType) {
console.log(rankingType);
uni.$api.pointApi.pointMonthRanking({ countDate, rankingType }).then(res => { uni.$api.pointApi.pointMonthRanking({ countDate, rankingType }).then(res => {
const i = rankingType ? rankingType : 0 const i = rankingType ? rankingType : 0
const userInfo = uni.$storage.get('userInfo') const userInfo = uni.$storage.get('userInfo')
let myInfo = res.find(i => i.staffPhone == userInfo.phone) let myInfo = res.find(i => i.staffPhone == userInfo.phone)
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 }) this.$set(this.pointList, i, { ...this.pointList[i], list: res, ...myInfo })
}
console.log(this.pointList);
}) })
} }
} }
......
...@@ -156,7 +156,8 @@ export default { ...@@ -156,7 +156,8 @@ export default {
logo: require('@/assets/images/point/masonry.png'), 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: 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'), }], { title: '平板接待精英',medalType: 4, logo: require('@/assets/images/point/elite_star.png'), logo_grey: require('@/assets/images/point/elite_grey.png'), }],
myStar: [], myStar: [],
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!