diff --git a/1517060318/2017-10-11/comp/qq2.png b/1517060318/2017-10-11/comp/qq2.png new file mode 100644 index 0000000..d8c82ed Binary files /dev/null and b/1517060318/2017-10-11/comp/qq2.png differ diff --git a/1517060318/2017-10-11/comp/scroll.js b/1517060318/2017-10-11/comp/scroll.js new file mode 100644 index 0000000..2f0e777 --- /dev/null +++ b/1517060318/2017-10-11/comp/scroll.js @@ -0,0 +1,110 @@ +// pages/comp/scroll.js +var base64 = require("../example/images/base64"); + +Page({ + + /** + * 页面的初始数据 + */ + data: { + isEnd: false, + messages: [{ + name: "林武胜", + last: "linwusheng" + }, { + name: "林武胜", + last: "linwusheng" + }, { + name: "林武胜", + last: "linwusheng" + }, { + name: "林武胜", + last: "linwusheng" + }, { + name: "林武胜", + last: "linwusheng" + }, { + name: "林武胜", + last: "linwusheng" + }, { + name: "林武胜", + last: "linwusheng" + }] + }, + + /** + * 生命周期函数--监听页面加载 + */ + 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/1517060318/2017-10-11/comp/scroll.wxml b/1517060318/2017-10-11/comp/scroll.wxml new file mode 100644 index 0000000..571d6de --- /dev/null +++ b/1517060318/2017-10-11/comp/scroll.wxml @@ -0,0 +1,27 @@ + + + + Panel + 面板 + + + + + + + + + + + {{index}} {{item.name}} + {{item.last}} + + + + + + + 正在加载…… + + + \ No newline at end of file diff --git a/1517060318/2017-10-11/comp/scroll.wxss b/1517060318/2017-10-11/comp/scroll.wxss new file mode 100644 index 0000000..14343d6 --- /dev/null +++ b/1517060318/2017-10-11/comp/scroll.wxss @@ -0,0 +1 @@ +/* pages/comp/scroll.wxss */ \ No newline at end of file