|
@@ -427,6 +427,24 @@
|
|
|
|
|
|
},
|
|
|
onShow:function(){
|
|
|
+ this.$request.baseRequest('admin.unimall.cardNewsInfo', 'list', {
|
|
|
+ receiveId: uni.getStorageSync("userInfo").id,
|
|
|
+ }, failres => {
|
|
|
+ console.log('res+++++', failres.errmsg)
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ type: 'error',
|
|
|
+ message: failres.errmsg,
|
|
|
+ })
|
|
|
+ }).then(res => {
|
|
|
+ this.noticeList = res.data.items
|
|
|
+ if (this.noticeList.length > 0) {
|
|
|
+ var data = this.noticeList.filter((item) => {
|
|
|
+ return item.newsFlag == 0
|
|
|
+ })
|
|
|
+ this.unread = data ? data.length : 0
|
|
|
+ }
|
|
|
+ console.log(this.unread)
|
|
|
+ })
|
|
|
this.searchVal = uni.getStorageSync("search_val") ? uni.getStorageSync("search_val") : ''
|
|
|
if(this.searchVal) this.mescroll.resetUpScroll();
|
|
|
},
|
|
@@ -1126,25 +1144,25 @@
|
|
|
console.log(this.typeColumns)
|
|
|
})
|
|
|
|
|
|
- await this.$request.baseRequest('admin.unimall.cardNewsInfo', 'list', {
|
|
|
- receiveId: uni.getStorageSync("userInfo").id,
|
|
|
- }, failres => {
|
|
|
- console.log('res+++++', failres.errmsg)
|
|
|
- uni.showToast({
|
|
|
- icon:"none",
|
|
|
- title: failres.errmsg,
|
|
|
- duration: 3000
|
|
|
- });
|
|
|
- }).then(res => {
|
|
|
- this.noticeList = res.data.items
|
|
|
- if (this.noticeList.length > 0) {
|
|
|
- var data = this.noticeList.filter((item) => {
|
|
|
- return item.newsFlag == 0
|
|
|
- })
|
|
|
- this.unread = data ? data.length : 0
|
|
|
- }
|
|
|
- console.log(this.unread)
|
|
|
- })
|
|
|
+ // await this.$request.baseRequest('admin.unimall.cardNewsInfo', 'list', {
|
|
|
+ // receiveId: uni.getStorageSync("userInfo").id,
|
|
|
+ // }, failres => {
|
|
|
+ // console.log('res+++++', failres.errmsg)
|
|
|
+ // uni.showToast({
|
|
|
+ // icon:"none",
|
|
|
+ // title: failres.errmsg,
|
|
|
+ // duration: 3000
|
|
|
+ // });
|
|
|
+ // }).then(res => {
|
|
|
+ // this.noticeList = res.data.items
|
|
|
+ // if (this.noticeList.length > 0) {
|
|
|
+ // var data = this.noticeList.filter((item) => {
|
|
|
+ // return item.newsFlag == 0
|
|
|
+ // })
|
|
|
+ // this.unread = data ? data.length : 0
|
|
|
+ // }
|
|
|
+ // console.log(this.unread)
|
|
|
+ // })
|
|
|
}
|
|
|
|
|
|
}
|