mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 03:46:44 +08:00
案例修改参数
This commit is contained in:
@@ -103,14 +103,14 @@ import portalHeader from '@/components/PortalHeader.vue'
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getPopularity() {
|
getPopularity() {
|
||||||
apiCase.queryPraisesNew(10,this.popularityName == '季度' ? 3 : 4).then(res => {
|
apiCase.queryPraisesNew(10,this.popularityName == '季度' ? 1 : 2).then(res => {
|
||||||
if(res.status == 200) {
|
if(res.status == 200) {
|
||||||
this.Popularity = res.result
|
this.Popularity = res.result
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getPositive() {
|
getPositive() {
|
||||||
apiCase.queryCommentsNew(10,this.favorableName == '季度' ? 1 : 2).then(res => {
|
apiCase.queryCommentsNew(10,this.favorableName == '季度' ? 3 : 4).then(res => {
|
||||||
if(res.status == 200) {
|
if(res.status == 200) {
|
||||||
this.Positive = res.result
|
this.Positive = res.result
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1791,7 +1791,7 @@ export default {
|
|||||||
|
|
||||||
// }
|
// }
|
||||||
// });
|
// });
|
||||||
apiCase.queryPraisesNew(3,this.popularityName == '季度' ? 3 : 4).then(res => {
|
apiCase.queryPraisesNew(3,this.popularityName == '季度' ? 1 : 2).then(res => {
|
||||||
if(res.status == 200) {
|
if(res.status == 200) {
|
||||||
this.Popularity = res.result
|
this.Popularity = res.result
|
||||||
}
|
}
|
||||||
@@ -1814,7 +1814,7 @@ export default {
|
|||||||
// // }
|
// // }
|
||||||
// }
|
// }
|
||||||
// });
|
// });
|
||||||
apiCase.queryCommentsNew(3,this.favorableName == '季度' ? 1 : 2).then(res => {
|
apiCase.queryCommentsNew(3,this.favorableName == '季度' ? 3 : 4).then(res => {
|
||||||
if(res.status == 200) {
|
if(res.status == 200) {
|
||||||
this.Positive = res.result
|
this.Positive = res.result
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user