Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fixed 列表页真机不显示问题
  • Loading branch information
boxuegu committed Jan 10, 2017
1 parent 9fa416c commit 319167b
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 12 deletions.
6 changes: 3 additions & 3 deletions src/pages/board/board.less
@@ -1,9 +1,9 @@
.slide swiper {
height: 400rpx;
height: 380rpx;

image {
height: 400rpx;
width: 100%;
height: 380rpx;
width: 750rpx;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/pages/board/board.xml
Expand Up @@ -19,7 +19,7 @@
<view class="inner">
<navigator wx:for="{{ item.movies }}" wx:key="{{ item.id }}" url="../item/item?id={{ item.id }}">
<view class="movie-item">
<image src="{{ item.images.medium }}" mode="aspectFill"/>
<image src="{{ item.images.large }}" mode="aspectFill"/>
<text>{{ item.title }}</text>
</view>
</navigator>
Expand Down
7 changes: 4 additions & 3 deletions src/pages/common/movie-list.less
@@ -1,7 +1,8 @@
.list {
display: flex;
flex: 1;
flex-direction: column;
// display: flex;
// flex: 1;
// flex-direction: column;
height: 100%;

.item {
display: flex;
Expand Down
5 changes: 4 additions & 1 deletion src/pages/item/item.js
Expand Up @@ -17,7 +17,10 @@ Page({
*/
onLoad (params) {
app.douban.findOne(params.id)
.then(d => this.setData({ title: d.title, movie: d, loading: false }))
.then(d => {
this.setData({ title: d.title, movie: d, loading: false })
wx.setNavigationBarTitle({ title: d.title + ' « 电影 « 豆瓣' })
})
.catch(e => {
this.setData({ title: '获取数据异常', movie: {}, loading: false })
console.error(e)
Expand Down
2 changes: 1 addition & 1 deletion src/pages/list/list.json
Expand Up @@ -10,5 +10,5 @@
// 类型:Boolean;默认值:false
// 是否开启下拉刷新,详见页面相关事件处理函数。
// https://mp.weixin.qq.com/debug/wxadoc/dev/framework/app-service/page.html?t=1476197491005#页面相关事件处理函数
"enablePullDownRefresh": true
"enablePullDownRefresh": false
}
4 changes: 2 additions & 2 deletions src/pages/list/list.xml
@@ -1,7 +1,7 @@
<import src="../common/movie-list"/>
<view class="container">
<view class="header">
<!-- <view class="header">
<text>{{ subtitle }}</text>
</view>
</view> -->
<template is="movie-list" data="{{ movies, loading, hasMore }}"/>
</view>
2 changes: 1 addition & 1 deletion src/pages/search/search.json
Expand Up @@ -10,5 +10,5 @@
// 类型:Boolean;默认值:false
// 是否开启下拉刷新,详见页面相关事件处理函数。
// https://mp.weixin.qq.com/debug/wxadoc/dev/framework/app-service/page.html?t=1476197491005#页面相关事件处理函数
"enablePullDownRefresh": true
"enablePullDownRefresh": false
}
4 changes: 4 additions & 0 deletions src/pages/search/search.less
Expand Up @@ -18,3 +18,7 @@
text-align: center;
}
}

.list {
padding-top: 100rpx;
}

0 comments on commit 319167b

Please sign in to comment.