feat: 考试排行榜联调
This commit is contained in:
+2
-2
@@ -27,8 +27,8 @@ VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7001'
|
||||
VITE_APP_BASE_H5_API_Url = 'http://25.18.122.65:7001'
|
||||
|
||||
|
||||
VITE_APP_BASE_H5_API_Url_TRAAPP = 'http://25.64.16.130:9601'
|
||||
VITE_APP_BASE_H5_API_Url_TRASTUDY = 'http://25.64.16.130:9602'
|
||||
# VITE_APP_BASE_H5_API_Url_TRAAPP = 'http://25.64.16.130:9601'
|
||||
# VITE_APP_BASE_H5_API_Url_TRASTUDY = 'http://25.64.16.130:9602'
|
||||
# VITE_APP_BASE_H5_API_Url_TRAASK = 'http://25.64.16.144:9605'
|
||||
|
||||
|
||||
|
||||
@@ -60,4 +60,13 @@ export const publishCrsEvaluation = (data) => {
|
||||
};
|
||||
|
||||
|
||||
// 考试排行榜/traexam/traCrsPapers/queryTraCrsRankingList
|
||||
export const queryTraCrsRankingList = (data) => {
|
||||
return request({
|
||||
url: '/traexam/traCrsPapers/queryTraCrsRankingList',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -303,7 +303,7 @@ import { onShow } from "@dcloudio/uni-app"
|
||||
}
|
||||
// 跳转搜索页
|
||||
const toSearchPage = () => {
|
||||
common.navigateTo('/pages/search/search')
|
||||
common.navigateTo('/pages/search/search?from=course')
|
||||
}
|
||||
// 跳转 课程详情
|
||||
const toCourseDetail = (item) => {
|
||||
|
||||
@@ -22,18 +22,18 @@
|
||||
<view class="score-column">最高分</view>
|
||||
</view>
|
||||
<scroll-view :scroll-y="true" class="scroll-items-view">
|
||||
<view v-for="(item,index) in 60" :class="['list-item', 'item-'+(index+1)]">
|
||||
<view v-for="(item,index) in userList" :class="['list-item', 'item-'+(index+1)]">
|
||||
<view class="rank-column">
|
||||
{{index + 1}}
|
||||
{{item.ranking}}
|
||||
</view>
|
||||
<view class="user-column">
|
||||
<view class="avatar-box">
|
||||
<image-preview class="avatar-image" :imgId="item" mode="aspectFit"></image-preview>
|
||||
<image-preview class="avatar-image" :src="item.ossAddr" mode="aspectFit"></image-preview>
|
||||
</view>
|
||||
<view class="user-name">{{'李想'}}</view>
|
||||
<view class="user-org">{{'吉林银行白城分行'}}</view>
|
||||
<view class="user-name">{{item.userName}}</view>
|
||||
<view class="user-org">{{item.orgName}}</view>
|
||||
</view>
|
||||
<view class="score-column">{{100 - index}}</view>
|
||||
<view class="score-column">{{item.examGrade}}</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
@@ -43,16 +43,16 @@
|
||||
</view>
|
||||
<view class="list-item item-me">
|
||||
<view class="rank-column">
|
||||
{{21}}
|
||||
{{userRankObj.ranking}}
|
||||
</view>
|
||||
<view class="user-column">
|
||||
<view class="avatar-box">
|
||||
<image-preview class="avatar-image" :imgId="item" mode="aspectFit"></image-preview>
|
||||
<image-preview class="avatar-image" :src="userRankObj.ossAddr" mode="aspectFit"></image-preview>
|
||||
</view>
|
||||
<view class="user-name">{{'李想'}}</view>
|
||||
<view class="user-org">{{'吉林银行白城分行'}}</view>
|
||||
<view class="user-name">{{userRankObj.userName}}</view>
|
||||
<view class="user-org">{{userRankObj.orgName}}</view>
|
||||
</view>
|
||||
<view class="score-column">{{22}}</view>
|
||||
<view class="score-column">{{userRankObj.examGrade}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -60,14 +60,29 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { queryTraCrsRankingList } from "@/api/courseDetail.js"
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
crsId:'',
|
||||
userList: [],
|
||||
userRankObj:{}
|
||||
}
|
||||
},
|
||||
onLoad(params){
|
||||
this.crsId = params.crsId
|
||||
this.getList()
|
||||
},
|
||||
methods: {
|
||||
|
||||
getList(){
|
||||
queryTraCrsRankingList({
|
||||
crsId: this.crsId
|
||||
}).then(res=>{
|
||||
console.log(res)
|
||||
this.userList = res.body.rankingListVos||[]
|
||||
this.userRankObj = res.body
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
+17
-13
@@ -56,6 +56,18 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import {
|
||||
ref,
|
||||
watchEffect,
|
||||
nextTick,
|
||||
onMounted
|
||||
} from 'vue';
|
||||
import common from '@/common/common.js'
|
||||
import {
|
||||
onShow,
|
||||
onLoad
|
||||
} from '@dcloudio/uni-app';
|
||||
|
||||
const tagRefs = ref([]) // 用于存储所有history_item的引用
|
||||
import {
|
||||
getCurrentInstance,
|
||||
@@ -140,17 +152,6 @@
|
||||
}
|
||||
|
||||
|
||||
import {
|
||||
ref,
|
||||
watchEffect,
|
||||
nextTick,
|
||||
onMounted
|
||||
} from 'vue';
|
||||
import common from '@/common/common.js'
|
||||
import {
|
||||
onShow
|
||||
} from '@dcloudio/uni-app';
|
||||
|
||||
// 静态样式配置
|
||||
const fixedCustomStyles = {
|
||||
backgroundColor: "#ffffff",
|
||||
@@ -165,13 +166,16 @@
|
||||
}
|
||||
const inputValue = ref('');
|
||||
|
||||
|
||||
const fromType = ref('')
|
||||
onLoad((params) => {
|
||||
fromType.value = params.from||'';
|
||||
});
|
||||
|
||||
|
||||
const measureRef = ref(null)
|
||||
const measureItems = ref([])
|
||||
const search=() => {
|
||||
common.navigateTo('/pages/search/result?searchName='+ inputValue.value +'&from=')
|
||||
common.navigateTo('/pages/search/result?searchName='+ inputValue.value +'&from=' + fromType.value)
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user