Browse Source

优化

master
zhaoyongnian 5 years ago
parent
commit
b24154ec0d
  1. 5
      subpages/home/pages/noticeNew/noticeNew.js
  2. 2
      subpages/integralCentre/pages/index/index.js
  3. 13
      subpages/integralCentre/pages/index/index.wxml
  4. 25
      subpages/integralCentre/pages/index/index.wxss

5
subpages/home/pages/noticeNew/noticeNew.js

@ -68,9 +68,12 @@ Page({
}
this.setData({
selectTab: e.currentTarget.dataset.tab,
pageIndex: 1,
pageSize: 10,
noticelist: [],
loadMoreType: 'loading',
loadMoreVisible: true,
nodata: false,
})
this.noticelist();
@ -123,7 +126,7 @@ Page({
pageIndex: this.data.pageIndex + 1,
pageSize: this.data.pageSize,
})
this.deptinfolist();
this.noticelist();
}
},

2
subpages/integralCentre/pages/index/index.js

@ -97,7 +97,7 @@ Page({
let that = this
const para = {
pageIndex: 1,
pageSize: 10,
pageSize: 20,
timestamp: this.data.timestamp,
rankingType: this.data.rankingType, //排名方式:0-周,1-月
}

13
subpages/integralCentre/pages/index/index.wxml

@ -17,11 +17,11 @@
{{item.name}}
</button>
</view>
<view class="ph-list">
<view class="ph-list" wx:if="{{pointsRankingUser}}">
<view class="left">
<!-- 左边图片 -->
<view class="left-img">
<view class="list-number_">{{pointsRankingUser.rank}}</view>
<view class="list-list-number_frist">{{pointsRankingUser.rank}}</view>
</view>
<!-- 名字 -->
<view class="list-name">{{pointsRankingUser.realName}}</view>
@ -34,12 +34,13 @@
<view class="left">
<!-- 左边图片 -->
<view class="left-img">
<image class="img-bg" wx:if="{{index == 0}}" src="../../images/first.png"></image>
<!-- <image class="img-bg" wx:if="{{index == 0}}" src="../../images/first.png"></image>
<image class="img-bg" wx:elif="{{index == 1}}" src="../../images/second.png"></image>
<image class="img-bg" wx:elif="{{index == 2}}" src="../../images/third.png"></image>
<image class="img-bg" wx:elif="{{index == 2}}" src="../../images/third.png"></image> -->
<!-- <image class="img-bg" wx:else src="../../images/fourth.png"></image> -->
<view wx:if="{{index < 3}}" class="list-number">{{item.rank}}</view>
<view wx:else class="list-number_">{{item.rank}}</view>
<!-- <view wx:if="{{index < 3}}" class="list-number">{{item.rank}}</view> -->
<view class="{{index < 3 ? 'list-list-number_frist' : 'list-number_'}} {{index===0 ? 'color1_' : index===1 ? 'color2_' : index===2 ? 'color2_' : ''}}">{{item.rank}}</view>
</view>
<!-- 名字 -->
<view class="list-name">{{item.realName}}</view>

25
subpages/integralCentre/pages/index/index.wxss

@ -263,7 +263,30 @@ button::after {
margin-top: 3rpx;
margin-left: 1rpx;
}
.list-number_frist{
position: relative;
z-index: 100;
width: 100%;
height: 38rpx;
line-height: 38rpx;
text-align: center;
font-size:38rpx;
font-weight:bold;
font-style:italic;
color:rgba(51,51,51,1);
}
.color1_{
color:#d42e31;
text-align: center;
}
.color2_{
color:#dd5800;
text-align: center;
}
.color3_{
color:#ffa800;
text-align: center;
}
.list-number_ {
position: relative;
z-index: 100;

Loading…
Cancel
Save