|
|
|
@ -1,5 +1,7 @@
|
|
|
|
|
// pages/user/subpage/system/system.js
|
|
|
|
|
import {http} from '../../../../utils/util'
|
|
|
|
|
import {
|
|
|
|
|
http
|
|
|
|
|
} from '../../../../utils/util'
|
|
|
|
|
Page({
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -18,7 +20,6 @@ Page({
|
|
|
|
|
wx.setNavigationBarTitle({
|
|
|
|
|
title: '系统消息',
|
|
|
|
|
})
|
|
|
|
|
this.getdata()
|
|
|
|
|
},
|
|
|
|
|
getdata() {
|
|
|
|
|
http("/userMessage/list", "post", {
|
|
|
|
@ -36,9 +37,13 @@ Page({
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
to(e) {
|
|
|
|
|
http("/userMessage/read", "post", {
|
|
|
|
|
id: e.currentTarget.dataset.id
|
|
|
|
|
}).then(res => {
|
|
|
|
|
wx.navigateTo({
|
|
|
|
|
url: '/' + e.currentTarget.dataset.url,
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
* 生命周期函数--监听页面初次渲染完成
|
|
|
|
@ -51,7 +56,12 @@ Page({
|
|
|
|
|
* 生命周期函数--监听页面显示
|
|
|
|
|
*/
|
|
|
|
|
onShow() {
|
|
|
|
|
|
|
|
|
|
this.setData({
|
|
|
|
|
list: [],
|
|
|
|
|
page: 1,
|
|
|
|
|
max: 0
|
|
|
|
|
})
|
|
|
|
|
this.getdata()
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|