|
@@ -44,7 +44,8 @@ Page({
|
|
|
//记录首页点击-登录后继续跳转
|
|
|
dofun: null,
|
|
|
xunjianImgCount: '000,000',
|
|
|
- NoticeTitle: "登录查看公告"
|
|
|
+ NoticeTitle: "登录查看公告",
|
|
|
+ noticeItem:''
|
|
|
},
|
|
|
|
|
|
onLoad() {
|
|
@@ -327,13 +328,16 @@ Page({
|
|
|
|
|
|
initIndexPageSuccess(res) {
|
|
|
|
|
|
+ console.log("@@",res)
|
|
|
if (res.code == 200) {
|
|
|
this.setData({
|
|
|
xunjianImgCount: res.data.xunjianImgCount,
|
|
|
})
|
|
|
if (res.data.noticeList.length > 0) {
|
|
|
+
|
|
|
this.setData({
|
|
|
- NoticeTitle: res.data.noticeList[0].noticeTitle
|
|
|
+ NoticeTitle: res.data.noticeList[0].noticeTitle,
|
|
|
+ noticeItem: res.data.noticeList[0]
|
|
|
})
|
|
|
} else {
|
|
|
this.setData({
|
|
@@ -343,7 +347,27 @@ Page({
|
|
|
}
|
|
|
|
|
|
},
|
|
|
-
|
|
|
+goNoticeDetails(e){
|
|
|
+
|
|
|
+ let details = e.currentTarget.dataset.item
|
|
|
+ if (app.globalToken == null) {
|
|
|
+ wx.showToast({
|
|
|
+ title: '尚未登录,登录后即可使用',
|
|
|
+ icon: 'none'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if(details==null||details==''){
|
|
|
+ wx.showToast({
|
|
|
+ title: '暂无公告',
|
|
|
+ icon: 'none'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ wx.navigateTo({
|
|
|
+ url: '../notice/notice_details?details='+JSON.stringify(details)
|
|
|
+ })
|
|
|
+},
|
|
|
// getSysUserInfo(info) {
|
|
|
// let that = this
|
|
|
// wx.login({
|