jufubao-movie 1.0.68-beta1 → 1.0.68-beta2
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/JfbMovieLineCinema/Attr.js +0 -19
- package/src/components/JfbMovieLineCinema/JfbMovieLineCinema.vue +19 -53
- package/src/components/JfbMovieLineCinema/cusAttr/advanced.js +8 -25
- package/src/components/JfbMovieLineCinema/cusAttr/shops.js +3 -3
- package/src/components/JfbMovieLineCinema/cusAttr/style.js +1 -1
package/package.json
CHANGED
|
@@ -10,25 +10,6 @@ export default {
|
|
|
10
10
|
...Content(data, gValue, gColor, oldData),
|
|
11
11
|
...Style(data, gValue, gColor, oldData),
|
|
12
12
|
...Advanced(data, gValue, gColor, oldData),
|
|
13
|
-
// {
|
|
14
|
-
// label: "是否显示到店使用:",
|
|
15
|
-
// ele: "xd-radio",
|
|
16
|
-
// valueKey: "is_show_sell",
|
|
17
|
-
// value: data['is_show_sell'] || 'N',
|
|
18
|
-
// groupKey: 'content',
|
|
19
|
-
// list: [
|
|
20
|
-
// { label: '显示', value: "Y" },
|
|
21
|
-
// { label: '不显示', value: "N" },
|
|
22
|
-
// ]
|
|
23
|
-
// },
|
|
24
|
-
// {
|
|
25
|
-
// label: "到店使用名称自定义:",
|
|
26
|
-
// ele: "el-input",
|
|
27
|
-
// valueKey: "sellName",
|
|
28
|
-
// value: data['sellName'] || '',
|
|
29
|
-
// groupKey: 'content',
|
|
30
|
-
// placeholder: "不填写时默认 到店使用",
|
|
31
|
-
// },
|
|
32
13
|
].filter(i=>i)
|
|
33
14
|
},
|
|
34
15
|
advanced: [],
|
|
@@ -120,6 +120,11 @@
|
|
|
120
120
|
@on-event="handleToEvent"
|
|
121
121
|
></cus-shops>
|
|
122
122
|
</view>
|
|
123
|
+
<xd-more
|
|
124
|
+
v-if="($configProject['isPreview'] || !hasNext) && (filterCinemaList && filterCinemaList.length > 0)"
|
|
125
|
+
:color="footerColor"
|
|
126
|
+
:background="footerColor"
|
|
127
|
+
><text>我是有底线的</text></xd-more>
|
|
123
128
|
</template>
|
|
124
129
|
</view>
|
|
125
130
|
</view>
|
|
@@ -134,6 +139,7 @@ import JfbMovieLineCinemaMixin from "./JfbMovieLineCinemaMixin";
|
|
|
134
139
|
import componentsMixins from "@/mixins/componentsMixins";
|
|
135
140
|
import extsMixins from "@/mixins/extsMixins";
|
|
136
141
|
import XdCityShow from "@/components/XdCityShowApi/XdCityShowApi";
|
|
142
|
+
import XdMore from "@/components/XdMore/XdMore";
|
|
137
143
|
import { getContainerPropsValue, gCPVal } from "@/utils/xd.base";
|
|
138
144
|
import { mapState } from "vuex";
|
|
139
145
|
import CusShops from "@/components/CusShops/CusShops.vue";
|
|
@@ -145,6 +151,7 @@ export default {
|
|
|
145
151
|
XdSwiper,
|
|
146
152
|
XdCityShow,
|
|
147
153
|
CusShops,
|
|
154
|
+
XdMore
|
|
148
155
|
},
|
|
149
156
|
mixins: [componentsMixins, extsMixins, JfbMovieLineCinemaMixin],
|
|
150
157
|
data() {
|
|
@@ -193,6 +200,7 @@ export default {
|
|
|
193
200
|
contentBgColor: "rgba(0,0,0,0)",
|
|
194
201
|
cusStyle: {}, //门店样式设置
|
|
195
202
|
initAttr: false, //状态完成
|
|
203
|
+
footerColor:'#ddd',
|
|
196
204
|
};
|
|
197
205
|
},
|
|
198
206
|
computed: {
|
|
@@ -369,64 +377,20 @@ export default {
|
|
|
369
377
|
this.qpPath = gCPVal(container, "qpPath", { value: "" }).value;
|
|
370
378
|
this.initAttr = true;
|
|
371
379
|
},
|
|
372
|
-
toChooseSchedule(item) {
|
|
373
|
-
if (item.seat_index > -1) this.toSchedulePath(item);
|
|
374
|
-
else if (item.code_index > -1) this.toCodePath(item);
|
|
375
|
-
},
|
|
376
|
-
toCodePath(item) {
|
|
377
|
-
this.$xdUniHelper.navigateTo({
|
|
378
|
-
url: this.codeChoosePath + `?cinema_id=${item.cinema_id}`,
|
|
379
|
-
});
|
|
380
|
-
},
|
|
381
|
-
toSellPath(item) {
|
|
382
|
-
let params = {
|
|
383
|
-
"x-params": Base64.encodeURI(`shop_id:${item.cinema_id}`),
|
|
384
|
-
};
|
|
385
|
-
let options = this.$xdUniHelper.jsonToParams(params);
|
|
386
|
-
this.$xdUniHelper.navigateTo({
|
|
387
|
-
url: this.sellPath + `?${options}`,
|
|
388
|
-
});
|
|
389
|
-
},
|
|
390
|
-
toSchedulePath(item) {
|
|
391
|
-
this.$xdUniHelper.navigateTo({
|
|
392
|
-
url: this.scheduleChoosePath + `?cinema_id=${item.cinema_id}`,
|
|
393
|
-
});
|
|
394
|
-
},
|
|
395
380
|
//==evnet===
|
|
396
381
|
handleToEvent({ item, type }) {
|
|
397
382
|
let url = "";
|
|
398
383
|
let parmas = [];
|
|
399
|
-
|
|
400
384
|
//扫一扫
|
|
401
385
|
if (type === "WB") url = this.scanPath;
|
|
402
386
|
//聚好兑
|
|
403
387
|
if (type === "JHD") url = this.jhdPath;
|
|
404
388
|
//快捷码
|
|
405
389
|
if (type === "QP") url = this.qpPath;
|
|
390
|
+
//电子码
|
|
391
|
+
if (type === "CODE") url = this.codeChoosePath;
|
|
406
392
|
//在线选择
|
|
407
|
-
if (type === "SEAT")
|
|
408
|
-
if (this.seatPath) url = this.seatPath;
|
|
409
|
-
else {
|
|
410
|
-
type = "DL";
|
|
411
|
-
url = this.shopInfoPath;
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
//小时达
|
|
415
|
-
if (type === "HDSELF") {
|
|
416
|
-
if (this.hdSelfPath) url = this.hdSelfPath;
|
|
417
|
-
else {
|
|
418
|
-
type = "DL";
|
|
419
|
-
url = this.shopInfoPath;
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
//旅游购票
|
|
423
|
-
if (type === "TRAVEL") {
|
|
424
|
-
if (this.travelfPath) url = this.travelfPath;
|
|
425
|
-
else {
|
|
426
|
-
type = "DL";
|
|
427
|
-
url = this.shopInfoPath;
|
|
428
|
-
}
|
|
429
|
-
}
|
|
393
|
+
if (type === "SEAT") url = this.scheduleChoosePath;
|
|
430
394
|
|
|
431
395
|
if (item.resource_shop_id)
|
|
432
396
|
parmas.push(`resource_shop_id=${item.resource_shop_id}`);
|
|
@@ -453,16 +417,14 @@ export default {
|
|
|
453
417
|
//在线选择,电子码传惨处理
|
|
454
418
|
if (["SEAT", "CODE"].includes(type))
|
|
455
419
|
parmas = [`cinema_id=${item.resource_shop_id}`];
|
|
456
|
-
if (["TRAVEL"].includes(type))
|
|
457
|
-
parmas = [`shop_id=${item.resource_shop_id}`];
|
|
458
420
|
if (["WB"].includes(type))
|
|
459
421
|
parmas = [`x-params=${Base64.encodeURI(`shop_id:${item.shop_id}`)}`];
|
|
460
422
|
if (["JHD"].includes(type)) {
|
|
461
423
|
parmas.push(`x-jfb-os=jhd`);
|
|
462
424
|
parmas.push(this.$xdUniHelper.jsonToParams(this.options));
|
|
463
425
|
}
|
|
464
|
-
if (["JHD",
|
|
465
|
-
parmas.push(`xnamespace
|
|
426
|
+
if (["JHD","QP"].includes(type)) {
|
|
427
|
+
parmas.push(`xnamespace=movie`);
|
|
466
428
|
parmas.push(`x-params=${Base64.encodeURI(`shop_id:${item.shop_id}`)}`);
|
|
467
429
|
}
|
|
468
430
|
|
|
@@ -500,8 +462,12 @@ export default {
|
|
|
500
462
|
this.$xdHideLoading();
|
|
501
463
|
const { list, next_page_token, area_list } = res;
|
|
502
464
|
|
|
503
|
-
this.cinemaList = list
|
|
465
|
+
this.cinemaList = list.map(item => {
|
|
466
|
+
item.resource_shop_id = item.cinema_id
|
|
467
|
+
return item
|
|
468
|
+
});
|
|
504
469
|
this.page_token = next_page_token;
|
|
470
|
+
this.hasNext = res.next_page_token !== "";
|
|
505
471
|
let citySubs = area_list.map((item) => {
|
|
506
472
|
return {
|
|
507
473
|
label: item.area_name,
|
|
@@ -568,7 +534,7 @@ export default {
|
|
|
568
534
|
this.subIndex = i;
|
|
569
535
|
},
|
|
570
536
|
|
|
571
|
-
handleCityChange() {
|
|
537
|
+
handleCityChange() {
|
|
572
538
|
this.$xdUniHelper.navigateTo(
|
|
573
539
|
{
|
|
574
540
|
url: this.choseCityPath,
|
|
@@ -27,7 +27,7 @@ export default (data, gValue, gColor, oldData = {}) => {
|
|
|
27
27
|
ele: 'xd-select-pages-path',
|
|
28
28
|
labelInline: true,
|
|
29
29
|
valueKey: 'schedule_choose_path',
|
|
30
|
-
placeholder: '
|
|
30
|
+
placeholder: '请选择在线选座跳转页面',
|
|
31
31
|
className: 'input100',
|
|
32
32
|
value: dataVal({ data, key: 'schedule_choose_path', dValue: null, gValue }),
|
|
33
33
|
groupKey: 'advanced',
|
|
@@ -43,7 +43,7 @@ export default (data, gValue, gColor, oldData = {}) => {
|
|
|
43
43
|
ele: 'xd-select-pages-path',
|
|
44
44
|
labelInline: true,
|
|
45
45
|
valueKey: 'choseCityPath',
|
|
46
|
-
placeholder: '
|
|
46
|
+
placeholder: '选择切换城市跳转页面',
|
|
47
47
|
value: dataVal({ data, key: 'choseCityPath', dValue: null, gValue }),
|
|
48
48
|
className: 'input100',
|
|
49
49
|
groupKey: 'advanced',
|
|
@@ -57,7 +57,7 @@ export default (data, gValue, gColor, oldData = {}) => {
|
|
|
57
57
|
ele: 'xd-select-pages-path',
|
|
58
58
|
labelInline: true,
|
|
59
59
|
valueKey: 'codeChoosePath',
|
|
60
|
-
placeholder: '
|
|
60
|
+
placeholder: '请选择电子码跳转页面',
|
|
61
61
|
value: dataVal({ data, key: 'codeChoosePath', dValue: null, gValue }),
|
|
62
62
|
className: 'input100',
|
|
63
63
|
groupKey: 'advanced',
|
|
@@ -67,10 +67,10 @@ export default (data, gValue, gColor, oldData = {}) => {
|
|
|
67
67
|
},
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
|
-
label: '
|
|
70
|
+
label: '扫码提货',
|
|
71
71
|
ele: 'xd-select-pages-path',
|
|
72
72
|
valueKey: 'scanPath',
|
|
73
|
-
placeholder: '
|
|
73
|
+
placeholder: '请选择扫码提货跳转页面',
|
|
74
74
|
groupKey: 'advanced',
|
|
75
75
|
className: 'input100',
|
|
76
76
|
labelInline: true,
|
|
@@ -86,7 +86,7 @@ export default (data, gValue, gColor, oldData = {}) => {
|
|
|
86
86
|
label: '聚好兑',
|
|
87
87
|
ele: 'xd-select-pages-path',
|
|
88
88
|
valueKey: 'jhdPath',
|
|
89
|
-
placeholder: '
|
|
89
|
+
placeholder: '请选择聚好兑跳转页面',
|
|
90
90
|
labelInline: true,
|
|
91
91
|
groupKey: 'advanced',
|
|
92
92
|
className: 'input100',
|
|
@@ -99,10 +99,10 @@ export default (data, gValue, gColor, oldData = {}) => {
|
|
|
99
99
|
notice: '服务类型为支持 核销时使用'
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
|
-
label: '
|
|
102
|
+
label: '展码提货',
|
|
103
103
|
ele: 'xd-select-pages-path',
|
|
104
104
|
valueKey: 'qpPath',
|
|
105
|
-
placeholder: '
|
|
105
|
+
placeholder: '请选择展码提货跳转页面',
|
|
106
106
|
groupKey: 'advanced',
|
|
107
107
|
labelInline: true,
|
|
108
108
|
className: 'input100',
|
|
@@ -114,23 +114,6 @@ export default (data, gValue, gColor, oldData = {}) => {
|
|
|
114
114
|
inline: false,
|
|
115
115
|
notice: '服务类型为支持 核销时使用'
|
|
116
116
|
},
|
|
117
|
-
{
|
|
118
|
-
label: '线下核销',
|
|
119
|
-
ele: 'xd-select-pages-path',
|
|
120
|
-
valueKey: 'sellPath',
|
|
121
|
-
labelInline: true,
|
|
122
|
-
placeholder: '请选择线下核销路径',
|
|
123
|
-
value: dataVal({ data, key: 'sellPath', dValue: null, gValue }),
|
|
124
|
-
className: 'input100',
|
|
125
|
-
hidden: true,
|
|
126
|
-
groupKey: 'advanced',
|
|
127
|
-
notice: '线下核销跳转地址',
|
|
128
|
-
setting: {
|
|
129
|
-
mode: 'new',
|
|
130
|
-
router: XdBus.getParentApi('getPagesTree'),
|
|
131
|
-
},
|
|
132
|
-
inline: false,
|
|
133
|
-
},
|
|
134
117
|
].filter(i => i)
|
|
135
118
|
}
|
|
136
119
|
|
|
@@ -63,7 +63,7 @@ export default function (data, gValue, gColor, oldData) {
|
|
|
63
63
|
},
|
|
64
64
|
{ele: 'group_start'},
|
|
65
65
|
{
|
|
66
|
-
label: '
|
|
66
|
+
label: '',
|
|
67
67
|
ele: 'xd-color',
|
|
68
68
|
groupKey:'style',
|
|
69
69
|
valueKey: 'cardItemBgColor',
|
|
@@ -124,7 +124,7 @@ export default function (data, gValue, gColor, oldData) {
|
|
|
124
124
|
},
|
|
125
125
|
{ele: 'group_start'},
|
|
126
126
|
{
|
|
127
|
-
label: '
|
|
127
|
+
label: '',
|
|
128
128
|
ele: 'xd-site-select-list',
|
|
129
129
|
labelInline: true,
|
|
130
130
|
valueKey: 'cardItemRadius',
|
|
@@ -222,7 +222,7 @@ export default function (data, gValue, gColor, oldData) {
|
|
|
222
222
|
},
|
|
223
223
|
{ele: 'group_start'},
|
|
224
224
|
{
|
|
225
|
-
label: '
|
|
225
|
+
label: '',
|
|
226
226
|
ele: 'xd-color',
|
|
227
227
|
groupKey:'style',
|
|
228
228
|
valueKey: 'distanceColor',
|