From 689cc067254fe844f7137a0e8b1477b0e2de300e Mon Sep 17 00:00:00 2001 From: jackKiZhu <178480849@qq.com> Date: Wed, 11 Oct 2017 11:51:14 +0800 Subject: [PATCH 1/6] =?UTF-8?q?#71=20=E7=AC=AC3=E6=AC=A1=E5=AE=9E=E9=AA=8C?= =?UTF-8?q?-=E5=AE=9E=E7=8E=B0=E6=BB=9A=E5=8A=A8=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 1517060342/index.html | 2 + 1517060342/pages/comp/scroll.wxml | 15 ++++ 1517060342/pages/comp/scroll.wxss | 1 + 1517060342/scroll.js | 111 ++++++++++++++++++++++++++++++ 1517060342/scroll.json | 1 + 1517060342/scroll.wxml | 15 ++++ 6 files changed, 145 insertions(+) create mode 100644 1517060342/pages/comp/scroll.wxml create mode 100644 1517060342/pages/comp/scroll.wxss create mode 100644 1517060342/scroll.js create mode 100644 1517060342/scroll.json create mode 100644 1517060342/scroll.wxml diff --git a/1517060342/index.html b/1517060342/index.html index 7b0041b..2383c25 100644 --- a/1517060342/index.html +++ b/1517060342/index.html @@ -1,6 +1,8 @@ + 1517060342 +

²âÊÔ

