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,130 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * @description 当表单组件中有联动操作时候,使用方法进行返回
5
+ */
6
+ export default {
7
+ style: [],
8
+ content: (data) => {
9
+ return [
10
+ {
11
+ label: "背景颜色:",
12
+ ele: "xd-color",
13
+ valueKey: "bodyBgColor",
14
+ value: data.bodyBgColor || "",
15
+ groupKey: "style",
16
+ },
17
+ {
18
+ label: 'tab文字颜色设置:',
19
+ ele: 'xd-text-and-bgc',
20
+ groupKey:'style',
21
+ valueKey: 'menuTabColor',
22
+ value: data['menuTabColor'] || null,
23
+ setting: {
24
+ fontSize: false, //字体大小选择
25
+ color: true, //文字颜色选项
26
+ bgColor: false, //背景选项
27
+ weight: false, //文字粗细
28
+ },
29
+ handleCustom({action, data}) {
30
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
31
+ .then(res => {
32
+ data.cb(res.list)
33
+ })
34
+ .catch(error => {
35
+ console.error(error);
36
+ data.cb([])
37
+ });
38
+ },
39
+ },
40
+ {
41
+ label: "内容配置设置",
42
+ ele: "title",
43
+ groupKey: "style",
44
+ size: "small"
45
+ },
46
+ {
47
+ label: "背景颜色:",
48
+ ele: "xd-color",
49
+ valueKey: "cardItemBgColor",
50
+ value: data.cardItemBgColor || "#FFFFFF",
51
+ groupKey: "style",
52
+ labelInline: true,
53
+ },
54
+ {
55
+ label: "间距设置:",
56
+ ele: "el-input",
57
+ valueKey: "cardItemSpace",
58
+ value: data.cardItemSpace || "20",
59
+ placeholder: '请输入间距',
60
+ groupKey: "style",
61
+ className: "input80",
62
+ labelInline: true,
63
+ inline: false,
64
+ notice: '设置间距,<span style="color: red">单位:像素</span>。默认值:<span style="color:red">20</span>像素',
65
+ },
66
+ {
67
+ label: '投影设置:',
68
+ ele: 'xd-shadow',
69
+ groupKey:'style',
70
+ labelInline: true,
71
+ valueKey: 'cardItemShadow',
72
+ value: data['cardItemShadow'] || '',
73
+ setting: {
74
+ selected: 'N',
75
+ },
76
+ handleCustom({action, data}) {
77
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
78
+ .then(res => {
79
+ data.cb(res.list)
80
+ })
81
+ .catch(error => {
82
+ console.error(error);
83
+ data.cb([])
84
+ });
85
+ },
86
+ },
87
+ {
88
+ label: '边框设置:',
89
+ ele: 'xd-border',
90
+ groupKey:'style',
91
+ labelInline: true,
92
+ valueKey: 'cardItemBorder',
93
+ value: data['cardItemBorder'] || '',
94
+ setting: {
95
+ selected:'N'
96
+ },
97
+ },
98
+ {
99
+ label: "圆角设置:",
100
+ groupKey: 'style',
101
+ ele: 'xd-slider',
102
+ valueKey: "cardItemRadius",
103
+ value: data['cardItemRadius'] === undefined?16:data['cardItemRadius'] ,
104
+ className: "input80",
105
+ labelInline: true,
106
+ setting:{
107
+ min: 0,//最小值
108
+ max: 60, //最小值
109
+ step:1, //步长
110
+ showStops:false,//显示间断点
111
+ showInput:false,//显示输入框
112
+ }
113
+ },
114
+ {
115
+ label: '服务详情跳转路径:',
116
+ ele: 'xd-select-pages-path',
117
+ valueKey: 'afterSalesDetailPath',
118
+ placeholder: '请选择服务详情跳转路径',
119
+ groupKey:'advanced',
120
+ className: 'input100',
121
+ value: data['afterSalesDetailPath'] || null,
122
+ setting: {
123
+ router: XdBus.getParentApi('getPagesTree'),
124
+ },
125
+ inline: false,
126
+ },
127
+ ].filter(i=>i)
128
+ },
129
+ advanced: [],
130
+ };
@@ -0,0 +1,488 @@
1
+ <template>
2
+ <view
3
+ class="jfb-base-after-sales-list"
4
+ @click="handleEditxSelect"
5
+ :class="{ editx : isEditx && active }"
6
+ >
7
+ <!--#ifdef H5-->
8
+ <view
9
+ class="jfb-base-after-sales-list__edit"
10
+ :class="{ editx : isEditx && active }"
11
+ v-if="isEditx && active"
12
+ >
13
+ <view class="jfb-base-after-sales-list__edit-icon" @click="delEdit">删除</view>
14
+ </view>
15
+ <!-- #endif -->
16
+ <view class="jfb-base-after-sales-list__body" :style="[bodyBoxStyle]">
17
+ <view class="fixed_header" :style="{
18
+ top: layoutInfo.top + 'rpx',
19
+ }">
20
+ <view class="filter_tab" :style="[menuTabStyle]">
21
+ <view v-for="item in statusTabs" :key="item.value" class="filter_item"
22
+ :class="{active: item.value===status}"
23
+ @click="selectStatusTab(item.value)"
24
+ >{{ item.label }}</view>
25
+ </view>
26
+ <view class="search_bar" :style="{
27
+ backgroundColor: bodyBgColor
28
+ }">
29
+ <view class="search_box">
30
+ <xd-font-icon style="margin: 0 32rpx;" icon="iconsousuo_mian" size="32" color="#BBBBBB"></xd-font-icon>
31
+ <input type="text"
32
+ v-model="keyword"
33
+ style="width: 100%;"
34
+ confirm-type="search"
35
+ placeholder="请输入商品名称/订单编号"
36
+ @confirm="handleSearch"/>
37
+ <xd-font-icon v-if="keyword" style="margin: 0 32rpx;" icon="iconshanchu" size="32" color="#BBBBBB" @click.stop="handleClearKeyword"></xd-font-icon>
38
+ </view>
39
+
40
+ </view>
41
+ </view>
42
+
43
+ <view style="height: 220rpx"></view>
44
+
45
+ <view v-if="loaded" class="service_list_wrap">
46
+ <view v-if="orderList.length" class="service_list">
47
+ <view v-for="item in orderList"
48
+ :key="item.service_order_id"
49
+ class="service_item"
50
+ :style="[cardItemBoxStyle]"
51
+ @click="handleToLink(item)">
52
+ <view class="service_header">
53
+ <view class="biz_name">
54
+ <xd-font-icon
55
+ v-if="item.business_icon"
56
+ class="biz_icon"
57
+ :icon="item.business_icon"
58
+ :size="28"
59
+ ></xd-font-icon>
60
+ {{item.business_name}}</view>
61
+ <view class="service_type" :style="getMethodTypeStyle(item.after_sale_method)">{{ item.after_sale_method_name }}</view>
62
+ </view>
63
+ <view class="service_body">
64
+ <view class="service_number">服务单号:{{ item.service_order_id }}</view>
65
+ <view v-for="prod in item.product_list" :key="prod.product_id" class="prod_item">
66
+ <view class="prod_img">
67
+ <image :src="prod.thumb" mode="aspectFit"></image>
68
+ </view>
69
+ <view class="prod_info">
70
+ <view class="prod_title"> {{ prod.product_name }} </view>
71
+ <view class="prod_number">申请数量:×{{ prod.after_count }}</view>
72
+ </view>
73
+ </view>
74
+ </view>
75
+ <view class="service_foot">
76
+ <view v-if="item.is_show_cancel_btn === 'Y'" class="opt_btn default" @click.stop="handleCancel(item)">取消申请</view>
77
+ <view v-if="item.is_show_delete_btn === 'Y'" class="opt_btn" @click.stop="handleDel(item)">删除</view>
78
+ </view>
79
+ </view>
80
+ </view>
81
+ <view v-else>
82
+ <xd-no-data></xd-no-data>
83
+ </view>
84
+ </view>
85
+ </view>
86
+ </view>
87
+ </template>
88
+
89
+ <script>
90
+ import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
91
+ import XdNoData from "@/components/XdNoData/XdNoData.vue"
92
+ import { jfbRootExec } from "@/utils/xd.event";
93
+ import JfbBaseAfterSalesListMixin from "./JfbBaseAfterSalesListMixin";
94
+ import { getContainerPropsValue } from "@/utils/xd.base";
95
+ import componentsMixins from "@/mixins/componentsMixins";
96
+ import extsMixins from "@/mixins/extsMixins";
97
+ import getServiceUrl from "@/common/getServiceUrl";
98
+ export default {
99
+ name: "JfbBaseAfterSalesList",
100
+ components: {
101
+ XdFontIcon,
102
+ XdNoData
103
+ },
104
+ mixins: [
105
+ componentsMixins, extsMixins, JfbBaseAfterSalesListMixin
106
+ ],
107
+ data() {
108
+ return {
109
+ orderList: [],
110
+
111
+ loaded: false,
112
+ status: "2", //状态 0:全部 1:待处理,2:处理中 3:已完成
113
+ keyword: "",
114
+ page_size: 10,
115
+ page_token: 1,
116
+ hasNext: true,
117
+ next_page_token: "",
118
+ // showStatusFilter: "",
119
+
120
+ statusTabs: [
121
+ // { label: '全部', value: '0'},
122
+ // { label: '待处理', value: '1'},
123
+ { label: '处理中', value: '2'},
124
+ { label: '已完成', value: '3'},
125
+ ],
126
+
127
+ bodyBgColor: "",
128
+
129
+ cardItemBgColor: "",
130
+ cardItemSpace: 20,
131
+ cardItemShadow: "",
132
+ cardItemBorder: "",
133
+ cardItemRadius: 16,
134
+
135
+ afterSalesDetailPath: "",
136
+ menuTabColor: {},
137
+
138
+ }
139
+ },
140
+ watch: {
141
+ container(value, oldValue) {
142
+ if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
143
+ if (this.$configProject['isPreview']) this.init(value)
144
+ },
145
+ },
146
+ computed: {
147
+ bodyBoxStyle(){
148
+ return {
149
+ backgroundColor: this.bodyBgColor,
150
+ minHeight: this.layoutInfo.bodyMinHeight,
151
+ '--main-color': this.mainColor,
152
+ }
153
+ },
154
+ cardItemBoxStyle(){
155
+ return {
156
+ backgroundColor: this.cardItemBgColor,
157
+ marginBottom: this.cardItemSpace + 'rpx',
158
+ boxShadow: this.cardItemShadow,
159
+ border: this.cardItemBorder,
160
+ borderRadius: this.cardItemRadius + 'rpx',
161
+ }
162
+ },
163
+ menuTabStyle(){
164
+ return {
165
+ '--tab-color': this.menuTabColor['color'] || '#333333',
166
+ '--active-tab-color': this.menuTabColor['actColor'] || this.mainColor,
167
+ }
168
+ }
169
+ },
170
+ created() {
171
+ this.init(this.container);
172
+
173
+ //todo
174
+ },
175
+ methods: {
176
+ onJfbLoad(options) {
177
+ this.getList();
178
+ },
179
+ /**
180
+ * @description 监听事件变化
181
+ * @param container {object} 业务组件对象自己
182
+ */
183
+ init(container) {
184
+ // this.showStatusFilter = getContainerPropsValue(container, "content.showStatusFilter", "");
185
+ this.bodyBgColor = getContainerPropsValue(container, "content.bodyBgColor", "#EEEEEE");
186
+
187
+ this.cardItemBgColor = getContainerPropsValue(container, 'content.cardItemBgColor', "#FFFFFF");
188
+ this.cardItemSpace = getContainerPropsValue(container, 'content.cardItemSpace', 20);
189
+ this.cardItemShadow = this.getXdShadow({width:20, color:'rgba(0,0,0,0)'},getContainerPropsValue(container, 'content.cardItemShadow', {}))
190
+ this.cardItemBorder = this.getXdBorder({width:2,color:'rgba(0,0,0,0)'},getContainerPropsValue(container, 'content.cardItemBorder', {}));
191
+ this.cardItemRadius = getContainerPropsValue(container, 'content.cardItemRadius', 16);
192
+ this.menuTabColor = getContainerPropsValue(container, "content.menuTabColor", {});
193
+
194
+ this.afterSalesDetailPath = getContainerPropsValue(container, "content.afterSalesDetailPath", { value: "" }).value;
195
+ },
196
+ getMethodTypeStyle(method){
197
+ switch (method) {
198
+ case "refund_and_good":
199
+ return { color: "#FF5733" };
200
+ case "refund":
201
+ return { color: "#FF5733" };
202
+ case "exchange":
203
+ return { color: "#2A82E4" };
204
+ case "again":
205
+ return { color: "#43CF7C" };
206
+ case "good":
207
+ return { color: "#FF8D1A" };
208
+ default:
209
+ return {};
210
+ }
211
+ },
212
+ handleSearch(e){
213
+ console.log("handleSearch",e)
214
+ this.page_token = 1;
215
+ this.getList();
216
+ },
217
+ selectStatusTab(status){
218
+ this.status = status;
219
+ this.page_token = 1;
220
+ uni.pageScrollTo({
221
+ scrollTop: 0,
222
+ duration: 0
223
+ });
224
+ this.getList();
225
+ },
226
+ handleCancel(item){
227
+ this.handleConfirm(() => {
228
+ jfbRootExec("cancelAfterServiceOrder", {
229
+ vm: this,
230
+ data:{
231
+ service_order_id: item.service_order_id
232
+ }
233
+ }).then(res => {
234
+ this.page_token = 1;
235
+ this.getList();
236
+ })
237
+ })
238
+ },
239
+ handleDel(item){
240
+ this.handleConfirm(() => {
241
+ jfbRootExec("delAfterServiceOrder", {
242
+ vm: this,
243
+ data:{
244
+ service_order_id: item.service_order_id
245
+ }
246
+ }).then(res => {
247
+ this.page_token = 1;
248
+ this.getList();
249
+ })
250
+ })
251
+ },
252
+ getList() {
253
+ this.$xdShowLoading({});
254
+ jfbRootExec("getAfterServiceOrderList", {
255
+ vm: this,
256
+ data: {
257
+ page_size: this.page_size,
258
+ page_token: this.page_token,
259
+ status: this.status,
260
+ keyword: this.keyword,
261
+ },
262
+ })
263
+ .then((res) => {
264
+ this.loaded = true;
265
+ this.$xdHideLoading();
266
+ let list = res.list.map(item => {
267
+ // item.thumb = getServiceUrl(item.thumb, 'size2');
268
+ item.product_list = item.product_list.map(prod => {
269
+ prod.thumb = getServiceUrl(prod.thumb);
270
+ return prod;
271
+ })
272
+ return item;
273
+ });
274
+ if (this.page_token === 1) {
275
+ this.orderList = list;
276
+ } else {
277
+ this.orderList = this.orderList.concat(list);
278
+ }
279
+ this.hasNext = res.next_page_token !== "";
280
+ this.next_page_token = res.next_page_token;
281
+ })
282
+ .catch((err) => {
283
+ this.$xdHideLoading();
284
+ });
285
+ },
286
+ handleToLink(item) {
287
+ this.$xdUniHelper.navigateTo({
288
+ url: `${this.afterSalesDetailPath}?service_order_id=${item.service_order_id}`,
289
+ });
290
+ },
291
+ handleConfirm(cb){
292
+ this.$xdConfirm({
293
+ styles: this.styles,
294
+ title: "提示",
295
+ width: '90%',
296
+ content: '确定删除当前工单吗?',
297
+ confirmText: '确认',
298
+ isHtml: true,
299
+ cancelText: '取消',
300
+ showClose: false,
301
+ success: (res) => {
302
+ if (res.confirm) {
303
+ cb && cb();
304
+ }
305
+ else{}
306
+ }
307
+ })
308
+ },
309
+ handleClearKeyword(){
310
+ this.keyword = "";
311
+ this.page_token = 1;
312
+ this.getList();
313
+ },
314
+ onJfbScroll(options) {
315
+ // console.log("event.onJfbScroll", options);
316
+ },
317
+ onJfbReachBottom(options) {
318
+ if (this.hasNext) {
319
+ this.page_token = this.next_page_token;
320
+ this.getList();
321
+ }
322
+ },
323
+ onJfbShow(options) {
324
+ // console.log('event.onJfbShow', options)
325
+ },
326
+ onJfbHide(options) {
327
+ console.log('event.onJfbHide', options)
328
+ },
329
+ onJfbBack(options) {
330
+ console.log('event.onJfbBack', options)
331
+ },
332
+ onJfbUpdate(...data) {
333
+ console.log('event.onJfbUpdate', data)
334
+ },
335
+ onJfbCustomEvent(options) {
336
+ console.log('event.onJfbReachBottom', options)
337
+ },
338
+ }
339
+ }
340
+
341
+ </script>
342
+
343
+ <style scoped lang="less">
344
+ @import "./JfbBaseAfterSalesListLess.less";
345
+
346
+ .jfb-base-after-sales-list {
347
+ &__body{
348
+ padding: 24rpx;
349
+ box-sizing: border-box;
350
+ .fixed_header{
351
+ position: fixed;
352
+ top: 0;
353
+ left: 0;
354
+ width: 100%;
355
+ z-index: 111;
356
+ }
357
+ .filter_tab{
358
+ display: flex;
359
+ align-items: center;
360
+ background-color: #FFFFFF;
361
+ justify-content: center;
362
+ height: 100rpx;
363
+ line-height: 100rpx;
364
+ border-bottom: 1px solid #DDD;
365
+
366
+ .filter_item{
367
+ margin: 0 40rpx;
368
+ font-size: 28rpx;
369
+ color: var(--tab-color);
370
+ &.active{
371
+ border-bottom: 1px solid var(--active-tab-color);
372
+ color: var(--active-tab-color);
373
+ }
374
+ }
375
+ }
376
+ .search_bar{
377
+ padding: 24rpx;
378
+
379
+ .search_box{
380
+ height: 80rpx;
381
+ display: flex;
382
+ align-items: center;
383
+ background-color: #FFFFFF;
384
+ border-radius: 80rpx;
385
+ ::v-deep .input-placeholder{
386
+ color: #BBBBBB;
387
+ }
388
+ }
389
+ }
390
+ .service_list_wrap{
391
+
392
+ }
393
+ .service_list{
394
+
395
+ }
396
+ .service_item{
397
+ padding: 32rpx;
398
+ .service_header{
399
+ display: flex;
400
+ align-items: center;
401
+ justify-content: space-between;
402
+ padding-bottom: 24rpx;
403
+ border-bottom: 1px solid #F2F2F2;
404
+ font-size: 28rpx;
405
+ font-weight: 500;
406
+ color: #333333;
407
+ .biz_name{
408
+ display: flex;
409
+ align-items: center;
410
+ .biz_icon{
411
+ margin-right: 16rpx;
412
+ }
413
+ }
414
+ }
415
+ .service_body{
416
+ .service_number{
417
+ font-size: 24rpx;
418
+ font-weight: 500;
419
+ color: #333333;
420
+ margin: 24rpx 0;
421
+ }
422
+ .prod_item{
423
+ display: flex;
424
+ align-items: center;
425
+ margin: 24rpx 0;
426
+ .prod_img{
427
+ width: 140rpx;
428
+ height: 140rpx;
429
+ border-radius: 16rpx;
430
+ background-color: #EEE;
431
+ image{
432
+ width: 100%;
433
+ height: 100%;
434
+ }
435
+ }
436
+ .prod_info{
437
+ margin-left: 20rpx;
438
+ flex: 1;
439
+ align-self: stretch;
440
+ display: flex;
441
+ flex-direction: column;
442
+ justify-content: space-between;
443
+ .prod_title{
444
+ margin-bottom: 10rpx;
445
+ font-size: 28rpx;
446
+ color: #333333;
447
+ }
448
+ .prod_number{
449
+ color: #999999;
450
+ font-size: 24rpx;
451
+ }
452
+ }
453
+ }
454
+ }
455
+ .service_foot{
456
+ text-align: right;
457
+ margin-top: 24rpx;
458
+ .opt_btn{
459
+ width: 120rpx;
460
+ height: 60rpx;
461
+ background: #FFFFFF;
462
+ color: #999999;
463
+ border: 1px solid #999999;
464
+ font-size: 24rpx;
465
+ text-align: center;
466
+ line-height: 60rpx;
467
+ border-radius: 60rpx;
468
+ display: inline-block;
469
+ & + .opt_btn{
470
+ margin-left: 20rpx;
471
+ }
472
+ &.default{
473
+ background: #EFEFEF;
474
+ border-color: #EFEFEF;
475
+ color: #999999;
476
+ width: 140rpx;
477
+ }
478
+ &.primary{
479
+ background: var(--main-color);
480
+ border-color: var(--main-color);
481
+ color: #FFFFFF;
482
+ }
483
+ }
484
+ }
485
+ }
486
+ }
487
+ }
488
+ </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-list {
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-list {
74
+ //&:before {
75
+ //content: " ";
76
+ //display: table;
77
+ //}
78
+ }
79
+ /**endNotPreview**/