jufubao-base 1.0.243-beta201 → 1.0.243

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.
Files changed (155) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbBaseAfterOrderList/Attr.js +0 -13
  3. package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderList.vue +1 -33
  4. package/src/components/JfbBaseBalance/Api.js +46 -0
  5. package/src/components/JfbBaseBalance/Attr.js +316 -0
  6. package/src/components/JfbBaseBalance/JfbBaseBalance.vue +336 -0
  7. package/src/components/{JfbBaseAfterSales/JfbBaseAfterSalesLess.less → JfbBaseBalance/JfbBaseBalanceLess.less} +2 -2
  8. package/src/components/{JfbBaseAfterSales/JfbBaseAfterSalesMixin.js → JfbBaseBalance/JfbBaseBalanceMixin.js} +1 -1
  9. package/src/components/JfbBaseBalance/Mock.js +9 -0
  10. package/src/components/JfbBaseCodeOpenVip/Api.js +35 -0
  11. package/src/components/JfbBaseCodeOpenVip/Attr.js +281 -0
  12. package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVip.vue +251 -0
  13. package/src/components/{JfbBaseAfterSalesFast/JfbBaseAfterSalesFastLess.less → JfbBaseCodeOpenVip/JfbBaseCodeOpenVipLess.less} +2 -2
  14. package/src/components/{JfbBaseAfterSalesList/JfbBaseAfterSalesListMixin.js → JfbBaseCodeOpenVip/JfbBaseCodeOpenVipMixin.js} +1 -1
  15. package/src/components/JfbBaseCodeOpenVip/Mock.js +13 -0
  16. package/src/components/JfbBaseConsumpCode/Api.js +133 -0
  17. package/src/components/JfbBaseConsumpCode/Attr.js +74 -0
  18. package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCode.vue +1109 -0
  19. package/src/components/{JfbBaseAfterSalesList/JfbBaseAfterSalesListLess.less → JfbBaseConsumpCode/JfbBaseConsumpCodeLess.less} +2 -2
  20. package/src/components/{JfbBaseAfterSalesFast/JfbBaseAfterSalesFastMixin.js → JfbBaseConsumpCode/JfbBaseConsumpCodeMixin.js} +1 -1
  21. package/src/components/JfbBaseConsumpCode/Mock.js +22 -0
  22. package/src/components/JfbBaseFastLink/Attr.js +12 -1
  23. package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +66 -0
  24. package/src/components/JfbBaseFooter/Attr.js +12 -0
  25. package/src/components/JfbBaseFooter/JfbBaseFooter.vue +13 -0
  26. package/src/components/JfbBaseHeader/Attr.js +82 -0
  27. package/src/components/JfbBaseHeader/JfbBaseHeader.vue +47 -1
  28. package/src/components/JfbBaseHeaderColumn/Attr.js +82 -0
  29. package/src/components/JfbBaseHeaderColumn/JfbBaseHeaderColumn.vue +48 -2
  30. package/src/components/JfbBaseLogin/JfbBaseLogin.vue +12 -0
  31. package/src/components/JfbBaseNoticeDialog/Api.js +1 -1
  32. package/src/components/JfbBaseNoticeDialog/Attr.js +26 -0
  33. package/src/components/JfbBaseNoticeDialog/JfbBaseNoticeDialog.vue +38 -15
  34. package/src/components/JfbBaseNoticeGroup/Api.js +23 -0
  35. package/src/components/JfbBaseNoticeGroup/Attr.js +237 -0
  36. package/src/components/JfbBaseNoticeGroup/JfbBaseNoticeGroup.vue +174 -0
  37. package/src/components/{JfbBaseAfterSalesDetail/JfbBaseAfterSalesDetailLess.less → JfbBaseNoticeGroup/JfbBaseNoticeGroupLess.less} +2 -2
  38. package/src/components/{JfbBaseAfterSalesDetail/JfbBaseAfterSalesDetailMixin.js → JfbBaseNoticeGroup/JfbBaseNoticeGroupMixin.js} +1 -1
  39. package/src/components/JfbBaseNoticeGroup/Mock.js +13 -0
  40. package/src/components/JfbBaseOpenVip/Api.js +39 -0
  41. package/src/components/JfbBaseOpenVip/Attr.js +331 -0
  42. package/src/components/JfbBaseOpenVip/JfbBaseOpenVip.vue +457 -0
  43. package/src/components/JfbBaseOpenVip/JfbBaseOpenVipLess.less +79 -0
  44. package/src/components/JfbBaseOpenVip/JfbBaseOpenVipMixin.js +30 -0
  45. package/src/components/JfbBaseOpenVip/Mock.js +7 -0
  46. package/src/components/JfbBaseOpenVip/XdVipList.vue +131 -0
  47. package/src/components/JfbBaseOpenVipCard/Api.js +58 -0
  48. package/src/components/JfbBaseOpenVipCard/Attr.js +48 -0
  49. package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCard.vue +111 -0
  50. package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCardLess.less +79 -0
  51. package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCardMixin.js +30 -0
  52. package/src/components/JfbBaseOpenVipCard/Mock.js +13 -0
  53. package/src/components/JfbBaseOpenVipDetail/Api.js +35 -0
  54. package/src/components/JfbBaseOpenVipDetail/Attr.js +37 -0
  55. package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetail.vue +234 -0
  56. package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetailLess.less +79 -0
  57. package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetailMixin.js +30 -0
  58. package/src/components/JfbBaseOpenVipDetail/Mock.js +15 -0
  59. package/src/components/JfbBaseOrderDetail/Attr.js +0 -36
  60. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +178 -39
  61. package/src/components/JfbBaseOrderList/Attr.js +0 -36
  62. package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +0 -30
  63. package/src/components/JfbBaseOrderList/Mock.js +1 -1
  64. package/src/components/JfbBaseOrderList/XdTfkOrderItem.vue +5 -17
  65. package/src/components/JfbBasePay/Attr.js +52 -0
  66. package/src/components/JfbBasePay/JfbBasePay.vue +23 -6
  67. package/src/components/JfbBasePay/Mock.js +0 -9
  68. package/src/components/JfbBasePersonalData/Api.js +26 -0
  69. package/src/components/JfbBasePersonalData/Attr.js +13 -0
  70. package/src/components/JfbBasePersonalData/JfbBasePersonalData.vue +200 -0
  71. package/src/components/JfbBasePersonalData/JfbBasePersonalDataLess.less +79 -0
  72. package/src/components/JfbBasePersonalData/JfbBasePersonalDataMixin.js +30 -0
  73. package/src/components/JfbBasePersonalData/Mock.js +13 -0
  74. package/src/components/JfbBasePhoneLogin/JfbBasePhoneLogin.vue +11 -1
  75. package/src/components/JfbBasePointsCard/Api.js +18 -0
  76. package/src/components/JfbBasePointsCard/Attr.js +187 -0
  77. package/src/components/JfbBasePointsCard/JfbBasePointsCard.vue +212 -0
  78. package/src/components/JfbBasePointsCard/JfbBasePointsCardLess.less +79 -0
  79. package/src/components/JfbBasePointsCard/JfbBasePointsCardMixin.js +30 -0
  80. package/src/components/JfbBasePointsCard/Mock.js +5 -0
  81. package/src/components/JfbBasePointsDetail/Api.js +48 -0
  82. package/src/components/JfbBasePointsDetail/Attr.js +305 -0
  83. package/src/components/JfbBasePointsDetail/JfbBasePointsDetail.vue +267 -0
  84. package/src/components/JfbBasePointsDetail/JfbBasePointsDetailLess.less +79 -0
  85. package/src/components/JfbBasePointsDetail/JfbBasePointsDetailMixin.js +30 -0
  86. package/src/components/JfbBasePointsDetail/Mock.js +6 -0
  87. package/src/components/JfbBasePoster/Attr.js +1 -1
  88. package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +2 -2
  89. package/src/components/JfbBasePosterGroup/Api.js +22 -0
  90. package/src/components/JfbBasePosterGroup/Attr.js +156 -0
  91. package/src/components/JfbBasePosterGroup/JfbBasePosterGroup.vue +268 -0
  92. package/src/components/JfbBasePosterGroup/JfbBasePosterGroupLess.less +79 -0
  93. package/src/components/JfbBasePosterGroup/JfbBasePosterGroupMixin.js +30 -0
  94. package/src/components/JfbBasePosterGroup/Mock.js +13 -0
  95. package/src/components/JfbBaseSavingDetail/Api.js +41 -0
  96. package/src/components/JfbBaseSavingDetail/Attr.js +70 -0
  97. package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetail.vue +724 -0
  98. package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetailLess.less +79 -0
  99. package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetailMixin.js +30 -0
  100. package/src/components/JfbBaseSavingDetail/Mock.js +10 -0
  101. package/src/components/JfbBaseSavingDetail/components/echarts.min.js +26 -0
  102. package/src/components/JfbBaseSavingDetail/components/echarts.vue +254 -0
  103. package/src/components/JfbBaseSavingDetail/components/wx-canvas.js +105 -0
  104. package/src/components/JfbBaseShare/Api.js +20 -0
  105. package/src/components/JfbBaseShare/Attr.js +59 -0
  106. package/src/components/JfbBaseShare/JfbBaseShare.vue +282 -0
  107. package/src/components/JfbBaseShare/JfbBaseShareLess.less +79 -0
  108. package/src/components/JfbBaseShare/JfbBaseShareMixin.js +30 -0
  109. package/src/components/JfbBaseShare/Mock.js +16 -0
  110. package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +9 -3
  111. package/src/components/JfbBaseTfkSearch/ContentProduct.vue +12 -22
  112. package/src/components/JfbBaseTfkSearch/JfbBaseTfkSearch.vue +12 -1
  113. package/src/components/JfbBaseTfkSearch/Mock.js +51 -3
  114. package/src/components/JfbBaseTfkSearch/listMixins.js +2 -1
  115. package/src/components/JfbBaseUserInfo/Attr.js +175 -11
  116. package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +337 -115
  117. package/src/components/JfbBaseUserOrder/Attr.js +16 -0
  118. package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +11 -2
  119. package/src/components/JfbBaseWithDrawAgain/Api.js +41 -0
  120. package/src/components/JfbBaseWithDrawAgain/Attr.js +92 -0
  121. package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgain.vue +354 -0
  122. package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgainLess.less +79 -0
  123. package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgainMixin.js +30 -0
  124. package/src/components/JfbBaseWithDrawAgain/Mock.js +10 -0
  125. package/src/components/JfbBaseWithDrawRecord/Api.js +19 -0
  126. package/src/components/JfbBaseWithDrawRecord/Attr.js +79 -0
  127. package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecord.vue +233 -0
  128. package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecordLess.less +79 -0
  129. package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecordMixin.js +30 -0
  130. package/src/components/JfbBaseWithDrawRecord/Mock.js +7 -0
  131. package/src/components/JfbBaseWithdraw/Api.js +48 -0
  132. package/src/components/JfbBaseWithdraw/Attr.js +328 -0
  133. package/src/components/JfbBaseWithdraw/JfbBaseWithdraw.vue +272 -0
  134. package/src/components/JfbBaseWithdraw/JfbBaseWithdrawLess.less +79 -0
  135. package/src/components/JfbBaseWithdraw/JfbBaseWithdrawMixin.js +30 -0
  136. package/src/components/JfbBaseWithdraw/Mock.js +7 -0
  137. package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorize.vue +10 -0
  138. package/src/components/JfbBaseAfterSales/Api.js +0 -58
  139. package/src/components/JfbBaseAfterSales/Attr.js +0 -25
  140. package/src/components/JfbBaseAfterSales/JfbBaseAfterSales.vue +0 -550
  141. package/src/components/JfbBaseAfterSales/Mock.js +0 -13
  142. package/src/components/JfbBaseAfterSales/refundOrderInfo.vue +0 -150
  143. package/src/components/JfbBaseAfterSalesDetail/Api.js +0 -41
  144. package/src/components/JfbBaseAfterSalesDetail/Attr.js +0 -25
  145. package/src/components/JfbBaseAfterSalesDetail/JfbBaseAfterSalesDetail.vue +0 -538
  146. package/src/components/JfbBaseAfterSalesDetail/Mock.js +0 -60
  147. package/src/components/JfbBaseAfterSalesDetail/secProd.vue +0 -58
  148. package/src/components/JfbBaseAfterSalesFast/Api.js +0 -30
  149. package/src/components/JfbBaseAfterSalesFast/Attr.js +0 -32
  150. package/src/components/JfbBaseAfterSalesFast/JfbBaseAfterSalesFast.vue +0 -297
  151. package/src/components/JfbBaseAfterSalesFast/Mock.js +0 -38
  152. package/src/components/JfbBaseAfterSalesList/Api.js +0 -40
  153. package/src/components/JfbBaseAfterSalesList/Attr.js +0 -107
  154. package/src/components/JfbBaseAfterSalesList/JfbBaseAfterSalesList.vue +0 -463
  155. package/src/components/JfbBaseAfterSalesList/Mock.js +0 -362
