jufubao-base 1.0.221 → 1.0.222-beta2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) 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 +505 -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 +13 -0
  10. package/src/components/JfbBaseAfterSales/refundOrderInfo.vue +96 -0
  11. package/src/components/JfbBaseAfterSalesDetail/Api.js +41 -0
  12. package/src/components/JfbBaseAfterSalesDetail/Attr.js +14 -0
  13. package/src/components/JfbBaseAfterSalesDetail/JfbBaseAfterSalesDetail.vue +518 -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 +13 -0
  17. package/src/components/JfbBaseAfterSalesDetail/secProd.vue +54 -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 +273 -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 +13 -0
  24. package/src/components/JfbBaseAfterSalesList/Api.js +18 -0
  25. package/src/components/JfbBaseAfterSalesList/Attr.js +48 -0
  26. package/src/components/JfbBaseAfterSalesList/JfbBaseAfterSalesList.vue +454 -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 +5 -0
  30. package/src/components/JfbBaseOrderDetail/Attr.js +12 -0
  31. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +4 -0
  32. package/src/components/JfbBaseOrderList/Attr.js +36 -0
  33. package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +30 -0
  34. package/src/components/JfbBaseOrderList/Mock.js +1 -1
  35. package/src/components/JfbBaseOrderList/XdTfkOrderItem.vue +17 -5
@@ -155,7 +155,16 @@
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>
158
166
  <xd-button
167
+ v-else
159
168
  :type="getBtnType(btn.action)"
160
169
  size="mini"
161
170
  @click="handleBtnEvent(btn.action, item)"
@@ -182,6 +191,7 @@
182
191
  :mainColor="mainColor"
183
192
  :isShowOrderNo="isShowOrderNo"
184
193
  :brandTextColor="brandTextColor"
194
+ :showApplyAfter="showApplyAfter"
185
195
  :item="item"
186
196
  @handleBtnEvent="action => handleBtnEvent(action, item)"
187
197
  ></xd-tfk-order-item>
@@ -243,6 +253,8 @@ export default {
243
253
  initStatus: false,
244
254
  loadingList: true,
245
255
 
256
+ showApplyAfter: "",
257
+
246
258
  //基础
247
259
  radius: 0,
248
260
  backgroundColor: "",
@@ -271,6 +283,9 @@ export default {
271
283
  layout_style: "old",
272
284
  isShowOrderNo: "Y",
273
285
 
286
+ refundPath: "",
287
+ refundFastPath: "",
288
+
274
289
  noticeBgc:'',
275
290
  };
276
291
  },
@@ -335,6 +350,7 @@ export default {
335
350
  * @param container {object} 业务组件对象自己
336
351
  */
337
352
  init(container) {
353
+ this.showApplyAfter = getContainerPropsValue(container, "content.showApplyAfter", "N");
338
354
  this.margin = getContainerPropsValue(container, "content.margin", {top: 0, left: 0, right: 0, bottom: 0,});
339
355
  this.radius = getContainerPropsValue(container, "content.radius", 0);
340
356
  this.backgroundColor = getContainerPropsValue(container, "content.backgroundColor", "#f8f8f8");
@@ -363,6 +379,8 @@ export default {
363
379
 
364
380
  this.detailPath = getContainerPropsValue(container, "content.detailPath", { value: "" }).value;
365
381
  this.payPath = getContainerPropsValue(container, "content.payPath", {value: "",}).value;
382
+ this.refundPath = getContainerPropsValue(container, "content.refundPath", {value: "",}).value;
383
+ this.refundFastPath = getContainerPropsValue(container, "content.refundFastPath", {value: "",}).value;
366
384
  this.layout_style = getContainerPropsValue(container, "content.layout_style", "old");
367
385
  this.isShowOrderNo = getContainerPropsValue(container, "content.isShowOrderNo", "Y");
368
386
  this.tabList = getContainerPropsValue(container, "content.orderTypeList", []).map((item) => {
@@ -432,6 +450,18 @@ export default {
432
450
  this.$xdUniHelper.navigateTo({
433
451
  url: `${this.payPath}?order_id=${item.pay_order_id}&main_order_id=${item.main_order_id}`,
434
452
  });
453
+ } else if( action === 'apply_refund'){
454
+ //普通退款
455
+ if(item.is_support_quick_refund !== "Y"){
456
+ this.$xdUniHelper.navigateTo({
457
+ url: `${this.refundPath}?order_id=${item.main_order_id}`,
458
+ });
459
+ }else{
460
+ //极速退款
461
+ this.$xdUniHelper.navigateTo({
462
+ url: `${this.refundFastPath}?order_id=${item.main_order_id}`,
463
+ });
464
+ }
435
465
  }
436
466
  },
437
467
 
@@ -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"}]
28
+ "buttons": [{"text": "支付", "action": "pay"}, {"text": "取消订单", "action": "cancel_unpaid"}, { "text": "申请退款", "action": "apply_refund"}]
29
29
  },
30
30
  {
31
31
  "main_order_id": "m513033785675509760",
@@ -83,10 +83,21 @@
83
83
  </view>
84
84
  <view v-if="item.buttons.length" class="prod_footer">
85
85
  <view style="flex: 1;"></view>
86
- <view class="btn"
87
- v-for="(btn,index) in item.buttons" :key="btn.key"
88
- @click="handleBtnEvent(btn.action, item)"
89
- >{{btn.text}}</view>
86
+ <template v-for="(btn,index) in item.buttons">
87
+ <template v-if="btn.action === 'apply_refund'">
88
+ <view class="btn"
89
+ v-if="showApplyAfter === 'Y'"
90
+ :key="btn.key"
91
+ @click="handleBtnEvent(btn.action, item)"
92
+ >{{btn.text}}</view>
93
+ </template>
94
+ <view class="btn"
95
+ v-else
96
+ :key="btn.key"
97
+ @click="handleBtnEvent(btn.action, item)"
98
+ >{{btn.text}}</view>
99
+ </template>
100
+
90
101
  </view>
91
102
  </view>
92
103
  </template>
@@ -106,7 +117,8 @@
106
117
  isShowOrderNo: {
107
118
  type: String,
108
119
  },
109
- brandTextColor: String
120
+ brandTextColor: String,
121
+ showApplyAfter: String
110
122
  },
111
123
  data(){
112
124
  return{