jufubao-third 1.0.11 → 1.0.13-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
|
@@ -15,7 +15,7 @@ module.exports = [
|
|
|
15
15
|
{
|
|
16
16
|
mapFnName: 'getThirdListCards',
|
|
17
17
|
title: '三方 - 展示可选卡券列表',
|
|
18
|
-
path: "/mall/v1/order/list-binded-cards",
|
|
18
|
+
path: "/mall/v1/order/list-binded-cards/thirdmall",
|
|
19
19
|
isRule: false,
|
|
20
20
|
params: {
|
|
21
21
|
},
|
|
@@ -25,7 +25,7 @@ module.exports = [
|
|
|
25
25
|
{
|
|
26
26
|
mapFnName: 'setThirdSelectCard',
|
|
27
27
|
title: '三方 - 选择卡券',
|
|
28
|
-
path: '/mall/v1/order/
|
|
28
|
+
path: '/mall/v1/order/use-binded-card/thirdmall',
|
|
29
29
|
isRule: false,
|
|
30
30
|
data: {
|
|
31
31
|
selected_card_list_json: [
|
|
@@ -69,7 +69,7 @@ module.exports = [
|
|
|
69
69
|
{
|
|
70
70
|
mapFnName: 'setThirdAddCard',
|
|
71
71
|
title: '三方 - 添加新卡券',
|
|
72
|
-
path: '/mall/v1/order/
|
|
72
|
+
path: '/mall/v1/order/use-new-card/thirdmall',
|
|
73
73
|
isRule: false,
|
|
74
74
|
data: {
|
|
75
75
|
selected_card_list_json: [
|
|
@@ -140,7 +140,7 @@ module.exports = [
|
|
|
140
140
|
{
|
|
141
141
|
mapFnName: "useBindedWallet",
|
|
142
142
|
title: "使用已绑钱包",
|
|
143
|
-
path: "/mall/v1/order/
|
|
143
|
+
path: "/mall/v1/order/use-binded-wallet/thirdmall",
|
|
144
144
|
isRule: false,
|
|
145
145
|
data: {
|
|
146
146
|
selected_card_list_json: ['卡', 'string', true],
|
|
@@ -3,57 +3,70 @@
|
|
|
3
3
|
export default {
|
|
4
4
|
style: [],
|
|
5
5
|
advanced: [],
|
|
6
|
-
content:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
6
|
+
content:(data)=>{
|
|
7
|
+
return [
|
|
8
|
+
{
|
|
9
|
+
label: "支付时是否跳过补差提示:",
|
|
10
|
+
ele: 'xd-radio',
|
|
11
|
+
valueKey: "skipTip",
|
|
12
|
+
value: data['skipTip'] || 'N',
|
|
13
|
+
groupKey:'content',
|
|
14
|
+
list: [
|
|
15
|
+
{label: '是', value: 'Y'},
|
|
16
|
+
{label: '否', value: 'N'},
|
|
17
|
+
],
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
label: "选择业务线",
|
|
21
|
+
ele: "xd-choose-namespace",
|
|
22
|
+
valueKey: "xnamespace",
|
|
23
|
+
value: data['xnamespace'] || null,
|
|
24
|
+
groupKey: "advanced",
|
|
25
|
+
handleCustom: (cb) => {
|
|
26
|
+
XdBus.getParentApi('getOptionsNamespaces')()
|
|
27
|
+
.then(res => {
|
|
28
|
+
cb(res.list)
|
|
29
|
+
})
|
|
30
|
+
.catch();
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
label: '支付成功路径:', //label
|
|
35
|
+
ele: 'xd-select-pages-path', //package 名称
|
|
36
|
+
valueKey: 'orderSuccessPath', //form[valueKey]
|
|
37
|
+
placeholder: '请选择核销成功路径',
|
|
38
|
+
value: data['orderSuccessPath'] || null,
|
|
39
|
+
groupKey: "advanced",
|
|
40
|
+
setting: {
|
|
41
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
30
42
|
|
|
43
|
+
},
|
|
44
|
+
inline: false,
|
|
31
45
|
},
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
setting: {
|
|
42
|
-
router: XdBus.getParentApi('getPagesTree'),
|
|
46
|
+
{
|
|
47
|
+
label: '三方支付补差路径:', //label
|
|
48
|
+
ele: 'xd-select-pages-path', //package 名称
|
|
49
|
+
valueKey: 'thirdPayPath', //form[valueKey]
|
|
50
|
+
placeholder: '请选择支付路径',
|
|
51
|
+
value: data['thirdPayPath'] || null,
|
|
52
|
+
groupKey: "advanced",
|
|
53
|
+
setting: {
|
|
54
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
43
55
|
|
|
56
|
+
},
|
|
57
|
+
inline: false,
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
label: "是否可以使用新票券",
|
|
61
|
+
ele: "xd-radio",
|
|
62
|
+
valueKey: 'bindCard',
|
|
63
|
+
value: data['thirdPayPath'] || '1',
|
|
64
|
+
groupKey: 'content',
|
|
65
|
+
list: [
|
|
66
|
+
{label: "是", value: "1"},
|
|
67
|
+
{label: "否", value: "2"},
|
|
68
|
+
]
|
|
44
69
|
},
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
{
|
|
48
|
-
label: "是否可以使用新票券",
|
|
49
|
-
ele: "xd-radio",
|
|
50
|
-
valueKey: 'bindCard',
|
|
51
|
-
value: "",
|
|
52
|
-
groupKey: 'content',
|
|
53
|
-
list: [
|
|
54
|
-
{label: "是", value: "1"},
|
|
55
|
-
{label: "否", value: "2"},
|
|
56
|
-
]
|
|
57
|
-
},
|
|
58
|
-
],
|
|
70
|
+
]
|
|
71
|
+
},
|
|
59
72
|
}
|
|
@@ -396,7 +396,8 @@
|
|
|
396
396
|
orderSuccessPath: "",
|
|
397
397
|
thirdPayPath: "",
|
|
398
398
|
xnamespace: "",
|
|
399
|
-
bindCard: '1'
|
|
399
|
+
bindCard: '1',
|
|
400
|
+
skipTip: "N",
|
|
400
401
|
}
|
|
401
402
|
},
|
|
402
403
|
watch: {
|
|
@@ -487,6 +488,7 @@
|
|
|
487
488
|
this.thirdPayPath = getContainerPropsValue(container, 'content.thirdPayPath', {value: ""}).value;
|
|
488
489
|
this.xnamespace = getContainerPropsValue(container, 'content.xnamespace', this.projectAttr.business_code);
|
|
489
490
|
this.bindCard = getContainerPropsValue(container,"content.bindCard","1");
|
|
491
|
+
this.skipTip = getContainerPropsValue(container, "content.skipTip", "N");
|
|
490
492
|
},
|
|
491
493
|
getTimeFormat(time){
|
|
492
494
|
let date = null;
|
|
@@ -610,7 +612,7 @@
|
|
|
610
612
|
if(!submitCardList.length){
|
|
611
613
|
//支持补差, 提示是否使用补差
|
|
612
614
|
if(this.payThird){
|
|
613
|
-
if(
|
|
615
|
+
if(this.skipTip === 'N'){
|
|
614
616
|
await this.handleConfirmAllWxPay();
|
|
615
617
|
}
|
|
616
618
|
}else{
|
|
@@ -192,7 +192,9 @@ export default {
|
|
|
192
192
|
}else{
|
|
193
193
|
//支持补差, 提示是否使用补差
|
|
194
194
|
if(this.payThird){
|
|
195
|
-
|
|
195
|
+
if(this.skipTip === 'N'){
|
|
196
|
+
await this.handleConfirmAllWxPay();
|
|
197
|
+
}
|
|
196
198
|
}else{
|
|
197
199
|
//不支持补差,仅提示
|
|
198
200
|
return this.$xdAlert({content: "请选择兑换方式"})
|