@@ -0,0 +1,79 @@
1
+ /**
2
+ * @desc 获取绝对路径完整地址
3
+ * @param @path
4
+ **/
5
+ //例如:https://image.jufubao.cn/20220501010108/image/bg/default_gonghui_bg.png
6
+ @basePath: 'business/';
7
+ @doMain: '//sandbox-img.jufubao.cn/';
8
+
9
+ .getBusinessImageUrl(@path, @size: 'size8') {
10
+ @url: "@{doMain}@{basePath}@{path}?x-oss-process=style/@{size}";
11
+ background-image: url(@url);
12
+ }
13
+
14
+ //start
15
+ .jfb-base-open-vip-detail {
16
+ box-sizing: border-box;
17
+
18
+ &__body{
19
+ position: relative;
20
+ overflow: hidden;
21
+ z-index: 2
22
+ }
23
+
24
+ &.editx,&.editx:hover {
25
+ position: relative;
26
+ min-height: unit(100, rpx);
27
+ z-index: 3;
28
+ &::after {
29
+ border: 2rpx dashed blue;
30
+ content: " ";
31
+ position: absolute;
32
+ top:0;
33
+ left:0;
34
+ bottom:0;
35
+ right:0;
36
+ z-index: 4;
37
+ cursor: pointer;
38
+ }
39
+
40
+ }
41
+
42
+
43
+ &__edit {
44
+ cursor: pointer;
45
+ position: absolute;
46
+ right: unit(0, rpx);
47
+ top: unit(-52, rpx);
48
+ height: unit(50, rpx);
49
+ line-height: unit(50, rpx);
50
+ display: flex;
51
+ justify-content: center;
52
+ align-items: center;
53
+ background: rgba(0, 0, 0, .6);
54
+ border-radius: unit(10, rpx);
55
+ box-shadow: 0 0 10px rbga(0, 0, 0, 0.3);
56
+ color: #fff;
57
+ font-size: unit(22, rpx);
58
+
59
+ &-icon{
60
+ padding: 0 unit(20, rpx);
61
+ }
62
+
63
+ &.editx {
64
+ box-sizing: border-box;
65
+
66
+ }
67
+ }
68
+ }
69
+ //end
70
+
71
+
72
+ /**notPreview**/
73
+ .jfb-base-open-vip-detail {
74
+ //&:before {
75
+ //content: " ";
76
+ //display: table;
77
+ //}
78
+ }
79
+ /**endNotPreview**/
@@ -0,0 +1,30 @@
1
+ 'use strict';
2
+
3
+
4
+ //@AttrImport
5
+ import Attr from "./Attr";
6
+ //@EndAttrImport
7
+
8
+
9
+ export default {
10
+ data() {
11
+ return {
12
+ //#ifdef H5
13
+
14
+ //@AttrData
15
+ Attr:{}, //对外开发编辑属性
16
+ //@EndAttrData
17
+
18
+ // #endif
19
+ cssRoot: 'jfb-base-open-vip-detail'
20
+ }
21
+ },
22
+ created() {
23
+
24
+ //@AttrDataCreated
25
+ this.Attr = this.$xdUniHelper.customClone(Attr);
26
+ //@EndAttrDataCreated
27
+
28
+
29
+ },
30
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ module.exports = {
4
+ getVipConfirm: {
5
+ vip_card_id: 1,
6
+ product_id: 60038515,
7
+ product_name: "年卡会员",
8
+ sale_price: 20000,
9
+ platform_discount_amount: 120,
10
+ user_pay_amount: 20000,
11
+ life_cycle_label: "1年",
12
+ request_id: "cc61b6e3a8e0931f"
13
+ },
14
+ createVipOrder: {}
15
+ };
@@ -5,18 +5,6 @@ export default {
5
5
  advanced: [],
6
6
  content: (data)=>{
7
7
  return [
8
- {
9
- label: "申请售后:",
10
- ele: 'xd-radio',
11
- valueKey: "showApplyAfter",
12
- value: data.showApplyAfter || 'N',
13
- list: [
14
- {label: '展示', value: 'Y'},
15
- {label: '隐藏', value: 'N'},
16
- ],
17
- groupKey:'content',
18
- labelInline: true,
19
- },
20
8
  {
21
9
  label: '业务类型预览(只是预览模式生效)',
22
10
  ele: "xd-select-list",
@@ -658,30 +646,6 @@ export default {
658
646
  { label: '隐藏', value: '0' },
659
647
  ]
660
648
  },
661
- {
662
- label: '售后服务页面路径:',
663
- ele: 'xd-select-pages-path',
664
- valueKey: 'refundPath',
665
- groupKey:'advanced',
666
- placeholder: '请选择普通售后服务路径',
667
- value: data['refundPath'] || null,
668
- setting: {
669
- router: XdBus.getParentApi('getPagesTree'),
670
- },
671
- inline: false,
672
- },
673
- {
674
- label: '极速退款页面路径:',
675
- ele: 'xd-select-pages-path',
676
- valueKey: 'refundFastPath',
677
- groupKey:'advanced',
678
- placeholder: '请选择极速退款页面路径',
679
- value: data['refundFastPath'] || null,
680
- setting: {
681
- router: XdBus.getParentApi('getPagesTree'),
682
- },
683
- inline: false,
684
- },
685
649
  ].filter(i=>i)
686
650
  },
687
651
  }
@@ -120,27 +120,46 @@
120
120
  </view>
121
121
  </view>
122
122
  </view>
123
- <view
124
- class="jfb-base-order-detail__body-delivery-bottom"
125
- v-if="info.film_show.detail && info.film_show.detail !== null"
126
- >
127
- <view class="jfb-base-order-detail__body-delivery-bottom-title">{{info.film_show.detail.title }}</view>
128
- <view
129
- v-for="(Ditem, Dindex) in info.film_show.detail.items"
130
- :key="Dindex"
131
- class="jfb-base-order-detail__body-delivery-bottom-item"
132
- :style="{
133
- marginBottom: lineHeight + 'rpx'
134
- }"
135
- >
136
- <view style="width: 130rpx"
137
- >{{ Ditem.label }} <span v-if="Ditem.label">:</span>
123
+ <view v-if="info.film_show.part&&info.film_show.part.length>0" class="jfb-base-order-detail__body-no-delivery-supplement">
124
+ <view @click="handleViewSupplement(item)" class="jfb-base-order-detail__body-no-delivery-supplement-item" v-for="(item,index) in info.film_show.part" :key="index">
125
+ <view class="jfb-base-order-detail__body-no-delivery-supplement-item-info">
126
+ <view v-if="item.tag_name" :style="{color: mainColor, borderColor: mainColor}" class="jfb-base-order-detail__body-no-delivery-supplement-item-info-tag">{{item.tag_name}}</view>
127
+ <view class="jfb-base-order-detail__body-no-delivery-supplement-item-info-title">{{item.show_title}}</view>
138
128
  </view>
