|
@@ -6,7 +6,7 @@
|
|
<div class="top-left">
|
|
<div class="top-left">
|
|
<div class="title1">{{ pageType == 1 ? "运动风云榜" : pageType == 2 ? currentClass.name : "" }} · {{
|
|
<div class="title1">{{ pageType == 1 ? "运动风云榜" : pageType == 2 ? currentClass.name : "" }} · {{
|
|
projectObj.title
|
|
projectObj.title
|
|
- }}</div>
|
|
|
|
|
|
+ }}</div>
|
|
<div class="title2" @click="choiceClassWindow = true">{{ pageType == 1 ? "切换到班级榜" : pageType == 2 ? "切换到班级" :
|
|
<div class="title2" @click="choiceClassWindow = true">{{ pageType == 1 ? "切换到班级榜" : pageType == 2 ? "切换到班级" :
|
|
"" }}</div>
|
|
"" }}</div>
|
|
</div>
|
|
</div>
|
|
@@ -289,9 +289,18 @@ const getClass = () => {
|
|
};
|
|
};
|
|
proxy?.$http.common.classList(params)
|
|
proxy?.$http.common.classList(params)
|
|
.then((res: any) => {
|
|
.then((res: any) => {
|
|
|
|
+ let myInfo: any = localStorage.getItem("userInfo");
|
|
|
|
+ let userInfo = JSON.parse(myInfo);
|
|
|
|
+ let obj = dataDictionary.gradeLists.find((item) => {
|
|
|
|
+ return userInfo.category == item.value
|
|
|
|
+ })
|
|
|
|
+ let gradeLists: any = []
|
|
|
|
+ if (obj != undefined) {
|
|
|
|
+ gradeLists = obj.child
|
|
|
|
+ }
|
|
// 重新排序一次
|
|
// 重新排序一次
|
|
let list: any = [];
|
|
let list: any = [];
|
|
- dataDictionary.gradeList.forEach((item) => {
|
|
|
|
|
|
+ gradeLists.forEach((item: any) => {
|
|
res.data.forEach((items: any) => {
|
|
res.data.forEach((items: any) => {
|
|
// classIdKeyObj.value[items.id] = items
|
|
// classIdKeyObj.value[items.id] = items
|
|
if (items.grade == item.value) {
|
|
if (items.grade == item.value) {
|
|
@@ -1453,7 +1462,7 @@ $waiPadding: 6.51rem;
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
|
|
|
|
&:hover {
|
|
&:hover {
|
|
- color: #0936a3;
|
|
|
|
|
|
+ color: #4573df;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|