jufubao-movie 1.0.53 → 1.0.54-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
CHANGED
|
@@ -26,6 +26,25 @@ export default {
|
|
|
26
26
|
});
|
|
27
27
|
},
|
|
28
28
|
},
|
|
29
|
+
{
|
|
30
|
+
label: "是否显示到店使用:",
|
|
31
|
+
ele: "xd-radio",
|
|
32
|
+
valueKey: "is_show_sell",
|
|
33
|
+
value: data['is_show_sell'] || 'N',
|
|
34
|
+
groupKey: 'content',
|
|
35
|
+
list: [
|
|
36
|
+
{ label: '显示', value: "Y" },
|
|
37
|
+
{ label: '不显示', value: "N" },
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
label: "到店使用名称自定义:",
|
|
42
|
+
ele: "el-input",
|
|
43
|
+
valueKey: "sellName",
|
|
44
|
+
value: data['sellName'] || '',
|
|
45
|
+
groupKey: 'content',
|
|
46
|
+
placeholder: "不填写时默认 到店使用",
|
|
47
|
+
},
|
|
29
48
|
{
|
|
30
49
|
label: '选择排期路径:',
|
|
31
50
|
ele: 'xd-select-pages-path',
|
|
@@ -63,6 +82,19 @@ export default {
|
|
|
63
82
|
},
|
|
64
83
|
inline: false,
|
|
65
84
|
},
|
|
85
|
+
{
|
|
86
|
+
label: '到店使用路径:',
|
|
87
|
+
ele: 'xd-select-pages-path',
|
|
88
|
+
valueKey: 'sellPath',
|
|
89
|
+
placeholder: '请选择到店使用路径',
|
|
90
|
+
value: data.sellPath || null,
|
|
91
|
+
className: 'input80',
|
|
92
|
+
groupKey:'advanced',
|
|
93
|
+
setting: {
|
|
94
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
95
|
+
},
|
|
96
|
+
inline: false,
|
|
97
|
+
},
|
|
66
98
|
].filter(i=>i)
|
|
67
99
|
},
|
|
68
100
|
advanced: [],
|
|
@@ -120,9 +120,14 @@
|
|
|
120
120
|
<!-- seat_index code_index -->
|
|
121
121
|
<view style="display: flex;">
|
|
122
122
|
<view
|
|
123
|
-
v-if="item.
|
|
123
|
+
v-if="is_show_sell === 'Y' && item.sell_index > -1"
|
|
124
124
|
:style="{background: mainColor}"
|
|
125
125
|
class="cinema_item-btn"
|
|
126
|
+
@click.stop="toSellPath(item)">{{ sellName }}</view>
|
|
127
|
+
<view
|
|
128
|
+
v-if="item.code_index > -1"
|
|
129
|
+
:style="{background: mainColor, marginLeft: '20rpx'}"
|
|
130
|
+
class="cinema_item-btn"
|
|
126
131
|
@click.stop="toCodePath(item)">电子码</view>
|
|
127
132
|
<view
|
|
128
133
|
v-if="item.seat_index > -1"
|
|
@@ -179,6 +184,9 @@ export default {
|
|
|
179
184
|
loadingList: true,
|
|
180
185
|
|
|
181
186
|
//面板
|
|
187
|
+
is_show_sell: "",
|
|
188
|
+
sellName: "",
|
|
189
|
+
sellPath: "",
|
|
182
190
|
scheduleChoosePath: "",
|
|
183
191
|
codeChoosePath: "",
|
|
184
192
|
choseCityPath: "",
|
|
@@ -251,7 +259,10 @@ export default {
|
|
|
251
259
|
"content.choseCityPath",
|
|
252
260
|
{ value: "" }
|
|
253
261
|
).value;
|
|
262
|
+
this.sellPath = getContainerPropsValue(container, "content.sellPath", {value: ""}).value;
|
|
254
263
|
this.sort_consume_mode = getContainerPropsValue(container, 'content.sort_consume_mode', '');
|
|
264
|
+
this.is_show_sell = getContainerPropsValue(container, 'content.is_show_sell', '');
|
|
265
|
+
this.sellName = getContainerPropsValue(container, 'content.sellName', '到店使用');
|
|
255
266
|
},
|
|
256
267
|
toChooseSchedule(item) {
|
|
257
268
|
if(item.seat_index > -1) this.toSchedulePath(item);
|
|
@@ -262,6 +273,15 @@ export default {
|
|
|
262
273
|
url: this.codeChoosePath + `?cinema_id=${item.cinema_id}`,
|
|
263
274
|
});
|
|
264
275
|
},
|
|
276
|
+
toSellPath(item){
|
|
277
|
+
let params = {
|
|
278
|
+
'x-params': Base64.encodeURI(`shop_id:${item.cinema_id}`),
|
|
279
|
+
}
|
|
280
|
+
let options = this.$xdUniHelper.jsonToParams(params);
|
|
281
|
+
this.$xdUniHelper.navigateTo({
|
|
282
|
+
url: this.sellPath + `?${options}`,
|
|
283
|
+
});
|
|
284
|
+
},
|
|
265
285
|
toSchedulePath(item){
|
|
266
286
|
this.$xdUniHelper.navigateTo({
|
|
267
287
|
url: this.scheduleChoosePath + `?cinema_id=${item.cinema_id}`,
|
|
@@ -291,6 +311,7 @@ export default {
|
|
|
291
311
|
let sell_index = item.cinema_type.findIndex(ii => ii == 'SELL'); //线下核销
|
|
292
312
|
let seat_index = item.cinema_type.findIndex(ii => ii == 'SEAT'); //在线选座
|
|
293
313
|
let code_index = item.cinema_type.findIndex(ii => ii == 'CODE'); //电子码
|
|
314
|
+
item['sell_index'] = sell_index;
|
|
294
315
|
item['code_index'] = code_index;
|
|
295
316
|
item['seat_index'] = seat_index;
|
|
296
317
|
return item;
|
|
@@ -512,9 +533,9 @@ export default {
|
|
|
512
533
|
box-shadow: 0px 16rpx 60rpx 0px #e3e3e3;
|
|
513
534
|
margin-bottom: unit(24, rpx);
|
|
514
535
|
&-btn {
|
|
515
|
-
font-size: unit(
|
|
536
|
+
font-size: unit(24, rpx);
|
|
516
537
|
border-radius: unit(40, rpx);
|
|
517
|
-
padding: unit(12, rpx) unit(
|
|
538
|
+
padding: unit(12, rpx) unit(16, rpx);
|
|
518
539
|
color: #ffffff;
|
|
519
540
|
text-align: center;
|
|
520
541
|
height: unit(40, rpx);
|