From d1099fd7b3db97c67f9fac65f20340a8f345bb1b Mon Sep 17 00:00:00 2001 From: zhl Date: Mon, 18 Feb 2019 13:14:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=A1=B6=E9=83=A8=E6=A8=AA?= =?UTF-8?q?=E5=90=91=E7=9A=84game=20cell?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project.config.json | 5 ++- src/components/recent-game.wpy | 53 +++++++++++++++++++++++++ src/pages/index.wpy | 72 +++++++++++++++++++++++++++++++++- 3 files changed, 127 insertions(+), 3 deletions(-) create mode 100644 src/components/recent-game.wpy diff --git a/project.config.json b/project.config.json index dbc7621..6949d02 100644 --- a/project.config.json +++ b/project.config.json @@ -1,11 +1,12 @@ { "description": "A WePY project", "setting": { - "urlCheck": true, + "urlCheck": false, "es6": false, "postcss": false, "minified": false, - "newFeature": true + "newFeature": true, + "autoAudits": false }, "compileType": "miniprogram", "appid": "wxbf333d56b4de3905", diff --git a/src/components/recent-game.wpy b/src/components/recent-game.wpy new file mode 100644 index 0000000..627ef75 --- /dev/null +++ b/src/components/recent-game.wpy @@ -0,0 +1,53 @@ + + + + diff --git a/src/pages/index.wpy b/src/pages/index.wpy index 326eb79..09abed2 100644 --- a/src/pages/index.wpy +++ b/src/pages/index.wpy @@ -9,6 +9,7 @@ {{ nickname }} + @@ -23,6 +24,7 @@ import base from '../mixins/base'; import tips from '../mixins/tips'; import recordCell from '../components/game-cell'; + import recentGame from '../components/recent-game'; import zanLoadmore from '../components/zan-loadmore'; export default class Index extends wepy.page { @@ -34,6 +36,7 @@ components = { toast: Toast, recordCell: recordCell, + recentGame: recentGame, zanLoadmore: zanLoadmore }; @@ -41,6 +44,7 @@ nickname: '加载中', avatar: '', records: [], + recent_game_list: [], all_count: 0, current: 0, loading: false, @@ -102,8 +106,74 @@ image: 'http://pub.hoh8.cn/files/game/fc/7002058/icon.jpg', url: 'http://192.168.100.84:7456/', id: '001' - }]; + }, + { + title: '超级玛丽(日版)', + content: '《超级马里奥兄弟》又名《超级玛丽兄弟》,是任天堂于1985年出品的著名横版过关游戏,作为1983年游...', + image: 'http://pub.hoh8.cn/files/game/fc/7002058/icon.jpg', + url: 'http://192.168.100.84:7456/', + id: '001' + }, + { + title: '超级玛丽(日版)', + content: '《超级马里奥兄弟》又名《超级玛丽兄弟》,是任天堂于1985年出品的著名横版过关游戏,作为1983年游...', + image: 'http://pub.hoh8.cn/files/game/fc/7002058/icon.jpg', + url: 'http://192.168.100.84:7456/', + id: '001' + }, + { + title: '超级玛丽(日版)', + content: '《超级马里奥兄弟》又名《超级玛丽兄弟》,是任天堂于1985年出品的著名横版过关游戏,作为1983年游...', + image: 'http://pub.hoh8.cn/files/game/fc/7002058/icon.jpg', + url: 'http://192.168.100.84:7456/', + id: '001' + }, + { + title: '超级玛丽(日版)', + content: '《超级马里奥兄弟》又名《超级玛丽兄弟》,是任天堂于1985年出品的著名横版过关游戏,作为1983年游...', + image: 'http://pub.hoh8.cn/files/game/fc/7002058/icon.jpg', + url: 'http://192.168.100.84:7456/', + id: '001' + }, + { + title: '超级玛丽(日版)', + content: '《超级马里奥兄弟》又名《超级玛丽兄弟》,是任天堂于1985年出品的著名横版过关游戏,作为1983年游...', + image: 'http://pub.hoh8.cn/files/game/fc/7002058/icon.jpg', + url: 'http://192.168.100.84:7456/', + id: '001' + }, + { + title: '超级玛丽(日版)', + content: '《超级马里奥兄弟》又名《超级玛丽兄弟》,是任天堂于1985年出品的著名横版过关游戏,作为1983年游...', + image: 'http://pub.hoh8.cn/files/game/fc/7002058/icon.jpg', + url: 'http://192.168.100.84:7456/', + id: '001' + },{ + title: '超级玛丽(日版)', + content: '《超级马里奥兄弟》又名《超级玛丽兄弟》,是任天堂于1985年出品的著名横版过关游戏,作为1983年游...', + image: 'http://pub.hoh8.cn/files/game/fc/7002058/icon.jpg', + url: 'http://192.168.100.84:7456/', + id: '001' + }, + { + title: '超级玛丽(日版)', + content: '《超级马里奥兄弟》又名《超级玛丽兄弟》,是任天堂于1985年出品的著名横版过关游戏,作为1983年游...', + image: 'http://pub.hoh8.cn/files/game/fc/7002058/icon.jpg', + url: 'http://192.168.100.84:7456/', + id: '001' + } + ]; + this.recent_game_list = [ + {image: 'http://pub.hoh8.cn/files/game/fc/7002058/icon.jpg'}, + {image: 'http://pub.hoh8.cn/files/game/fc/7002058/icon.jpg'}, + {image: 'http://pub.hoh8.cn/files/game/fc/7002058/icon.jpg'}, + {image: 'http://pub.hoh8.cn/files/game/fc/7002058/icon.jpg'}, + {image: 'http://pub.hoh8.cn/files/game/fc/7002058/icon.jpg'} + ]; this.records = records; + this.$apply(); + this.noData = false; + this.noMore = true; } }