123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- <template>
- <view class="bottonBox">
- <view>
- <uni-icons type="wallet" size="20" color="#606266" class="iconMargin"></uni-icons>{{title}}
- </view>
-
- <view class="ksMain">
- <view class="boxStyle">
- <view class="fontColor">
- {{joinStuNum}}
- </view>
- <view class="fontStyle">
- {{joinStuNumTitle}}
- </view>
- </view>
- <view class="boxStyle">
- <view class="fontColor">
- {{myRanking}}
- </view>
- <view class="fontStyle">
- {{myRankingTitle}}
- </view>
- </view>
- <view class="boxStyle">
- <view class="fontColor">
- {{myScore}}
- </view>
- <view class="fontStyle">
- {{myScoreTitle}}
- </view>
- </view>
- </view>
- </view>
-
- </template>
- <script>
- export default {
- name: 'UniTop',
- props: {
- joinStuNum: {
- type: String,
- default: '0'
- },
- joinStuNumTitle: {
- type: String,
- default: '参入人数'
- },
- myRanking: {
- type: String,
- default: '0'
- },
- myRankingTitle: {
- type: String,
- default: '我的排名'
- },
- myScore:{
- type: String,
- default: '0'
- },
- myScoreTitle:{
- type: String,
- default: '0'
- },
- title: {
- type: String,
- default: '我的分数'
- },
- },
- data() {
- return {}
- },
- methods: {
-
- }
- }
- </script>
- <style scoped>
- .bottonBox {
- border-radius: 10rpx;
- background-color: #FFFFFF;
- position: absolute;
- bottom: 20rpx;
- padding: 20rpx;
- display: flex;
- flex-direction: column;
- left: 50%;
- transform: translateX(-50%);
- width: 87%;
- box-shadow: 0 0 20rpx rgba(0, 0, 0, .1);
- }
-
- .ksMain {
- display: flex;
- }
-
- .boxStyle {
- text-align: center;
- margin-top: 10rpx;
- flex: 1;
- }
-
- .fontColor {
- color: rgb(245, 166, 35);
- font-size: 28rpx;
- margin-bottom: 10rpx;
- }
-
-
- </style>
|