jufubao-movie 1.0.39-beta11 → 1.0.39-beta13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/components/JfbMovieLineCinemaChoose/Api.js +3 -3
- package/src/components/JfbMovieLineCinemaChoose/JfbMovieLineCinemaChoose.vue +12 -8
- package/src/components/JfbMovieLineCinemaChoose/Mock.js +2 -2
- package/src/components/JfbMovieLineFilmInfo/Mock.js +1 -1
- package/src/components/JfbMovieTfkFilmList/JfbMovieTfkFilmList.vue +39 -7
- package/src/components/JfbMovieTfkFilmList/XdQueryFilter.vue +1 -1
package/package.json
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*/
|
|
13
13
|
module.exports = [
|
|
14
14
|
{
|
|
15
|
-
mapFnName: '
|
|
15
|
+
mapFnName: 'getCinemaChooseList', //自定义方法名字(必选)
|
|
16
16
|
title: '获取影院列表',
|
|
17
17
|
path: '/movie/v1/cinema/list',
|
|
18
18
|
isRule: false,
|
|
@@ -25,7 +25,7 @@ module.exports = [
|
|
|
25
25
|
disabled: true,
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
|
-
mapFnName: '
|
|
28
|
+
mapFnName: 'getFilmChooseInfo',
|
|
29
29
|
title: '获取影片详情',
|
|
30
30
|
path: '/movie/v1/film/get',
|
|
31
31
|
isRule: false,
|
|
@@ -37,7 +37,7 @@ module.exports = [
|
|
|
37
37
|
disabled: true,
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
|
-
mapFnName: "
|
|
40
|
+
mapFnName: "getCityChooseSub",
|
|
41
41
|
title: "获取城市的区位列表",
|
|
42
42
|
path: "/common/v1/region/city/getsub-lv",
|
|
43
43
|
isRule: false,
|
|
@@ -13,9 +13,7 @@
|
|
|
13
13
|
:class="{ editx: isEditx && active }"
|
|
14
14
|
v-if="isEditx && active && !noBorder"
|
|
15
15
|
>
|
|
16
|
-
<view class="jfb-movie-line-cinema-choose__edit-icon" @click="delEdit"
|
|
17
|
-
>删除</view
|
|
18
|
-
>
|
|
16
|
+
<view class="jfb-movie-line-cinema-choose__edit-icon" @click="delEdit">删除</view>
|
|
19
17
|
</view>
|
|
20
18
|
<!-- #endif -->
|
|
21
19
|
<view class="jfb-movie-line-cinema-choose__body">
|
|
@@ -28,7 +26,7 @@
|
|
|
28
26
|
<view class="film_other">
|
|
29
27
|
<view class="film_name_score">
|
|
30
28
|
<view class="film_name">{{ film.show_name }}</view>
|
|
31
|
-
<view class="film_score">{{ film.remark }}</view>
|
|
29
|
+
<view class="film_score" v-if="film.remark">{{ film.remark }}</view>
|
|
32
30
|
</view>
|
|
33
31
|
<view class="film_type">{{ film.type }}</view>
|
|
34
32
|
<view class="film_sub">导演:{{ film.director }}</view>
|
|
@@ -206,7 +204,7 @@ export default {
|
|
|
206
204
|
const { film_id } = options;
|
|
207
205
|
this.film_id = film_id;
|
|
208
206
|
const { stateCity } = this;
|
|
209
|
-
jfbRootExec("
|
|
207
|
+
jfbRootExec("getFilmChooseInfo", {
|
|
210
208
|
vm: this,
|
|
211
209
|
data: {
|
|
212
210
|
film_id,
|
|
@@ -246,7 +244,7 @@ export default {
|
|
|
246
244
|
});
|
|
247
245
|
},
|
|
248
246
|
handleGetCitySub(city_code) {
|
|
249
|
-
jfbRootExec("
|
|
247
|
+
jfbRootExec("getCityChooseSub", {
|
|
250
248
|
vm: this,
|
|
251
249
|
data: {
|
|
252
250
|
city_code,
|
|
@@ -260,7 +258,7 @@ export default {
|
|
|
260
258
|
// let region = citySubs[subIndex] || {};
|
|
261
259
|
console.log(stateCity, stateLocation, "p_getCinemaList");
|
|
262
260
|
this.$xdShowLoading({});
|
|
263
|
-
jfbRootExec("
|
|
261
|
+
jfbRootExec("getCinemaChooseList", {
|
|
264
262
|
vm: this,
|
|
265
263
|
data: {
|
|
266
264
|
city_code: stateCity.city_code,
|
|
@@ -356,14 +354,20 @@ view {
|
|
|
356
354
|
.film_name_score {
|
|
357
355
|
display: flex;
|
|
358
356
|
justify-content: space-between;
|
|
359
|
-
align-items:
|
|
357
|
+
align-items: flex-start;
|
|
360
358
|
font-size: 36rpx;
|
|
361
359
|
font-weight: 700;
|
|
362
360
|
.film_name {
|
|
363
361
|
color: #000;
|
|
362
|
+
flex: 1;
|
|
363
|
+
line-height: 46rpx;
|
|
364
364
|
}
|
|
365
365
|
.film_score {
|
|
366
366
|
color: #ff5733;
|
|
367
|
+
flex-shrink: 0;
|
|
368
|
+
margin-left: 6rpx;
|
|
369
|
+
font-size: 32rpx;
|
|
370
|
+
line-height: 46rpx;
|
|
367
371
|
}
|
|
368
372
|
}
|
|
369
373
|
.film_type {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
|
-
|
|
4
|
+
getFilmChooseInfo: {
|
|
5
5
|
"id": 155,
|
|
6
6
|
"city_code": "",
|
|
7
7
|
"show_name_en": "我的遗憾和你有关",
|
|
@@ -27,7 +27,7 @@ module.exports = {
|
|
|
27
27
|
"deleted_time": 0,
|
|
28
28
|
"request_id": "9aefdeb726bc8644"
|
|
29
29
|
},
|
|
30
|
-
|
|
30
|
+
getCinemaChooseList: {
|
|
31
31
|
list: [
|
|
32
32
|
{
|
|
33
33
|
cinema_id: 6780394,
|
|
@@ -122,8 +122,22 @@
|
|
|
122
122
|
</view>
|
|
123
123
|
<!--film hot|rightnow-->
|
|
124
124
|
<!--cinema-->
|
|
125
|
-
<view
|
|
126
|
-
|
|
125
|
+
<view class="list-filter-empty" v-if="isFixed"></view>
|
|
126
|
+
<view
|
|
127
|
+
v-if="type === 'list'"
|
|
128
|
+
id="list-filter"
|
|
129
|
+
class="list-filter"
|
|
130
|
+
:class="{
|
|
131
|
+
isFixed: isFixed,
|
|
132
|
+
}"
|
|
133
|
+
:style="{
|
|
134
|
+
marginTop:isFixed?0:(outSpacing + 'rpx'),
|
|
135
|
+
top: isFixed ? ((layoutInfo.top) +'rpx'): 0,
|
|
136
|
+
marginLeft:isFixed?0:(-outSpacing + 'rpx'),
|
|
137
|
+
marginRight:isFixed?0:(-outSpacing + 'rpx'),
|
|
138
|
+
}"
|
|
139
|
+
>
|
|
140
|
+
<view class="list-filter-block">
|
|
127
141
|
<view @click="handleFilterTab('filter')">
|
|
128
142
|
<xd-font-icon icon="iconrepository-xialaxuanxiangdown" size="24" color="#999"></xd-font-icon>
|
|
129
143
|
<text>{{areaName}}</text>
|
|
@@ -386,6 +400,7 @@
|
|
|
386
400
|
preRendering:[],
|
|
387
401
|
listFilterTop:null,
|
|
388
402
|
listFilterTopTimer:0,
|
|
403
|
+
isFixed: false,
|
|
389
404
|
}
|
|
390
405
|
},
|
|
391
406
|
computed:{
|
|
@@ -544,7 +559,7 @@
|
|
|
544
559
|
.select('#list-filter')
|
|
545
560
|
.boundingClientRect((data) => {
|
|
546
561
|
if(data && data.top !==undefined){
|
|
547
|
-
let listFilterTop = data.top - this.layoutInfo.top * this.$rpxNum
|
|
562
|
+
let listFilterTop = data.top - this.layoutInfo.top * this.$rpxNum;
|
|
548
563
|
if(listFilterTop !== this.listFilterTop) {
|
|
549
564
|
setTimeout(()=>{
|
|
550
565
|
this.getListFilterEleTop();
|
|
@@ -662,7 +677,7 @@
|
|
|
662
677
|
handleFilterTab(tab){
|
|
663
678
|
uni.pageScrollTo({
|
|
664
679
|
scrollTop: this.listFilterTop,
|
|
665
|
-
duration:
|
|
680
|
+
duration: 1,
|
|
666
681
|
success:()=>{
|
|
667
682
|
if(tab === this.curQueryTab ) {
|
|
668
683
|
this.curQueryTab = ''
|
|
@@ -754,6 +769,7 @@
|
|
|
754
769
|
if(value === this.type) return;
|
|
755
770
|
this.type = value;
|
|
756
771
|
if( this.type === 'hot' || this.type === 'rightnow' ) {
|
|
772
|
+
this.isFixed = false;
|
|
757
773
|
this.virtualList.onChangeTab(this,'#content-ref', 'fixed' );
|
|
758
774
|
}
|
|
759
775
|
if( this.type === 'list') {
|
|
@@ -945,6 +961,12 @@
|
|
|
945
961
|
onJfbScroll(options){
|
|
946
962
|
//console.log(options.e.scrollTop)
|
|
947
963
|
this.virtualList.onScrollEvent(options.e.scrollTop);
|
|
964
|
+
|
|
965
|
+
//未初始化完成不执行改逻辑
|
|
966
|
+
if(this.listFilterTop !== null) {
|
|
967
|
+
this.isFixed = options.e.scrollTop >= this.listFilterTop
|
|
968
|
+
}
|
|
969
|
+
|
|
948
970
|
},
|
|
949
971
|
|
|
950
972
|
setShowTypeList(){
|
|
@@ -1005,6 +1027,8 @@
|
|
|
1005
1027
|
@import "./JfbMovieTfkFilmListLess.less";
|
|
1006
1028
|
|
|
1007
1029
|
.jfb-movie-tfk-film-list {
|
|
1030
|
+
position: relative;
|
|
1031
|
+
z-index: 200;
|
|
1008
1032
|
&__body{
|
|
1009
1033
|
.tfk-list {
|
|
1010
1034
|
& >view:first-child {
|
|
@@ -1149,9 +1173,12 @@
|
|
|
1149
1173
|
.list-filter {
|
|
1150
1174
|
position: relative;
|
|
1151
1175
|
z-index: 3;
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1176
|
+
|
|
1177
|
+
&.isFixed {
|
|
1178
|
+
position: fixed;
|
|
1179
|
+
left:0;
|
|
1180
|
+
right: 0;
|
|
1181
|
+
z-index: 9999;
|
|
1155
1182
|
}
|
|
1156
1183
|
|
|
1157
1184
|
&-block {
|
|
@@ -1183,7 +1210,12 @@
|
|
|
1183
1210
|
width: 100%;
|
|
1184
1211
|
z-index: 3;
|
|
1185
1212
|
}
|
|
1213
|
+
|
|
1214
|
+
&-empty{
|
|
1215
|
+
height: 100rpx;
|
|
1216
|
+
}
|
|
1186
1217
|
}
|
|
1218
|
+
|
|
1187
1219
|
}
|
|
1188
1220
|
|
|
1189
1221
|
.noConfig {
|