jufubao-movie 1.0.52 → 1.0.54-beta1
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
|
@@ -288,6 +288,11 @@
|
|
|
288
288
|
import {getContainerPropsValue, baseJsDateToTime,getParentsStyle} from "@/utils/xd.base";
|
|
289
289
|
import {mapState} from 'vuex';
|
|
290
290
|
|
|
291
|
+
// #ifdef H5
|
|
292
|
+
import cookie from "@/common/cookie";
|
|
293
|
+
//#endif
|
|
294
|
+
import {Base64} from "js-base64";
|
|
295
|
+
|
|
291
296
|
export default {
|
|
292
297
|
name: "JfbMovieConfirm",
|
|
293
298
|
components: {
|
|
@@ -702,9 +707,10 @@
|
|
|
702
707
|
total_price: this.res_total_price,
|
|
703
708
|
selected_card_list_json: "[]"
|
|
704
709
|
}, (res1) => {
|
|
705
|
-
this
|
|
706
|
-
|
|
707
|
-
|
|
710
|
+
this.handleToPay(res1);
|
|
711
|
+
// this.$xdUniHelper.redirectTo({
|
|
712
|
+
// url: this.payPath + `?order_id=${res1['pay_order_id']}&main_order_id=${res1['order_id']}`
|
|
713
|
+
// }, false, true)
|
|
708
714
|
})
|
|
709
715
|
}
|
|
710
716
|
}
|
|
@@ -841,6 +847,27 @@
|
|
|
841
847
|
this.couponImageUrl = getContainerPropsValue(container, "content.couponImageUrl", "");
|
|
842
848
|
this.getContent();
|
|
843
849
|
},
|
|
850
|
+
|
|
851
|
+
handleToPay(res){
|
|
852
|
+
let payPath = '';
|
|
853
|
+
let isMp = false;
|
|
854
|
+
// #ifdef H5
|
|
855
|
+
payPath = cookie.get(`jfb-pay-path-${this.brandInfo.site_id}`);
|
|
856
|
+
if(navigator.userAgent.match(/miniprogram/i)) isMp = true;
|
|
857
|
+
//#endif
|
|
858
|
+
if(payPath && isMp) {
|
|
859
|
+
payPath = Base64.encodeURI(`${this.payPath}?order_id=${res['pay_order_id']}&main_order_id=${res['order_id']}`);
|
|
860
|
+
this['$xdUniHelper'].redirectTo({
|
|
861
|
+
url: `/pages/jumptomp/jumptomp?callback=${payPath}`
|
|
862
|
+
});
|
|
863
|
+
}
|
|
864
|
+
else {
|
|
865
|
+
this.$xdUniHelper.redirectTo({
|
|
866
|
+
url: this.payPath + `?order_id=${res['pay_order_id']}&main_order_id=${res['order_id']}`
|
|
867
|
+
}, false, true)
|
|
868
|
+
}
|
|
869
|
+
},
|
|
870
|
+
|
|
844
871
|
handleCreateSuccess(val) {
|
|
845
872
|
if (val.need_pay_price == 0) {
|
|
846
873
|
this.$xdUniHelper.redirectTo({
|
|
@@ -850,9 +877,10 @@
|
|
|
850
877
|
else {
|
|
851
878
|
//支持补差, 跳转补差页
|
|
852
879
|
if(this.payThird){
|
|
853
|
-
this
|
|
854
|
-
|
|
855
|
-
}
|
|
880
|
+
this.handleToPay(val)
|
|
881
|
+
// this.$xdUniHelper.redirectTo({
|
|
882
|
+
// url: this.payPath + `?order_id=${val['pay_order_id']}&main_order_id=${val['order_id']}`
|
|
883
|
+
// })
|
|
856
884
|
}else{
|
|
857
885
|
this.$xdAlert({
|
|
858
886
|
content: '余额不足,请选择其他票券',
|
|
@@ -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: [],
|
|
@@ -119,6 +119,11 @@
|
|
|
119
119
|
>
|
|
120
120
|
<!-- seat_index code_index -->
|
|
121
121
|
<view style="display: flex;">
|
|
122
|
+
<view
|
|
123
|
+
v-if="is_show_sell === 'Y' && item.sell_index > -1"
|
|
124
|
+
:style="{background: mainColor}"
|
|
125
|
+
class="cinema_item-btn"
|
|
126
|
+
@click.stop="toSellPath(item)">{{ sellName }}</view>
|
|
122
127
|
<view
|
|
123
128
|
v-if="item.code_index > -1"
|
|
124
129
|
:style="{background: mainColor}"
|
|
@@ -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.sell_name', '到店使用');
|
|
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;
|