jufubao-base 1.0.186-beta1 → 1.0.186-beta3

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.186-beta1",
3
+ "version": "1.0.186-beta3",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -12,6 +12,7 @@ module.exports = [
12
12
  isRule: false,
13
13
  params: {
14
14
  main_order_id: ['id', 'Number', '必选'],
15
+ is_show_product: ['是否显示商品 1=显示,0=隐藏 仅电子码商品', 'Number', '非必选'],
15
16
  },
16
17
  isConsole: true,
17
18
  disabled: true,
@@ -503,6 +503,18 @@ export default {
503
503
  { label: '收起', value: 'N' },
504
504
  ]
505
505
  },
506
+ {
507
+ label: '是否显示商品信息:',
508
+ ele: 'xd-radio',
509
+ valueKey: 'is_show_product',
510
+ groupKey:'content',
511
+ value:data['is_show_product'] || 'Y',
512
+ placeholder: '请选择',
513
+ list: [
514
+ {"label": "是", "value": "Y"},
515
+ {"label": "否", "value": "N"},
516
+ ],
517
+ },
506
518
  {
507
519
  label: '是否展开商品详情:',
508
520
  ele: 'xd-radio',
@@ -521,14 +533,14 @@ export default {
521
533
  label: '提货码展示/隐藏:',
522
534
  ele: 'xd-radio',
523
535
  valueKey: 'is_show',
524
- value: data['is_show'] || 1,
536
+ value: data['is_show'] || '1',
525
537
  groupKey:'content',
526
538
  placeholder: '请选择提货码展示/隐藏',
527
539
  multiple: false,
528
540
  className: 'input80',
529
541
  list: [
530
- { label: '显示', value: 1 },
531
- { label: '隐藏', value: 0 },
542
+ { label: '显示', value: '1' },
543
+ { label: '隐藏', value: '0' },
532
544
  ]
533
545
  },
534
546
  ].filter(i=>i)
@@ -651,7 +651,7 @@
651
651
  <view class="jfb-base-order-detail__body-shop-title">
652
652
  <view :style="{ background: mainColor }"></view>
653
653
  <view>商品详情</view>
654
- <view @click="showAllProductDetail=!showAllProductDetail" v-if="!showAllProductDetail" style="color:#999;display:flex;align-items:center;margin-left:10px">
654
+ <view @click="showAllProductDetail=!showAllProductDetail" v-if="!showAllProductDetail" class="jfb-base-order-detail__body-product-show">
655
655
  <text> 展开</text>
656
656
  <xd-font-icon
657
657
  style="margin-left: 8rpx"
@@ -659,7 +659,7 @@
659
659
  icon="iconxia_down"
660
660
  ></xd-font-icon>
661
661
  </view>
662
- <view @click="showAllProductDetail=!showAllProductDetail" v-if="showAllProductDetail" style="color:#999;display:flex;align-items:center;margin-left:10px">
662
+ <view @click="showAllProductDetail=!showAllProductDetail" v-if="showAllProductDetail" class="jfb-base-order-detail__body-product-show">
663
663
  <text> 收起</text>
664
664
  <xd-font-icon
665
665
  style="margin-left: 8rpx"
@@ -668,7 +668,8 @@
668
668
  ></xd-font-icon>
669
669
  </view>
670
670
  </view>
671
- <view v-if="showAllProductDetail" v-html="info.product_detail">
671
+ <view class="jfb-base-order-detail__body-html" v-if="showAllProductDetail">
672
+ <view v-html="info.productDetail"></view>
672
673
  </view>
673
674
  </view>
674
675
  <view
@@ -854,7 +855,8 @@ export default {
854
855
  is_show: '',
855
856
  showAllProductDetail: false,
856
857
  is_show_all_detail: '',
857
- showPreviewCode: true
858
+ showPreviewCode: true,
859
+ is_show_product: "",
858
860
  };
859
861
  },
860
862
  watch: {
@@ -934,14 +936,15 @@ export default {
934
936
  this.getCountDown();
935
937
  }
936
938
  },
