Commit 5688bf3e by zhangxw

排行榜样式修改

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