jufubao-movie 1.0.39-beta9 → 1.0.39
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 +16 -3
- package/src/components/JfbMovieLineFilmInfo/JfbMovieLineFilmInfo.vue +2 -4
- package/src/components/JfbMovieLineFilmInfo/Mock.js +1 -1
- package/src/components/JfbMovieLineLineSeat/XdOnlineSeat.vue +11 -0
- package/src/components/JfbMovieTfkFilmList/Attr.js +5 -238
- package/src/components/JfbMovieTfkFilmList/ContentItem.vue +2 -2
- package/src/components/JfbMovieTfkFilmList/JfbMovieTfkFilmList.vue +200 -110
- package/src/components/JfbMovieTfkFilmList/PosterAttr.js +257 -0
- package/src/components/JfbMovieTfkFilmList/XdPoster.vue +160 -0
- package/src/components/JfbMovieTfkFilmList/XdQueryFilter.vue +2 -1
- package/src/components/JfbMovieTfkFilmRecommend/JfbMovieTfkFilmRecommend.vue +6 -2
- package/src/lib/VirtualList.js +85 -64
- package/src/mixins/posterMixins.js +0 -59
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,
|
|
@@ -43,7 +43,6 @@
|
|
|
43
43
|
}"
|
|
44
44
|
>即将上映</view>
|
|
45
45
|
</view>
|
|
46
|
-
|
|
47
46
|
<view v-if="loadingList" class="switch_section skeleton-wrap">
|
|
48
47
|
<view class="film_item" v-for="i in 6" :key="i">
|
|
49
48
|
<view class="film_post"></view>
|
|
@@ -134,8 +133,6 @@
|
|
|
134
133
|
</view>
|
|
135
134
|
</view>
|
|
136
135
|
</template>
|
|
137
|
-
|
|
138
|
-
|
|
139
136
|
</view>
|
|
140
137
|
</view>
|
|
141
138
|
</template>
|
|
@@ -211,6 +208,22 @@
|
|
|
211
208
|
}
|
|
212
209
|
},
|
|
213
210
|
created() {
|
|
211
|
+
let mapType = {
|
|
212
|
+
hot:0,
|
|
213
|
+
rightnow: 1,
|
|
214
|
+
}
|
|
215
|
+
let tab_id = '';
|
|
216
|
+
// #ifdef H5
|
|
217
|
+
tab_id = this.$xdUniHelper.getParmater('tab_id') ? this.$xdUniHelper.getParmater('tab_id'):'';
|
|
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
|
+
}
|
|
226
|
+
|
|
214
227
|
this.init(this.container);
|
|
215
228
|
this.getList();
|
|
216
229
|
},
|
|
@@ -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>
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
>{{ item }}</view>
|
|
38
38
|
</xd-notice-bar>
|
|
39
39
|
</view>
|
|
40
|
+
<view class="xd-seat__footer-name">{{filmInfo.film_name}}</view>
|
|
40
41
|
<view class="xd-seat__footer-paiqi">
|
|
41
42
|
<view class="xd-seat__footer-paiqi-tab">
|
|
42
43
|
<view>
|
|
@@ -755,6 +756,15 @@ export default {
|
|
|
755
756
|
z-index: 101;
|
|
756
757
|
background: #fff;
|
|
757
758
|
|
|
759
|
+
&-name {
|
|
760
|
+
line-height: 40rpx;
|
|
761
|
+
font-size: 36rpx;
|
|
762
|
+
.uni-cut(1,40);
|
|
763
|
+
padding: 0 20rpx;
|
|
764
|
+
font-weight: 600;
|
|
765
|
+
color: #333;
|
|
766
|
+
}
|
|
767
|
+
|
|
758
768
|
&-paiqi {
|
|
759
769
|
&-content {
|
|
760
770
|
height: unit(134, rpx);
|
|
@@ -925,6 +935,7 @@ export default {
|
|
|
925
935
|
|
|
926
936
|
& .tab-show {
|
|
927
937
|
font-size: @xd-font-size-base;
|
|
938
|
+
color:#999
|
|
928
939
|
}
|
|
929
940
|
|
|
930
941
|
& > view {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
import PosterAttr from "./PosterAttr.js";
|
|
4
|
+
|
|
3
5
|
/**
|
|
4
6
|
* @description 当表单组件中有联动操作时候,使用方法进行返回
|
|
5
7
|
*/
|
|
@@ -8,15 +10,7 @@ export default {
|
|
|
8
10
|
content: (data) => {
|
|
9
11
|
let outSpacing = 20;
|
|
10
12
|
if(data['outSpacing'] ) outSpacing = Number(data['outSpacing'])
|
|
11
|
-
|
|
12
|
-
if(data.poster && data.poster.size && data.poster.size.height) {
|
|
13
|
-
size['height'] = data.poster.size.height
|
|
14
|
-
}
|
|
15
|
-
let poster = {
|
|
16
|
-
size: size,
|
|
17
|
-
type:'1',
|
|
18
|
-
position: Object.assign({},data.poster && data.poster.position)
|
|
19
|
-
};
|
|
13
|
+
|
|
20
14
|
return [
|
|
21
15
|
|
|
22
16
|
{
|
|
@@ -112,236 +106,9 @@ export default {
|
|
|
112
106
|
});
|
|
113
107
|
},
|
|
114
108
|
},
|
|
115
|
-
{
|
|
116
|
-
ele: 'title',
|
|
117
|
-
label: '广告设置',
|
|
118
|
-
size: 'small',
|
|
119
|
-
groupKey:'content',
|
|
120
|
-
},
|
|
121
|
-
|
|
122
|
-
{
|
|
123
|
-
label: '广告位置配置:',
|
|
124
|
-
ele: 'xd-site-poster',
|
|
125
|
-
valueKey: 'poster',
|
|
126
|
-
className: 'input80',
|
|
127
|
-
value: poster,
|
|
128
|
-
groupKey:'content',
|
|
129
|
-
setting: {
|
|
130
|
-
count: 1,
|
|
131
|
-
scene: {label: '广告', value: 'normal'},
|
|
132
|
-
sizeDisabled: {
|
|
133
|
-
wDisabled:true,
|
|
134
|
-
hDisabled: false,
|
|
135
|
-
},
|
|
136
|
-
typeDisabled: true
|
|
137
|
-
},
|
|
138
|
-
handleCustom({action, data}) {
|
|
139
|
-
//设置场景参数
|
|
140
|
-
if(data) {
|
|
141
|
-
data.params = Object.assign({}, {scene: 'normal'}, data.params || {})
|
|
142
|
-
}
|
|
143
|
-
console.log(action,data,'hjhjhjhjhj');
|
|
144
|
-
|
|
145
|
-
//获取显示内容
|
|
146
|
-
if (action === 'screenList') {
|
|
147
|
-
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'editx_base_ad_split_screen'})
|
|
148
|
-
.then(res => {
|
|
149
|
-
data.cb(res['list'])
|
|
150
|
-
})
|
|
151
|
-
.catch(error => {
|
|
152
|
-
console.error(error);
|
|
153
|
-
});
|
|
154
|
-
return
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
//获取返回参数(广告位高度必选项)
|
|
158
|
-
if (action === 'getPosterInfo') {
|
|
159
|
-
XdBus.getParentApi('cmsGetPublishEditxContent')(data.params)
|
|
160
|
-
.then(res => {
|
|
161
|
-
data.cb({list: res.list, selectId: res.selected})
|
|
162
|
-
})
|
|
163
|
-
.catch(error => {
|
|
164
|
-
console.error(error);
|
|
165
|
-
});
|
|
166
|
-
return
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
//使用内容分类
|
|
170
|
-
if (action === 'cmsPublishEditxContent') {
|
|
171
|
-
XdBus.getParentApi('cmsPublishEditxContent')(data.params)
|
|
172
|
-
.then(res => {
|
|
173
|
-
data.cb(res)
|
|
174
|
-
})
|
|
175
|
-
.catch(error => {
|
|
176
|
-
console.error(error);
|
|
177
|
-
});
|
|
178
|
-
return
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
let loading = XdBus.getParentApi('loading')({});
|
|
182
|
-
//位置列表
|
|
183
|
-
if (action === 'getListPostion') {
|
|
184
|
-
XdBus.getParentApi('getListPosterPosition')(data.params)
|
|
185
|
-
.then(res => {
|
|
186
|
-
loading.close();
|
|
187
|
-
data.cb(res)
|
|
188
|
-
})
|
|
189
|
-
.catch(error => {
|
|
190
|
-
loading.close();
|
|
191
|
-
console.error(error);
|
|
192
|
-
});
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
//位置创建
|
|
196
|
-
if (action === 'addPostion') {
|
|
197
|
-
XdBus.getParentApi('addPosterPosition')(data.params)
|
|
198
|
-
.then(res => {
|
|
199
|
-
loading.close();
|
|
200
|
-
data.cb(true)
|
|
201
|
-
})
|
|
202
|
-
.catch(error => {
|
|
203
|
-
console.error(error);
|
|
204
|
-
loading.close();
|
|
205
|
-
data.cb(false)
|
|
206
|
-
});
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
//位置编辑
|
|
210
|
-
if (action === 'editPostion') {
|
|
211
|
-
XdBus.getParentApi('updatePosterPosition')(data.params)
|
|
212
|
-
.then(res => {
|
|
213
|
-
loading.close();
|
|
214
|
-
data.cb(true)
|
|
215
|
-
})
|
|
216
|
-
.catch(error => {
|
|
217
|
-
console.error(error);
|
|
218
|
-
loading.close();
|
|
219
|
-
data.cb(false)
|
|
220
|
-
});
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
//位置删除
|
|
224
|
-
if (action === 'deleltePostion') {
|
|
225
|
-
XdBus.getParentApi('deletePosterPosition')(data.params)
|
|
226
|
-
.then(res => {
|
|
227
|
-
loading.close();
|
|
228
|
-
data.cb(true)
|
|
229
|
-
})
|
|
230
|
-
.catch(error => {
|
|
231
|
-
console.error(error);
|
|
232
|
-
loading.close();
|
|
233
|
-
data.cb(false)
|
|
234
|
-
});
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
//获取广告位内容列表
|
|
238
|
-
if (action === 'getListContent') {
|
|
239
|
-
XdBus.getParentApi('getListPosterContent')(data.params)
|
|
240
|
-
.then(res => {
|
|
241
|
-
loading.close();
|
|
242
|
-
data.cb(res)
|
|
243
|
-
})
|
|
244
|
-
.catch(error => {
|
|
245
|
-
loading.close();
|
|
246
|
-
console.error(error);
|
|
247
|
-
});
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
//广告内容创建
|
|
251
|
-
if (action === 'addContent') {
|
|
252
|
-
XdBus.getParentApi('addPosterContent')(data.params)
|
|
253
|
-
.then(res => {
|
|
254
|
-
loading.close();
|
|
255
|
-
data.cb(true)
|
|
256
|
-
})
|
|
257
|
-
.catch(error => {
|
|
258
|
-
console.error(error);
|
|
259
|
-
loading.close();
|
|
260
|
-
data.cb(false)
|
|
261
|
-
});
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
//广告内容编辑
|
|
265
|
-
if (action === 'editContent') {
|
|
266
|
-
XdBus.getParentApi('updatePosterContent')(data.params)
|
|
267
|
-
.then(res => {
|
|
268
|
-
loading.close();
|
|
269
|
-
data.cb(true)
|
|
270
|
-
})
|
|
271
|
-
.catch(error => {
|
|
272
|
-
console.error(error);
|
|
273
|
-
loading.close();
|
|
274
|
-
data.cb(false)
|
|
275
|
-
});
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
//广告内容删除
|
|
279
|
-
if (action === 'deleteContent') {
|
|
280
|
-
XdBus.getParentApi('deletePosterContent')(data.params)
|
|
281
|
-
.then(res => {
|
|
282
|
-
loading.close();
|
|
283
|
-
data.cb(true)
|
|
284
|
-
})
|
|
285
|
-
.catch(error => {
|
|
286
|
-
console.error(error);
|
|
287
|
-
loading.close();
|
|
288
|
-
data.cb(false)
|
|
289
|
-
});
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
//获取广告内容跳转地址类型
|
|
293
|
-
if (action === 'jumpPosterContentType') {
|
|
294
|
-
XdBus.getParentApi('getOptionsSettingList')({setting_id: "cms_setting"})
|
|
295
|
-
.then(res => {
|
|
296
|
-
loading.close();
|
|
297
|
-
data.cb(res['redirect_type'])
|
|
298
|
-
})
|
|
299
|
-
.catch(error => {
|
|
300
|
-
loading.close();
|
|
301
|
-
console.error(error);
|
|
302
|
-
});
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
//发布
|
|
306
|
-
if (action === 'publish') {
|
|
307
|
-
console.log('publish', data.params)
|
|
308
|
-
XdBus.getParentApi('cmsPublishContent')(data.params)
|
|
309
|
-
.then(res => {
|
|
310
|
-
loading.close();
|
|
311
|
-
data.cb(res)
|
|
312
|
-
})
|
|
313
|
-
.catch(error => {
|
|
314
|
-
loading.close();
|
|
315
|
-
console.error(error);
|
|
316
|
-
});
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
//获取站内页面地址
|
|
320
|
-
if (action === 'router') {
|
|
321
|
-
loading.close()
|
|
322
|
-
return XdBus.getParentApi('getPagesTree');
|
|
323
|
-
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
//通知页面进行刷新
|
|
327
|
-
if(action === 'update') {
|
|
328
|
-
XdBus.getParentApi('getXdBusUpdateView')('onUpdateView', {});
|
|
329
|
-
loading.close()
|
|
330
|
-
}
|
|
331
|
-
},
|
|
332
|
-
},
|
|
333
|
-
{
|
|
334
|
-
label: '广告位置使用张数:',
|
|
335
|
-
ele: 'el-input',
|
|
336
|
-
type: 'number',
|
|
337
|
-
valueKey: 'posterNum',
|
|
338
|
-
groupKey:'content',
|
|
339
|
-
value: data.posterNum || 1,
|
|
340
|
-
placeholder: '请输入广告位置使用张数',
|
|
341
|
-
className: 'input40',
|
|
342
|
-
unit: '张',
|
|
343
|
-
},
|
|
344
109
|
|
|
110
|
+
//广告属性配置
|
|
111
|
+
...PosterAttr(data,outSpacing),
|
|
345
112
|
|
|
346
113
|
{
|
|
347
114
|
label: '外边间距:',
|
|
@@ -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
|
}
|