Commit 7ec2d702 by wjw

ww-电影细节修改

parent c596ff4a
...@@ -126,7 +126,7 @@ Page({ ...@@ -126,7 +126,7 @@ Page({
App.login({ App.login({
success: (token) => { success: (token) => {
this.getMyActivityList() this.getMyActivityList()
this.getList() // this.getList()
this.getAuth() this.getAuth()
} }
}) })
......
...@@ -9,7 +9,6 @@ Page({ ...@@ -9,7 +9,6 @@ Page({
statusList: [], statusList: [],
movieInfo: {}, movieInfo: {},
showList: {}, showList: {},
free: '免费'
}, },
onLoad: function (options) { onLoad: function (options) {
let activityId = options.id let activityId = options.id
......
...@@ -8,7 +8,7 @@ Page({ ...@@ -8,7 +8,7 @@ Page({
pageSize: '-1' pageSize: '-1'
}, },
statusActive: 0, statusActive: 1,
statusList: [ statusList: [
{ 'id': 0, 'name': '今日放映' }, { 'id': 0, 'name': '今日放映' },
{ 'id': 1, 'name': '全部热映' }, { 'id': 1, 'name': '全部热映' },
...@@ -17,16 +17,7 @@ Page({ ...@@ -17,16 +17,7 @@ Page({
// 今日热映 // 今日热映
movieToday: [], movieToday: [],
//全部热映 //全部热映
movieAll: { movieAll: {}
movieWeek: {
title: '本周热映',
list: []
},
movieNextWeek: {
title: '下周热映',
list: []
}
}
}, },
onLoad: function () { onLoad: function () {
this.getTodayFilm() this.getTodayFilm()
...@@ -81,7 +72,10 @@ Page({ ...@@ -81,7 +72,10 @@ Page({
v.filmLead = v.filmLead.replace(/\//g, ' ') v.filmLead = v.filmLead.replace(/\//g, ' ')
}) })
this.setData({ this.setData({
'movieAll.movieWeek.list': movieWeek 'movieAll.movieWeek': {
title: '本周热映',
list: movieWeek
}
}) })
} }
}) })
...@@ -101,7 +95,10 @@ Page({ ...@@ -101,7 +95,10 @@ Page({
v.filmLead = v.filmLead.replace(/\//g, ' ') v.filmLead = v.filmLead.replace(/\//g, ' ')
}) })
this.setData({ this.setData({
'movieAll.movieNextWeek.list': movieNextWeek 'movieAll.movieNextWeek': {
title: '下周热映',
list: movieNextWeek
}
}) })
} }
}) })
......
...@@ -74,8 +74,14 @@ ...@@ -74,8 +74,14 @@
</view> </view>
<view wx:else> <view wx:else>
<block wx:for="{{movieAll}}" wx:for-index="key" wx:for-item="movieList" wx:key="key"> <block wx:for="{{movieAll}}" wx:for-index="key" wx:for-item="movieList" wx:key="key">
<view class="movie-week" wx:if="{{movieList.list.length > 0}}"> <view class="movie-week row align-c con-c" wx:if="{{movieList.list.length > 0}}">
<text>{{movieList.title}}</text> <view class="line"></view>
<view class="movie-week-title">
<image class="star-left" src=""></image>
<text>{{movieList.title}}</text>
<image class="star-right" src="/image/star-right.png"></image>
</view>
<view class="line"></view>
</view> </view>
<block wx:for="{{movieList.list}}" wx:key="id"> <block wx:for="{{movieList.list}}" wx:key="id">
<view class="all-movie-wrapper" bindtap="onToMovieDetail" data-movieId="{{item.activityId}}"> <view class="all-movie-wrapper" bindtap="onToMovieDetail" data-movieId="{{item.activityId}}">
......
...@@ -150,8 +150,39 @@ page { ...@@ -150,8 +150,39 @@ page {
color: #C2C7CF; color: #C2C7CF;
font-size: 22rpx; font-size: 22rpx;
text-align: center; text-align: center;
letter-spacing: 3rpx;
line-height: 44rpx; line-height: 44rpx;
} }
.movie-week-title {
position: relative;
margin: 0 8rpx;
padding: 8rpx 40rpx 4rpx;
}
.star-left {
position: absolute;
left: 0;
bottom: 0;
width: 36rpx;
height: 8rpx;
background-color: #ccc;
}
.star-right {
position: absolute;
right: 0;
top: 0;
width: 68rpx;
height: 40rpx;
background-color: #ccc;
}
.line {
width: 80rpx;
height: 1rpx;
background: #E2E7EF;
}
.all-movie-wrapper { .all-movie-wrapper {
position: relative; position: relative;
width: 670rpx; width: 670rpx;
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
"outputPath": "" "outputPath": ""
}, },
"useIsolateContext": true, "useIsolateContext": true,
"useCompilerModule": true, "useCompilerModule": false,
"userConfirmedUseCompilerModuleSwitch": false, "userConfirmedUseCompilerModuleSwitch": false,
"useMultiFrameRuntime": true, "useMultiFrameRuntime": true,
"useApiHook": true, "useApiHook": true,
...@@ -187,6 +187,13 @@ ...@@ -187,6 +187,13 @@
"pathName": "pages/mine/accumulate/accumulate", "pathName": "pages/mine/accumulate/accumulate",
"query": "", "query": "",
"scene": null "scene": null
},
{
"id": -1,
"name": "pages/mine/home/home",
"pathName": "pages/mine/home/home",
"query": "",
"scene": null
} }
] ]
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment