diff --git a/app.json b/app.json index 118cedb..cd9f2b2 100644 --- a/app.json +++ b/app.json @@ -8,9 +8,6 @@ "pages/billboards/park/index", "pages/billboards/policy/index", "pages/billboards/policy/policy-list/index", - "pages/topics/common/interactive/index", - "pages/topics/common/message/index", - "pages/topics/common/goodIdea/index", "pages/article/index", "pages/register/index", "pages/user/myActivity/index", diff --git a/pages/topics/common/goodIdea/index.js b/pages/topics/common/goodIdea/index.js deleted file mode 100644 index 58bf3c8..0000000 --- a/pages/topics/common/goodIdea/index.js +++ /dev/null @@ -1,102 +0,0 @@ -// pages/topics/common/goodIdea/index.js -Page({ - - /** - * 页面的初始数据 - */ - data: { - list: [ - { - ideaId: '1', - userIcon: "", - userName: "用户名", - time: "刚刚", - isGoodIdea:1, - praiseNum:"30", - detail:{ - title:"习近平主持政治局第十七次集体... 拷贝", - userIcon:"", - userName:"用户名", - time:"刚刚", - commentNum:"33", - text:"【内容以实际活动为准】市北区位于青岛市主城区地理位置的中心,西部濒临胶州湾,东部与崂山区为邻,北部与李沧区接壤,南部与市南区毗" - } - }, - { - ideaId: "2", - userIcon: "", - userName: "用户名", - time: "1分钟前", - isGoodIdea: 0, - praiseNum: "30", - detail: { - title: "习近平主持政治局第十七次集体... 拷贝", - userIcon: "", - userName: "用户名", - time: "刚刚", - commentNum: "33", - text: "市北区位于青岛市主城区地理位置的中心,西部濒临胶州湾,东部与崂山区为邻,北部与李沧区接壤,南部与市南区毗连,东西最大距离11. 拷贝 2" - } - } - ] - }, - - /** - * 生命周期函数--监听页面加载 - */ - onLoad: function (options) { - - }, - - /** - * 生命周期函数--监听页面初次渲染完成 - */ - onReady: function () { - - }, - - /** - * 生命周期函数--监听页面显示 - */ - onShow: function () { - - }, - - /** - * 生命周期函数--监听页面隐藏 - */ - onHide: function () { - - }, - - /** - * 生命周期函数--监听页面卸载 - */ - onUnload: function () { - - }, - - /** - * 页面相关事件处理函数--监听用户下拉动作 - */ - onPullDownRefresh: function () { - - }, - - /** - * 页面上拉触底事件的处理函数 - */ - onReachBottom: function () { - - }, - - /** - * 用户点击右上角分享 - */ - onShareAppMessage: function () { - - }, - clickListItem(e) { - console.log(e.detail) - } -}) \ No newline at end of file diff --git a/pages/topics/common/goodIdea/index.wxss b/pages/topics/common/goodIdea/index.wxss deleted file mode 100644 index 70e56bc..0000000 --- a/pages/topics/common/goodIdea/index.wxss +++ /dev/null @@ -1 +0,0 @@ -/* pages/topics/common/goodIdea/index.wxss */ \ No newline at end of file diff --git a/pages/topics/common/interactive/index.js b/pages/topics/common/interactive/index.js deleted file mode 100644 index 2efd82c..0000000 --- a/pages/topics/common/interactive/index.js +++ /dev/null @@ -1,98 +0,0 @@ -// pages/topics/common/interactive/index.js -Page({ - - /** - * 页面的初始数据 - */ - data: { - list:[ - { - articleId: '1', - title:"市北区举行国际航运贸易金融创新中心核心区产业建设", - articleImg:"asdsad", - userIcon:"", - userName:"用户名", - time:"刚刚", - commentNum:"33", - }, - { - articleId: "2", - title: "《大众日报》市北区举行国际航运贸易金融创新中心核心区产业建设", - articleImg: "", - userIcon: "", - userName: "用户名", - time: "1分钟前", - commentNum: "33", - }, - { - articleId: "3", - title: "青岛医疗人工智能科技创新中心落户市北", - articleImg: "asdsadad", - userIcon: "", - userName: "用户名", - time: "1分钟前", - commentNum: "33", - } - ] - }, - - /** - * 生命周期函数--监听页面加载 - */ - onLoad: function (options) { - - }, - - /** - * 生命周期函数--监听页面初次渲染完成 - */ - onReady: function () { - - }, - - /** - * 生命周期函数--监听页面显示 - */ - onShow: function () { - - }, - - /** - * 生命周期函数--监听页面隐藏 - */ - onHide: function () { - - }, - - /** - * 生命周期函数--监听页面卸载 - */ - onUnload: function () { - - }, - - /** - * 页面相关事件处理函数--监听用户下拉动作 - */ - onPullDownRefresh: function () { - wx.showNavigationBarLoading(); - }, - - /** - * 页面上拉触底事件的处理函数 - */ - onReachBottom: function () { - - }, - - /** - * 用户点击右上角分享 - */ - onShareAppMessage: function () { - - }, - - clickListItem(e){ - console.log(e.detail) - } -}) \ No newline at end of file diff --git a/pages/topics/common/interactive/index.json b/pages/topics/common/interactive/index.json deleted file mode 100644 index 6177863..0000000 --- a/pages/topics/common/interactive/index.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "enablePullDownRefresh": true, - "backgroundTextStyle": "dark", - "usingComponents": { - "cell":"./cell/index" - } -} \ No newline at end of file diff --git a/pages/topics/common/interactive/index.wxss b/pages/topics/common/interactive/index.wxss deleted file mode 100644 index 831b94e..0000000 --- a/pages/topics/common/interactive/index.wxss +++ /dev/null @@ -1 +0,0 @@ -/* pages/topics/common/interactive/index.wxss */ \ No newline at end of file diff --git a/pages/topics/common/goodIdea/cell/images/goodIdea.png b/pages/topics/goodIdea/cell/images/goodIdea.png similarity index 100% rename from pages/topics/common/goodIdea/cell/images/goodIdea.png rename to pages/topics/goodIdea/cell/images/goodIdea.png diff --git a/pages/topics/common/goodIdea/cell/images/praise.png b/pages/topics/goodIdea/cell/images/praise.png similarity index 100% rename from pages/topics/common/goodIdea/cell/images/praise.png rename to pages/topics/goodIdea/cell/images/praise.png diff --git a/pages/topics/common/goodIdea/cell/index.js b/pages/topics/goodIdea/cell/index.js similarity index 100% rename from pages/topics/common/goodIdea/cell/index.js rename to pages/topics/goodIdea/cell/index.js diff --git a/pages/topics/common/goodIdea/cell/index.json b/pages/topics/goodIdea/cell/index.json similarity index 100% rename from pages/topics/common/goodIdea/cell/index.json rename to pages/topics/goodIdea/cell/index.json diff --git a/pages/topics/common/goodIdea/cell/index.wxml b/pages/topics/goodIdea/cell/index.wxml similarity index 100% rename from pages/topics/common/goodIdea/cell/index.wxml rename to pages/topics/goodIdea/cell/index.wxml diff --git a/pages/topics/common/goodIdea/cell/index.wxss b/pages/topics/goodIdea/cell/index.wxss similarity index 100% rename from pages/topics/common/goodIdea/cell/index.wxss rename to pages/topics/goodIdea/cell/index.wxss diff --git a/pages/topics/goodIdea/index.js b/pages/topics/goodIdea/index.js new file mode 100644 index 0000000..0ca46f7 --- /dev/null +++ b/pages/topics/goodIdea/index.js @@ -0,0 +1,56 @@ +// pages/topics/goodIdea/index.js +Component({ + /** + * 组件的属性列表 + */ + properties: { + + }, + + /** + * 组件的初始数据 + */ + data: { + list: [ + { + ideaId: '1', + userIcon: "", + userName: "用户名", + time: "刚刚", + isGoodIdea: 1, + praiseNum: "30", + detail: { + title: "习近平主持政治局第十七次集体... 拷贝", + userIcon: "", + userName: "用户名", + time: "刚刚", + commentNum: "33", + text: "【内容以实际活动为准】市北区位于青岛市主城区地理位置的中心,西部濒临胶州湾,东部与崂山区为邻,北部与李沧区接壤,南部与市南区毗" + } + }, + { + ideaId: "2", + userIcon: "", + userName: "用户名", + time: "1分钟前", + isGoodIdea: 0, + praiseNum: "30", + detail: { + title: "习近平主持政治局第十七次集体... 拷贝", + userIcon: "", + userName: "用户名", + time: "刚刚", + commentNum: "33", + text: "市北区位于青岛市主城区地理位置的中心,西部濒临胶州湾,东部与崂山区为邻,北部与李沧区接壤,南部与市南区毗连,东西最大距离11. 拷贝 2" + } + } + ] + }, + + /** + * 组件的方法列表 + */ + methods: { + + } +}) diff --git a/pages/topics/common/goodIdea/index.json b/pages/topics/goodIdea/index.json similarity index 71% rename from pages/topics/common/goodIdea/index.json rename to pages/topics/goodIdea/index.json index 93fc6f3..d61ba3a 100644 --- a/pages/topics/common/goodIdea/index.json +++ b/pages/topics/goodIdea/index.json @@ -1,4 +1,5 @@ { + "component": true, "usingComponents": { "cell": "./cell/index" } diff --git a/pages/topics/common/goodIdea/index.wxml b/pages/topics/goodIdea/index.wxml similarity index 78% rename from pages/topics/common/goodIdea/index.wxml rename to pages/topics/goodIdea/index.wxml index 2ab206e..4a7a164 100644 --- a/pages/topics/common/goodIdea/index.wxml +++ b/pages/topics/goodIdea/index.wxml @@ -1,4 +1,4 @@ - + +