mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-07 01:46:44 +08:00
排行榜页面
This commit is contained in:
@@ -1,25 +1,145 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="ranking-list-info">
|
<view class="ranking-list-info">
|
||||||
<view class="ranking-list-box">
|
<view class="ranking-list-box">
|
||||||
<u-tabs :list="tabList" @click="clickTabs"></u-tabs>
|
<u-tabs :list="tabList" @click="clickTabs"
|
||||||
<view class="box-info-top">
|
lineColor="#007DFF"
|
||||||
<text class="top-text">我的排名:<text class="text-num">128</text></text>
|
lineWidth="40"
|
||||||
<text class="top-text" style="margin-left: 30upx;">我的经验值:<text class="text-num">367</text></text>
|
lineHeight="4"
|
||||||
</view>
|
:activeStyle="{
|
||||||
<view class="ran-table">
|
color: '#333333',
|
||||||
<view class="ran-table-haeder">
|
fontWeight: '600',
|
||||||
<view class="table-cell-one">排名</view>
|
transform: 'scale(1.04)',
|
||||||
<view class="table-cell-tow">姓名</view>
|
}"></u-tabs>
|
||||||
<view class="table-cell-three">经验值</view>
|
<view v-show="activeTab == 0">
|
||||||
|
<view class="box-info-top">
|
||||||
|
<text class="top-text">我的排名:<text class="text-num">128</text></text>
|
||||||
|
<text class="top-text" style="margin-left: 30upx;">我的经验值:<text class="text-num">367</text></text>
|
||||||
</view>
|
</view>
|
||||||
<view class="ran-table-body">
|
<view class="ran-table">
|
||||||
<view class="table-cell-one"><image style="width: 60upx;height:60upx" src="../../static/images/ranking/ran-one.png" mode=""></image></view>
|
<view class="ran-table-haeder">
|
||||||
<view class="table-cell-tow">
|
<view class="table-cell-one">排名</view>
|
||||||
<image style="width: 80upx;height:80upx" src="../../static/images/woman.png" mode=""></image>
|
<view class="table-cell-tow">姓名</view>
|
||||||
|
<view class="table-cell-three">经验值</view>
|
||||||
|
</view>
|
||||||
|
<view class="ran-table-body" v-for="(item, index) in 5">
|
||||||
|
<view class="table-cell-one">
|
||||||
|
<image v-if="index == 0" style="width: 60upx;height:60upx" src="../../static/images/ranking/ran-one.png" mode=""></image>
|
||||||
|
<image v-if="index == 1" style="width: 60upx;height:60upx" src="../../static/images/ranking/ran-tow.png" mode=""></image>
|
||||||
|
<image v-if="index == 2" style="width: 60upx;height:60upx" src="../../static/images/ranking/ran-three.png" mode=""></image>
|
||||||
|
<text v-if="index > 2" class="cell-one-index">{{index+1}}</text>
|
||||||
|
</view>
|
||||||
|
<view class="table-cell-tow">
|
||||||
|
<image style="width: 80upx;height:80upx;vertical-align: middle;" src="../../static/images/woman.png" mode=""></image>
|
||||||
|
<text class="table-cell-tow-name">小张</text>
|
||||||
|
<text class="table-cell-tow-org">(数据资产部)</text>
|
||||||
|
</view>
|
||||||
|
<view class="table-cell-three">1073</view>
|
||||||
|
</view>
|
||||||
|
<view class="ranking-dote">
|
||||||
|
<view>.</view>
|
||||||
|
<view>.</view>
|
||||||
|
<view>.</view>
|
||||||
|
</view>
|
||||||
|
<view class="ran-table-body" style="border-bottom: none;margin-bottom: 60upx;">
|
||||||
|
<view class="table-cell-one">
|
||||||
|
<text class="cell-one-index" style="color:#326DFF">128</text>
|
||||||
|
</view>
|
||||||
|
<view class="table-cell-tow">
|
||||||
|
<image style="width: 80upx;height:80upx;vertical-align: middle;" src="../../static/images/woman.png" mode=""></image>
|
||||||
|
<text class="table-cell-tow-name" style="color:#326DFF">小张</text>
|
||||||
|
<text class="table-cell-tow-org" style="color:#326DFF">(数据资产部)</text>
|
||||||
|
</view>
|
||||||
|
<view class="table-cell-three" style="color:#326DFF">1073</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="table-cell-three">经验值</view>
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view v-show="activeTab == 1">
|
||||||
|
<view class="box-info-top">
|
||||||
|
<text class="top-text">我的排名:<text class="text-num">128</text></text>
|
||||||
|
<text class="top-text" style="margin-left: 30upx;">我的学习时长:<text class="text-num">367</text>h</text>
|
||||||
|
</view>
|
||||||
|
<view class="ran-table">
|
||||||
|
<view class="ran-table-haeder">
|
||||||
|
<view class="table-cell-one">排名</view>
|
||||||
|
<view class="table-cell-tow">姓名</view>
|
||||||
|
<view class="table-cell-three">学习时长(h)</view>
|
||||||
|
</view>
|
||||||
|
<view class="ran-table-body" v-for="(item, index) in 5">
|
||||||
|
<view class="table-cell-one">
|
||||||
|
<image v-if="index == 0" style="width: 60upx;height:60upx" src="../../static/images/ranking/ran-one.png" mode=""></image>
|
||||||
|
<image v-if="index == 1" style="width: 60upx;height:60upx" src="../../static/images/ranking/ran-tow.png" mode=""></image>
|
||||||
|
<image v-if="index == 2" style="width: 60upx;height:60upx" src="../../static/images/ranking/ran-three.png" mode=""></image>
|
||||||
|
<text v-if="index > 2" class="cell-one-index">{{index+1}}</text>
|
||||||
|
</view>
|
||||||
|
<view class="table-cell-tow">
|
||||||
|
<image style="width: 80upx;height:80upx;vertical-align: middle;" src="../../static/images/woman.png" mode=""></image>
|
||||||
|
<text class="table-cell-tow-name">小张</text>
|
||||||
|
<text class="table-cell-tow-org">(数据资产部)</text>
|
||||||
|
</view>
|
||||||
|
<view class="table-cell-three">1073</view>
|
||||||
|
</view>
|
||||||
|
<view class="ranking-dote">
|
||||||
|
<view>.</view>
|
||||||
|
<view>.</view>
|
||||||
|
<view>.</view>
|
||||||
|
</view>
|
||||||
|
<view class="ran-table-body" style="border-bottom: none;margin-bottom: 60upx;">
|
||||||
|
<view class="table-cell-one">
|
||||||
|
<text class="cell-one-index" style="color:#326DFF">128</text>
|
||||||
|
</view>
|
||||||
|
<view class="table-cell-tow">
|
||||||
|
<image style="width: 80upx;height:80upx;vertical-align: middle;" src="../../static/images/woman.png" mode=""></image>
|
||||||
|
<text class="table-cell-tow-name" style="color:#326DFF">小张</text>
|
||||||
|
<text class="table-cell-tow-org" style="color:#326DFF">(数据资产部)</text>
|
||||||
|
</view>
|
||||||
|
<view class="table-cell-three" style="color:#326DFF">1073</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view v-show="activeTab == 2">
|
||||||
|
<view class="box-info-top">
|
||||||
|
<text class="top-text">我的排名:<text class="text-num">128</text></text>
|
||||||
|
<text class="top-text" style="margin-left: 30upx;">我的学习天数:<text class="text-num">367</text></text>
|
||||||
|
</view>
|
||||||
|
<view class="ran-table">
|
||||||
|
<view class="ran-table-haeder">
|
||||||
|
<view class="table-cell-one">排名</view>
|
||||||
|
<view class="table-cell-tow">姓名</view>
|
||||||
|
<view class="table-cell-three">学习天数</view>
|
||||||
|
</view>
|
||||||
|
<view class="ran-table-body" v-for="(item, index) in 5">
|
||||||
|
<view class="table-cell-one">
|
||||||
|
<image v-if="index == 0" style="width: 60upx;height:60upx" src="../../static/images/ranking/ran-one.png" mode=""></image>
|
||||||
|
<image v-if="index == 1" style="width: 60upx;height:60upx" src="../../static/images/ranking/ran-tow.png" mode=""></image>
|
||||||
|
<image v-if="index == 2" style="width: 60upx;height:60upx" src="../../static/images/ranking/ran-three.png" mode=""></image>
|
||||||
|
<text v-if="index > 2" class="cell-one-index">{{index+1}}</text>
|
||||||
|
</view>
|
||||||
|
<view class="table-cell-tow">
|
||||||
|
<image style="width: 80upx;height:80upx;vertical-align: middle;" src="../../static/images/woman.png" mode=""></image>
|
||||||
|
<text class="table-cell-tow-name">小张</text>
|
||||||
|
<text class="table-cell-tow-org">(数据资产部)</text>
|
||||||
|
</view>
|
||||||
|
<view class="table-cell-three">1073</view>
|
||||||
|
</view>
|
||||||
|
<view class="ranking-dote">
|
||||||
|
<view>.</view>
|
||||||
|
<view>.</view>
|
||||||
|
<view>.</view>
|
||||||
|
</view>
|
||||||
|
<view class="ran-table-body" style="border-bottom: none;margin-bottom: 60upx;">
|
||||||
|
<view class="table-cell-one">
|
||||||
|
<text class="cell-one-index" style="color:#326DFF">128</text>
|
||||||
|
</view>
|
||||||
|
<view class="table-cell-tow">
|
||||||
|
<image style="width: 80upx;height:80upx;vertical-align: middle;" src="../../static/images/woman.png" mode=""></image>
|
||||||
|
<text class="table-cell-tow-name" style="color:#326DFF">小张</text>
|
||||||
|
<text class="table-cell-tow-org" style="color:#326DFF">(数据资产部)</text>
|
||||||
|
</view>
|
||||||
|
<view class="table-cell-three" style="color:#326DFF">1073</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@@ -33,7 +153,11 @@
|
|||||||
{ name: '经验值'},
|
{ name: '经验值'},
|
||||||
{ name: '学习时长'},
|
{ name: '学习时长'},
|
||||||
{ name: '学习天数'},
|
{ name: '学习天数'},
|
||||||
]
|
],
|
||||||
|
activeTab:0,
|
||||||
|
rankingList:{
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onPullDownRefresh() {
|
onPullDownRefresh() {
|
||||||
@@ -47,7 +171,7 @@
|
|||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
clickTabs(item) {
|
clickTabs(item) {
|
||||||
console.log(item,'item')
|
this.activeTab = item.index;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -55,12 +179,16 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
::v-deep .u-tabs__wrapper__nav__item__text{
|
||||||
|
font-size: 32upx;
|
||||||
|
color: #666666 !important;
|
||||||
|
}
|
||||||
.ranking-list-info{
|
.ranking-list-info{
|
||||||
padding-top: 376upx;
|
padding-top: 376upx;
|
||||||
background: url(../../static/images/ranking-list.png) no-repeat 100% / 100%;
|
background: url(../../static/images/ranking-list.png) no-repeat 100% / 100%;
|
||||||
background-position: 0 0;
|
background-position: 0 0;
|
||||||
.ranking-list-box{
|
.ranking-list-box{
|
||||||
padding: 34upx 20upx;
|
padding: 34upx 40upx;
|
||||||
border-radius: 40upx 40upx 0 0;
|
border-radius: 40upx 40upx 0 0;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
.box-info-top{
|
.box-info-top{
|
||||||
@@ -86,28 +214,64 @@
|
|||||||
color: #999999;
|
color: #999999;
|
||||||
display: flex;
|
display: flex;
|
||||||
.table-cell-one{
|
.table-cell-one{
|
||||||
width: 120upx;
|
width: 200upx;
|
||||||
|
padding-left: 8upx;
|
||||||
}
|
}
|
||||||
.table-cell-tow{
|
.table-cell-tow{
|
||||||
flex: 100%;
|
// flex: 100%;
|
||||||
|
width: 100%;
|
||||||
|
padding-left: 8upx;
|
||||||
}
|
}
|
||||||
.table-cell-three{
|
.table-cell-three{
|
||||||
width: 188upx;
|
width: 260upx;
|
||||||
|
text-align: right;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.ran-table-body{
|
.ran-table-body{
|
||||||
display: flex;
|
display: flex;
|
||||||
|
padding: 46upx 0 38upx 0;
|
||||||
|
border-bottom: 2upx solid rgba($color: #979797, $alpha: 0.1);
|
||||||
|
// margin-top: 30upx;
|
||||||
.table-cell-one{
|
.table-cell-one{
|
||||||
width: 76upx;
|
width: 200upx;
|
||||||
|
padding-top: 10upx;
|
||||||
|
.cell-one-index{
|
||||||
|
font-size: 32upx;
|
||||||
|
color: #333333;
|
||||||
|
margin-left: 16upx;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.table-cell-tow{
|
.table-cell-tow{
|
||||||
flex: 100%;
|
// flex: 100%;
|
||||||
|
width: 100%;
|
||||||
|
.table-cell-tow-name{
|
||||||
|
font-size: 28upx;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #333333;
|
||||||
|
margin-left: 28upx;
|
||||||
|
}
|
||||||
|
.table-cell-tow-org{
|
||||||
|
font-size: 24upx;
|
||||||
|
color: #999999;
|
||||||
|
margin-left: 16upx;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.table-cell-three{
|
.table-cell-three{
|
||||||
width: 188upx;
|
padding-top: 10upx;
|
||||||
|
width: 260upx;
|
||||||
|
font-size: 36upx;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #333333;
|
||||||
|
text-align: right;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.ranking-dote{
|
||||||
|
margin-left: 20upx;
|
||||||
|
margin-top: 10upx;
|
||||||
|
color: #D8D8D8;
|
||||||
|
font-size: 36upx;
|
||||||
|
line-height: 16upx;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 92 KiB After Width: | Height: | Size: 97 KiB |
Reference in New Issue
Block a user