Commit 5688bf3e by zhangxw

排行榜样式修改

1 parent dfbeb0d9
......@@ -48,6 +48,9 @@ Page({
getList() {
const userInfo = wx.$util.getUserInfo()
let { tabIndex } = this.data
this.setData({
rankList: []
})
api.getStaffStudyRank({periodType: tabIndex, staffPhone: userInfo?.phone}).then(res => {
let { code, data, message } = res
if (code == 0) {
......
......@@ -57,6 +57,7 @@ page {
}
.list {
width: 100%;
height: calc(100vh - var(--fontSize426));
.item {
height: var(--fontSize128);
opacity: 1;
......
......@@ -15,7 +15,7 @@
</view>
<view class="num">{{currentUserRank.duration != null ? currentUserRank.duration : '-'}}小时</view>
</view>
<view class="list">
<scroll-view scroll-y class="list" enhanced="{{true}}" show-scrollbar="{{false}}">
<block wx:for="{{rankList}}" wx:key="index">
<view class="item">
<view class="left">
......@@ -30,6 +30,6 @@
<view class="num">{{item.duration != null ? item.duration : '-'}}小时</view>
</view>
</block>
</view>
</scroll-view>
</view>
</view>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!