jufubao-base 1.0.243-beta2 → 1.0.243-beta202

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 (172) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbBaseAfterOrderList/Attr.js +13 -0
  3. package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderList.vue +33 -1
  4. package/src/components/JfbBaseAfterSales/Api.js +58 -0
  5. package/src/components/JfbBaseAfterSales/Attr.js +25 -0
  6. package/src/components/JfbBaseAfterSales/JfbBaseAfterSales.vue +587 -0
  7. package/src/components/JfbBaseAfterSales/JfbBaseAfterSalesLess.less +79 -0
  8. package/src/components/JfbBaseAfterSales/JfbBaseAfterSalesMixin.js +30 -0
  9. package/src/components/JfbBaseAfterSales/Mock.js +6 -0
  10. package/src/components/JfbBaseAfterSales/refundOrderInfo.vue +150 -0
  11. package/src/components/JfbBaseAfterSalesDetail/Api.js +41 -0
  12. package/src/components/JfbBaseAfterSalesDetail/Attr.js +25 -0
  13. package/src/components/JfbBaseAfterSalesDetail/JfbBaseAfterSalesDetail.vue +547 -0
  14. package/src/components/JfbBaseAfterSalesDetail/JfbBaseAfterSalesDetailLess.less +79 -0
  15. package/src/components/JfbBaseAfterSalesDetail/JfbBaseAfterSalesDetailMixin.js +30 -0
  16. package/src/components/JfbBaseAfterSalesDetail/Mock.js +60 -0
  17. package/src/components/JfbBaseAfterSalesDetail/secProd.vue +66 -0
  18. package/src/components/JfbBaseAfterSalesFast/Api.js +30 -0
  19. package/src/components/JfbBaseAfterSalesFast/Attr.js +32 -0
  20. package/src/components/JfbBaseAfterSalesFast/JfbBaseAfterSalesFast.vue +297 -0
  21. package/src/components/JfbBaseAfterSalesFast/JfbBaseAfterSalesFastLess.less +79 -0
  22. package/src/components/JfbBaseAfterSalesFast/JfbBaseAfterSalesFastMixin.js +30 -0
  23. package/src/components/JfbBaseAfterSalesFast/Mock.js +38 -0
  24. package/src/components/JfbBaseAfterSalesList/Api.js +40 -0
  25. package/src/components/JfbBaseAfterSalesList/Attr.js +130 -0
  26. package/src/components/JfbBaseAfterSalesList/JfbBaseAfterSalesList.vue +488 -0
  27. package/src/components/JfbBaseAfterSalesList/JfbBaseAfterSalesListLess.less +79 -0
  28. package/src/components/JfbBaseAfterSalesList/JfbBaseAfterSalesListMixin.js +30 -0
  29. package/src/components/JfbBaseAfterSalesList/Mock.js +362 -0
  30. package/src/components/JfbBaseBalance/Api.js +46 -0
  31. package/src/components/JfbBaseBalance/Attr.js +316 -0
  32. package/src/components/JfbBaseBalance/JfbBaseBalance.vue +336 -0
  33. package/src/components/JfbBaseBalance/JfbBaseBalanceLess.less +79 -0
  34. package/src/components/JfbBaseBalance/JfbBaseBalanceMixin.js +30 -0
  35. package/src/components/JfbBaseBalance/Mock.js +9 -0
  36. package/src/components/JfbBaseCardBindV2/JfbBaseCardBindV2.vue +4 -6
  37. package/src/components/JfbBaseCodeOpenVip/Api.js +35 -0
  38. package/src/components/JfbBaseCodeOpenVip/Attr.js +281 -0
  39. package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVip.vue +251 -0
  40. package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVipLess.less +79 -0
  41. package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVipMixin.js +30 -0
  42. package/src/components/JfbBaseCodeOpenVip/Mock.js +13 -0
  43. package/src/components/JfbBaseConPhone/JfbBaseConPhone.vue +10 -16
  44. package/src/components/JfbBaseConsumpCode/Api.js +133 -0
  45. package/src/components/JfbBaseConsumpCode/Attr.js +74 -0
  46. package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCode.vue +1111 -0
  47. package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCodeLess.less +79 -0
  48. package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCodeMixin.js +30 -0
  49. package/src/components/JfbBaseConsumpCode/Mock.js +22 -0
  50. package/src/components/JfbBaseFastLink/Attr.js +12 -1
  51. package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +66 -0
  52. package/src/components/JfbBaseFooter/Attr.js +12 -0
  53. package/src/components/JfbBaseFooter/JfbBaseFooter.vue +13 -0
  54. package/src/components/JfbBaseHeader/Attr.js +82 -0
  55. package/src/components/JfbBaseHeader/JfbBaseHeader.vue +47 -1
  56. package/src/components/JfbBaseHeaderColumn/Attr.js +82 -0
  57. package/src/components/JfbBaseHeaderColumn/JfbBaseHeaderColumn.vue +48 -2
  58. package/src/components/JfbBaseLogin/JfbBaseLogin.vue +23 -13
  59. package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwd.vue +6 -10
  60. package/src/components/JfbBaseLoginSetPwd/JfbBaseLoginSetPwd.vue +2 -16
  61. package/src/components/JfbBaseMapOverlay/JfbBaseMapOverlay.vue +3 -5
  62. package/src/components/JfbBaseNoticeDialog/Api.js +1 -1
  63. package/src/components/JfbBaseNoticeDialog/Attr.js +26 -0
  64. package/src/components/JfbBaseNoticeDialog/JfbBaseNoticeDialog.vue +38 -15
  65. package/src/components/JfbBaseNoticeGroup/Api.js +23 -0
  66. package/src/components/JfbBaseNoticeGroup/Attr.js +237 -0
  67. package/src/components/JfbBaseNoticeGroup/JfbBaseNoticeGroup.vue +174 -0
  68. package/src/components/JfbBaseNoticeGroup/JfbBaseNoticeGroupLess.less +79 -0
  69. package/src/components/JfbBaseNoticeGroup/JfbBaseNoticeGroupMixin.js +30 -0
  70. package/src/components/JfbBaseNoticeGroup/Mock.js +13 -0
  71. package/src/components/JfbBaseOpenVip/Api.js +39 -0
  72. package/src/components/JfbBaseOpenVip/Attr.js +331 -0
  73. package/src/components/JfbBaseOpenVip/JfbBaseOpenVip.vue +459 -0
  74. package/src/components/JfbBaseOpenVip/JfbBaseOpenVipLess.less +79 -0
  75. package/src/components/JfbBaseOpenVip/JfbBaseOpenVipMixin.js +30 -0
  76. package/src/components/JfbBaseOpenVip/Mock.js +7 -0
  77. package/src/components/JfbBaseOpenVip/XdVipList.vue +130 -0
  78. package/src/components/JfbBaseOpenVipCard/Api.js +58 -0
  79. package/src/components/JfbBaseOpenVipCard/Attr.js +48 -0
  80. package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCard.vue +111 -0
  81. package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCardLess.less +79 -0
  82. package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCardMixin.js +30 -0
  83. package/src/components/JfbBaseOpenVipCard/Mock.js +13 -0
  84. package/src/components/JfbBaseOpenVipDetail/Api.js +35 -0
  85. package/src/components/JfbBaseOpenVipDetail/Attr.js +37 -0
  86. package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetail.vue +234 -0
  87. package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetailLess.less +79 -0
  88. package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetailMixin.js +30 -0
  89. package/src/components/JfbBaseOpenVipDetail/Mock.js +15 -0
  90. package/src/components/JfbBaseOrderDetail/Attr.js +36 -0
  91. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +211 -19
  92. package/src/components/JfbBaseOrderList/Api.js +11 -0
  93. package/src/components/JfbBaseOrderList/Attr.js +36 -0
  94. package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +50 -2
  95. package/src/components/JfbBaseOrderList/Mock.js +1 -1
  96. package/src/components/JfbBaseOrderList/XdTfkOrderItem.vue +17 -5
  97. package/src/components/JfbBasePay/Attr.js +52 -0
  98. package/src/components/JfbBasePay/JfbBasePay.vue +42 -41
  99. package/src/components/JfbBasePay/Mock.js +0 -9
  100. package/src/components/JfbBasePersonalData/Api.js +26 -0
  101. package/src/components/JfbBasePersonalData/Attr.js +13 -0
  102. package/src/components/JfbBasePersonalData/JfbBasePersonalData.vue +278 -0
  103. package/src/components/JfbBasePersonalData/JfbBasePersonalDataLess.less +79 -0
  104. package/src/components/JfbBasePersonalData/JfbBasePersonalDataMixin.js +30 -0
  105. package/src/components/JfbBasePersonalData/Mock.js +13 -0
  106. package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +5 -21
  107. package/src/components/JfbBasePhoneLogin/JfbBasePhoneLogin.vue +40 -31
  108. package/src/components/JfbBasePointsCard/Api.js +18 -0
  109. package/src/components/JfbBasePointsCard/Attr.js +187 -0
  110. package/src/components/JfbBasePointsCard/JfbBasePointsCard.vue +212 -0
  111. package/src/components/JfbBasePointsCard/JfbBasePointsCardLess.less +79 -0
  112. package/src/components/JfbBasePointsCard/JfbBasePointsCardMixin.js +30 -0
  113. package/src/components/JfbBasePointsCard/Mock.js +5 -0
  114. package/src/components/JfbBasePointsDetail/Api.js +48 -0
  115. package/src/components/JfbBasePointsDetail/Attr.js +305 -0
  116. package/src/components/JfbBasePointsDetail/JfbBasePointsDetail.vue +267 -0
  117. package/src/components/JfbBasePointsDetail/JfbBasePointsDetailLess.less +79 -0
  118. package/src/components/JfbBasePointsDetail/JfbBasePointsDetailMixin.js +30 -0
  119. package/src/components/JfbBasePointsDetail/Mock.js +6 -0
  120. package/src/components/JfbBasePoster/Attr.js +1 -1
  121. package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +2 -2
  122. package/src/components/JfbBasePosterGroup/Api.js +22 -0
  123. package/src/components/JfbBasePosterGroup/Attr.js +156 -0
  124. package/src/components/JfbBasePosterGroup/JfbBasePosterGroup.vue +268 -0
  125. package/src/components/JfbBasePosterGroup/JfbBasePosterGroupLess.less +79 -0
  126. package/src/components/JfbBasePosterGroup/JfbBasePosterGroupMixin.js +30 -0
  127. package/src/components/JfbBasePosterGroup/Mock.js +13 -0
  128. package/src/components/JfbBaseSavingDetail/Api.js +41 -0
  129. package/src/components/JfbBaseSavingDetail/Attr.js +70 -0
  130. package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetail.vue +724 -0
  131. package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetailLess.less +79 -0
  132. package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetailMixin.js +30 -0
  133. package/src/components/JfbBaseSavingDetail/Mock.js +10 -0
  134. package/src/components/JfbBaseSavingDetail/components/echarts.min.js +26 -0
  135. package/src/components/JfbBaseSavingDetail/components/echarts.vue +254 -0
  136. package/src/components/JfbBaseSavingDetail/components/wx-canvas.js +105 -0
  137. package/src/components/JfbBaseShare/Api.js +20 -0
  138. package/src/components/JfbBaseShare/Attr.js +59 -0
  139. package/src/components/JfbBaseShare/JfbBaseShare.vue +282 -0
  140. package/src/components/JfbBaseShare/JfbBaseShareLess.less +79 -0
  141. package/src/components/JfbBaseShare/JfbBaseShareMixin.js +30 -0
  142. package/src/components/JfbBaseShare/Mock.js +16 -0
  143. package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +14 -3
  144. package/src/components/JfbBaseTfkCardBind/JfbBaseTfkCardBind.vue +11 -18
  145. package/src/components/JfbBaseTfkSearch/ContentProduct.vue +12 -22
  146. package/src/components/JfbBaseTfkSearch/JfbBaseTfkSearch.vue +12 -1
  147. package/src/components/JfbBaseTfkSearch/Mock.js +51 -3
  148. package/src/components/JfbBaseTfkSearch/listMixins.js +2 -1
  149. package/src/components/JfbBaseUserInfo/Attr.js +175 -11
  150. package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +342 -119
  151. package/src/components/JfbBaseUserOrder/Attr.js +16 -0
  152. package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +11 -2
  153. package/src/components/JfbBaseWalletItem/JfbBaseWalletItem.vue +3 -5
  154. package/src/components/JfbBaseWithDrawAgain/Api.js +41 -0
  155. package/src/components/JfbBaseWithDrawAgain/Attr.js +92 -0
  156. package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgain.vue +354 -0
  157. package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgainLess.less +79 -0
  158. package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgainMixin.js +30 -0
  159. package/src/components/JfbBaseWithDrawAgain/Mock.js +10 -0
  160. package/src/components/JfbBaseWithDrawRecord/Api.js +19 -0
  161. package/src/components/JfbBaseWithDrawRecord/Attr.js +79 -0
  162. package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecord.vue +233 -0
  163. package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecordLess.less +79 -0
  164. package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecordMixin.js +30 -0
  165. package/src/components/JfbBaseWithDrawRecord/Mock.js +7 -0
  166. package/src/components/JfbBaseWithdraw/Api.js +48 -0
  167. package/src/components/JfbBaseWithdraw/Attr.js +328 -0
  168. package/src/components/JfbBaseWithdraw/JfbBaseWithdraw.vue +272 -0
  169. package/src/components/JfbBaseWithdraw/JfbBaseWithdrawLess.less +79 -0
  170. package/src/components/JfbBaseWithdraw/JfbBaseWithdrawMixin.js +30 -0
  171. package/src/components/JfbBaseWithdraw/Mock.js +7 -0
  172. package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorize.vue +10 -0
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+
3
+ module.exports = {
4
+ getAfterServiceOrder: {
5
+ main_order_id: "m763000267279253577",
6
+ service_order_id: "g763109658094186497",
7
+ customer_feedback: "",
8
+ sub_order_id: "s763000766556618826",
9
+ after_sale_method: "refund_and_good",
10
+ after_sale_method_name: "退款",
11
+ refund_voucher: "",
12
+ after_sale_type: "",
13
+ after_sale_type_name: "接口问题导致退款",
14
+ created_time: 1742899520,
15
+ refund_goods_data: "",
16
+ product_list: [
17
+ {
18
+ product_id: 468,
19
+ product_name: "大润发商品",
20
+ product_sku_id: "",
21
+ product_sku_name: "大润发商品",
22
+ product_num: 1,
23
+ sale_price: 1310,
24
+ thumb: "https://img2.jufubao.cn/common/caitou_logo.png",
25
+ after_count: 1,
26
+ refund_amount: 0,
27
+ gift_id: 0,
28
+ brand_id: 0,
29
+ brand_name: ""
30
+ }
31
+ ],
32
+ refund_settlement: [],
33
+ new_product_list: [],
34
+ business_name: "",
35
+ business_icon: "",
36
+ business_code: "",
37
+ after_order_id: "",
38
+ progress: [
39
+ {
40
+ name: "提交申请",
41
+ code: "created_time",
42
+ time: 1742899520,
43
+ is_finish: true,
44
+ content: ""
45
+ },
46
+ {
47
+ name: "平台接单",
48
+ code: "progress_ing",
49
+ time: 1742899520,
50
+ is_finish: true,
51
+ content: ""
52
+ },
53
+ { name: "完成", code: "done", time: 0, is_finish: false, content: "" }
54
+ ],
55
+ express_info: { express_name: "", express_number: "" },
56
+ is_show_delete_btn: "N",
57
+ is_show_cancel_btn: "N",
58
+ request_id: "c90ae9c140228355"
59
+ }
60
+ };
@@ -0,0 +1,66 @@
1
+ <template>
2
+ <view class="prod_item">
3
+ <view class="prod_img">
4
+ <image :src="item.thumb" mode="aspectFit"></image>
5
+ </view>
6
+ <view class="prod_info">
7
+ <view class="prod_title">{{ item.product_name }}</view>
8
+ <view class="prod_sku">{{ item.product_sku_name }}</view>
9
+ <view class="prod_number">
10
+ <view class="i_count" v-if="item.sale_price">单价:{{ $xdUniHelper.divisionFloatNumber(item.sale_price, 100) }} </view>
11
+ <view class="i_count" v-if="item.after_count">申请数量:×{{ item.after_count }}</view>
12
+ </view>
13
+ </view>
14
+ </view>
15
+ </template>
16
+
17
+ <script>
18
+ export default {
19
+ props: {
20
+ item: {
21
+ type: Object,
22
+ default() {
23
+ return {}
24
+ }
25
+ }
26
+ }
27
+ }
28
+ </script>
29
+
30
+ <style lang="less" scoped>
31
+ .prod_item{
32
+ display: flex;
33
+ align-items: center;
34
+ .prod_img{
35
+ width: 140rpx;
36
+ height: 140rpx;
37
+ border-radius: 16rpx;
38
+ background-color: #EEE;
39
+ image{
40
+ width: 100%;
41
+ height: 100%;
42
+ }
43
+ }
44
+ .prod_info{
45
+ margin-left: 20rpx;
46
+ flex: 1;
47
+ align-self: stretch;
48
+ display: flex;
49
+ flex-direction: column;
50
+ justify-content: space-between;
51
+ .prod_title{
52
+ margin-bottom: 10rpx;
53
+ font-size: 32rpx;
54
+ color: #333333;
55
+ }
56
+ .prod_number{
57
+ color: #999999;
58
+ font-size: 24rpx;
59
+ display: flex;
60
+ .i_count + .i_count{
61
+ margin-left: 20rpx;
62
+ }
63
+ }
64
+ }
65
+ }
66
+ </style>
@@ -0,0 +1,30 @@
1
+ 'use strict';
2
+ /**
3
+ * @description 接口配置,
4
+ * 在设置方法名字当时候,别忘记加上【模块名字】:After
5
+ * @type {*[]}
6
+ */
7
+ module.exports = [
8
+ {
9
+ mapFnName: "getAfterSalesTypeList",
10
+ path: "/aftersale/v1/service-order/after-sales-type-list",
11
+ title: "售后类型列表",
12
+ isRule: false,
13
+ params: {},
14
+ isConsole: true,
15
+ disabled: true,
16
+ },
17
+ {
18
+ mapFnName: "createAfterServiceOrderQuick",
19
+ path: "/aftersale/v1/service-order/quick-refund",
20
+ title: "快速退款",
21
+ isRule: false,
22
+ data: {
23
+ main_order_id: ['主订单号', 'String', true],
24
+ after_sale_type: ['售后类型', 'String', true],
25
+ db_from: ['来源', 'String', true],
26
+ },
27
+ isConsole: true,
28
+ disabled: true,
29
+ }
30
+ ];
@@ -0,0 +1,32 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * @description 当表单组件中有联动操作时候,使用方法进行返回
5
+ */
6
+ export default {
7
+ style: [],
8
+ content: (data) => {
9
+ return [
10
+ {
11
+ label: "温馨提示:",
12
+ ele: "xd-tinymce",
13
+ valueKey: "warmTips",
14
+ groupKey: "content",
15
+ value: data['warmTips'] || '',
16
+ },
17
+ {
18
+ label: '售后详情页面路径:',
19
+ ele: 'xd-select-pages-path',
20
+ valueKey: 'refundStepPath',
21
+ groupKey:'advanced',
22
+ placeholder: '请选择售后详情页面路径',
23
+ value: data['refundStepPath'] || null,
24
+ setting: {
25
+ router: XdBus.getParentApi('getPagesTree'),
26
+ },
27
+ inline: false,
28
+ },
29
+ ].filter(i=>i)
30
+ },
31
+ advanced: [],
32
+ };
@@ -0,0 +1,297 @@
1
+ <template>
2
+ <view
3
+ class="jfb-base-after-sales-fast"
4
+ @click="handleEditxSelect"
5
+ :class="{ editx : isEditx && active }"
6
+ >
7
+ <!--#ifdef H5-->
8
+ <view
9
+ class="jfb-base-after-sales-fast__edit"
10
+ :class="{ editx : isEditx && active }"
11
+ v-if="isEditx && active"
12
+ >
13
+ <view class="jfb-base-after-sales-fast__edit-icon" @click="delEdit">删除</view>
14
+ </view>
15
+ <!-- #endif -->
16
+ <view class="jfb-base-after-sales-fast__body" :style="{
17
+ minHeight: layoutInfo.bodyMinHeightRpx + 'rpx',
18
+ '--main-color': mainColor
19
+ }">
20
+ <view class="list_section section_inline" @click="toChoseReason">
21
+ <view class="sec_label">
22
+ <view class="label_require">*</view>
23
+ <view>申请原因</view>
24
+ </view>
25
+ <view class="sec_content">
26
+ <view>{{ afterSaleTypeText }}</view>
27
+ <xd-font-icon icon="iconxiangyou_xian" :size="28" style="margin-left: 8rpx;"></xd-font-icon>
28
+ </view>
29
+ </view>
30
+ <view class="refund_warm_tip">
31
+ <view class="tip_title">温馨提示</view>
32
+ <xd-content-xss :html="warmTips"></xd-content-xss>
33
+ </view>
34
+ <view class="bottom_fixed" :style="prod_bottom">
35
+ <xd-button type="primary" @click="handleApplyRefund">提交申请</xd-button>
36
+ </view>
37
+ <xd-down-drawer :show.sync="reasonShow" :isClose="false">
38
+ <view class="refund_reason_head">申请原因</view>
39
+ <view class="refund_reason_body" style="min-height: 50vh;max-height: 75vh;">
40
+ <view class="reason_cont">
41
+ <view class="reason_item" v-for="item in afterSalesTypes" :key="item.id">
42
+ <view>{{ item.type_name }}</view>
43
+ <xd-radio :value="temp_type === item.id" @change="selectApplyReason(item.id)"></xd-radio>
44
+ </view>
45
+ </view>
46
+ <view class="reason_foot">
47
+ <xd-button type="primary" @click="handleChoseReason">确定</xd-button>
48
+ </view>
49
+ </view>
50
+ </xd-down-drawer>
51
+ </view>
52
+ </view>
53
+ </template>
54
+
55
+ <script>
56
+ import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
57
+ import XdContentXss from "@/components/XdContentXss/XdContentXss"
58
+ import XdButton from "@/components/XdButton/XdButton";
59
+ import XdDownDrawer from "@/components/XdDownDrawer/XdDownDrawer"
60
+ import XdRadio from "@/components/XdRadio/XdRadio"
61
+ import { jfbRootExec } from "@/utils/xd.event";
62
+ import JfbBaseAfterSalesFastMixin from "./JfbBaseAfterSalesFastMixin";
63
+ import { getContainerPropsValue } from "@/utils/xd.base";
64
+ import componentsMixins from "@/mixins/componentsMixins";
65
+ import extsMixins from "@/mixins/extsMixins";
66
+ export default {
67
+ name: "JfbBaseAfterSalesFast",
68
+ components: {
69
+ XdFontIcon,
70
+ XdContentXss,
71
+ XdButton,
72
+ XdDownDrawer,
73
+ XdRadio
74
+ },
75
+ mixins: [
76
+ componentsMixins, extsMixins, JfbBaseAfterSalesFastMixin
77
+ ],
78
+ data() {
79
+ return {
80
+ reasonShow: false,
81
+ // content: `1.遇订单拆分,京券将换成同价值京豆返还;<br/>2.本单支付券退还以实际使用规则为准;<br/>3.订单一旦取消,无法恢复;<br/>4.微信搜一搜订单返现金额会从退款中扣除`,
82
+ order_id: "",
83
+ //todo
84
+ warmTips: "",
85
+ after_sale_type: "",
86
+ temp_type: "",
87
+ afterSalesTypes: [],
88
+
89
+ refundStepPath: "",
90
+ }
91
+ },
92
+ watch: {
93
+ container(value, oldValue) {
94
+ if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
95
+ if (this.$configProject['isPreview']) this.init(value)
96
+ },
97
+ },
98
+ computed: {
99
+ afterSaleTypeText(){
100
+ if(!this.after_sale_type) return "";
101
+ let item = this.afterSalesTypes.find(i => i.id === this.after_sale_type);
102
+ return item ? item.type_name : "";
103
+ },
104
+ prod_bottom() {
105
+ return this.fixedStyle({ height: 20, zIndex: 111 });
106
+ },
107
+ },
108
+
109
+ created() {
110
+ this.init(this.container);
111
+
112
+ //todo
113
+ },
114
+ methods: {
115
+ onJfbLoad(options) {
116
+ this.order_id = options.order_id;
117
+ this.p_getAfterSalesTypeList();
118
+ },
119
+ /**
120
+ * @description 监听事件变化
121
+ * @param container {object} 业务组件对象自己
122
+ */
123
+ init(container) {
124
+ this.warmTips = getContainerPropsValue(container, 'content.warmTips', "");
125
+ this.refundStepPath = getContainerPropsValue(container, 'content.refundStepPath', {value: ""}).value;
126
+ },
127
+ p_getAfterSalesTypeList(){
128
+ jfbRootExec("getAfterSalesTypeList", {
129
+ vm: this,
130
+ data: {}
131
+ }).then(res => {
132
+ this.afterSalesTypes = res.list;
133
+ })
134
+ },
135
+ selectApplyReason(id){
136
+ this.temp_type = id;
137
+ },
138
+ handleApplyRefund(){
139
+ if(!this.after_sale_type) {
140
+ this.$xdAlert({
141
+ content: '请选择申请原因',
142
+ type: "error"
143
+ })
144
+ return;
145
+ }
146
+ jfbRootExec("createAfterServiceOrderQuick", {
147
+ vm: this,
148
+ data: {
149
+ main_order_id: this.order_id,
150
+ after_sale_type: this.after_sale_type,
151
+ }
152
+ }).then(res => {
153
+ this.$xdUniHelper.navigateTo({
154
+ url: `${this.refundStepPath}?service_order_id=${res.service_order_id}`,
155
+ });
156
+ })
157
+ },
158
+ toChoseReason(){
159
+ this.reasonShow = true;
160
+ },
161
+ handleChoseReason(){
162
+ this.reasonShow = false;
163
+ this.after_sale_type = this.temp_type;
164
+ },
165
+ onJfbScroll(options) {
166
+ // console.log('event.onJfbScroll', options)
167
+ },
168
+ onJfbReachBottom(options) {
169
+ console.log('event.onJfbReachBottom', options)
170
+ },
171
+ onJfbShow(options) {
172
+ console.log('event.onJfbShow', options)
173
+ },
174
+ onJfbHide(options) {
175
+ console.log('event.onJfbHide', options)
176
+ },
177
+ onJfbBack(options) {
178
+ console.log('event.onJfbBack', options)
179
+ },
180
+ onJfbUpdate(...data) {
181
+ console.log('event.onJfbUpdate', data)
182
+ },
183
+ onJfbCustomEvent(options) {
184
+ console.log('event.onJfbReachBottom', options)
185
+ },
186
+ }
187
+ }
188
+
189
+ </script>
190
+
191
+ <style scoped lang="less">
192
+ @import "./JfbBaseAfterSalesFastLess.less";
193
+
194
+ .jfb-base-after-sales-fast {
195
+ &__body{
196
+ padding: 20rpx 20rpx 120rpx;
197
+ box-sizing: border-box;
198
+ background-color: #EEEEEE;
199
+ .list_section{
200
+ padding: 24rpx 36rpx;
201
+ border-radius: 16rpx;
202
+ background-color: #FFFFFF;
203
+ display: flex;
204
+ flex-direction: column;
205
+ margin: 20rpx 0;
206
+ color: #333333;
207
+ font-size: 28rpx;
208
+ &.section_inline{
209
+ flex-direction: row;
210
+ justify-content: space-between;
211
+ .sec_label{
212
+ margin-bottom: 0;
213
+ }
214
+ }
215
+ .sec_label{
216
+ display: flex;
217
+ align-items: center;
218
+ margin-bottom: 24rpx;
219
+ .label_require{
220
+ color: #FF5733;
221
+ margin-right: 4rpx;
222
+ }
223
+ .label_sub{
224
+ color: #CCCCCC;
225
+ font-size: 24rpx;
226
+ margin-left: 16rpx;
227
+ }
228
+ }
229
+ .sec_content{
230
+ display: flex;
231
+ align-items: center;
232
+ color: #666666;
233
+
234
+ .img_list{
235
+ display: flex;
236
+ flex-wrap: wrap;
237
+ .img_box{
238
+ width: 160rpx;
239
+ height: 160rpx;
240
+ border-radius: 8rpx;
241
+ border: 1px solid #E0E0E0;
242
+ margin-right: 28rpx;
243
+ margin-bottom: 28rpx;
244
+ }
245
+ }
246
+ }
247
+ }
248
+ .refund_warm_tip{
249
+ padding: 24rpx;
250
+ .tip_title{
251
+ font-size: 26rpx;
252
+ color: #333333;
253
+ font-weight: 500;
254
+ margin-bottom: 24rpx;
255
+ }
256
+ }
257
+ .bottom_fixed{
258
+ position: fixed;
259
+ bottom: 0;
260
+ left: 0;
261
+ width: 100%;
262
+ padding: 20rpx;
263
+ box-sizing: border-box;
264
+ }
265
+ .refund_reason_head{
266
+ padding: 32rpx 0;
267
+ text-align: center;
268
+ border-bottom: 1px solid #F2F2F2;
269
+ margin: 0 32rpx;
270
+ font-size: 28rpx;
271
+ color: #333333;
272
+ font-weight: bold;
273
+ }
274
+ .refund_reason_body{
275
+ display: flex;
276
+ flex-direction: column;
277
+ .reason_cont{
278
+ flex: 1;
279
+ padding: 0 40rpx;
280
+ overflow: auto;
281
+ .reason_item{
282
+ display: flex;
283
+ align-items: center;
284
+ justify-content: space-between;
285
+ padding: 20rpx 20rpx;
286
+ font-size: 28rpx;
287
+ color: #333333;
288
+ }
289
+ }
290
+ .reason_foot{
291
+ padding: 32rpx;
292
+ border-top: 1px solid #F2F2F2;
293
+ }
294
+ }
295
+ }
296
+ }
297
+ </style>
@@ -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-after-sales-fast {
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-after-sales-fast {
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-after-sales-fast'
20
+ }
21
+ },
22
+ created() {
23
+
24
+ //@AttrDataCreated
25
+ this.Attr = this.$xdUniHelper.customClone(Attr);
26
+ //@EndAttrDataCreated
27
+
28
+
29
+ },
30
+ }
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+
3
+ module.exports = {
4
+ getAfterSalesTypeList: {
5
+ list: [
6
+ {
7
+ id: 57,
8
+ type_name: "接口问题导致退款",
9
+ status: "Y",
10
+ description: "影院网络问题、网售系统问题、接口商品下架等",
11
+ created_time: 1733302517,
12
+ updated_time: 1733302517,
13
+ is_show_web: "Y"
14
+ },
15
+ {
16
+ id: 56,
17
+ type_name: "客户原因",
18
+ status: "Y",
19
+ description: "客户原因",
20
+ created_time: 1717726245,
21
+ updated_time: 1717726245,
22
+ is_show_web: "Y"
23
+ },
24
+ {
25
+ id: 55,
26
+ type_name: "账号已达到充值上限",
27
+ status: "Y",
28
+ description: "账号已达到充值上限",
29
+ created_time: 1717726196,
30
+ updated_time: 1717726196,
31
+ is_show_web: "Y"
32
+ }
33
+ ],
34
+ next_page_token: "",
35
+ total_size: "3",
36
+ request_id: "2ff3227604479b81"
37
+ }
38
+ };
@@ -0,0 +1,40 @@
1
+ 'use strict';
2
+ /**
3
+ * @description 接口配置,
4
+ * 在设置方法名字当时候,别忘记加上【模块名字】:After
5
+ * @type {*[]}
6
+ */
7
+ module.exports = [
8
+ {
9
+ mapFnName: 'getAfterServiceOrderList',
10
+ title: '获取服务单列表',
11
+ path: '/aftersale/v1/service-order/list',
12
+ isRule: false,
13
+ params: {
14
+ },
15
+ isConsole: true,
16
+ disabled: true,
17
+ },
18
+ {
19
+ mapFnName: "delAfterServiceOrder",
20
+ path: "/aftersale/v1/service-order/del",
21
+ title: "删除服务单",
22
+ isRule: false,
23
+ params: {
24
+ service_order_id: ['服务单订单号', 'String', true],
25
+ },
26
+ isConsole: true,
27
+ disabled: true,
28
+ },
29
+ {
30
+ mapFnName: "cancelAfterServiceOrder",
31
+ path: "/aftersale/v1/service-order/cancel",
32
+ title: "服务单取消",
33
+ isRule: false,
34
+ params: {
35
+ service_order_id: ['服务单订单号', 'String', true],
36
+ },
37
+ isConsole: true,
38
+ disabled: true,
39
+ },
40
+ ];