139
- <view>{{ Ditem.value }}</view>
129
+ <xd-font-icon size="24" color="#B1B1B1" icon="iconxiangyou_xian"></xd-font-icon>
140
130
  </view>
141
131
  </view>
142
132
  </view>
143
133
  </view>
134
+ <view
135
+ class="jfb-base-order-detail__body-card jfb-base-order-detail__body-delivery-info"
136
+ :style="{
137
+ background: backgroundColor,
138
+ border: borderBox,
139
+ borderRadius: radius + 'rpx',
140
+ boxShadow: shadowBox,
141
+ marginBottom: padding + 'rpx',
142
+ }"
143
+ v-if="info.film_show&&info.film_show.detail && info.film_show.detail !== null"
144
+ >
145
+ <view class="jfb-base-order-detail__body-delivery-info-title">
146
+ <view :style="{background:mainColor}" class="line"></view>
147
+ {{info.film_show.detail.title }}
148
+ </view>
149
+ <view
150
+ v-for="(Ditem, Dindex) in info.film_show.detail.items"
151
+ :key="Dindex"
152
+ class="jfb-base-order-detail__body-delivery-info-item"
153
+ :style="{
154
+ marginBottom: lineHeight + 'rpx'
155
+ }"
156
+ >
157
+ <view style="width: 130rpx"
158
+ >{{ Ditem.label }} <span v-if="Ditem.label">:</span>
159
+ </view>
160
+ <view>{{ Ditem.value }}</view>
161
+ </view>
162
+ </view>
144
163
  <view v-if="info.sub_orders && info.sub_orders.length > 0">