937
- getOrderDetail() {
939
+ getOrderDetail() {
938
940
  jfbRootExec("getBaseOrderDetail", {
939
941
  vm: this,
940
942
  data: {
941
943
  main_order_id: this.main_order_id,
942
944
  custom_content_page_id: this.pageAttr.page_id,
943
945
  custom_content_container_id: this.cid,
944
- is_show_jhd_code: this.is_show
946
+ is_show_jhd_code: Number(this.is_show),
947
+ is_show_product: this.is_show_product === "Y" ? 1 : 0,
945
948
  },
946
949
  })
947
950
  .then((res) => {
@@ -1081,11 +1084,12 @@ export default {
1081
1084
  }
1082
1085
 
1083
1086
  if (res.product) {
1084
- jfbRootExec("getBaseProductDetail", {
1087
+ try {
1088
+ jfbRootExec("getBaseProductDetail", {
1085
1089
  vm: this,
1086
1090
  data: {
1087
- xnamespace: info.product.business_code,
1088
- product_id: info.product.product_id,
1091
+ xnamespace: res.product.business_code,
1092
+ product_id: res.product.product_id,
1089
1093
  },
1090
1094
  })
1091
1095
  .then((result) => {
@@ -1098,6 +1102,11 @@ export default {
1098
1102
  .catch((err) => {
1099
1103
  console.log(err, "err");
1100
1104
  });
1105
+ } catch (error) {
1106
+ console.log(error,'apapapa');
1107
+
1108
+ }
1109
+
1101
1110
  }
1102
1111
  else {
1103
1112
  this.info = res;
@@ -1141,12 +1150,13 @@ export default {
1141
1150
  this.is_show_support_shop = getContainerPropsValue(container, "content.is_show_support_shop", "N");
1142
1151
  this.is_show_delete_order = getContainerPropsValue(container, "content.is_show_delete_order", "N");
1143
1152
  this.is_open = getContainerPropsValue(container, "content.is_open", "N");
1144
- this.is_show = getContainerPropsValue(container, "content.is_show", 1);
1153
+ this.is_show = getContainerPropsValue(container, "content.is_show", '1');
1145
1154
  this.showPayCard = this.is_open==='Y'
1146
1155
  this.is_show_all_detail = getContainerPropsValue(container, "content.is_show_all_detail", "N");
1156
+ this.is_show_product = getContainerPropsValue(container, "content.is_show_product", "Y");
1147
1157
  this.showAllProductDetail = this.is_show_all_detail==='Y'
1148
1158
  if(this.isPreview) {
1149
- if(this.is_show===0) {
1159
+ if(this.is_show==='0') {
1150
1160
  this.showPreviewCode = false;
1151
1161
  } else {
1152
1162
  this.showPreviewCode = true;
@@ -1806,6 +1816,24 @@ export default {
1806
1816
  }
1807
1817
  }
1808
1818
 
1819
+ &-product {
1820
+ &-show {
1821
+ display: flex;
1822
+ justify-content: center;
1823
+ align-items: center;
1824
+ padding: unit(16, rpx);
1825
+ border-radius: unit(4, rpx);
1826
+ color: #999999;
1827
+ font-size: unit(24, rpx);
1828
+ margin-left:10px
1829
+ }
1830
+ }
1831
+
1832
+ &-html {
1833
+ padding: unit(20, rpx) 0;
1834
+ color: #999;
1835
+ }
1836
+
1809
1837
  }
1810
1838
  .dialog_password{
1811
1839
  text-align: center;
@@ -37,7 +37,7 @@ export default {
37
37
  ele: 'xd-radio',
38
38
  valueKey: 'is_show_product',
39
39
  groupKey:'content',
40
- value:data['is_show_product']|| '',
40
+ value:data['is_show_product'] || 'Y',
41
41
  placeholder: '请选择',
42
42
  list: [
43
43
  {"label": "是", "value": "Y"},
@@ -14,12 +14,15 @@ export default {
14
14
  groupKey:'content',
15
15
  value: data['newLabel'] || null,
16
16
  defaultValue: data['newLabel'],
17
+ setting: {
18
+ isNeedSwitch: false,
19
+ },
17
20
  list: [
18
21
  {
19
22
  icon: "iconpiao",
20
23
  label: "票券",
21
24
  value: 'card',
22
- sort: 1
25
+ sort: 1,
23
26
  },
24
27
  {
25
28
  icon: "iconyuanbao",