From f5cb1300dff374c14aaba6058239a8c7bcd15c61 Mon Sep 17 00:00:00 2001 From: zhl Date: Thu, 4 Apr 2019 16:58:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0grid-view=E7=9A=84list?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/grid-cell.wpy | 76 ++++++++++++++++++++++++++++++++++++ src/components/rating.wpy | 48 +++++++++++++++++++++++ src/pages/index.wpy | 10 ++--- src/pages/search.wpy | 20 ++++++++-- src/style/font.wxss | 5 ++- 5 files changed, 150 insertions(+), 9 deletions(-) create mode 100644 src/components/grid-cell.wpy create mode 100644 src/components/rating.wpy diff --git a/src/components/grid-cell.wpy b/src/components/grid-cell.wpy new file mode 100644 index 0000000..b53a3ac --- /dev/null +++ b/src/components/grid-cell.wpy @@ -0,0 +1,76 @@ + + + + diff --git a/src/components/rating.wpy b/src/components/rating.wpy new file mode 100644 index 0000000..a40c3c5 --- /dev/null +++ b/src/components/rating.wpy @@ -0,0 +1,48 @@ + + + diff --git a/src/pages/index.wpy b/src/pages/index.wpy index 381b6b3..5c9e7fd 100644 --- a/src/pages/index.wpy +++ b/src/pages/index.wpy @@ -134,11 +134,11 @@ this.$toGameInfo(gid); }, async toSearch() { - // wepy.navigateTo({ - // url: '/pages/search' - // }) - let movie = 'http://iqiyi.kuyun-bofang.com/20190208/eebojrT3/index.m3u8' - this.$toMovie(movie, '流浪地球'); + wepy.navigateTo({ + url: '/pages/search' + }) + // let movie = 'http://iqiyi.kuyun-bofang.com/20190208/eebojrT3/index.m3u8' + // this.$toMovie(movie, '流浪地球'); }, async showInviteView() { await this.updateInviteViewData(); diff --git a/src/pages/search.wpy b/src/pages/search.wpy index 35d06d3..b9a68c4 100644 --- a/src/pages/search.wpy +++ b/src/pages/search.wpy @@ -4,6 +4,11 @@ .container { background-color:#FFFFFF; } + .grid-list { + display: flex; + flex-wrap: wrap; + padding: 5rpx; + }