Browse Source

解码锦水增加锦水导航模块;

feature/optimise
ZhaoTongYao 5 years ago
parent
commit
ee2d7ec677
  1. 4
      subpages/understandJs/pages/index/index.js
  2. 8
      subpages/understandJs/pages/noticeDetail/noticeDetail.js

4
subpages/understandJs/pages/index/index.js

@ -85,6 +85,10 @@ Page({
wx.navigateTo({
url: `../sclerotia/sclerotia?modulecode=${e.currentTarget.dataset.modulecode}`
})
} else if (e.currentTarget.dataset.modulecode == 'notice_jsdh') {
wx.navigateTo({
url: `../noticeDetail/noticeDetail?modulecode=${e.currentTarget.dataset.modulecode}`
})
}
}
})

8
subpages/understandJs/pages/noticeDetail/noticeDetail.js

@ -51,6 +51,14 @@ Page({
title: '锦水硬核'
})
this.noticeDetail(options.id)
} else if(options.modulecode == 'notice_jsdh'){
wx.setNavigationBarTitle({
title: '锦水导航'
})
this.setData({
isNeedBanner: false
})
this.noticelist()
} else if(options.modulecode == 'notice_warning'){
wx.setNavigationBarTitle({
title: "锦水警事"

Loading…
Cancel
Save