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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-third",
3
- "version": "1.0.11",
3
+ "version": "1.0.13-beta1",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件第三方购物平台包",
6
6
  "main": "index.js",
@@ -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/pre/use-binded-card',
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/pre/use-new-card',
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/pre/use-binded-wallet",
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
- label: "选择业务线",
9
- ele: "xd-choose-namespace",
10
- valueKey: "xnamespace",
11
- value: "",
12
- groupKey: "advanced",
13
- handleCustom: (cb) => {
14
- XdBus.getParentApi('getOptionsNamespaces')()
15
- .then(res => {
16
- cb(res.list)
17
- })
18
- .catch();
19
- }
20
- },
21
- {
22
- label: '支付成功路径:', //label
23
- ele: 'xd-select-pages-path', //package 名称
24
- valueKey: 'orderSuccessPath', //form[valueKey]
25
- placeholder: '请选择核销成功路径',
26
- value: null,
27
- groupKey: "advanced",
28
- setting: {
29
- router: XdBus.getParentApi('getPagesTree'),
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
- inline: false,
33
- },
34
- {
35
- label: '三方支付补差路径:', //label
36
- ele: 'xd-select-pages-path', //package 名称
37
- valueKey: 'thirdPayPath', //form[valueKey]
38
- placeholder: '请选择支付路径',
39
- value: null,
40
- groupKey: "advanced",
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
- inline: false,
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(!this.isPlusSite){
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
- await this.handleConfirmAllWxPay();
195
+ if(this.skipTip === 'N'){
196
+ await this.handleConfirmAllWxPay();
197
+ }
196
198
  }else{
197
199
  //不支持补差,仅提示
198
200
  return this.$xdAlert({content: "请选择兑换方式"})