|
@@ -71,17 +71,17 @@
|
|
|
</div>
|
|
</div>
|
|
|
<div class="right">
|
|
<div class="right">
|
|
|
<div>
|
|
<div>
|
|
|
|
|
+<!-- <div class="info">-->
|
|
|
|
|
+<!-- <div class="label chaochuyincang">-->
|
|
|
|
|
+<!-- 受暴雨天气影响,2024-07-13 8:00...-->
|
|
|
|
|
+<!-- </div>-->
|
|
|
|
|
+<!-- <div class="day">1天前</div>-->
|
|
|
|
|
+<!-- </div>-->
|
|
|
<div class="info">
|
|
<div class="info">
|
|
|
<div class="label chaochuyincang">
|
|
<div class="label chaochuyincang">
|
|
|
- 受暴雨天气影响,2024-07-13 8:00...
|
|
|
|
|
|
|
+ {{ noticeText }}
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="day">1天前</div>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="info">
|
|
|
|
|
- <div class="label chaochuyincang">
|
|
|
|
|
- 受暴雨天气影响,2024-07-13 8:00...
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="day">1天前</div>
|
|
|
|
|
|
|
+ <div class="day">{{ timeText }}</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -226,7 +226,7 @@
|
|
|
<script>
|
|
<script>
|
|
|
// import {demo} from "@/js_sdk/http"
|
|
// import {demo} from "@/js_sdk/http"
|
|
|
|
|
|
|
|
-import { driverMessageCount, bizMessageCount } from "@/js_sdk/noticeList.js";
|
|
|
|
|
|
|
+import { driverMessageCount, bizMessageCount,getNotice } from "@/js_sdk/noticeList.js";
|
|
|
import { getUserLocalStorageInfo } from "@/js_sdk/localUserInfo.js";
|
|
import { getUserLocalStorageInfo } from "@/js_sdk/localUserInfo.js";
|
|
|
export default {
|
|
export default {
|
|
|
data() {
|
|
data() {
|
|
@@ -236,22 +236,30 @@ export default {
|
|
|
VenueNum: 0,
|
|
VenueNum: 0,
|
|
|
userType: "",
|
|
userType: "",
|
|
|
noticeNum: 0,
|
|
noticeNum: 0,
|
|
|
|
|
+ noticeText:'',
|
|
|
|
|
+ timeText:''
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
onShareAppMessage() {},
|
|
onShareAppMessage() {},
|
|
|
mounted() {
|
|
mounted() {
|
|
|
// demo();
|
|
// demo();
|
|
|
},
|
|
},
|
|
|
- onLoad() {
|
|
|
|
|
|
|
+ onShow() {
|
|
|
this.userType = getUserLocalStorageInfo().userType;
|
|
this.userType = getUserLocalStorageInfo().userType;
|
|
|
if (this.userType == "USER") {
|
|
if (this.userType == "USER") {
|
|
|
this.driverMessageCount();
|
|
this.driverMessageCount();
|
|
|
} else {
|
|
} else {
|
|
|
this.bizMessageCount();
|
|
this.bizMessageCount();
|
|
|
}
|
|
}
|
|
|
|
|
+ this.getNotice()
|
|
|
},
|
|
},
|
|
|
- onShow() {},
|
|
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ async getNotice(){
|
|
|
|
|
+ let data = await getNotice()
|
|
|
|
|
+ console.log(data)
|
|
|
|
|
+ this.noticeText=data.data.content
|
|
|
|
|
+ this.timeText = data.data.time
|
|
|
|
|
+ },
|
|
|
// /wx/dock/driverMessageCount
|
|
// /wx/dock/driverMessageCount
|
|
|
async bizMessageCount() {
|
|
async bizMessageCount() {
|
|
|
let { data } = await bizMessageCount({
|
|
let { data } = await bizMessageCount({
|
|
@@ -370,7 +378,7 @@ export default {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
color: rgba(24, 23, 42, 1);
|
|
color: rgba(24, 23, 42, 1);
|
|
|
.label {
|
|
.label {
|
|
|
- width: 500rpx;
|
|
|
|
|
|
|
+ width: 345rpx;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|