jufubao-movie 1.0.39-beta12 → 1.0.39-beta14
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 +13 -9
- package/src/components/JfbMovieLineCinemaChoose/Mock.js +2 -2
- package/src/components/JfbMovieLineFilm/JfbMovieLineFilm.vue +10 -5
- package/src/components/JfbMovieLineFilmInfo/JfbMovieLineFilmInfo.vue +2 -4
- package/src/components/JfbMovieLineFilmInfo/Mock.js +1 -1
- package/src/components/JfbMovieTfkFilmList/ContentItem.vue +2 -2
- package/src/components/JfbMovieTfkFilmList/JfbMovieTfkFilmList.vue +6 -6
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,22 +13,20 @@
|
|
|
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">
|
|
22
20
|
<view class="film_base_wrap-top"></view>
|
|
23
21
|
<view class="film_base_wrap">
|
|
24
|
-
<view class="film_info">
|
|
22
|
+
<view class="film_info" v-if="film.show_name">
|
|
25
23
|
<view class="film_post">
|
|
26
24
|
<image :src="film.poster" />
|
|
27
25
|
</view>
|
|
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,
|
|
@@ -208,16 +208,21 @@
|
|
|
208
208
|
}
|
|
209
209
|
},
|
|
210
210
|
created() {
|
|
211
|
-
// #ifdef H5
|
|
212
211
|
let mapType = {
|
|
213
212
|
hot:0,
|
|
214
213
|
rightnow: 1,
|
|
215
214
|
}
|
|
216
|
-
let
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
}
|
|
215
|
+
let tab_id = '';
|
|
216
|
+
// #ifdef H5
|
|
217
|
+
tab_id = this.$xdUniHelper.getParmater('tab_id') ? this.$xdUniHelper.getParmater('tab_id'):'';
|
|
220
218
|
// #endif
|
|
219
|
+
// #ifdef MP-WEIXIN
|
|
220
|
+
let pages = this.$xdUniHelper.parseURL(this.$root.$scope.$page.fullPath);
|
|
221
|
+
tab_id = (pages.params && pages.params['tab_id']) ? pages.params['tab_id'] :'';
|
|
222
|
+
// #endif
|
|
223
|
+
if(['hot', 'rightnow'].includes(tab_id)) {
|
|
224
|
+
this.activeIndex = mapType[tab_id];
|
|
225
|
+
}
|
|
221
226
|
|
|
222
227
|
this.init(this.container);
|
|
223
228
|
this.getList();
|
|
@@ -13,15 +13,13 @@
|
|
|
13
13
|
:class="{ editx: isEditx && active }"
|
|
14
14
|
v-if="isEditx && active && !noBorder"
|
|
15
15
|
>
|
|
16
|
-
<view class="jfb-movie-line-film-info__edit-icon" @click="delEdit"
|
|
17
|
-
>删除</view
|
|
18
|
-
>
|
|
16
|
+
<view class="jfb-movie-line-film-info__edit-icon" @click="delEdit">删除</view>
|
|
19
17
|
</view>
|
|
20
18
|
<!-- #endif -->
|
|
21
19
|
<view class="jfb-movie-line-film-info__body">
|
|
22
20
|
<view class="film_base_wrap-top"></view>
|
|
23
21
|
<view class="film_base_wrap">
|
|
24
|
-
<view class="film_info">
|
|
22
|
+
<view class="film_info" v-if="film.poster">
|
|
25
23
|
<view class="film_post">
|
|
26
24
|
<image :src="film.poster"></image>
|
|
27
25
|
</view>
|
|
@@ -101,11 +101,11 @@
|
|
|
101
101
|
},
|
|
102
102
|
handleDetail(item){
|
|
103
103
|
console.log('handleDetail.item',item,item.id);
|
|
104
|
-
this.$emit('on-film-detail',item
|
|
104
|
+
this.$emit('on-film-detail',item);
|
|
105
105
|
},
|
|
106
106
|
handleBuy(item){
|
|
107
107
|
console.log('handleDetail.item',item,item.id);
|
|
108
|
-
this.$emit('on-buy',item
|
|
108
|
+
this.$emit('on-buy',item);
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
}
|
|
@@ -624,26 +624,26 @@
|
|
|
624
624
|
},
|
|
625
625
|
|
|
626
626
|
//影片列表
|
|
627
|
-
handleFilmDetail(
|
|
628
|
-
console.warn(`toFilmInfo(影片详情).${
|
|
627
|
+
handleFilmDetail(item){
|
|
628
|
+
console.warn(`toFilmInfo(影片详情).${item.id}`)
|
|
629
629
|
if(!this.fimeDetailPath) {
|
|
630
630
|
console.error('未配置链接');
|
|
631
631
|
return;
|
|
632
632
|
}
|
|
633
633
|
if( this.isPreview) return;
|
|
634
634
|
this.$xdUniHelper.navigateTo({
|
|
635
|
-
url: this.fimeDetailPath + `?film_id=${
|
|
635
|
+
url: this.fimeDetailPath + `?film_id=${item.id}`
|
|
636
636
|
})
|
|
637
637
|
},
|
|
638
|
-
handleBuy(
|
|
639
|
-
console.warn(`toBuyChooseCinema(选择影院).${
|
|
638
|
+
handleBuy(item){
|
|
639
|
+
console.warn(`toBuyChooseCinema(选择影院).${item.id}`)
|
|
640
640
|
if(!this.buyPath) {
|
|
641
641
|
console.error('未配置链接');
|
|
642
642
|
return;
|
|
643
643
|
}
|
|
644
644
|
if( this.isPreview) return;
|
|
645
645
|
this.$xdUniHelper.navigateTo({
|
|
646
|
-
url: this.buyPath + `?film_id=${
|
|
646
|
+
url: this.buyPath + `?film_id=${item.id}`
|
|
647
647
|
})
|
|
648
648
|
},
|
|
649
649
|
//影片列表
|