|
@@ -16,7 +16,11 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
+
|
|
|
<view class="main flex">
|
|
|
+ <view class="today" >
|
|
|
+ {{ today }}
|
|
|
+ </view>
|
|
|
<view class="main-box flex">
|
|
|
<view class="item">
|
|
|
<view class="num">{{myPerformance || 0}}</view>
|
|
@@ -120,9 +124,13 @@ export default {
|
|
|
small_achivement_month:'',// 本月新增小区业绩
|
|
|
all: '', //累计奖励
|
|
|
yesterday:'',//昨日
|
|
|
+ today:'',//日期
|
|
|
};
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
+ var myDate = new Date();
|
|
|
+ this.today = myDate.getFullYear() + '年' + (myDate.getMonth()+1) + '月' + myDate.getDate() +'日';
|
|
|
+ console.log(this.today)
|
|
|
this.loadData(); //onload只是在第一次进入页面会刷新数据,从二级页面回来不会重新加载数据
|
|
|
},
|
|
|
|
|
@@ -228,7 +236,7 @@ page {
|
|
|
text-align: center;
|
|
|
font-size: 35rpx;
|
|
|
position: relative;
|
|
|
-
|
|
|
+
|
|
|
// padding-top: 60rpx;
|
|
|
.header {
|
|
|
position: absolute;
|
|
@@ -360,6 +368,12 @@ page {
|
|
|
border-radius: 20rpx;
|
|
|
margin: -160rpx auto 0;
|
|
|
padding: 40rpx 40rpx;
|
|
|
+ .today {
|
|
|
+ position: absolute;
|
|
|
+ top: -50rpx;
|
|
|
+ right: 20rpx;
|
|
|
+ color: #fff;
|
|
|
+ }
|
|
|
.main-box {
|
|
|
flex-direction: column;
|
|
|
align-items: center;
|