jufubao-base 1.0.388 → 1.0.389-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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-base",
3
- "version": "1.0.388",
3
+ "version": "1.0.389-beta2",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -84,5 +84,16 @@ module.exports = [
84
84
  },
85
85
  isConsole: true,
86
86
  disabled: true,
87
- }
87
+ },
88
+ {
89
+ mapFnName: 'refreshCodeInfo',
90
+ title: '订单 - 刷新渠道二维码',
91
+ path: '/order/v1/order/refresh-code-info',
92
+ isRule: false,
93
+ data: {
94
+ main_order_id: ['订单号', 'Number', '必选'],
95
+ },
96
+ isConsole: true,
97
+ disabled: true,
98
+ },
88
99
  ];
@@ -325,6 +325,14 @@
325
325
  background: bgColor,
326
326
  }"
327
327
  >{{ info.codes[0].code_end_time }}</view>
328
+ <!-- 自动刷新倒计时 -->
329
+ <view v-if="info.codes[0].is_auto_refresh === 'Y'" class="jfb-base-order-detail__body-card-refresh" @click="handleCodeRefresh">
330
+ <text>{{ codeRefreshMinute }}分{{ codeRefreshSecond }}秒后自动刷新</text>
331
+ <xd-font-icon icon="iconmian-loading" size="24" color="#999"></xd-font-icon>
332
+ </view>
333
+ <view v-if="info.codes[0].is_auto_refresh === 'Y'" class="jfb-base-order-detail__body-card-refresh-tip">
334
+ {{ info.codes[0].refresh_tip || '当日未核销,次日将自动退款' }}
335
+ </view>
328
336
  </view>
329
337
  <!--单条条形码或者二维码-->
330
338
  <!--其他情况显示-->
@@ -487,6 +495,14 @@
487
495
  }"
488
496
  >{{ item.code_end_time }}</view>
489
497
  </view>
498
+ <!-- 自动刷新倒计时 -->
499
+ <view v-if="item.is_auto_refresh === 'Y'" class="jfb-base-order-detail__body-card-refresh" @click="handleCodeRefresh">
500
+ <text>{{ codeRefreshMinute }}分{{ codeRefreshSecond }}秒后自动刷新</text>
501
+ <xd-font-icon icon="iconmian-loading" size="24" color="#999"></xd-font-icon>
502
+ </view>
503
+ <view v-if="item.is_auto_refresh === 'Y'" class="jfb-base-order-detail__body-card-refresh-tip">
504
+ {{ item.refresh_tip || '当日未核销,次日将自动退款' }}
505
+ </view>
490
506
  </view>
491
507
  </view>
492
508
  <!--其他情况显示-->
@@ -1011,7 +1027,6 @@ import extsMixins from "@/mixins/extsMixins";
1011
1027
  import { getContainerPropsValue } from "@/utils/xd.base";
1012
1028
  import getServiceUrl from "@/common/getServiceUrl";
1013
1029
  import { mapState } from "vuex";
1014
- import bizMock from "./bizMock";
1015
1030
  import Color from "color";
1016
1031
 
1017
1032
 
@@ -1058,6 +1073,12 @@ export default {
1058
1073
  dialogPassword: "",
1059
1074
  dialogCode: null,
1060
1075
 
1076
+ //码刷新倒计时
1077
+ codeRefreshTimer: null,
1078
+ codeRefreshInterval: null,
1079
+ codeRefreshMinute: 0,
1080
+ codeRefreshSecond: 0,
1081
+
1061
1082
  showApplyAfter: "",
1062
1083
  actionBtns: [
1063
1084
  'view_logistics', //包裹列表
@@ -1292,27 +1313,6 @@ export default {
1292
1313
  res.extras.travel_booking_info = {}
1293
1314
  }
1294
1315
  }
1295
-
1296
- //预览模块
1297
- if (this.isPreview) {
1298
- switch (this.viewStatus) {
1299
- case "mall":
1300
- res = this.$xdUniHelper.cloneDeep(bizMock.mall);
1301
- break;
1302
- case "mallCode":
1303
- res = this.$xdUniHelper.cloneDeep(bizMock.mallCode);
1304
- break;
1305
- case "play":
1306
- res = this.$xdUniHelper.cloneDeep(bizMock.play);
1307
- break;
1308
- case "playCode":
1309
- res = this.$xdUniHelper.cloneDeep(bizMock.playCode);
1310
- break;
1311
- case "cashier":
1312
- res = this.$xdUniHelper.cloneDeep(bizMock.cashier);
1313
- break;
1314
- }
1315
- }
1316
1316
  res.pay_info.real_pay_amount = this.$xdUniHelper.divisionFloatNumber(
1317
1317
  res.pay_info.real_pay_amount,
1318
1318
  100
@@ -1462,6 +1462,7 @@ export default {
1462
1462
  if (this.info.status.loading_timeout != "-1") {
1463
1463
  this.timeDown();
1464
1464
  }
1465
+ this.checkAndStartCodeRefresh();
1465
1466
  })
1466
1467
  .catch((err) => {
1467
1468
  console.log(err, "err");
@@ -1480,6 +1481,7 @@ export default {
1480
1481
  if (this.info.status.loading_timeout != "-1") {
1481
1482
  this.timeDown();
1482
1483
  }
1484
+ this.checkAndStartCodeRefresh();
1483
1485
  console.log(this.info);
1484
1486
  }
1485
1487
  })
@@ -1487,6 +1489,93 @@ export default {
1487
1489
  console.log(err, "err");
1488
1490
  });