145
164
  <view
146
165
  :style="{
@@ -571,11 +590,15 @@
571
590
  >
572
591
  <view :style="{ fontWeight: item.style }">{{ item.label }}</view>
573
592
  <xd-unit
593
+ v-if="item.type === 'price'"
594
+ :colorNew="isPlusSite ? '#999':''"
595
+ :largeZero="false"
574
596
  :fontSize="28"
575
597
  :iconSize="0.28"
576
598
  :fontWeight="item.style"
577
599
  :price="item.value"
578
600
  ></xd-unit>
601
+ <view v-else style="font-size: 28rpx;" :style="{color: isPlusSite ? '#999':'', fontWeight: item.style}" v-html="item.value"></view>
579
602
  </view>
580
603
  <view
581
604
  v-if="item.type === 'line'"
@@ -804,6 +827,20 @@
804
827
  <view v-if="dialogCode && dialogCode.tips" class="dialog_password"> {{ dialogCode.tips}}</view>
805
828
  <view v-if="dialogPassword" class="dialog_password">{{ dialogPassword }}</view>
806
829
  </xd-dailog>
830
+ <XdDownDrawer :isClose="false" height="auto" :show.sync="showSupplement">
831
+ <view class="supplement">
832
+ <view class="supplement-title">
833
+ <xd-font-icon @click="showSupplement=false" color="#666" size="30" icon="iconxiangzuo_xian"></xd-font-icon>
834
+ <view style="margin: 0 auto">{{supplementTitle}}</view>
835
+ </view>
836
+ <view style="color: #333333;margin-top: 58rpx;font-size: 28rpx;font-weight: 500">已购</view>
837
+ <view class="supplement-item" v-for="(item, index) in supplementList" :key="index">
838
+ <view>{{item.product_name}}</view>
839
+ <view>{{getAmount(item.sale_price)}}元 x {{item.product_num}}</view>
840
+ </view>
841
+ <xd-button type="primary" @click="showSupplement=false">关闭</xd-button>
842
+ </view>
843
+ </XdDownDrawer>
807
844
  </view>
808
845
  </template>
809
846
 
@@ -814,6 +851,7 @@ import XdTag from "@/components/XdTag/XdTag";
814
851
  import XdUnit from "@/components/XdUnit/XdUnit";
815
852
  import XdButton from "@/components/XdButton/XdButton";
816
853
  import XdDailog from "@/components/XdDailog/XdDailog";
854
+ import XdDownDrawer from "@/components/XdDownDrawer/XdDownDrawer";
817
855
  import { jfbRootExec } from "@/utils/xd.event";
818
856
  import JfbBaseOrderDetailMixin from "./JfbBaseOrderDetailMixin";
819
857
  import componentsMixins from "@/mixins/componentsMixins";
@@ -834,6 +872,7 @@ export default {
834
872
  XdButton,
835
873
  XdDailog,
836
874
  XdJfbImage,
875
+ XdDownDrawer
837
876
  },
838
877
  mixins: [componentsMixins, extsMixins, JfbBaseOrderDetailMixin],
839
878
  data() {
@@ -865,8 +904,6 @@ export default {
865
904
  dialogPassword: "",
866
905
  dialogCode: null,
867
906
 
868
- showApplyAfter: "",
869
-
870
907
  //基础
871
908
  radius: 0,
872
909
  backgroundColor: "",
@@ -902,9 +939,11 @@ export default {
902
939
  is_show_all_detail: '',
903
940
  showPreviewCode: true,
904
941
  is_show_product: "",
905
- refundPath: "",
906
- refundFastPath: "",
907
942
  btnTextSize: 20,
943
+
944
+ showSupplement: false,
945
+ supplementList: [],
946
+ supplementTitle: "",
908
947
  };
909
948
  },
910
949
  watch: {
@@ -957,7 +996,10 @@ export default {
957
996
  padding: padding,
958
997
  backgroundColor: this.bottomBgColor,
959
998
  }
960
- }
999
+ },
1000
+ isPlusSite(){
1001
+ return this.projectAttr.headers['X-Site-Group']==="vip";
1002
+ },
961
1003
  },
