|
|
@@ -30,6 +30,7 @@
|
|
|
<view class="income-value-large">
|
|
|
<text class="income-number-large">{{ $util.numberFormat(data.todayData.income) }}</text>
|
|
|
</view>
|
|
|
+ <view class="income-date-small">{{ currentDate }}</view>
|
|
|
</view>
|
|
|
<view class="stats-right">
|
|
|
<view class="stat-item-vertical" @click.stop="pageTo({url:'/admin/custom/visit'})">
|
|
|
@@ -587,6 +588,7 @@ export default {
|
|
|
urlNo:1,
|
|
|
shortUrlList:[],
|
|
|
unReadMsgNum:0, //未读消息数
|
|
|
+ currentDate: '', // 当前日期信息 如:12月26号 周五
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -607,9 +609,10 @@ export default {
|
|
|
uni.stopPullDownRefresh();
|
|
|
},
|
|
|
onLoad(){
|
|
|
- getWeixinId().then(res => {
|
|
|
- this.getappIdList = res.data
|
|
|
- })
|
|
|
+ getWeixinId().then(res => {
|
|
|
+ this.getappIdList = res.data
|
|
|
+ })
|
|
|
+ this.updateCurrentDate()
|
|
|
},
|
|
|
onShow () {
|
|
|
this.unReadMsgNum = 0; // 重置未读消息数
|
|
|
@@ -1131,6 +1134,14 @@ export default {
|
|
|
this.unReadMsgNum = res.data.msg_count
|
|
|
}
|
|
|
})
|
|
|
+ },
|
|
|
+ updateCurrentDate(){
|
|
|
+ const now = new Date()
|
|
|
+ const month = now.getMonth() + 1
|
|
|
+ const date = now.getDate()
|
|
|
+ const weekDays = ['星期天', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六']
|
|
|
+ const week = weekDays[now.getDay()]
|
|
|
+ this.currentDate = `${month}-${date} ${week}`
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
@@ -1184,6 +1195,10 @@ export default {
|
|
|
padding: 24upx 20upx;
|
|
|
text-align: center;
|
|
|
backdrop-filter: blur(10px);
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
|
|
|
&:active {
|
|
|
background: rgba(255, 255, 255, 0.2);
|
|
|
@@ -1208,6 +1223,13 @@ export default {
|
|
|
line-height: 1;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ .income-date-small {
|
|
|
+ font-size: 24upx;
|
|
|
+ color: white;
|
|
|
+ margin-top: 30upx;
|
|
|
+ font-weight: bold;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.stats-right {
|