diff --git a/app.json b/app.json index cd9f2b2..c5208eb 100644 --- a/app.json +++ b/app.json @@ -15,7 +15,8 @@ "pages/user/myIdea/index", "pages/user/myMessage/index", "pages/user/myTopics/index", - "pages/user/myInfo/index" + "pages/user/myInfo/index", + "pages/topics/interactive/submitTopic/index" ], "window": { "backgroundTextStyle": "light", diff --git a/pages/topics/interactive/index.js b/pages/topics/interactive/index.js index 82ef72f..0e7b4fa 100644 --- a/pages/topics/interactive/index.js +++ b/pages/topics/interactive/index.js @@ -46,6 +46,11 @@ Component({ * 组件的方法列表 */ methods: { + onTap(){ + wx.navigateTo({ + url: `/pages/topics/interactive/submitTopic/index`, + }) + }, clickListItem(e) { const articleId = e.detail.articleId; console.log(articleId); diff --git a/pages/topics/interactive/index.wxml b/pages/topics/interactive/index.wxml index 0042e80..09a121b 100644 --- a/pages/topics/interactive/index.wxml +++ b/pages/topics/interactive/index.wxml @@ -11,4 +11,8 @@ showTop="{{item.showTop}}" bind:clickListItem="clickListItem"/> + + + + diff --git a/pages/topics/interactive/index.wxss b/pages/topics/interactive/index.wxss index 4e141c9..75fc54f 100644 --- a/pages/topics/interactive/index.wxss +++ b/pages/topics/interactive/index.wxss @@ -1 +1,13 @@ -/* pages/topics/interactive/index.wxss */ \ No newline at end of file +/* pages/topics/interactive/index.wxss */ +.publish{ + position: fixed; + width: 40px; + height: 40px; + right: 20px; + bottom: 40px; +} + +image{ + width: 100%; + height: 100%; +} \ No newline at end of file diff --git a/pages/topics/interactive/submitTopic/index.js b/pages/topics/interactive/submitTopic/index.js new file mode 100644 index 0000000..30bd674 --- /dev/null +++ b/pages/topics/interactive/submitTopic/index.js @@ -0,0 +1,65 @@ +// pages/topics/interactive/submitTopic/index.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + + }, + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady: function () { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow: function () { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide: function () { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload: function () { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh: function () { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom: function () { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage: function () { + + } +}) diff --git a/pages/topics/interactive/submitTopic/index.json b/pages/topics/interactive/submitTopic/index.json new file mode 100644 index 0000000..f485038 --- /dev/null +++ b/pages/topics/interactive/submitTopic/index.json @@ -0,0 +1,4 @@ +{ + "navigationBarTitleText": "新建议题", + "usingComponents": {} +} \ No newline at end of file diff --git a/pages/topics/interactive/submitTopic/index.wxml b/pages/topics/interactive/submitTopic/index.wxml new file mode 100644 index 0000000..56316dd --- /dev/null +++ b/pages/topics/interactive/submitTopic/index.wxml @@ -0,0 +1,9 @@ + + + + +