Commit 06dc87e68c0842cc3258d64b9608c4b5105bf8b6
1 parent
21af01ba
1
Showing
2 changed files
with
41 additions
and
3 deletions
lvdao-miniapp/pages/message/message.vue
| @@ -62,6 +62,31 @@ | @@ -62,6 +62,31 @@ | ||
| 62 | <view class="icon-more" v-if="tzlist.length>0">{{formatDateTime(tzlist[0]?tzlist[0].createTime:'')}}</view> | 62 | <view class="icon-more" v-if="tzlist.length>0">{{formatDateTime(tzlist[0]?tzlist[0].createTime:'')}}</view> |
| 63 | </view> | 63 | </view> |
| 64 | </view> | 64 | </view> |
| 65 | + <view class="list" @click="gopath('/pagesA/procedureList/procedureList?type=物业缴费通知')"> | ||
| 66 | + <view class="icon-data"> | ||
| 67 | + <view class="icon"> | ||
| 68 | + <image :src="$imgUrl('/zjjf.png')" mode=""></image> | ||
| 69 | + </view> | ||
| 70 | + <view class="data"> | ||
| 71 | + <view class="title"> | ||
| 72 | + <text>物业缴费通知</text> | ||
| 73 | + </view> | ||
| 74 | + | ||
| 75 | + <view class="describe"> | ||
| 76 | + <view v-if="wylist.length>0" > | ||
| 77 | + <view v-if="wylist[0].content.type == '2'">{{wylist[0].content.title}}【图片】</view> | ||
| 78 | + <view v-else >{{wylist[0].content.title}}</view> | ||
| 79 | + </view> | ||
| 80 | + <view v-else >暂无</view> | ||
| 81 | + <!-- <text>{{?tableList[0].content:''}}</text> --> | ||
| 82 | + </view> | ||
| 83 | + </view> | ||
| 84 | + </view> | ||
| 85 | + <view class="more"> | ||
| 86 | + <view class="more-num" v-if="wylist.length>0">{{wylist.length}}</view> | ||
| 87 | + <view class="icon-more" v-if="wylist.length>0">{{formatDateTime(wylist[0]?wylist[0].createTime:'')}}</view> | ||
| 88 | + </view> | ||
| 89 | + </view> | ||
| 65 | <view class="list" @click="gopath('/pagesA/procedureList/procedureList?type=租金缴费通知')"> | 90 | <view class="list" @click="gopath('/pagesA/procedureList/procedureList?type=租金缴费通知')"> |
| 66 | <view class="icon-data"> | 91 | <view class="icon-data"> |
| 67 | <view class="icon"> | 92 | <view class="icon"> |
| @@ -138,7 +163,8 @@ | @@ -138,7 +163,8 @@ | ||
| 138 | }, | 163 | }, |
| 139 | zllist:[], | 164 | zllist:[], |
| 140 | tzlist:[], | 165 | tzlist:[], |
| 141 | - zjlist:[] | 166 | + zjlist:[], |
| 167 | + wylist:[] | ||
| 142 | } | 168 | } |
| 143 | }, | 169 | }, |
| 144 | 170 | ||
| @@ -178,6 +204,7 @@ | @@ -178,6 +204,7 @@ | ||
| 178 | this.zllist = [] | 204 | this.zllist = [] |
| 179 | this.tzlist = [] | 205 | this.tzlist = [] |
| 180 | this.zjlist = [] | 206 | this.zjlist = [] |
| 207 | + this.wylist = [] | ||
| 181 | let info = { | 208 | let info = { |
| 182 | // phone:uni.getStorageSync('user').phone, | 209 | // phone:uni.getStorageSync('user').phone, |
| 183 | phone:'18121815598', | 210 | phone:'18121815598', |
| @@ -216,6 +243,17 @@ | @@ -216,6 +243,17 @@ | ||
| 216 | this.zjlist.reverse() | 243 | this.zjlist.reverse() |
| 217 | console.error(this.zjlist) | 244 | console.error(this.zjlist) |
| 218 | }) | 245 | }) |
| 246 | + this.$http.sendRequest('/cereMessage/viewMessage', 'POST',{...info,messageType:'物业缴费通知'},1).then(res => { | ||
| 247 | + let obj = res.data.data | ||
| 248 | + for(let prop in obj) { | ||
| 249 | + if(obj.hasOwnProperty(prop)) { // 确保只访问实例上的属性,不包括继承的 | ||
| 250 | + obj[prop][0].content = JSON.parse(obj[prop][0].content) | ||
| 251 | + this.wylist.push(obj[prop][0]) | ||
| 252 | + } | ||
| 253 | + } | ||
| 254 | + this.wylist.reverse() | ||
| 255 | + console.error(this.wylist) | ||
| 256 | + }) | ||
| 219 | }, | 257 | }, |
| 220 | formatDateTime(dateTimeString) { | 258 | formatDateTime(dateTimeString) { |
| 221 | // 将输入的日期时间字符串转换为Date对象 | 259 | // 将输入的日期时间字符串转换为Date对象 |
lvdao-miniapp/pages/workbench/workbench.vue
| @@ -251,12 +251,12 @@ | @@ -251,12 +251,12 @@ | ||
| 251 | // { name: '活动申请', img: '/wyjf.png', path: '/pages/mycreated/mycreated' }, | 251 | // { name: '活动申请', img: '/wyjf.png', path: '/pages/mycreated/mycreated' }, |
| 252 | { | 252 | { |
| 253 | name: '租金缴费', | 253 | name: '租金缴费', |
| 254 | - img: '/zjjf.png', | 254 | + img: '/wyjf.png', |
| 255 | path: '/pagesA/rentPay/rentPay' | 255 | path: '/pagesA/rentPay/rentPay' |
| 256 | }, | 256 | }, |
| 257 | { | 257 | { |
| 258 | name: '物业缴费', | 258 | name: '物业缴费', |
| 259 | - img: '/wyjf.png', | 259 | + img: '/zjjf.png', |
| 260 | path: '/pages/propertyPay/propertyPayList/propertyPayList' | 260 | path: '/pages/propertyPay/propertyPayList/propertyPayList' |
| 261 | }, | 261 | }, |
| 262 | ] | 262 | ] |