diff --git a/1517060342/pages/comp/scroll.wxml b/1517060342/pages/comp/scroll.wxml new file mode 100644 index 0000000..c7a7dbd --- /dev/null +++ b/1517060342/pages/comp/scroll.wxml @@ -0,0 +1,15 @@ + + + + + + + {{index}} {{item.name}} + {{item.last}} + + + + 正在加载…… + + + diff --git a/1517060342/pages/comp/scroll.wxss b/1517060342/pages/comp/scroll.wxss new file mode 100644 index 0000000..14343d6 --- /dev/null +++ b/1517060342/pages/comp/scroll.wxss @@ -0,0 +1 @@ +/* pages/comp/scroll.wxss */ \ No newline at end of file diff --git a/1517060342/scroll.js b/1517060342/scroll.js new file mode 100644 index 0000000..e91830d --- /dev/null +++ b/1517060342/scroll.js @@ -0,0 +1,111 @@ +// pages/comp/scroll.js +var base64 = require("../example/images/base64"); + +Page({ + + /** + * 页é¢çš„åˆå§‹æ•°æ® + */ + data: { + isEnd: false, + messages: [{ + name: "张三", + last: "您好ï¼", + sixsix: "666!" + }, { + name: "æŽå››", + last: "您好ï¼" + }, { + name: "æŽå››", + last: "您好ï¼" + }, { + name: "æŽå››", + last: "您好ï¼" + }, { + name: "æŽå››", + last: "您好ï¼" + }, { + name: "æŽå››", + last: "您好ï¼" + }, { + name: "æŽå››", + last: "您好ï¼" + }] + }, + + /** + * 生命周期函数--监å¬é¡µé¢åŠ è½½ + */ + onLoad: function (options) { + this.setData({ + icon20: base64.icon20, + icon60: base64.icon60 + }); + }, + + /** + * 生命周期函数--监å¬é¡µé¢åˆæ¬¡æ¸²æŸ“å®Œæˆ + */ + onReady: function () { + + }, + + /** + * 生命周期函数--监å¬é¡µé¢æ˜¾ç¤º + */ + onShow: function () { + + }, + + /** + * 生命周期函数--监å¬é¡µé¢éšè— + */ + onHide: function () { + + }, + + /** + * 生命周期函数--监å¬é¡µé¢å¸è½½ + */ + onUnload: function () { + + }, + + /** + * 页é¢ç›¸å…³äº‹ä»¶å¤„ç†å‡½æ•°--监å¬ç”¨æˆ·ä¸‹æ‹‰åŠ¨ä½œ + */ + onPullDownRefresh: function () { + + }, + + /** + * 页é¢ä¸Šæ‹‰è§¦åº•äº‹ä»¶çš„处ç†å‡½æ•° + */ + onReachBottom: function () { + + }, + + /** + * 用户点击å³ä¸Šè§’分享 + */ + onShareAppMessage: function () { + + }, + + onEnd: function () { + console.log("onEnd") + var that = this; + var data = that.data; + that.setData({ + isEnd: true /*, + messages: data.messages.concat([{ + name: "Tom", + last: "Hello!" + }, { + name: "john", + last: "yes." + }]) */ + }); + + } +}) \ No newline at end of file diff --git a/1517060342/scroll.json b/1517060342/scroll.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/1517060342/scroll.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/1517060342/scroll.wxml b/1517060342/scroll.wxml new file mode 100644 index 0000000..c7a7dbd --- /dev/null +++ b/1517060342/scroll.wxml @@ -0,0 +1,15 @@ + + + + + + + {{index}} {{item.name}} + {{item.last}} + + + + 正在加载…… + + + From b1418937cc19962dbf71cd2b16c5c3f6f74b555a Mon Sep 17 00:00:00 2001 From: ST Date: Wed, 18 Oct 2017 09:45:50 +0800 Subject: [PATCH 2/6] =?UTF-8?q?#71=20=E7=AC=AC3=E6=AC=A1=E5=AE=9E=E9=AA=8C?= =?UTF-8?q?-=E5=AE=9E=E7=8E=B0=E6=BB=9A=E5=8A=A8=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 1517060342/pages/comp/scroll.js | 111 ++++++++++++++++++++++++++++++ 1517060342/pages/comp/scroll.json | 1 + 1517060342/pages/comp/scroll.wxss | 1 - 3 files changed, 112 insertions(+), 1 deletion(-) create mode 100644 1517060342/pages/comp/scroll.js create mode 100644 1517060342/pages/comp/scroll.json delete mode 100644 1517060342/pages/comp/scroll.wxss diff --git a/1517060342/pages/comp/scroll.js b/1517060342/pages/comp/scroll.js new file mode 100644 index 0000000..e91830d --- /dev/null +++ b/1517060342/pages/comp/scroll.js @@ -0,0 +1,111 @@ +// pages/comp/scroll.js +var base64 = require("../example/images/base64"); + +Page({ + + /** + * 页é¢çš„åˆå§‹æ•°æ® + */ + data: { + isEnd: false, + messages: [{ + name: "张三", + last: "您好ï¼", + sixsix: "666!" + }, { + name: "æŽå››", + last: "您好ï¼" + }, { + name: "æŽå››", + last: "您好ï¼" + }, { + name: "æŽå››", + last: "您好ï¼" + }, { + name: "æŽå››", + last: "您好ï¼" + }, { + name: "æŽå››", + last: "您好ï¼" + }, { + name: "æŽå››", + last: "您好ï¼" + }] + }, + + /** + * 生命周期函数--监å¬é¡µé¢åŠ è½½ + */ + onLoad: function (options) { + this.setData({ + icon20: base64.icon20, + icon60: base64.icon60 + }); + }, + + /** + * 生命周期函数--监å¬é¡µé¢åˆæ¬¡æ¸²æŸ“å®Œæˆ + */ + onReady: function () { + + }, + + /** + * 生命周期函数--监å¬é¡µé¢æ˜¾ç¤º + */ + onShow: function () { + + }, + + /** + * 生命周期函数--监å¬é¡µé¢éšè— + */ + onHide: function () { + + }, + + /** + * 生命周期函数--监å¬é¡µé¢å¸è½½ + */ + onUnload: function () { + + }, + + /** + * 页é¢ç›¸å…³äº‹ä»¶å¤„ç†å‡½æ•°--监å¬ç”¨æˆ·ä¸‹æ‹‰åŠ¨ä½œ + */ + onPullDownRefresh: function () { + + }, + + /** + * 页é¢ä¸Šæ‹‰è§¦åº•äº‹ä»¶çš„处ç†å‡½æ•° + */ + onReachBottom: function () { + + }, + + /** + * 用户点击å³ä¸Šè§’分享 + */ + onShareAppMessage: function () { + + }, + + onEnd: function () { + console.log("onEnd") + var that = this; + var data = that.data; + that.setData({ + isEnd: true /*, + messages: data.messages.concat([{ + name: "Tom", + last: "Hello!" + }, { + name: "john", + last: "yes." + }]) */ + }); + + } +}) \ No newline at end of file diff --git a/1517060342/pages/comp/scroll.json b/1517060342/pages/comp/scroll.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/1517060342/pages/comp/scroll.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/1517060342/pages/comp/scroll.wxss b/1517060342/pages/comp/scroll.wxss deleted file mode 100644 index 14343d6..0000000 --- a/1517060342/pages/comp/scroll.wxss +++ /dev/null @@ -1 +0,0 @@ -/* pages/comp/scroll.wxss */ \ No newline at end of file From e9881128076ebf9308db7e49e58d3c3053407769 Mon Sep 17 00:00:00 2001 From: ST Date: Wed, 18 Oct 2017 10:04:10 +0800 Subject: [PATCH 3/6] =?UTF-8?q?#82=20=E7=AC=AC4=E6=AC=A1=E5=AE=9E=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 1517060342/form/form.js | 91 +++++++++++++++++++++++++++++++++++++++ 1517060342/form/form.json | 1 + 1517060342/form/form.wxml | 31 +++++++++++++ 1517060342/form/form.wxss | 1 + 4 files changed, 124 insertions(+) create mode 100644 1517060342/form/form.js create mode 100644 1517060342/form/form.json create mode 100644 1517060342/form/form.wxml create mode 100644 1517060342/form/form.wxss diff --git a/1517060342/form/form.js b/1517060342/form/form.js new file mode 100644 index 0000000..0d40c03 --- /dev/null +++ b/1517060342/form/form.js @@ -0,0 +1,91 @@ +// pages/form/form.js +Page({ + + /** + * 页é¢çš„åˆå§‹æ•°æ® + */ + data: { + text: "Hello" + }, + + /** + * 生命周期函数--监å¬é¡µé¢åŠ è½½ + */ + onLoad: function (options) { + var that = this; + wx.getStorage({ + key: 'formData', + success: function (res) { + console.log(res.data) + that.setData({ + text: res.data.text, + paragh: res.data.paragh + }); + } + }) + }, + + /** + * 生命周期函数--监å¬é¡µé¢åˆæ¬¡æ¸²æŸ“å®Œæˆ + */ + onReady: function () { + + }, + + /** + * 生命周期函数--监å¬é¡µé¢æ˜¾ç¤º + */ + onShow: function () { + + }, + + /** + * 生命周期函数--监å¬é¡µé¢éšè— + */ + onHide: function () { + + }, + + /** + * 生命周期函数--监å¬é¡µé¢å¸è½½ + */ + onUnload: function () { + + }, + + /** + * 页é¢ç›¸å…³äº‹ä»¶å¤„ç†å‡½æ•°--监å¬ç”¨æˆ·ä¸‹æ‹‰åŠ¨ä½œ + */ + onPullDownRefresh: function () { + + }, + + /** + * 页é¢ä¸Šæ‹‰è§¦åº•äº‹ä»¶çš„处ç†å‡½æ•° + */ + onReachBottom: function () { + + }, + + /** + * 用户点击å³ä¸Šè§’分享 + */ + onShareAppMessage: function () { + + }, + + doSubmit: function (e) { + console.dir(e) + var that = this; + var text = e.detail.value.text; + var paragh = e.detail.value.paragh; + + wx.setStorage({ + key: "formData", + data: { + text: text, + paragh: paragh + } + }) + } +}) \ No newline at end of file diff --git a/1517060342/form/form.json b/1517060342/form/form.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/1517060342/form/form.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/1517060342/form/form.wxml b/1517060342/form/form.wxml new file mode 100644 index 0000000..259eedb --- /dev/null +++ b/1517060342/form/form.wxml @@ -0,0 +1,31 @@ + + +
+ + {{text + ", " + paragh}} + + 标题 + + + + + + + + + 内容 + + + +