|
@@ -90,9 +90,12 @@
|
|
|
/>
|
|
|
</view>
|
|
|
<view class="notice-info">
|
|
|
- <text style="color: #95a4b3; font-size: 28rpx">{{
|
|
|
- todayDate
|
|
|
- }}</text>
|
|
|
+ <view class="notice_title" @click="discrepancy">
|
|
|
+ <text style="color: #95a4b3; font-size: 28rpx">{{
|
|
|
+ todayDate
|
|
|
+ }}</text>
|
|
|
+ <image src="../../static/rightArrow.png"></image>
|
|
|
+ </view>
|
|
|
<view class="title" v-if="devInfo.installPosition == 'Toilet'">
|
|
|
<view class="title-text" style="color: #22dea7"
|
|
|
>今日卫生间使用频次</view
|
|
@@ -285,7 +288,7 @@ export default {
|
|
|
wsj: false,
|
|
|
todayWcTimes: "",
|
|
|
stayDetail: "",
|
|
|
- todayDate: "",
|
|
|
+ todayDate: "2025年8月17日",
|
|
|
dev_id: "",
|
|
|
nowTime: "",
|
|
|
devName: "",
|
|
@@ -737,6 +740,19 @@ export default {
|
|
|
}, 3000); // 每3秒自动滚动一次
|
|
|
}
|
|
|
},
|
|
|
+ discrepancy() {
|
|
|
+ uni.navigateTo({
|
|
|
+ url:
|
|
|
+ "/pagesA/discrepancy/discrepancy?devId=" +
|
|
|
+ this.devInfo.devId,
|
|
|
+ });
|
|
|
+ },
|
|
|
+ getCurrentDate() {
|
|
|
+ const now = new Date();
|
|
|
+ this.currentDate = `${now.getFullYear()}-${
|
|
|
+ now.getMonth() + 1
|
|
|
+ }月${now.getDate().toString().padStart(2, "0")}日`;
|
|
|
+ },
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
try {
|
|
@@ -763,6 +779,8 @@ export default {
|
|
|
this.autoPlayinterval = setTimeout(() => {
|
|
|
this.autoSwipe();
|
|
|
}, 3000);
|
|
|
+
|
|
|
+ this.getCurrentDate();
|
|
|
},
|
|
|
onUnload() {
|
|
|
if (this.mqttClient) this.mqttClient.end(true);
|
|
@@ -893,6 +911,16 @@ export default {
|
|
|
box-sizing: border-box;
|
|
|
margin: 0 auto;
|
|
|
|
|
|
+ .notice_title {
|
|
|
+ display: flex;
|
|
|
+ align-items: space-between;
|
|
|
+ image {
|
|
|
+ margin-left: auto;
|
|
|
+ width: 30rpx;
|
|
|
+ height: 30rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
.title {
|
|
|
margin-top: 10rpx;
|
|
|
margin-bottom: 10rpx;
|