Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
严立
/
mini-shimao
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
7ec2d702
authored
Sep 16, 2020
by
wjw
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
ww-电影细节修改
parent
c596ff4a
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
58 additions
and
18 deletions
pages/mine/home/home.js
pages/play/movie-detail/movie-detail.js
pages/play/movie/movie.js
pages/play/movie/movie.wxml
pages/play/movie/movie.wxss
project.config.json
pages/mine/home/home.js
View file @
7ec2d702
...
@@ -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
()
}
}
})
})
...
...
pages/play/movie-detail/movie-detail.js
View file @
7ec2d702
...
@@ -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
...
...
pages/play/movie/movie.js
View file @
7ec2d702
...
@@ -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
}
})
})
}
}
})
})
...
...
pages/play/movie/movie.wxml
View file @
7ec2d702
...
@@ -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}}">
...
...
pages/play/movie/movie.wxss
View file @
7ec2d702
...
@@ -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;
...
...
project.config.json
View file @
7ec2d702
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
"outputPath"
:
""
"outputPath"
:
""
},
},
"useIsolateContext"
:
true
,
"useIsolateContext"
:
true
,
"useCompilerModule"
:
tru
e
,
"useCompilerModule"
:
fals
e
,
"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
}
}
]
]
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment