代码
"navigationBarBackgroundColor": "#35495e",
"navigationBarTextStyle": "white",
"navigationBarTitleText": "豆瓣电影",
"backgroundColor": "#fff",
"backgroundTextStyle": "dark",
"enablePullDownRefresh": true
"iconPath":"images/board.png",
"selectedIconPath":"images/board-actived.png",
"pagePath":"pages/index/index"
"iconPath":"images/search.png",
"selectedIconPath":"images/search_black.png",
"pagePath":"pages/search/search"
"iconPath":"images/profile.png",
"selectedIconPath":"images/profile-actived.png",
"pagePath":"pages/profile/profile"
font-family: "Microsoft YaHei";
border-bottom: 2rpx solid
border-bottom: 2rpx solid
.item.title,.item.sub-title{
<view class="page-header">
<text class="page-header-text">{{title}}</text>
<scroll-view class="page-body" scorll-y="true">
<navigator url="../movie/movie?id={{item.id}}" wx:for="{{movies}}">
<image class="poster"src="{{item.images.small}}"></image>
<text class="title">{{item.title}}</text>
{{item.original_title}} ({{item.year}})</text>
<text wx:for="{{item.directors}}">
<text>{{item.rating.average}}</text>
var API_URL =\'https://api.douban.com/v2/movie/top250\'
\'content-type\': \'json\'
<scroll-view scroll-y="true">
<image class="poster" src="{{movie.images.large}}" background-size="cover"></image>
<text class="title">{{movie.title}}({{movie.year}})</text>
<text class="info">评分:{{movie.rating.average}}</text>
<text class="info">导演:<block wx:for="{{movie.directors}}">{{item.name}}</block></text>
<text class="info">主演:<block wx:for="{{movie.casts}}">{{item.name}}</block></text>
<text class="label">摘要:</text>
<text class="content">{{movie.summary}}</text>
var API_URL = \'https://api.douban.com/v2/movie/subject/\'
onLoad: function (params) {
\'content-type\': \'json\'
success: function (res) {
<view bindtap="bindViewTap" class="userinfo">
<image class="userinfo-avatar" src="{{userInfo.avatarUrl}}" background-size="cover"></image>
<view class="infohead">电影</view>
<view class="infolist" wx:for="{{infoList}}">
<view class="infoitem">{{item.text}}</view>
<view class="infohead">其他</view>
<view bindtap="bindViewTap" class="infolist" wx:for="{{other}}">
<view class="infoitem">{{item.text}}</view>
border-bottom: 1px solid #dadada;
-webkit-box-align: center;
border-bottom: 1px solid #dadada;
请发表评论