From c189070089525ec98a852a8cb95d80828ac05c62 Mon Sep 17 00:00:00 2001 From: zhaoyongnian <541231643@qq.com> Date: Mon, 1 Jun 2020 14:18:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=86=E8=A7=A3=E9=94=A6=E6=B0=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.json | 3 +- .../understandJs/pages/delicious/delicious.js | 60 +++++++++++- .../pages/delicious/delicious.json | 6 +- .../pages/delicious/delicious.wxml | 31 +++--- .../pages/delicious/delicious.wxss | 4 + .../pages/images/ic_yueduliang.png | Bin 0 -> 1201 bytes .../pages/impression/impression.js | 62 +++++++++++- .../pages/impression/impression.json | 6 +- .../pages/impression/impression.wxml | 20 +++- .../pages/impression/impression.wxss | 32 ++++++- subpages/understandJs/pages/index/index.js | 60 +++++++----- subpages/understandJs/pages/index/index.wxml | 33 +++---- .../pages/noticeDetail/noticeDetail.js | 80 ++++++++++++++++ .../pages/noticeDetail/noticeDetail.json | 4 + .../pages/noticeDetail/noticeDetail.wxml | 21 +++++ .../pages/noticeDetail/noticeDetail.wxss | 88 ++++++++++++++++++ .../understandJs/pages/sclerotia/sclerotia.js | 70 +++++++++++++- .../pages/sclerotia/sclerotia.json | 6 +- .../pages/sclerotia/sclerotia.wxml | 35 +++---- utils/understandJs.js | 17 +++- 20 files changed, 535 insertions(+), 103 deletions(-) create mode 100644 subpages/understandJs/pages/images/ic_yueduliang.png create mode 100644 subpages/understandJs/pages/noticeDetail/noticeDetail.js create mode 100644 subpages/understandJs/pages/noticeDetail/noticeDetail.json create mode 100644 subpages/understandJs/pages/noticeDetail/noticeDetail.wxml create mode 100644 subpages/understandJs/pages/noticeDetail/noticeDetail.wxss diff --git a/app.json b/app.json index 4387a30..523d09a 100644 --- a/app.json +++ b/app.json @@ -105,7 +105,8 @@ "pages/impression/impression", "pages/delicious/delicious", "pages/sclerotia/sclerotia", - "pages/archives/archives" + "pages/archives/archives", + "pages/noticeDetail/noticeDetail" ] } ], diff --git a/subpages/understandJs/pages/delicious/delicious.js b/subpages/understandJs/pages/delicious/delicious.js index 870a40d..eaf25fc 100644 --- a/subpages/understandJs/pages/delicious/delicious.js +++ b/subpages/understandJs/pages/delicious/delicious.js @@ -1,20 +1,57 @@ // subpages/understandJs/pages/delicious/delicious.js +const api = require('../../../../utils/understandJs') Page({ /** * 页面的初始数据 */ data: { - + pageIndex: 1, + pageSize: 10, + noticelist: [], + nodata: false, + loadMoreType: 'none', + loadMoreVisible: false, + noticeCategory: '2',//模块编码(0-政策导航,1-印象,2-味道) }, /** * 生命周期函数--监听页面加载 */ onLoad: function (options) { - + this.noticelist(); + }, + noticelist() { + let that = this; + let params = { + pageIndex: that.data.pageIndex, + pageSize: that.data.pageSize, + noticeCategory: that.data.noticeCategory + } + api.noticelist(params).then(function (res) { //了解锦水-模块管理接口 + console.log(JSON.stringify(res)) + that.setData({ + noticelist: that.data.noticelist.concat(res.data), + loadMoreType: res.data.length === that.data.pageSize ? 'loading' : 'none', + loadMoreVisible: res.data.length === that.data.pageSize ? false : true + }) + if (that.data.noticelist.length == 0) {//没有值 + that.setData({ + nodata: true, + loadMoreType: 'none', + loadMoreVisible: false, + }) + } + }).catch(err => { + that.setData({ + noticelist: [], + nodata: true, + loadMoreType: 'none', + loadMoreVisible: false, + }) + console.log(err) + }) }, - /** * 生命周期函数--监听页面初次渲染完成 */ @@ -54,7 +91,16 @@ Page({ * 页面上拉触底事件的处理函数 */ onReachBottom: function () { - + this.setData({ + loadMoreVisible: true + }) + if (this.data.loadMoreType === 'loading') { + this.setData({ + pageIndex: this.data.pageIndex + 1, + pageSize: this.data.pageSize, + }) + this.deptinfolist(); + } }, /** @@ -62,5 +108,11 @@ Page({ */ onShareAppMessage: function () { + }, + //跳转倒详情页面 + toDetail(e){ + wx.navigateTo({ + url: '../noticeDetail/noticeDetail?id=' + e.currentTarget.dataset.id + }) } }) \ No newline at end of file diff --git a/subpages/understandJs/pages/delicious/delicious.json b/subpages/understandJs/pages/delicious/delicious.json index 9b3b5f5..f6b48ec 100644 --- a/subpages/understandJs/pages/delicious/delicious.json +++ b/subpages/understandJs/pages/delicious/delicious.json @@ -1,3 +1,7 @@ { - "navigationBarTitleText": "锦水味道" + "navigationBarTitleText": "锦水味道", + "usingComponents": { + "load-more": "../../../../components/loadMore/loadMore", + "no-data":"../../../../components/nodata/nodata" + } } \ No newline at end of file diff --git a/subpages/understandJs/pages/delicious/delicious.wxml b/subpages/understandJs/pages/delicious/delicious.wxml index 29c615f..0b140fc 100644 --- a/subpages/understandJs/pages/delicious/delicious.wxml +++ b/subpages/understandJs/pages/delicious/delicious.wxml @@ -1,20 +1,19 @@ - - + + - 锦水美食 + {{item.noticeTitle}} - - - - 锦水美食 - - - - - - 锦水美食 - - - \ No newline at end of file + + + + + + \ No newline at end of file diff --git a/subpages/understandJs/pages/delicious/delicious.wxss b/subpages/understandJs/pages/delicious/delicious.wxss index f01b4e9..7c199c0 100644 --- a/subpages/understandJs/pages/delicious/delicious.wxss +++ b/subpages/understandJs/pages/delicious/delicious.wxss @@ -1,4 +1,8 @@ +page{ + background: #f7f7f7; +} .box { + background: #fff; display: flex; align-items: center; justify-content: space-between; diff --git a/subpages/understandJs/pages/images/ic_yueduliang.png b/subpages/understandJs/pages/images/ic_yueduliang.png new file mode 100644 index 0000000000000000000000000000000000000000..7d6f21fd75f18c34df3c03f108e341b0cf6dc352 GIT binary patch literal 1201 zcmV;i1Wx;jP)6+uy>!^ zB!Ni+(T0WwufMBW_2e-tHaUss0KyGHd8J%wA7oZ;e zJ!S;Par`{^96Sj+aj+5N`{`c~Dv1=45wYnIS;o|QP{S!VBHshM?j;9mG28+oU^(NN z$aWQ38O=ty8M&45XUM0(k0Wl( z*EwmkeS%w@{wK!O+AlH!1P-w_2W$gXterrXj7b0|MQrZG;9`c=jJF^Yj+`aacc78J zbS{7n^eYAi2KKVo54Dmw9*_Gb!AI!7h%92ypU6d{5qOAGwDk4$6`)wgc%RE!i;SG> zG%LVCPz;^}i>Q=`wJD7gK!Ca{2U92})T%h_}UG&)8Z7U$>ZmnIU4lTN`A z0FQwWnQB!?F?2Z)xocn<1ddV0pJZlcmSkjP_=y=PzcUb<&0LZ#r}0tb6VM`?cCs*+ z@#3tktY3pC4`8Xy*97kfIT4KP$C4PY1fK4JU-C_Ai8A<~Vy3&IRGD0CQGL%&7e zE_iXskQtk42ksmZ8UOOqiHYDJL;q##se+iFhRzDG*S8r^_{A=X2Us|bvvTKH zq0~#sre09NT%Fwk^#=9p>~iV}CaJY&!O!fShFlFAM|%s7qoil{8aS@&cvvw!tQxcV zLNFISp%7^9ZZPRgZo#Im;cO03iTq~F$H?CGGW(XbBE{S@Bg=_)NAJJkc8Z)RqdHpo z&Y!aXBI9{_GbZ#J>OBW9k-=-&G!H{(sh00CRAE0rMrOYwrJSln?;ztgu#o-^=APEO zk?JqNn7;=|qOWn@#3??&kluJb%a`;$flk$B56&Z?RPO?MkJ|U&E$29Gzvmw$#`p$? zHh}GrsU{+?+JlttUP_Bf68#Ry?jmw~Apg5AsPS58@}JQpf&V>$e+3u-IS+VkWWRd~ P00000NkvXXu0mjfWGqB* literal 0 HcmV?d00001 diff --git a/subpages/understandJs/pages/impression/impression.js b/subpages/understandJs/pages/impression/impression.js index a9df67d..bb336db 100644 --- a/subpages/understandJs/pages/impression/impression.js +++ b/subpages/understandJs/pages/impression/impression.js @@ -1,20 +1,57 @@ -// subpages/understandJs/pages/impression/impression.js +// subpages/understandJs/pages/delicious/delicious.js +const api = require('../../../../utils/understandJs') Page({ /** * 页面的初始数据 */ data: { - + pageIndex: 1, + pageSize: 10, + noticelist: [], + nodata: false, + loadMoreType: 'none', + loadMoreVisible: false, + noticeCategory: '1',//模块编码(0-政策导航,1-印象,2-味道) }, /** * 生命周期函数--监听页面加载 */ onLoad: function (options) { - + this.noticelist(); + }, + noticelist() { + let that = this; + let params = { + pageIndex: that.data.pageIndex, + pageSize: that.data.pageSize, + noticeCategory: that.data.noticeCategory + } + api.noticelist(params).then(function (res) { //了解锦水-模块管理接口 + console.log(JSON.stringify(res)) + that.setData({ + noticelist: that.data.noticelist.concat(res.data), + loadMoreType: res.data.length === that.data.pageSize ? 'loading' : 'none', + loadMoreVisible: res.data.length === that.data.pageSize ? false : true + }) + if (that.data.noticelist.length == 0) {//没有值 + that.setData({ + nodata: true, + loadMoreType: 'none', + loadMoreVisible: false, + }) + } + }).catch(err => { + that.setData({ + noticelist: [], + nodata: true, + loadMoreType: 'none', + loadMoreVisible: false, + }) + console.log(err) + }) }, - /** * 生命周期函数--监听页面初次渲染完成 */ @@ -54,7 +91,16 @@ Page({ * 页面上拉触底事件的处理函数 */ onReachBottom: function () { - + this.setData({ + loadMoreVisible: true + }) + if (this.data.loadMoreType === 'loading') { + this.setData({ + pageIndex: this.data.pageIndex + 1, + pageSize: this.data.pageSize, + }) + this.deptinfolist(); + } }, /** @@ -62,5 +108,11 @@ Page({ */ onShareAppMessage: function () { + }, + //跳转倒详情页面 + toDetail(e){ + wx.navigateTo({ + url: '../noticeDetail/noticeDetail?id=' + e.currentTarget.dataset.id + }) } }) \ No newline at end of file diff --git a/subpages/understandJs/pages/impression/impression.json b/subpages/understandJs/pages/impression/impression.json index 8a96328..ade164d 100644 --- a/subpages/understandJs/pages/impression/impression.json +++ b/subpages/understandJs/pages/impression/impression.json @@ -1,3 +1,7 @@ { - "navigationBarTitleText": "锦水印象" + "navigationBarTitleText": "锦水印象", + "usingComponents": { + "load-more": "../../../../components/loadMore/loadMore", + "no-data":"../../../../components/nodata/nodata" + } } \ No newline at end of file diff --git a/subpages/understandJs/pages/impression/impression.wxml b/subpages/understandJs/pages/impression/impression.wxml index 7a95e42..e45d112 100644 --- a/subpages/understandJs/pages/impression/impression.wxml +++ b/subpages/understandJs/pages/impression/impression.wxml @@ -1,3 +1,17 @@ - - 锦水印象 - \ No newline at end of file + + {{item.noticeTitle}} + 我们城市建设在转变城市功能的同时,更加关注于群众的生活质量的提升,给予百姓以更多的关心和方便我们城市建设在转变城市功能的同时,更加关注于群众的生活质量的提升,给予百姓以更多的关心和方便 + + + + + + + \ No newline at end of file diff --git a/subpages/understandJs/pages/impression/impression.wxss b/subpages/understandJs/pages/impression/impression.wxss index a2ccb37..14e486a 100644 --- a/subpages/understandJs/pages/impression/impression.wxss +++ b/subpages/understandJs/pages/impression/impression.wxss @@ -1 +1,31 @@ -/* subpages/understandJs/pages/impression/impression.wxss */ \ No newline at end of file +page { + background: #f7f7f7; +} + +.list-item { + width: 100%; + padding: 40rpx 28rpx; + margin-top: 16rpx; + background: #fff; +} + +.list-item .name { + width: calc(100% - 56rpx); + font-size: 34rpx; + font-weight: 500; + color: rgba(51, 51, 51, 1); + line-height: 50rpx; +} + +.list-item .info { + margin-top: 15rpx; + width: calc(100% - 56rpx); + font-size: 28rpx; + font-weight: 500; + color: rgba(153, 153, 153, 1); + line-height: 44rpx; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 2; + overflow: hidden; +} \ No newline at end of file diff --git a/subpages/understandJs/pages/index/index.js b/subpages/understandJs/pages/index/index.js index 34c3b57..6a729bb 100644 --- a/subpages/understandJs/pages/index/index.js +++ b/subpages/understandJs/pages/index/index.js @@ -1,20 +1,27 @@ -// subpages/understandJs/pages/index/index.js +const api = require('../../../../utils/understandJs') Page({ /** * 页面的初始数据 */ data: { - + modulelist: [] }, /** * 生命周期函数--监听页面加载 */ onLoad: function (options) { - + this.modulelist() + }, + modulelist() { + let that = this; + api.modulelist().then(function (res) { //了解锦水-模块管理接口 + that.setData({ + modulelist: res.data, + }) + }) }, - /** * 生命周期函数--监听页面初次渲染完成 */ @@ -63,24 +70,31 @@ Page({ onShareAppMessage: function () { }, - goImpression(){ - wx.navigateTo({ - url: '../impression/impression' - }) - }, - goDeliDcious(){ - wx.navigateTo({ - url: '../delicious/delicious' - }) - }, - goArchives(){ - wx.navigateTo({ - url: '../archives/archives' - }) - }, - goSclerotia(){ - wx.navigateTo({ - url: '../sclerotia/sclerotia' - }) + goDetails(e) {//模块编码(0-政策导航,1-印象,2-味道,3-硬核,4-档案) + console.log(JSON.stringify(e.currentTarget.dataset) + e.currentTarget.dataset.modulecode) + if (e.currentTarget.dataset.modulecode == '0') { + + } else if (e.currentTarget.dataset.modulecode == '1') { + wx.navigateTo({ + url: '../impression/impression' + }) + } else if (e.currentTarget.dataset.modulecode == '2') { + wx.navigateTo({ + url: '../delicious/delicious' + }) + } else if (e.currentTarget.dataset.modulecode == '3') { + wx.navigateTo({ + url: '../sclerotia/sclerotia' + }) + } else if (e.currentTarget.dataset.modulecode == '4') { + wx.showToast({ + title: '敬请期待', + icon: 'none', + duration: 1000 + }) + // wx.navigateTo({ + // url: '../archives/archives' + // }) + } } }) \ No newline at end of file diff --git a/subpages/understandJs/pages/index/index.wxml b/subpages/understandJs/pages/index/index.wxml index f8f7677..38e9d13 100644 --- a/subpages/understandJs/pages/index/index.wxml +++ b/subpages/understandJs/pages/index/index.wxml @@ -1,24 +1,13 @@ - \ No newline at end of file diff --git a/subpages/understandJs/pages/noticeDetail/noticeDetail.js b/subpages/understandJs/pages/noticeDetail/noticeDetail.js new file mode 100644 index 0000000..fa27fe9 --- /dev/null +++ b/subpages/understandJs/pages/noticeDetail/noticeDetail.js @@ -0,0 +1,80 @@ +const api = require('../../../../utils/understandJs') +import util from '../../../../utils/util' +Page({ + + /** + * 页面的初始数据 + */ + data: { + noticeObj: {}, + noticeObjContent: '' + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + this.noticeDetail(options.id) + }, + noticeDetail(noticeId){ + let that = this; + api.noticeDetail(noticeId).then(function (res) { //了解锦水-模块管理接口 + that.setData({ + noticeObj: res.data, + noticeObjContent: util.formatRichText(res.data.noticeContent) + }) + + console.log(that.data.noticeObj) + }).catch(err => { + console.log(err) + }) + }, + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady: function () { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow: function () { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide: function () { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload: function () { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh: function () { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom: function () { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage: function () { + + } +}) \ No newline at end of file diff --git a/subpages/understandJs/pages/noticeDetail/noticeDetail.json b/subpages/understandJs/pages/noticeDetail/noticeDetail.json new file mode 100644 index 0000000..2a7aea3 --- /dev/null +++ b/subpages/understandJs/pages/noticeDetail/noticeDetail.json @@ -0,0 +1,4 @@ +{ + "usingComponents": {}, + "navigationBarTitleText": "详情" +} \ No newline at end of file diff --git a/subpages/understandJs/pages/noticeDetail/noticeDetail.wxml b/subpages/understandJs/pages/noticeDetail/noticeDetail.wxml new file mode 100644 index 0000000..4028aae --- /dev/null +++ b/subpages/understandJs/pages/noticeDetail/noticeDetail.wxml @@ -0,0 +1,21 @@ + + + + {{noticeObj.noticeTitle}} + + + {{noticeObj.deptName}} + {{filter.formatTime(noticeObj.newsStartTime, 'yyyy-MM-dd')}} + + + + + + {{noticeObj.readingAmount}} + + + + + + + diff --git a/subpages/understandJs/pages/noticeDetail/noticeDetail.wxss b/subpages/understandJs/pages/noticeDetail/noticeDetail.wxss new file mode 100644 index 0000000..1518535 --- /dev/null +++ b/subpages/understandJs/pages/noticeDetail/noticeDetail.wxss @@ -0,0 +1,88 @@ +.notice-detail { + width: 100%; + height: 100%; + box-sizing: border-box; + padding: 20rpx; + background: #f7f7f7; +} +.richContent img{ + width: 100%!important; + height: auto; +} +.selfContent { + width: 100%; + display: table; + background: #ffffff; + border-radius: 16rpx; + box-sizing: border-box; + padding: 0 25rpx 38rpx; +} +.detail-title { + font-family: PingFang-SC-Bold; + font-size: 48rpx; + font-weight: bold; + line-height: 68rpx; + color: #333333; + padding-top: 40rpx; +} +.detail-subtitle { + display: flex; + width: 100%; + justify-content: space-between; + font-size: 22rpx; + color: #999999; + margin-top:45rpx; +} +.detail-subtitle .left span:nth-child(1){ + margin-right: 32rpx; +} +.detail-subtitle .right{ + display: flex; + height: 32rpx; + line-height: 32rpx; +} +.detail-subtitle .right .readNum { + /* display: inline-block; */ + width: 32rpx; + height: 32rpx; + margin-right: 10rpx; +} +.detail-subtitle .right .readNum image{ + width: 100%; + height: 100%; + float:left; + object-fit: cover; +} +.banner { + width: 100%; + height: 400rpx; + margin: 39rpx 0 19rpx 0; +} +.banner image{ + width: 100%; + height: 100%; + float:left; + object-fit: cover; + border-radius: 16rpx; + overflow: hidden; +} +.paragraph { + font-size: 38rpx; + line-height: 58rpx; + color: #333333; + text-indent: 76rpx; + margin-top:22rpx; +} + +.default { + border: 1px solid #eaeaea; +} +.default span { + color: #999999; +} +.active { + border: 1px solid #ffab00; +} +.active span { + color: #ffb700; +} \ No newline at end of file diff --git a/subpages/understandJs/pages/sclerotia/sclerotia.js b/subpages/understandJs/pages/sclerotia/sclerotia.js index b9f9fd1..6b81d14 100644 --- a/subpages/understandJs/pages/sclerotia/sclerotia.js +++ b/subpages/understandJs/pages/sclerotia/sclerotia.js @@ -1,20 +1,73 @@ // subpages/understandJs/pages/sclerotia/sclerotia.js +const api = require('../../../../utils/understandJs') Page({ /** * 页面的初始数据 */ data: { - + pageIndex: 1, + pageSize: 10, + deptinfolist: [], + nodata: false, + loadMoreType: 'none', + loadMoreVisible: false, }, /** * 生命周期函数--监听页面加载 */ onLoad: function (options) { - + this.deptinfolist() + }, + //了解锦水-硬核管理接口 + deptinfolist() { + let that = this; + let params = { + pageIndex: that.data.pageIndex, + pageSize: that.data.pageSize, + } + api.deptinfolist(params).then(function (res) { //了解锦水-模块管理接口 + that.setData({ + deptinfolist: that.data.deptinfolist.concat(res.data), + loadMoreType: res.data.length === that.data.pageSize ? 'loading' : 'none', + loadMoreVisible: res.data.length === that.data.pageSize ? false : true + }) + if (that.data.deptinfolist.length == 0) {//没有值 + that.setData({ + nodata: true, + loadMoreType: 'none', + loadMoreVisible: false, + }) + } + }).catch(err => { + that.setData({ + deptinfolist: [], + nodata: true, + loadMoreType: 'none', + loadMoreVisible: false, + }) + console.log(err) + }) + }, + mobile(e) { + wx.showModal({ + title: '拨打电话', + content: `您确定拨打${e.currentTarget.dataset.mobile}`, + cancelColor: '#29B9A5', + confirmColor: '#29B9A5', + success: (res) => { + if (res.confirm) { + console.log('用户点击确定') + wx.makePhoneCall({ + phoneNumber: e.currentTarget.dataset.mobile + }) + } else if (res.cancel) { + console.log('用户点击取消') + } + } + }) }, - /** * 生命周期函数--监听页面初次渲染完成 */ @@ -54,7 +107,16 @@ Page({ * 页面上拉触底事件的处理函数 */ onReachBottom: function () { - + this.setData({ + loadMoreVisible: true + }) + if (this.data.loadMoreType === 'loading') { + this.setData({ + pageIndex: this.data.pageIndex + 1, + pageSize: this.data.pageSize, + }) + this.deptinfolist(); + } }, /** diff --git a/subpages/understandJs/pages/sclerotia/sclerotia.json b/subpages/understandJs/pages/sclerotia/sclerotia.json index 6e08539..23e3670 100644 --- a/subpages/understandJs/pages/sclerotia/sclerotia.json +++ b/subpages/understandJs/pages/sclerotia/sclerotia.json @@ -1,3 +1,7 @@ { - "navigationBarTitleText": "硬核锦水" + "navigationBarTitleText": "硬核锦水", + "usingComponents": { + "load-more": "../../../../components/loadMore/loadMore", + "no-data":"../../../../components/nodata/nodata" + } } \ No newline at end of file diff --git a/subpages/understandJs/pages/sclerotia/sclerotia.wxml b/subpages/understandJs/pages/sclerotia/sclerotia.wxml index b30c29d..2fa3bf5 100644 --- a/subpages/understandJs/pages/sclerotia/sclerotia.wxml +++ b/subpages/understandJs/pages/sclerotia/sclerotia.wxml @@ -1,29 +1,24 @@ - + - 玫瑰社区 + {{item.deptName}} - 0531-88888888 + {{item.mobile}} - - - + + + - - - 玫瑰社区 - - - - - 0531-88888888 - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/utils/understandJs.js b/utils/understandJs.js index 66d28ec..eb0482e 100644 --- a/utils/understandJs.js +++ b/utils/understandJs.js @@ -1,8 +1,23 @@ var fly = require('./request.js') module.exports = { - noticelist: noticelist + modulelist: modulelist, + deptinfolist:deptinfolist, + noticelist: noticelist, + noticeDetail:noticeDetail +} +// 了解锦水-模块管理接口 +function modulelist() { + return fly.get('custom/module/list') +} +//了解锦水-硬核管理接口 +function deptinfolist(params) { + return fly.get('custom/deptinfo/list',params) } // 通知列表(通) function noticelist(params) { return fly.get('news/v2/notice/list', params) +} +// 通知详情 +function noticeDetail(noticeId) { + return fly.get(`news/notice/detail/${noticeId}`) } \ No newline at end of file