|
@@ -36,6 +36,13 @@ Page({
|
|
|
that.setData({ dialog: { title: '详细信息', show: true, type: '1' } })
|
|
|
}
|
|
|
},
|
|
|
+ //已读
|
|
|
+ toSend: async function (e) {
|
|
|
+ const that = this;
|
|
|
+ let { id } = e.currentTarget.dataset;
|
|
|
+ const arr = await app.$post(`/courtAdmin/api/notice/read/${id}`, { user_id: that.data.user._id, status: '1' });
|
|
|
+ if (arr.errcode == '0') wx.showToast({ title: `已读信息成功`, icon: 'success', duration: 2000 })
|
|
|
+ },
|
|
|
// 关闭弹框
|
|
|
toClose: function () {
|
|
|
this.setData({ dialog: { title: '详细信息', show: false, type: '1' } })
|
|
@@ -57,7 +64,7 @@ Page({
|
|
|
success: async res => {
|
|
|
this.setData({ user: res.data });
|
|
|
let params = {};
|
|
|
- if (res.data.type != '0') params.user_id = res.data.id;
|
|
|
+ // if (res.data.type != '0') params.user_id = res.data.id;
|
|
|
const arr = await app.$get(`/courtAdmin/api/notice`, params);
|
|
|
if (arr.errcode == '0') this.setData({ list: arr.data })
|
|
|
},
|