962
1004
  created() {
963
1005
  this.noticeBgc = Color(this.warningColor).alpha(0.2).toString();
@@ -973,6 +1015,10 @@ export default {
973
1015
  this.getOrderDetail();
974
1016
  },
975
1017
 
1018
+ getAmount(price) {
1019
+ return this.$xdUniHelper.divisionFloatNumber(price,100)
1020
+ },
1021
+
976
1022
  timeDown() {
977
1023
  if (this.info.status.loading_timeout != "-1") {
978
1024
  this.times = this.info.status.loading_timeout;
@@ -999,6 +1045,7 @@ export default {
999
1045
  custom_content_container_id: this.cid,
1000
1046
  is_show_jhd_code: Number(this.is_show),
1001
1047
  is_show_product: this.is_show_product === "Y" ? 1 : 0,
1048
+ version: 'v2'
1002
1049
  },
1003
1050
  })
1004
1051
  .then((res) => {
@@ -1199,13 +1246,10 @@ export default {
1199
1246
  * @param container {object} 业务组件对象自己
1200
1247
  */
1201
1248
  init(container) {
1202
- this.showApplyAfter = getContainerPropsValue(container, "content.showApplyAfter", "");
1203
-
1204
1249
  this.bgColor = this.$colorChange(this.mainColor).alpha(0.1).toString();
1205
1250
  this.brandPath = getContainerPropsValue(container, "content.brandPath", {value: "",}).value;
1206
1251
  this.payPath = getContainerPropsValue(container, "content.payPath", {value: "",}).value;
1207
- this.refundPath = getContainerPropsValue(container, "content.refundPath", {value: "",}).value;
1208
- this.refundFastPath = getContainerPropsValue(container, "content.refundFastPath", {value: "",}).value;
1252
+
1209
1253
 
1210
1254
  this.packageListPath = getContainerPropsValue(container, "content.packageListPath", { value: "" }).value;
1211
1255
  this.webViewPath = getContainerPropsValue(container, "content.webViewPath", {value: "",}).value;
@@ -1306,6 +1350,11 @@ export default {
1306
1350
  });
1307
1351
  // #endif
1308
1352
  },
1353
+ handleViewSupplement(item){
1354
+ this.showSupplement=true;
1355
+ this.supplementList = item.items
1356
+ this.supplementTitle = item.show_title
1357
+ },
1309
1358
  handleToLink(id, info) {
1310
1359
  this.$xdUniHelper.navigateTo({
1311
1360
  url: `${this.brandPath}?id=${id}&region_limit_tpl_id=${info.support_shops.region_limit_tpl_id}&xnamespace=${info.biz_code}`,
@@ -1387,19 +1436,6 @@ export default {
1387
1436
  },
1388
1437
  });
1389
1438
  }
1390
- else if(item.action === 'apply_refund'){
1391
- //普通退款
1392
- if(this.info.is_support_quick_refund !== "Y"){
1393
- this.$xdUniHelper.navigateTo({
1394
- url: `${this.refundPath}?order_id=${this.main_order_id}`,
1395
- });
1396
- }else{
1397
- //极速退款
1398
- this.$xdUniHelper.navigateTo({
1399
- url: `${this.refundFastPath}?order_id=${this.main_order_id}`,
1400
- });
1401
- }
1402
- }
1403
1439
  else {
1404
1440
  console.error(`item.action=${item.action}, 此action不可用`)
1405
1441
  }
@@ -1437,6 +1473,12 @@ export default {
1437
1473
 
1438
1474
  <style scoped lang="less">
1439
1475
  @import "./JfbBaseOrderDetailLess.less";
1476
+ .line {
1477
+ border-radius: 2px;
1478
+ width: 6rpx;
1479
+ height: 24rpx;
1480
+ margin-right: 20rpx;
1481
+ }
1440
1482
 
1441
1483
  .code-url {
1442
1484
  display: flex;
@@ -1575,6 +1617,32 @@ export default {
1575
1617
  }
1576
1618
  }
1577
1619
  }
1620
+ &-supplement {
1621
+ border-top: 1px dashed #CCCCCC;
1622
+ margin-top: 32rpx;
1623
+ &-item {
1624
+ display: flex;
1625
+ align-items: center;
1626
+ justify-content: space-between;
1627
+ margin-top: 32rpx;
1628
+ margin-bottom: 32rpx;
1629
+ &-info {
1630
+ display: flex;
1631
+ align-items: center;
1632
+ &-tag {
1633
+ border: 1px solid;
1634
+ font-size: 20rpx;
1635
+ padding: 8rpx 16rpx;
1636
+ border-radius: 8rpx;
1637
+ margin-right: 20rpx;
1638
+ }
1639
+ &-title {
1640
+ color: #666666;
1641
+ font-size: 24rpx;
1642
+ }
1643
+ }
1644
+ }
1645
+ }
1578
1646
  }
1579
1647
 
1580
1648
  &-delivery {
@@ -1598,6 +1666,28 @@ export default {
1598
1666
  border-radius: unit(8, rpx);
1599
1667
  }
1600
1668
 
1669
+ &-bottom {
1670
+ margin-top: unit(32, rpx);
1671
+
1672
+ &-title {
1673
+ color: #333333;
1674
+ font-size: unit(28, rpx);
1675
+ font-weight: 500;
1676
+ margin-bottom: unit(20, rpx);
1677
+ }
1678
+
1679
+ &-item {
1680
+ color: #666666;
1681
+ font-size: unit(28, rpx);
1682
+ display: flex;
1683
+ margin-bottom: unit(16, rpx);
1684
+
1685
+ & > view:nth-child(2) {
1686
+ width: 80%;
1687
+ }
1688
+ }
1689
+ }
1690
+
1601
1691
  &-info {
1602
1692
  flex: 1;
1603
1693
  display: flex;
@@ -1640,6 +1730,35 @@ export default {
1640
1730
  }
1641
1731
  }
1642
1732
 
1733
+ &-info {
1734
+ margin-top: unit(32, rpx);
1735
+
1736
+ &-title {
1737
+ color: #333333;
1738
+ font-size: unit(28, rpx);
1739
+ margin-bottom: unit(20, rpx);
1740
+ display: flex;
1741
+ align-items: center;
1742
+ }
1743
+
1744
+ &-item {
1745
+ color: #333333;
1746
+ font-size: unit(24, rpx);
1747
+ display: flex;
1748
+ margin-bottom: unit(16, rpx);
1749
+ & > view:first-child{
1750
+ color: #999;
1751
+ }
1752
+
1753
+ & > view:nth-child(2) {
1754
+ width: 80%;
1755
+ }
1756
+ }
1757
+ &-item:last-child{
1758
+ margin-bottom: 0 !important;
1759
+ }
1760
+ }
1761
+
1643
1762
  &-bottom {
1644
1763
  margin-top: unit(32, rpx);
1645
1764
 
@@ -1661,8 +1780,10 @@ export default {
1661
1780
  }
1662
1781
  }
1663
1782
  }
1783
+
1664
1784
  }
1665
1785
 
1786
+
1666
1787
  &-num {
1667
1788
  &-info {
1668
1789
  display: flex;
@@ -1785,7 +1906,7 @@ export default {
1785
1906
  color: #737373;
1786
1907
  }
1787
1908
  }
1788
-
1909
+
1789
1910
  &-order {
1790
1911
  display: flex;
1791
1912
  align-items: center;
@@ -1981,5 +2102,23 @@ export default {
1981
2102
  }
1982
2103
 
1983
2104
  }
2105
+
2106
+ .supplement {
2107
+ padding: 48rpx;
2108
+ &-title {
2109
+ display: flex;
2110
+ align-items: center;
2111
+ color: #666666;
2112
+ font-size: 28rpx;
2113
+ }
2114
+ &-item {
2115
+ margin: 34rpx 0;
2116
+ display: flex;
2117
+ justify-content: space-between;
2118
+ align-items: center;
2119
+ color: #666;
2120
+ font-size: 28rpx;
2121
+ }
2122
+ }
1984
2123
  }
1985
2124
  </style>
@@ -4,18 +4,6 @@ export default {
4
4
  style: [],
5
5
  content: (data)=>{
6
6
  return [
7
- {
8
- label: "申请售后:",
9
- ele: 'xd-radio',
10
- valueKey: "showApplyAfter",
11
- value: data.showApplyAfter || 'N',
12
- list: [
13
- {label: '展示', value: 'Y'},
14
- {label: '隐藏', value: 'N'},
15
- ],
16
- groupKey:'content',
17
- labelInline: true,
18
- },
19
7
  {
20
8
  label: "布局样式配置",
21
9
  ele: "xd-radio",
@@ -276,30 +264,6 @@ export default {
276
264
  },
277
265
  inline: false,
278
266
  },
279
- {
280
- label: '售后服务页面路径:',
281
- ele: 'xd-select-pages-path',
282
- valueKey: 'refundPath',
283
- groupKey:'advanced',
284
- placeholder: '请选择普通售后服务路径',
285
- value: data['refundPath'] || null,
286
- setting: {
287
- router: XdBus.getParentApi('getPagesTree'),
288
- },
289
- inline: false,
290
- },
291
- {
292
- label: '极速退款页面路径:',
293
- ele: 'xd-select-pages-path',
294
- valueKey: 'refundFastPath',
295
- groupKey:'advanced',
296
- placeholder: '请选择极速退款页面路径',
297
- value: data['refundFastPath'] || null,
298
- setting: {
299
- router: XdBus.getParentApi('getPagesTree'),
300
- },
301
- inline: false,
302
- },
303
267
  ].filter(i=>i)
304
268
  },
305
269
  advanced: [],
@@ -155,16 +155,7 @@
155
155
  v-if="item.buttons.length"
156
156
  >
157
157
  <view v-for="(btn,index) in item.buttons" :key="btn.key">
158
- <template v-if="btn.action === 'apply_refund'">
159
- <xd-button
160
- v-if="showApplyAfter === 'Y'"
161
- type="default"
162
- size="mini"
163
- @click="handleBtnEvent(btn.action, item)"
164
- >{{ btn.text }}</xd-button>
165
- </template>
166
158
  <xd-button
167
- v-else
168
159
  :type="getBtnType(btn.action)"
169
160
  size="mini"
170
161
  @click="handleBtnEvent(btn.action, item)"
@@ -191,7 +182,6 @@
191
182
  :mainColor="mainColor"
192
183
  :isShowOrderNo="isShowOrderNo"
193
184
  :brandTextColor="brandTextColor"
194
- :showApplyAfter="showApplyAfter"
195
185
  :item="item"
196
186
  @handleBtnEvent="action => handleBtnEvent(action, item)"
197
187
  ></xd-tfk-order-item>
@@ -253,8 +243,6 @@ export default {
253
243
  initStatus: false,
254
244
  loadingList: true,
255
245
 
256
- showApplyAfter: "",
257
-
258
246
  //基础
259
247
  radius: 0,
260
248
  backgroundColor: "",
@@ -283,9 +271,6 @@ export default {
283
271
  layout_style: "old",
284
272
  isShowOrderNo: "Y",
285
273
 
286
- refundPath: "",
287
- refundFastPath: "",
288
-
289
274
  noticeBgc:'',
290
275
  };
291
276
  },
@@ -347,7 +332,6 @@ export default {
347
332
  * @param container {object} 业务组件对象自己
348
333
  */
349
334
  init(container) {
350
- this.showApplyAfter = getContainerPropsValue(container, "content.showApplyAfter", "N");
351
335
  this.margin = getContainerPropsValue(container, "content.margin", {top: 0, left: 0, right: 0, bottom: 0,});
352
336
  this.radius = getContainerPropsValue(container, "content.radius", 0);
353
337
  this.backgroundColor = getContainerPropsValue(container, "content.backgroundColor", "#f8f8f8");
@@ -376,8 +360,6 @@ export default {
376
360
 
377
361
  this.detailPath = getContainerPropsValue(container, "content.detailPath", { value: "" }).value;
378
362
  this.payPath = getContainerPropsValue(container, "content.payPath", {value: "",}).value;
379
- this.refundPath = getContainerPropsValue(container, "content.refundPath", {value: "",}).value;
380
- this.refundFastPath = getContainerPropsValue(container, "content.refundFastPath", {value: "",}).value;
381
363
  this.layout_style = getContainerPropsValue(container, "content.layout_style", "old");
382
364
  this.isShowOrderNo = getContainerPropsValue(container, "content.isShowOrderNo", "Y");
383
365
  this.tabList = getContainerPropsValue(container, "content.orderTypeList", []).map((item) => {
@@ -444,18 +426,6 @@ export default {
444
426
  this.$xdUniHelper.navigateTo({
445
427
  url: `${this.payPath}?order_id=${item.pay_order_id}&main_order_id=${item.main_order_id}`,
446
428
  });
447
- } else if( action === 'apply_refund'){
448
- //普通退款
449
- if(item.is_support_quick_refund !== "Y"){
450
- this.$xdUniHelper.navigateTo({
451
- url: `${this.refundPath}?order_id=${item.main_order_id}`,
452
- });
453
- }else{
454
- //极速退款
455
- this.$xdUniHelper.navigateTo({
456
- url: `${this.refundFastPath}?order_id=${item.main_order_id}`,
457
- });
458
- }
459
429
  }
460
430
  },
461
431
 
@@ -25,7 +25,7 @@ module.exports = {
25
25
  "product_thumb": "\/\/sandbox-img.jufubao.cn\/uploads\/20230506\/40018e35f8d9b3bcc2f180cfe073ce28.png",
26
26
  "sale_price": 2678
27
27
  }],
28
- "buttons": [{"text": "支付", "action": "pay"}, {"text": "取消订单", "action": "cancel_unpaid"}, { "text": "申请退款", "action": "apply_refund"}]
28
+ "buttons": [{"text": "支付", "action": "pay"}, {"text": "取消订单", "action": "cancel_unpaid"}]
29
29
  },
30
30
  {
31
31
  "main_order_id": "m513033785675509760",