From d2a3910dd2fd7ac0994a8d2e31dca95bdcf31435 Mon Sep 17 00:00:00 2001 From: Meimei Date: Tue, 8 Oct 2019 17:37:02 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E8=AE=AE=E4=BA=8B=E5=8E=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.json | 5 +- pages/topics/common/goodIdea/index.js | 66 +++++++++++++++++++ pages/topics/common/goodIdea/index.json | 3 + pages/topics/common/goodIdea/index.wxml | 2 + pages/topics/common/goodIdea/index.wxss | 1 + pages/topics/common/interactive/index.js | 66 +++++++++++++++++++ pages/topics/common/interactive/index.json | 3 + pages/topics/common/interactive/index.wxml | 2 + pages/topics/common/interactive/index.wxss | 1 + pages/topics/common/message/index.js | 75 ++++++++++++++++++++++ pages/topics/common/message/index.json | 3 + pages/topics/common/message/index.wxml | 11 ++++ pages/topics/common/message/index.wxss | 38 +++++++++++ pages/topics/index.js | 22 +++++-- pages/topics/index.json | 7 +- pages/topics/index.wxml | 20 +++++- pages/topics/index.wxss | 57 +++++++++++++++- 17 files changed, 374 insertions(+), 8 deletions(-) create mode 100644 pages/topics/common/goodIdea/index.js create mode 100644 pages/topics/common/goodIdea/index.json create mode 100644 pages/topics/common/goodIdea/index.wxml create mode 100644 pages/topics/common/goodIdea/index.wxss create mode 100644 pages/topics/common/interactive/index.js create mode 100644 pages/topics/common/interactive/index.json create mode 100644 pages/topics/common/interactive/index.wxml create mode 100644 pages/topics/common/interactive/index.wxss create mode 100644 pages/topics/common/message/index.js create mode 100644 pages/topics/common/message/index.json create mode 100644 pages/topics/common/message/index.wxml create mode 100644 pages/topics/common/message/index.wxss diff --git a/app.json b/app.json index cb385e5..c8d6d09 100644 --- a/app.json +++ b/app.json @@ -3,7 +3,10 @@ "pages/home/index", "pages/user/index", "pages/billboards/index", - "pages/topics/index" + "pages/topics/index", + "pages/topics/common/message/index", + "pages/topics/common/interactive/index", + "pages/topics/common/goodIdea/index" ], "window": { "backgroundTextStyle": "light", diff --git a/pages/topics/common/goodIdea/index.js b/pages/topics/common/goodIdea/index.js new file mode 100644 index 0000000..1181c77 --- /dev/null +++ b/pages/topics/common/goodIdea/index.js @@ -0,0 +1,66 @@ +// pages/topics/common/goodIdea/index.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady: function () { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow: function () { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide: function () { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload: function () { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh: function () { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom: function () { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage: function () { + + } +}) \ No newline at end of file diff --git a/pages/topics/common/goodIdea/index.json b/pages/topics/common/goodIdea/index.json new file mode 100644 index 0000000..8835af0 --- /dev/null +++ b/pages/topics/common/goodIdea/index.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} \ No newline at end of file diff --git a/pages/topics/common/goodIdea/index.wxml b/pages/topics/common/goodIdea/index.wxml new file mode 100644 index 0000000..1b000c0 --- /dev/null +++ b/pages/topics/common/goodIdea/index.wxml @@ -0,0 +1,2 @@ + +pages/topics/common/goodIdea/index.wxml diff --git a/pages/topics/common/goodIdea/index.wxss b/pages/topics/common/goodIdea/index.wxss new file mode 100644 index 0000000..70e56bc --- /dev/null +++ b/pages/topics/common/goodIdea/index.wxss @@ -0,0 +1 @@ +/* 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 new file mode 100644 index 0000000..8531848 --- /dev/null +++ b/pages/topics/common/interactive/index.js @@ -0,0 +1,66 @@ +// pages/topics/common/interactive/index.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady: function () { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow: function () { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide: function () { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload: function () { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh: function () { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom: function () { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage: function () { + + } +}) \ No newline at end of file diff --git a/pages/topics/common/interactive/index.json b/pages/topics/common/interactive/index.json new file mode 100644 index 0000000..8835af0 --- /dev/null +++ b/pages/topics/common/interactive/index.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} \ No newline at end of file diff --git a/pages/topics/common/interactive/index.wxml b/pages/topics/common/interactive/index.wxml new file mode 100644 index 0000000..92548ab --- /dev/null +++ b/pages/topics/common/interactive/index.wxml @@ -0,0 +1,2 @@ + +pages/topics/common/interactive/index.wxml diff --git a/pages/topics/common/interactive/index.wxss b/pages/topics/common/interactive/index.wxss new file mode 100644 index 0000000..831b94e --- /dev/null +++ b/pages/topics/common/interactive/index.wxss @@ -0,0 +1 @@ +/* pages/topics/common/interactive/index.wxss */ \ No newline at end of file diff --git a/pages/topics/common/message/index.js b/pages/topics/common/message/index.js new file mode 100644 index 0000000..f9781db --- /dev/null +++ b/pages/topics/common/message/index.js @@ -0,0 +1,75 @@ +// pages/topics/common/message/index.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + textAreaString:"" + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady: function () { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow: function () { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide: function () { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload: function () { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh: function () { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom: function () { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage: function () { + + }, + + bindTextAreaInput(e){ + this.setData({ + textAreaString:e.detail.value + }) + }, + submit(){ + console.log(this.data.textAreaString) + } +}) \ No newline at end of file diff --git a/pages/topics/common/message/index.json b/pages/topics/common/message/index.json new file mode 100644 index 0000000..8835af0 --- /dev/null +++ b/pages/topics/common/message/index.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} \ No newline at end of file diff --git a/pages/topics/common/message/index.wxml b/pages/topics/common/message/index.wxml new file mode 100644 index 0000000..7c8c0cb --- /dev/null +++ b/pages/topics/common/message/index.wxml @@ -0,0 +1,11 @@ + + + + +