1489
1491
  },
1492
+
1493
+ checkAndStartCodeRefresh() {
1494
+ if (this.isPreview || !this.info || !this.info.codes) return;
1495
+ if (this.codeRefreshTimer) {
1496
+ clearTimeout(this.codeRefreshTimer);
1497
+ this.codeRefreshTimer = null;
1498
+ }
1499
+ if (this.codeRefreshInterval) {
1500
+ clearInterval(this.codeRefreshInterval);
1501
+ this.codeRefreshInterval = null;
1502
+ }
1503
+ const autoItem = this.info.codes.find(item => item.is_auto_refresh === 'Y');
1504
+ if (!autoItem || autoItem.code_refresh_second == null) return;
1505
+
1506
+ // 初始化倒计时显示
1507
+ const totalSeconds = autoItem.code_refresh_second;
1508
+ this.codeRefreshMinute = Math.floor(totalSeconds / 60);
1509
+ this.codeRefreshSecond = totalSeconds % 60;
1510
+
1511
+ // 启动每秒递减的倒计时
1512
+ this.codeRefreshInterval = setInterval(() => {
1513
+ if (this.codeRefreshSecond === 0) {
1514
+ if (this.codeRefreshMinute === 0) {
1515
+ clearInterval(this.codeRefreshInterval);
1516
+ this.codeRefreshInterval = null;
1517
+ this.handleCodeRefresh();
1518
+ } else {
1519
+ this.codeRefreshMinute--;
1520
+ this.codeRefreshSecond = 59;
1521
+ }
1522
+ } else {
1523
+ this.codeRefreshSecond--;
1524
+ }
1525
+ }, 1000);
1526
+ },
1527
+
1528
+ handleCodeRefresh() {
1529
+ jfbRootExec("refreshCodeInfo", {
1530
+ vm: this,
1531
+ data: {
1532
+ main_order_id: this.main_order_id,
1533
+ },
1534
+ })
1535
+ .then((res) => {
1536
+ if (res && res.codes) {
1537
+ res.codes = res.codes.map((item) => {
1538
+ if (item.logo) {
1539
+ item.logo = getServiceUrl(item.logo, 'size5');
1540
+ }
1541
+ if (item.show_type === "qrcode"
1542
+ || item.show_type === "barcode"
1543
+ || item.show_type === "qrcode-pass"
1544
+ || item.show_type === "barcode-pass"
1545
+ ) {
1546
+ let reg = /^(http:\/\/|https:\/\/|\/\/)+.+$/;
1547
+ if (!reg.test(item.code_url)) item.code_url = `${this.brandInfo["api_host"]}${item.code_url}`;
1548
+ }
1549
+ if (item.show_type === "qrcode-pass") {
1550
+ item.show_type = 'qrcode';
1551
+ item.can_read_code = item.can_read_password;
1552
+ }
1553
+ if (item.show_type === "barcode-pass") {
1554
+ item.show_type = 'barcode';
1555
+ item.can_read_code = item.can_read_password;
1556
+ }
1557
+ return item;
1558
+ });
1559
+ this.info.codes = res.codes;
1560
+ }
1561
+ if (res && res.status === 'N') {
1562
+ if (this.codeRefreshTimer) {
1563
+ clearTimeout(this.codeRefreshTimer);
1564
+ this.codeRefreshTimer = null;
1565
+ }
1566
+ if (this.codeRefreshInterval) {
1567
+ clearInterval(this.codeRefreshInterval);
1568
+ this.codeRefreshInterval = null;
1569
+ }
1570
+ } else {
1571
+ this.checkAndStartCodeRefresh();
1572
+ }
1573
+ })
1574
+ .catch((err) => {
1575
+ console.log(err, "err");
1576
+ });
1577
+ },
1578
+
1490
1579
  /**
1491
1580
  * @description 监听事件变化
1492
1581
  * @param container {object} 业务组件对象自己
@@ -1846,8 +1935,24 @@ export default {
1846
1935
 
1847
1936
  onJfbShow(options) {
1848
1937
  if (this.timer) clearInterval(this.timer);
1938
+ if (this.codeRefreshInterval) clearInterval(this.codeRefreshInterval);
1849
1939
  this.onJfbLoad(options);
1850
1940
  },
1941
+
1942
+ onJfbHide() {
1943
+ if (this.timer) clearInterval(this.timer);
1944
+ if (this.codeRefreshInterval) clearInterval(this.codeRefreshInterval);
1945
+ },
1946
+
1947
+ onJfbUnload() {
1948
+ if (this.timer) clearInterval(this.timer);
1949
+ if (this.codeRefreshInterval) clearInterval(this.codeRefreshInterval);
1950
+ },
1951
+
1952
+ destroyed() {
1953
+ if (this.timer) clearInterval(this.timer);
1954
+ if (this.codeRefreshInterval) clearInterval(this.codeRefreshInterval);
1955
+ },
1851
1956
  },
1852
1957
  };
1853
1958
  </script>
@@ -2600,4 +2705,25 @@ export default {
2600
2705
  }
2601
2706
  }
2602
2707
  }
2708
+
2709
+ // 自动刷新倒计时
2710
+ .jfb-base-order-detail__body-card-refresh {
2711
+ display: flex;
2712
+ align-items: center;
2713
+ justify-content: center;
2714
+ margin-top: unit(20, rpx);
2715
+ font-size: unit(24, rpx);
2716
+ color: #999;
2717
+
2718
+ text {
2719
+ margin-right: unit(10, rpx);
2720
+ }
2721
+ }
2722
+
2723
+ .jfb-base-order-detail__body-card-refresh-tip {
2724
+ text-align: center;
2725
+ font-size: unit(24, rpx);
2726
+ color: #FA5C5C;
2727
+ margin-top: unit(10, rpx);
2728
+ }
2603
2729
  </style>
@@ -32,4 +32,15 @@ module.exports = [
32
32
  isConsole: true,
33
33
  disabled: true,
34
34
  },
35
+ {
36
+ mapFnName: 'refreshCodeInfo',
37
+ title: '订单 - 刷新渠道二维码',
38
+ path: '/order/v1/order/refresh-code-info',
39
+ isRule: false,
40
+ data: {
41
+ main_order_id: ['订单号', 'Number', '必选'],
42
+ },
43
+ isConsole: true,
44
+ disabled: true,
45
+ },
35
46
  ];
@@ -135,6 +135,14 @@
135
135
  >
136
136
  {{ info.codes[0].code_end_time }}
137
137
  </view>
138
+ <!-- 自动刷新倒计时 -->
139
+ <view v-if="info.codes[0].is_auto_refresh === 'Y'" class="jfb-base-success__body-card-refresh" @click="handleCodeRefresh">
140
+ <text>{{ codeRefreshMinute }}分{{ codeRefreshSecond }}秒后自动刷新</text>
141
+ <xd-font-icon icon="iconmian-loading" size="24" color="#999"></xd-font-icon>
142
+ </view>
143
+ <view v-if="info.codes[0].is_auto_refresh === 'Y'" class="jfb-base-success__body-card-refresh-tip">
144
+ {{ info.codes[0].refresh_tip || '当日未核销,次日将自动退款' }}
145
+ </view>
138
146
  </view>
139
147
  <view v-else>
140
148
  <view
@@ -306,6 +314,14 @@
306
314
  </view>
307
315
  </view>
308
316
  <!--codes end-->
317
+ <!-- 自动刷新倒计时 -->
318
+ <view v-if="item.is_auto_refresh === 'Y'" class="jfb-base-success__body-card-refresh" @click="handleCodeRefresh">
319
+ <text>{{ codeRefreshMinute }}分{{ codeRefreshSecond }}秒后自动刷新</text>
320
+ <xd-font-icon icon="iconmian-loading" size="24" color="#999"></xd-font-icon>
321
+ </view>
322
+ <view v-if="item.is_auto_refresh === 'Y'" class="jfb-base-success__body-card-refresh-tip">
323
+ {{ item.refresh_tip || '当日未核销,次日将自动退款' }}
324
+ </view>
309
325
  </view>
310
326
  </view>
311
327
  </view>
@@ -442,6 +458,10 @@ export default {
442
458
 
443
459
  info: null,
444
460
  timeer: null,
461
+ codeRefreshTimer: null,
462
+ codeRefreshInterval: null,
463
+ codeRefreshMinute: 0,
464
+ codeRefreshSecond: 0,
445
465
  noUserLoding:null,
446
466
  showPassword: false,
447
467
  params: null,
@@ -474,6 +494,9 @@ export default {
474
494
  if (this.timeer) {
475
495
  clearTimeout(this.timeer);
476
496
  }
497
+ if (this.codeRefreshTimer) {
498
+ clearTimeout(this.codeRefreshTimer);
499
+ }
477
500
  },
478
501
  methods: {
479
502
 
@@ -597,6 +620,92 @@ export default {
597
620
  this.getStatus();
598
621
  },
599
622
 
623
+ checkAndStartCodeRefresh() {
624
+ if (this.isPreview || !this.info || !this.info.codes) return;
625
+ if (this.codeRefreshTimer) {
626
+ clearTimeout(this.codeRefreshTimer);
627
+ this.codeRefreshTimer = null;
628
+ }
629
+ if (this.codeRefreshInterval) {
630
+ clearInterval(this.codeRefreshInterval);
631
+ this.codeRefreshInterval = null;
632
+ }
633
+ const autoItem = this.info.codes.find(item => item.is_auto_refresh === 'Y');
634
+ if (!autoItem || autoItem.code_refresh_second == null) return;
635
+
636
+ // 初始化倒计时显示
637
+ const totalSeconds = autoItem.code_refresh_second;
638
+ this.codeRefreshMinute = Math.floor(totalSeconds / 60);
639
+ this.codeRefreshSecond = totalSeconds % 60;
640
+
641
+ // 启动每秒递减的倒计时
642
+ this.codeRefreshInterval = setInterval(() => {
643
+ if (this.codeRefreshSecond === 0) {
644
+ if (this.codeRefreshMinute === 0) {
645
+ clearInterval(this.codeRefreshInterval);
646
+ this.codeRefreshInterval = null;
647
+ this.handleCodeRefresh();
648
+ } else {
649
+ this.codeRefreshMinute--;
650
+ this.codeRefreshSecond = 59;
651
+ }
652
+ } else {
653
+ this.codeRefreshSecond--;
654
+ }
655
+ }, 1000);
656
+ },
657
+
658
+ handleCodeRefresh() {
659
+ jfbRootExec("refreshCodeInfo", {
660
+ vm: this,
661
+ data: {
662
+ main_order_id: this.order_id,
663
+ },
664
+ })
665
+ .then((res) => {
666
+ if (res && res.codes) {
667
+ res.codes = res.codes.map((item) => {
668
+ if (item.logo) {
669
+ item.logo = getServiceUrl(item.logo);
670
+ }
671
+ if (item.show_type === "qrcode"
672
+ || item.show_type === "barcode"
673
+ || item.show_type === "qrcode-pass"
674
+ || item.show_type === "barcode-pass"
675
+ ) {
676
+ let reg = /^(http:\/\/|https:\/\/|\/\/)+.+$/;
677
+ if (!reg.test(item.code_url)) item.code_url = `${this.brandInfo["api_host"]}${item.code_url}`;
678
+ }
679
+ if (item.show_type === "qrcode-pass") {
680
+ item.show_type = 'qrcode';
681
+ item.can_read_code = item.can_read_password;
682
+ }
683
+ if (item.show_type === "barcode-pass") {
684
+ item.show_type = 'barcode';
685
+ item.can_read_code = item.can_read_password;
686
+ }
687
+ return item;
688
+ });
689
+ this.info.codes = res.codes;
690
+ }
691
+ if (res && res.status === 'N') {
692
+ if (this.codeRefreshTimer) {
693
+ clearTimeout(this.codeRefreshTimer);
694
+ this.codeRefreshTimer = null;
695
+ }
696
+ if (this.codeRefreshInterval) {
697
+ clearInterval(this.codeRefreshInterval);
698
+ this.codeRefreshInterval = null;
699
+ }
700
+ } else {
701
+ this.checkAndStartCodeRefresh();
702
+ }
703
+ })
704
+ .catch((err) => {
705
+ this.$xdLog.catch(err);
706
+ });
707
+ },
708
+
600
709
  handleOrderResolve(info) {
601
710
  //#ifdef MP-WEIXIN
602
711
  if(info.is_clear_vip_cookie && info.is_clear_vip_cookie === 'Y'){
@@ -698,6 +807,9 @@ export default {
698
807
  info['settleInfo'] = info['settle_info']
699
808
  }
700
809
 
810
+ //检查是否需要自动刷新码
811
+ this.checkAndStartCodeRefresh();
812
+
701
813
  //订单完成
702
814
  if (this.info.status.status_type === "success") {
703
815
  if (this.timeer) {
@@ -757,12 +869,18 @@ export default {
757
869
  if (this.timeer) {
758
870
  clearTimeout(this.timeer);
759
871
  }
872
+ if (this.codeRefreshTimer) {
873
+ clearTimeout(this.codeRefreshTimer);
874
+ }
760
875
  },
761
876
 
762
877
  onJfbShow() {
763
878
  if (this.timeer) {
764
879
  clearTimeout(this.timeer);
765
880
  }
881
+ if (this.codeRefreshTimer) {
882
+ clearTimeout(this.codeRefreshTimer);
883
+ }
766
884
  this.time = 0;
767
885
  this.getStatus();
768
886
  },
@@ -771,6 +889,9 @@ export default {
771
889
  if (this.timeer) {
772
890
  clearTimeout(this.timeer);
773
891
  }
892
+ if (this.codeRefreshTimer) {
893
+ clearTimeout(this.codeRefreshTimer);
894
+ }
774
895
  },
775
896
 
776
897
  /**
@@ -827,6 +948,27 @@ export default {
827
948
  }
828
949
  &-card {
829
950
  padding: unit(30, rpx);
951
+ &-refresh {
952
+ display: flex;
953
+ align-items: center;
954
+ justify-content: center;
955
+ margin-top: unit(20, rpx);
956
+ font-size: unit(24, rpx);
957
+ color: #999;
958
+ border-top: unit(1, rpx) solid #eee;
959
+ padding-top: unit(20, rpx);
960
+
961
+ text {
962
+ margin-right: unit(10, rpx);
963
+ }
964
+ }
965
+
966
+ &-refresh-tip {
967
+ text-align: center;
968
+ font-size: unit(24, rpx);
969
+ color: #FA5C5C;
970
+ margin-top: unit(10, rpx);
971
+ }
830
972
  }
831
973
  &-num {
832
974
  &-info {
@@ -1,22 +0,0 @@
1
- 'use strict';
2
-
3
- /**
4
- * @description 第三方库
5
- * @param threePackagePath {String} 第三方库所在项目路径存放路径路
6
- * @param packname {String} 包名字
7
- * @returns {string|*}
8
- */
9
- const getPackagePath = (threePackagePath, packname = 'gxd-commands-bussiness')=>{
10
- if(packname === 'gxd-commands-bussiness') {
11
- return `/Users/shiyonggao/Desktop/code/BASE/UNIAPP/xd-commands-bussiness/${threePackagePath}`;
12
- }
13
-
14
- if (packname === 'gxd-uni-library-editx') {
15
- return `/Users/shiyonggao/Desktop/code/BASE/UNIAPP/xd-uni-library-editx/${threePackagePath}`;
16
- }
17
-
18
- };
19
-
20
- module.exports = {
21
- getPackagePath
22
- }
@@ -1,382 +0,0 @@
1
- export default {
2
- mall: {
3
- "buttons": [{"text": "查看物流", "action": "view_logistics"}],
4
- "pay_order_id": "519465744841392128",
5
- "detail": [{"label": "主订单号", "value": "m519465742294633", "type": "copy", "style": "bold"}, {
6
- "label": "下单时间",
7
- "value": "2023-05-23 10:51:25",
8
- "type": "text",
9
- "style": "normal"
10
- }, {"label": "支付时间", "value": "2023-05-23 10:51:28", "type": "text", "style": "normal"}, {
11
- "label": "订单备注",
12
- "value": "无",
13
- "type": "text",
14
- "style": "normal"
15
- }],
16
- "status": {
17
- "status": "COMPLETED",
18
- "status_name": "已完成",
19
- "comment": "",
20
- "status_type": "success",
21
- "loading": false,
22
- "loading_timeout": -1
23
- },
24
- "sub_orders": [{
25
- "sub_order_id": "s519465743607480320",
26
- "status": {
27
- "status": "COMPLETED",
28
- "status_name": "已完成",
29
- "comment": "",
30
- "status_type": "",
31
- "loading": false,
32
- "loading_timeout": 0
33
- },
34
- "products": [{
35
- 'brand_id': 2,
36
- 'brand_name': "北京味多美蛋糕叔叔/HEYTEA/喜茶/凯蒂猫/Quange/全格",
37
- "product_id": 60006948,
38
- "product_name": "动物奶油】ins小清新动物奶油生日蛋糕",
39
- "product_sku_id": "0",
40
- "product_sku_name": "草莓",
41
- "product_type": "good",
42
- "product_num": 8,
43
- "product_thumb": "\/\/sandbox-img.jufubao.cn\/uploads\/20230406\/0b890cd5a947d9c5724b412d34cd4000.png",
44
- "sale_price": 1549,
45
- "product_form_data": [{"label": "祝福语", "value": "心想事成!"}]
46
- }],
47
- "info": [{"label": "配送方式", "value": "同城配送", "type": "text", "style": "normal"}, {
48
- "label": "配送时间",
49
- "value": "05-23 (星期二) 16:00-18:00",
50
- "type": "text",
51
- "style": "normal"
52
- }, {"label": "收货地址", "value": "北京不支付配送 134****9988", "type": "text", "style": "normal"}, {
53
- "label": "",
54
- "value": "北京市北京市通州区潞邑街道孙各庄家园25-1-501",
55
- "type": "text",
56
- "style": "normal"
57
- }],
58
- "comment": ""
59
- }],
60
- "pay_info": {
61
- "real_pay_amount": 21649,
62
- "pay_order_id": "519465744841392128",
63
- "base": [{"label": "商品总额", "value": "1549", "type": "price", "style": "normal"}, {
64
- "label": "配送费用",
65
- "value": "20400",
66
- "type": "price",
67
- "style": "normal"
68
- }, {"label": "运费减免", "value": "-300", "type": "price", "style": "normal"}, {
69
- "label": "订单总额",
70
- "value": "21649",
71
- "type": "price",
72
- "style": "bold"
73
- }, {"label": "", "value": "", "type": "line", "style": "normal"}, {
74
- "label": "票券支付",
75
- "value": "21649",
76
- "type": "price",
77
- "style": "bold"
78
- }, {"label": "补差金额", "value": "0", "type": "price", "style": "bold"}, {
79
- "label": "实付总额",
80
- "value": "21649",
81
- "type": "price",
82
- "style": "bold"
83
- }],
84
- "cards": [{"card_number": "101001000007170", "card_type_name": "聚福宝福", "card_use_point": 21649}]
85
- },
86
- "extras": {"first_logistics_package_id": "", "logistics_count": 0},
87
- "request_id": "ff8234b90362f21a",
88
- "support_shops": {
89
- "layer_name": "附近门店",
90
- "brand_id": 100003,
91
- "brand_name": "品牌jls0519",
92
- "region_limit_tpl_id": ""
93
- }
94
- },
95
- cashier: {
96
- "detail": [{"label": "主订单号", "value": "c516938076507504640", "type": "copy", "style": "bold"}, {
97
- "label": "下单时间",
98
- "value": "2023-05-16 11:27:21",
99
- "type": "text",
100
- "style": "normal"
101
- }, {"label": "支付时间", "value": "2023-05-16 11:27:23", "type": "text", "style": "normal"}],
102
- "status": {
103
- "status": "COMPLETED",
104
- "status_name": "已完成",
105
- "comment": "",
106
- "status_type": "success",
107
- "loading": false,
108
- "loading_timeout": -1
109
- },
110
- "codes": [{
111
- "code": "h.161.hmfrqwdfzd0b1eny",
112
- "can_read_code": "提货码:h.161.hmfrqwdfzd",
113
- "code_url": "\/common\/v1\/image\/qrcode?code_content=h.161.hmfrqwdfzd0b1eny&size=240",
114
- "password": "",
115
- "can_read_password": "",
116
- "show_type": "qrcode"
117
- }],
118
- "pay_info": {
119
- "real_pay_amount": 100,
120
- "pay_order_id": "516938078653284352",
121
- "base": [{"label": "商品总额", "value": "100", "type": "price", "style": "normal"}, {
122
- "label": "订单总额",
123
- "value": "100",
124
- "type": "price",
125
- "style": "bold"
126
- }, {"label": "", "value": "", "type": "line", "style": "normal"}, {
127
- "label": "票券支付",
128
- "value": "100",
129
- "type": "price",
130
- "style": "bold"
131
- }, {"label": "补差金额", "value": "0", "type": "price", "style": "bold"}, {
132
- "label": "实付总额",
133
- "value": "100",
134
- "type": "price",
135
- "style": "bold"
136
- }],
137
- "cards": [{"card_number": "101001000006998", "card_type_name": "聚福宝福", "card_use_point": 100}]
138
- },
139
- "shop": {"layer_name": "门店信息", "shop_id": 52648, "shop_name": "jinshop门店", "shop_address": "河北省廊坊市三河市燕郊镇润旭"},
140
- "settle_tag_info": {
141
- "layer_name": "结算信息",
142
- "settle_tag_info_list": [{"label": "结算标签", "value": "xyz1", "type": "", "style": ""}]
143
- },
144
- "request_id": "2cbfedff52cb688d"
145
- },
146
- mallCode: {
147
- "buttons": [{"text": "取消订单", "action": "cancel"}],
148
- "pay_order_id": "514079357795385344",
149
- "detail": [{"label": "主订单号", "value": "m514079355340933", "type": "copy", "style": "bold"}, {
150
- "label": "下单时间",
151
- "value": "2023-05-08 14:07:50",
152
- "type": "text",
153
- "style": "normal"
154
- }, {"label": "支付时间", "value": "2023-05-08 14:07:54", "type": "text", "style": "normal"}, {
155
- "label": "订单备注",
156
- "value": "测试同时购买2个电子码商品",
157
- "type": "text",
158
- "style": "normal"
159
- }],
160
- "status": {
161
- "status": "COMPLETED",
162
- "status_name": "未支付",
163
- "comment": "",
164
- "status_type": "wait",
165
- "loading": false,
166
- "loading_timeout": -1
167
- },
168
- "sub_orders": [{
169
- "sub_order_id": "s514079356758605824",
170
- "status": {
171
- "status": "COMPLETED",
172
- "status_name": "已完成",
173
- "comment": "",
174
- "status_type": "",
175
- "loading": false,
176
- "loading_timeout": 0
177
- },
178
- "products": [{
179
- "product_id": 60007298,
180
- "product_name": "电子码商品0508(测试数据请勿购买)",
181
- "product_sku_id": "0",
182
- "product_sku_name": "向日葵",
183
- "product_type": "card",
184
- "product_num": 2,
185
- "product_thumb": "\/\/sandbox-img.jufubao.cn\/uploads\/20230508\/38ca4689c8be641b1bf7482f5479f826.jpg",
186
- "sale_price": 2008,
187
- "product_form_data": []
188
- }],
189
- "info": [{"label": "配送方式", "value": "自动发货", "type": "text", "style": "normal"}],
190
- "comment": ""
191
- }],
192
- "codes": [
193
- {
194
- "code": "A1121|1234",
195
- "can_read_code": "取票码:A1121|验证码:1234",
196
- "code_url": "\/xxx?text=A1121|1234",
197
- "password": "",
198
- "can_read_password": "",
199
- "show_type": "qrcode"
200
- },
201
- {
202
- "code": "A2222|2222",
203
- "can_read_code": "取票码:A2222|验证码:2222",
204
- "code_url": "\/xxx?text=A2222|2222",
205
- "password": "",
206
- "can_read_password": "",
207
- "show_type": "qrcode"
208
- },
209
- {
210
- "code": "JKQ3X8PtuJO|647632",
211
- "can_read_code": "取票码:k7NW02BJKQ3X8PtuJO4T0<br/>验证码:647632",
212
- "code_url": "//sandbox-img.jufubao.cn/uploads/20230531/1dbe68ef5f26efc1d1c70ecd579c6b16.png",
213
- "password": "",
214
- "can_read_password": "",
215
- "show_type": "barcode"
216
- },
217
- {
218
- "code": "10004",
219
- "can_read_code": "电子码:10004",
220
- "code_url": "",
221
- "password": "",
222
- "can_read_password": "",
223
- "show_type": "text"
224
- },
225
- {
226
- "code": "https://sandbox-website-05.jufubao.cn/apply/system/card/detail?card_number=101001000007228",
227
- "can_read_code": "https://sandbox-website-05.jufubao.cn/apply/system/card/detail?card_number=101001000007228",
228
- "code_url": "https://sandbox-website-05.jufubao.cn/apply/system/card/detail?card_number=101001000007228",
229
- "password": "",
230
- "can_read_password": "",
231
- "show_type": "url"
232
- }
233
- ],
234
- "support_shops": {"layer_name": "附近门店", "brand_id": 10957, "brand_name": "电子码品牌jls"},
235
- "pay_info": {
236
- "real_pay_amount": 4016,
237
- "pay_order_id": "514079357795385344",
238
- "base": [{"label": "商品总额", "value": "4016", "type": "price", "style": "normal"}, {
239
- "label": "订单总额",
240
- "value": "4016",
241
- "type": "price",
242
- "style": "bold"
243
- }, {"label": "", "value": "", "type": "line", "style": "normal"}, {
244
- "label": "票券支付",
245
- "value": "4016",
246
- "type": "price",
247
- "style": "bold"
248
- }, {"label": "补差金额", "value": "0", "type": "price", "style": "bold"}, {
249
- "label": "实付总额",
250
- "value": "4016",
251
- "type": "price",
252
- "style": "bold"
253
- }],
254
- "cards": [{"card_number": "101001000007170", "card_type_name": "聚福宝福", "card_use_point": 4015}]
255
- },
256
- "extras": {"first_logistics_package_id": "", "logistics_count": 0},
257
- "request_id": "87c4c74411254452"
258
- },
259
- play: {
260
- "pay_order_id": "513353220815405056",
261
- "detail": [{"label": "主订单号", "value": "f513353219585633", "type": "copy", "style": "bold"}, {
262
- "label": "下单时间",
263
- "value": "2023-05-06 14:02:25",
264
- "type": "text",
265
- "style": "normal"
266
- }, {"label": "支付时间", "value": "2023-05-06 14:02:27", "type": "text", "style": "normal"}, {
267
- "label": "订单备注",
268
- "value": "无",
269
- "type": "text",
270
- "style": "normal"
271
- }],
272
- "status": {
273
- "status": "COMPLETED",
274
- "status_name": "已完成",
275
- "comment": "",
276
- "status_type": "success",
277
- "loading": false,
278
- "loading_timeout": -1
279
- },
280
- "film_show": {
281
- "name": "聚福宝-万里归途",
282
- "thumb": "https:\/\/p0.pipi.cn\/mmdb\/25bfd6ddb53c7e5015d23c5bc24d876c03d41.jpg?imageMogr2\/thumbnail\/1246x1246%3E",
283
- "show_version": "英语 3D",
284
- "seat_name": "1排5列",
285
- "hall_name": "6厅(需自备3D眼镜)",
286
- "show_time": 1683361200,
287
- "num": 1,
288
- "detail": null
289
- },
290
- "codes": [{
291
- "code": "A1121|1234",
292
- "can_read_code": "取票码:A1121|验证码:1234",
293
- "code_url": "\/common\/v1\/image\/qrcode?code_content=A1121|1234&size=240",
294
- "password": "",
295
- "can_read_password": "",
296
- "show_type": "qrcode"
297
- }],
298
- "pay_info": {
299
- "real_pay_amount": 4800,
300
- "pay_order_id": "513353220815405056",
301
- "base": [{"label": "商品总额", "value": "4800", "type": "price", "style": "normal"}, {
302
- "label": "订单总额",
303
- "value": "4800",
304
- "type": "price",
305
- "style": "bold"
306
- }, {"label": "", "value": "", "type": "line", "style": "normal"}, {
307
- "label": "票券支付",
308
- "value": "4800",
309
- "type": "price",
310
- "style": "bold"
311
- }, {"label": "补差金额", "value": "0", "type": "price", "style": "bold"}, {
312
- "label": "实付总额",
313
- "value": "4800",
314
- "type": "price",
315
- "style": "bold"
316
- }],
317
- "cards": [{"card_number": "101001000007784", "card_type_name": "聚福宝福", "card_use_point": 4800}]
318
- },
319
- "shop": {
320
- "layer_name": "影院信息",
321
- "shop_id": 7,
322
- "shop_name": "聚福宝测试影院",
323
- "shop_address": "北京北京西夏区城区河北省廊坊市三河市燕郊开发区燕高路西侧实验小学南侧 "
324
- },
325
- "extras": {"first_logistics_package_id": "", "logistics_count": 0},
326
- "request_id": "87feaa55188f5e7a"
327
- },
328
- playCode: {
329
- "pay_order_id": "510452791920115712",
330
- "detail": [{"label": "主订单号", "value": "m510452788802933", "type": "copy", "style": "bold"}, {
331
- "label": "下单时间",
332
- "value": "2023-04-28 13:57:09",
333
- "type": "text",
334
- "style": "normal"
335
- }, {"label": "支付时间", "value": "2023-04-28 13:57:12", "type": "text", "style": "normal"}, {
336
- "label": "订单备注",
337
- "value": "无",
338
- "type": "text",
339
- "style": "normal"
340
- }],
341
- "status": {
342
- "status": "COMPLETED",
343
- "status_name": "已完成",
344
- "comment": "",
345
- "status_type": "success",
346
- "loading": false,
347
- "loading_timeout": -1
348
- },
349
- "codes": [{
350
- "code": "1.01001E+14",
351
- "can_read_code": "电子码:4654612514354",
352
- "code_url": "\/common\/v1\/image\/qrcode?code_content=1.01001E+14&size=240",
353
- "password": "46678908\t",
354
- "can_read_password": "密 码:46678908\t",
355
- "show_type": "qrcode"
356
- }],
357
- "support_shops": {"layer_name": "附近影院", "brand_id": 16, "brand_name": "万达院线jls"},
358
- "pay_info": {
359
- "real_pay_amount": 1001,
360
- "pay_order_id": "510452791920115712",
361
- "base": [{"label": "商品总额", "value": "1001", "type": "price", "style": "normal"}, {
362
- "label": "订单总额",
363
- "value": "1001",
364
- "type": "price",
365
- "style": "bold"
366
- }, {"label": "", "value": "", "type": "line", "style": "normal"}, {
367
- "label": "票券支付",
368
- "value": "1001",
369
- "type": "price",
370
- "style": "bold"
371
- }, {"label": "补差金额", "value": "0", "type": "price", "style": "bold"}, {
372
- "label": "实付总额",
373
- "value": "1001",
374
- "type": "price",
375
- "style": "bold"
376
- }],
377
- "cards": [{"card_number": "101001000007170", "card_type_name": "聚福宝福", "card_use_point": 1001}]
378
- },
379
- "extras": {"first_logistics_package_id": "", "logistics_count": 0},
380
- "request_id": "e2ff7e004128997a"
381
- }
382
- }