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.
- package/package.json +1 -1
- package/src/components/JfbBaseAfterOrderList/Attr.js +13 -0
- package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderList.vue +33 -1
- package/src/components/JfbBaseAfterSales/Api.js +58 -0
- package/src/components/JfbBaseAfterSales/Attr.js +25 -0
- package/src/components/JfbBaseAfterSales/JfbBaseAfterSales.vue +587 -0
- package/src/components/JfbBaseAfterSales/JfbBaseAfterSalesLess.less +79 -0
- package/src/components/JfbBaseAfterSales/JfbBaseAfterSalesMixin.js +30 -0
- package/src/components/JfbBaseAfterSales/Mock.js +6 -0
- package/src/components/JfbBaseAfterSales/refundOrderInfo.vue +150 -0
- package/src/components/JfbBaseAfterSalesDetail/Api.js +41 -0
- package/src/components/JfbBaseAfterSalesDetail/Attr.js +25 -0
- package/src/components/JfbBaseAfterSalesDetail/JfbBaseAfterSalesDetail.vue +547 -0
- package/src/components/JfbBaseAfterSalesDetail/JfbBaseAfterSalesDetailLess.less +79 -0
- package/src/components/JfbBaseAfterSalesDetail/JfbBaseAfterSalesDetailMixin.js +30 -0
- package/src/components/JfbBaseAfterSalesDetail/Mock.js +60 -0
- package/src/components/JfbBaseAfterSalesDetail/secProd.vue +66 -0
- package/src/components/JfbBaseAfterSalesFast/Api.js +30 -0
- package/src/components/JfbBaseAfterSalesFast/Attr.js +32 -0
- package/src/components/JfbBaseAfterSalesFast/JfbBaseAfterSalesFast.vue +297 -0
- package/src/components/JfbBaseAfterSalesFast/JfbBaseAfterSalesFastLess.less +79 -0
- package/src/components/JfbBaseAfterSalesFast/JfbBaseAfterSalesFastMixin.js +30 -0
- package/src/components/JfbBaseAfterSalesFast/Mock.js +38 -0
- package/src/components/JfbBaseAfterSalesList/Api.js +40 -0
- package/src/components/JfbBaseAfterSalesList/Attr.js +130 -0
- package/src/components/JfbBaseAfterSalesList/JfbBaseAfterSalesList.vue +488 -0
- package/src/components/JfbBaseAfterSalesList/JfbBaseAfterSalesListLess.less +79 -0
- package/src/components/JfbBaseAfterSalesList/JfbBaseAfterSalesListMixin.js +30 -0
- package/src/components/JfbBaseAfterSalesList/Mock.js +362 -0
- package/src/components/JfbBaseBalance/Api.js +46 -0
- package/src/components/JfbBaseBalance/Attr.js +316 -0
- package/src/components/JfbBaseBalance/JfbBaseBalance.vue +336 -0
- package/src/components/JfbBaseBalance/JfbBaseBalanceLess.less +79 -0
- package/src/components/JfbBaseBalance/JfbBaseBalanceMixin.js +30 -0
- package/src/components/JfbBaseBalance/Mock.js +9 -0
- package/src/components/JfbBaseCardBindV2/JfbBaseCardBindV2.vue +4 -6
- package/src/components/JfbBaseCodeOpenVip/Api.js +35 -0
- package/src/components/JfbBaseCodeOpenVip/Attr.js +281 -0
- package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVip.vue +251 -0
- package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVipLess.less +79 -0
- package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVipMixin.js +30 -0
- package/src/components/JfbBaseCodeOpenVip/Mock.js +13 -0
- package/src/components/JfbBaseConPhone/JfbBaseConPhone.vue +10 -16
- package/src/components/JfbBaseConsumpCode/Api.js +133 -0
- package/src/components/JfbBaseConsumpCode/Attr.js +74 -0
- package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCode.vue +1111 -0
- package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCodeLess.less +79 -0
- package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCodeMixin.js +30 -0
- package/src/components/JfbBaseConsumpCode/Mock.js +22 -0
- package/src/components/JfbBaseFastLink/Attr.js +12 -1
- package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +66 -0
- package/src/components/JfbBaseFooter/Attr.js +12 -0
- package/src/components/JfbBaseFooter/JfbBaseFooter.vue +13 -0
- package/src/components/JfbBaseHeader/Attr.js +82 -0
- package/src/components/JfbBaseHeader/JfbBaseHeader.vue +47 -1
- package/src/components/JfbBaseHeaderColumn/Attr.js +82 -0
- package/src/components/JfbBaseHeaderColumn/JfbBaseHeaderColumn.vue +48 -2
- package/src/components/JfbBaseLogin/JfbBaseLogin.vue +23 -13
- package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwd.vue +6 -10
- package/src/components/JfbBaseLoginSetPwd/JfbBaseLoginSetPwd.vue +2 -16
- package/src/components/JfbBaseMapOverlay/JfbBaseMapOverlay.vue +3 -5
- package/src/components/JfbBaseNoticeDialog/Api.js +1 -1
- package/src/components/JfbBaseNoticeDialog/Attr.js +26 -0
- package/src/components/JfbBaseNoticeDialog/JfbBaseNoticeDialog.vue +38 -15
- package/src/components/JfbBaseNoticeGroup/Api.js +23 -0
- package/src/components/JfbBaseNoticeGroup/Attr.js +237 -0
- package/src/components/JfbBaseNoticeGroup/JfbBaseNoticeGroup.vue +174 -0
- package/src/components/JfbBaseNoticeGroup/JfbBaseNoticeGroupLess.less +79 -0
- package/src/components/JfbBaseNoticeGroup/JfbBaseNoticeGroupMixin.js +30 -0
- package/src/components/JfbBaseNoticeGroup/Mock.js +13 -0
- package/src/components/JfbBaseOpenVip/Api.js +39 -0
- package/src/components/JfbBaseOpenVip/Attr.js +331 -0
- package/src/components/JfbBaseOpenVip/JfbBaseOpenVip.vue +459 -0
- package/src/components/JfbBaseOpenVip/JfbBaseOpenVipLess.less +79 -0
- package/src/components/JfbBaseOpenVip/JfbBaseOpenVipMixin.js +30 -0
- package/src/components/JfbBaseOpenVip/Mock.js +7 -0
- package/src/components/JfbBaseOpenVip/XdVipList.vue +130 -0
- package/src/components/JfbBaseOpenVipCard/Api.js +58 -0
- package/src/components/JfbBaseOpenVipCard/Attr.js +48 -0
- package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCard.vue +111 -0
- package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCardLess.less +79 -0
- package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCardMixin.js +30 -0
- package/src/components/JfbBaseOpenVipCard/Mock.js +13 -0
- package/src/components/JfbBaseOpenVipDetail/Api.js +35 -0
- package/src/components/JfbBaseOpenVipDetail/Attr.js +37 -0
- package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetail.vue +234 -0
- package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetailLess.less +79 -0
- package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetailMixin.js +30 -0
- package/src/components/JfbBaseOpenVipDetail/Mock.js +15 -0
- package/src/components/JfbBaseOrderDetail/Attr.js +36 -0
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +211 -19
- package/src/components/JfbBaseOrderList/Api.js +11 -0
- package/src/components/JfbBaseOrderList/Attr.js +36 -0
- package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +50 -2
- package/src/components/JfbBaseOrderList/Mock.js +1 -1
- package/src/components/JfbBaseOrderList/XdTfkOrderItem.vue +17 -5
- package/src/components/JfbBasePay/Attr.js +52 -0
- package/src/components/JfbBasePay/JfbBasePay.vue +42 -41
- package/src/components/JfbBasePay/Mock.js +0 -9
- package/src/components/JfbBasePersonalData/Api.js +26 -0
- package/src/components/JfbBasePersonalData/Attr.js +13 -0
- package/src/components/JfbBasePersonalData/JfbBasePersonalData.vue +278 -0
- package/src/components/JfbBasePersonalData/JfbBasePersonalDataLess.less +79 -0
- package/src/components/JfbBasePersonalData/JfbBasePersonalDataMixin.js +30 -0
- package/src/components/JfbBasePersonalData/Mock.js +13 -0
- package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +5 -21
- package/src/components/JfbBasePhoneLogin/JfbBasePhoneLogin.vue +40 -31
- package/src/components/JfbBasePointsCard/Api.js +18 -0
- package/src/components/JfbBasePointsCard/Attr.js +187 -0
- package/src/components/JfbBasePointsCard/JfbBasePointsCard.vue +212 -0
- package/src/components/JfbBasePointsCard/JfbBasePointsCardLess.less +79 -0
- package/src/components/JfbBasePointsCard/JfbBasePointsCardMixin.js +30 -0
- package/src/components/JfbBasePointsCard/Mock.js +5 -0
- package/src/components/JfbBasePointsDetail/Api.js +48 -0
- package/src/components/JfbBasePointsDetail/Attr.js +305 -0
- package/src/components/JfbBasePointsDetail/JfbBasePointsDetail.vue +267 -0
- package/src/components/JfbBasePointsDetail/JfbBasePointsDetailLess.less +79 -0
- package/src/components/JfbBasePointsDetail/JfbBasePointsDetailMixin.js +30 -0
- package/src/components/JfbBasePointsDetail/Mock.js +6 -0
- package/src/components/JfbBasePoster/Attr.js +1 -1
- package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +2 -2
- package/src/components/JfbBasePosterGroup/Api.js +22 -0
- package/src/components/JfbBasePosterGroup/Attr.js +156 -0
- package/src/components/JfbBasePosterGroup/JfbBasePosterGroup.vue +268 -0
- package/src/components/JfbBasePosterGroup/JfbBasePosterGroupLess.less +79 -0
- package/src/components/JfbBasePosterGroup/JfbBasePosterGroupMixin.js +30 -0
- package/src/components/JfbBasePosterGroup/Mock.js +13 -0
- package/src/components/JfbBaseSavingDetail/Api.js +41 -0
- package/src/components/JfbBaseSavingDetail/Attr.js +70 -0
- package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetail.vue +724 -0
- package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetailLess.less +79 -0
- package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetailMixin.js +30 -0
- package/src/components/JfbBaseSavingDetail/Mock.js +10 -0
- package/src/components/JfbBaseSavingDetail/components/echarts.min.js +26 -0
- package/src/components/JfbBaseSavingDetail/components/echarts.vue +254 -0
- package/src/components/JfbBaseSavingDetail/components/wx-canvas.js +105 -0
- package/src/components/JfbBaseShare/Api.js +20 -0
- package/src/components/JfbBaseShare/Attr.js +59 -0
- package/src/components/JfbBaseShare/JfbBaseShare.vue +282 -0
- package/src/components/JfbBaseShare/JfbBaseShareLess.less +79 -0
- package/src/components/JfbBaseShare/JfbBaseShareMixin.js +30 -0
- package/src/components/JfbBaseShare/Mock.js +16 -0
- package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +14 -3
- package/src/components/JfbBaseTfkCardBind/JfbBaseTfkCardBind.vue +11 -18
- package/src/components/JfbBaseTfkSearch/ContentProduct.vue +12 -22
- package/src/components/JfbBaseTfkSearch/JfbBaseTfkSearch.vue +12 -1
- package/src/components/JfbBaseTfkSearch/Mock.js +51 -3
- package/src/components/JfbBaseTfkSearch/listMixins.js +2 -1
- package/src/components/JfbBaseUserInfo/Attr.js +175 -11
- package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +342 -119
- package/src/components/JfbBaseUserOrder/Attr.js +16 -0
- package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +11 -2
- package/src/components/JfbBaseWalletItem/JfbBaseWalletItem.vue +3 -5
- package/src/components/JfbBaseWithDrawAgain/Api.js +41 -0
- package/src/components/JfbBaseWithDrawAgain/Attr.js +92 -0
- package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgain.vue +354 -0
- package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgainLess.less +79 -0
- package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgainMixin.js +30 -0
- package/src/components/JfbBaseWithDrawAgain/Mock.js +10 -0
- package/src/components/JfbBaseWithDrawRecord/Api.js +19 -0
- package/src/components/JfbBaseWithDrawRecord/Attr.js +79 -0
- package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecord.vue +233 -0
- package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecordLess.less +79 -0
- package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecordMixin.js +30 -0
- package/src/components/JfbBaseWithDrawRecord/Mock.js +7 -0
- package/src/components/JfbBaseWithdraw/Api.js +48 -0
- package/src/components/JfbBaseWithdraw/Attr.js +328 -0
- package/src/components/JfbBaseWithdraw/JfbBaseWithdraw.vue +272 -0
- package/src/components/JfbBaseWithdraw/JfbBaseWithdrawLess.less +79 -0
- package/src/components/JfbBaseWithdraw/JfbBaseWithdrawMixin.js +30 -0
- package/src/components/JfbBaseWithdraw/Mock.js +7 -0
- package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorize.vue +10 -0
|
@@ -152,10 +152,19 @@
|
|
|
152
152
|
</view>
|
|
153
153
|
<view
|
|
154
154
|
class="jfb-base-order-list__body-order-item-pay"
|
|
155
|
-
v-if="item.buttons
|
|
155
|
+
v-if="isShowFooter(item.buttons)"
|
|
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
|
},
|
|
@@ -332,6 +347,7 @@ export default {
|
|
|
332
347
|
* @param container {object} 业务组件对象自己
|
|
333
348
|
*/
|
|
334
349
|
init(container) {
|
|
350
|
+
this.showApplyAfter = getContainerPropsValue(container, "content.showApplyAfter", "N");
|
|
335
351
|
this.margin = getContainerPropsValue(container, "content.margin", {top: 0, left: 0, right: 0, bottom: 0,});
|
|
336
352
|
this.radius = getContainerPropsValue(container, "content.radius", 0);
|
|
337
353
|
this.backgroundColor = getContainerPropsValue(container, "content.backgroundColor", "#f8f8f8");
|
|
@@ -360,6 +376,8 @@ export default {
|
|
|
360
376
|
|
|
361
377
|
this.detailPath = getContainerPropsValue(container, "content.detailPath", { value: "" }).value;
|
|
362
378
|
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;
|
|
363
381
|
this.layout_style = getContainerPropsValue(container, "content.layout_style", "old");
|
|
364
382
|
this.isShowOrderNo = getContainerPropsValue(container, "content.isShowOrderNo", "Y");
|
|
365
383
|
this.tabList = getContainerPropsValue(container, "content.orderTypeList", []).map((item) => {
|
|
@@ -403,7 +421,10 @@ export default {
|
|
|
403
421
|
},
|
|
404
422
|
});
|
|
405
423
|
},
|
|
406
|
-
|
|
424
|
+
isShowFooter(buttons){
|
|
425
|
+
if(this.showApplyAfter === 'Y') return buttons.length > 0;
|
|
426
|
+
else return buttons.filter(item => item.action !== 'apply_refund').length > 0;
|
|
427
|
+
},
|
|
407
428
|
handleBtnEvent(action, item) {
|
|
408
429
|
if (action === "cancel_unpaid") {
|
|
409
430
|
//取消订单
|
|
@@ -426,6 +447,32 @@ export default {
|
|
|
426
447
|
this.$xdUniHelper.navigateTo({
|
|
427
448
|
url: `${this.payPath}?order_id=${item.pay_order_id}&main_order_id=${item.main_order_id}`,
|
|
428
449
|
});
|
|
450
|
+
} else if( action === 'apply_refund'){
|
|
451
|
+
|
|
452
|
+
this.$xdShowLoading({});
|
|
453
|
+
jfbRootExec("getSupportQuickRefund", {
|
|
454
|
+
vm: this,
|
|
455
|
+
data: {
|
|
456
|
+
main_order_id: item.main_order_id
|
|
457
|
+
}
|
|
458
|
+
}).then(res => {
|
|
459
|
+
this.$xdHideLoading();
|
|
460
|
+
//普通退款
|
|
461
|
+
if(res.is_support_quick_refund !== "Y"){
|
|
462
|
+
this.$xdUniHelper.navigateTo({
|
|
463
|
+
url: `${this.refundPath}?order_id=${item.main_order_id}`,
|
|
464
|
+
});
|
|
465
|
+
}else{
|
|
466
|
+
//极速退款
|
|
467
|
+
this.$xdUniHelper.navigateTo({
|
|
468
|
+
url: `${this.refundFastPath}?order_id=${item.main_order_id}`,
|
|
469
|
+
});
|
|
470
|
+
}
|
|
471
|
+
}).catch(err => {
|
|
472
|
+
this.$xdHideLoading();
|
|
473
|
+
})
|
|
474
|
+
|
|
475
|
+
|
|
429
476
|
}
|
|
430
477
|
},
|
|
431
478
|
|
|
@@ -439,6 +486,7 @@ export default {
|
|
|
439
486
|
tab,
|
|
440
487
|
page_size: this.page_size,
|
|
441
488
|
page_token: this.page_token,
|
|
489
|
+
is_show_after_btn: this.showApplyAfter === 'Y' ? 1 : 0
|
|
442
490
|
},
|
|
443
491
|
})
|
|
444
492
|
.then((res) => {
|
|
@@ -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
|
-
<
|
|
87
|
-
v-
|
|
88
|
-
|
|
89
|
-
|
|
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{
|
|
@@ -8,6 +8,58 @@ export default {
|
|
|
8
8
|
advanced: [],
|
|
9
9
|
content: data=>{
|
|
10
10
|
return [
|
|
11
|
+
{
|
|
12
|
+
label: "仍需扣点文案:",
|
|
13
|
+
ele: "el-input",
|
|
14
|
+
valueKey: "text1",
|
|
15
|
+
value: data.text1 || "仍需扣点",
|
|
16
|
+
groupKey: "content",
|
|
17
|
+
inline: false,
|
|
18
|
+
className: "input80",
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
label: "(可使用多张票券点数)是否展示",
|
|
22
|
+
ele: 'xd-radio',
|
|
23
|
+
valueKey: "showText2",
|
|
24
|
+
value: data.showText2 || 'Y',
|
|
25
|
+
groupKey: "content",
|
|
26
|
+
inline: true,
|
|
27
|
+
list: [
|
|
28
|
+
{ label: "展示", value: "Y" },
|
|
29
|
+
{ label: "不展示", value: "N" },
|
|
30
|
+
],
|
|
31
|
+
},
|
|
32
|
+
data.showText2 === 'Y' && {
|
|
33
|
+
label: "(可使用多张票券点数)文案:",
|
|
34
|
+
ele: "el-input",
|
|
35
|
+
valueKey: "text2",
|
|
36
|
+
value: data.text2 || '(可使用多张票券点数)',
|
|
37
|
+
placeholder: '(可使用多张票券点数)',
|
|
38
|
+
groupKey: "content",
|
|
39
|
+
inline: false,
|
|
40
|
+
className: "input80",
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
label: "选择以下补差方式文案:",
|
|
44
|
+
ele: "el-input",
|
|
45
|
+
valueKey: "text3",
|
|
46
|
+
value: data.text3 || '选择以下补差方式',
|
|
47
|
+
groupKey: "content",
|
|
48
|
+
inline: false,
|
|
49
|
+
className: "input80",
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
label: "是否展示继续补差",
|
|
53
|
+
ele: "xd-radio",
|
|
54
|
+
valueKey: "showContinuePay",
|
|
55
|
+
value: data.showContinuePay || 'Y',
|
|
56
|
+
groupKey: "content",
|
|
57
|
+
inline: true,
|
|
58
|
+
list: [
|
|
59
|
+
{ label: "展示", value: "Y" },
|
|
60
|
+
{ label: "不展示", value: "N" },
|
|
61
|
+
],
|
|
62
|
+
},
|
|
11
63
|
...styleForm.getForm(data),
|
|
12
64
|
{
|
|
13
65
|
label: '支付成功跳转路径:', //label
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
<view class="remain_pay" v-if="payInfo.channel_amount > 0">
|
|
101
101
|
<view style="border-bottom: 2rpx solid #eee;" class="column-group">
|
|
102
102
|
<view class="column-item" style="padding: 30rpx 60rpx">
|
|
103
|
-
<view class="column_label"
|
|
103
|
+
<view class="column_label">{{text1}}<text v-if="showText2==='Y'" class="label_sub">{{ text2 }}</text></view>
|
|
104
104
|
<view class="column_value text-primary">
|
|
105
105
|
<xd-unit
|
|
106
106
|
:price="payInfo.channel_amount"
|
|
@@ -112,8 +112,8 @@
|
|
|
112
112
|
</view>
|
|
113
113
|
</view>
|
|
114
114
|
<view class="remain_header">
|
|
115
|
-
<view
|
|
116
|
-
<view class="flex align-center text-primary">
|
|
115
|
+
<view>{{ text3 }}</view>
|
|
116
|
+
<view v-if="showContinuePay==='Y'" class="flex align-center text-primary">
|
|
117
117
|
<view class="margin-right">继续补差</view>
|
|
118
118
|
<xd-unit
|
|
119
119
|
:price="payInfo.channel_amount"
|
|
@@ -146,11 +146,14 @@
|
|
|
146
146
|
<view class="bottom_btn-mask"></view>
|
|
147
147
|
<view v-if="is_can_pay==='Y'" class="bottom_btn" :style="prod_bottom">
|
|
148
148
|
<xd-button
|
|
149
|
-
width="
|
|
149
|
+
width="480rpx"
|
|
150
150
|
type="primary"
|
|
151
151
|
radius="50rpx"
|
|
152
152
|
@click="doThirdPay"
|
|
153
|
-
|
|
153
|
+
>
|
|
154
|
+
确认支付
|
|
155
|
+
¥{{ $xdUniHelper.divisionFloatNumber(payInfo.channel_amount, 100) }}
|
|
156
|
+
</xd-button>
|
|
154
157
|
</view>
|
|
155
158
|
</view>
|
|
156
159
|
</view>
|
|
@@ -174,6 +177,7 @@ import {isWechat,isWechatTools} from "@/utils/xd.base";
|
|
|
174
177
|
import color from "color";
|
|
175
178
|
const Color = require('color');
|
|
176
179
|
let styleForm = new StyleForm({bgColor: '#fafafa'}, getContainerPropsValue, 'pay', true);
|
|
180
|
+
import { mapState } from "vuex";
|
|
177
181
|
|
|
178
182
|
export default {
|
|
179
183
|
name: "JfbBasePay",
|
|
@@ -212,7 +216,12 @@ export default {
|
|
|
212
216
|
rechargeSuccessPath: "", //充值成功
|
|
213
217
|
...styleForm.getDataItem(),
|
|
214
218
|
borderColor:'rgba(0,0,0,0)',
|
|
215
|
-
options:{}
|
|
219
|
+
options:{},
|
|
220
|
+
text1: "",
|
|
221
|
+
text2: "",
|
|
222
|
+
text3: "",
|
|
223
|
+
showText2: "Y",
|
|
224
|
+
showContinuePay: "",
|
|
216
225
|
};
|
|
217
226
|
},
|
|
218
227
|
watch: {
|
|
@@ -222,6 +231,9 @@ export default {
|
|
|
222
231
|
},
|
|
223
232
|
},
|
|
224
233
|
computed: {
|
|
234
|
+
...mapState({
|
|
235
|
+
siteInfo: state => state.siteInfo,
|
|
236
|
+
}),
|
|
225
237
|
prod_bottom() {
|
|
226
238
|
return this.fixedStyle({ height: 0, zIndex: 111 });
|
|
227
239
|
},
|
|
@@ -262,6 +274,11 @@ export default {
|
|
|
262
274
|
* @param container {object} 业务组件对象自己
|
|
263
275
|
*/
|
|
264
276
|
init(container) {
|
|
277
|
+
this.text1 = getContainerPropsValue(container, 'content.text1', "仍需扣点");
|
|
278
|
+
this.text2 = getContainerPropsValue(container, 'content.text2', "(可使用多张票券点数)");
|
|
279
|
+
this.text3 = getContainerPropsValue(container, 'content.text3', "选择以下补差方式");
|
|
280
|
+
this.showText2 = getContainerPropsValue(container, 'content.showText2', "Y");
|
|
281
|
+
this.showContinuePay = getContainerPropsValue(container, 'content.showContinuePay', 'Y');
|
|
265
282
|
this.paySuccessPath = getContainerPropsValue(
|
|
266
283
|
container,
|
|
267
284
|
"content.pay_success_path",
|
|
@@ -302,11 +319,10 @@ export default {
|
|
|
302
319
|
this.is_can_pay = is_can_pay;
|
|
303
320
|
this.can_pay_message = can_pay_message;
|
|
304
321
|
if(is_can_pay !== "Y"){
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
zIndex: 5000
|
|
322
|
+
uni.showToast({
|
|
323
|
+
title: can_pay_message,
|
|
324
|
+
icon: 'none',
|
|
325
|
+
duration: 3000
|
|
310
326
|
});
|
|
311
327
|
reject();
|
|
312
328
|
// this.$xdNavigateBack()
|
|
@@ -369,11 +385,9 @@ export default {
|
|
|
369
385
|
let {login_providers = []} = this.projectAttr;
|
|
370
386
|
console.log(this.projectAttr)
|
|
371
387
|
if (+payInfo.channel_amount > 0 && !this.channel_provider_id) {
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
isClose: false,
|
|
376
|
-
zIndex: 5000
|
|
388
|
+
uni.showToast({
|
|
389
|
+
title: "请选择支付方式",
|
|
390
|
+
icon: "none",
|
|
377
391
|
});
|
|
378
392
|
return false;
|
|
379
393
|
}
|
|
@@ -445,32 +459,23 @@ export default {
|
|
|
445
459
|
success: (res) => {
|
|
446
460
|
this.$xdLog.setARMSInfo({options:this.options, res}, 'pay_success');
|
|
447
461
|
console.log("pay success", res);
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
time: 2500,
|
|
451
|
-
isClose: false,
|
|
452
|
-
zIndex: 5000
|
|
462
|
+
uni.showToast({
|
|
463
|
+
title: "支付成功",
|
|
453
464
|
});
|
|
454
465
|
cb(res);
|
|
455
466
|
},
|
|
456
467
|
cancel: () => {
|
|
457
468
|
this.$xdLog.setARMSInfo(this.options, 'cancel_pay');
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
time: 2500,
|
|
461
|
-
isClose: false,
|
|
462
|
-
zIndex: 5000
|
|
469
|
+
uni.showToast({
|
|
470
|
+
title: "取消支付",
|
|
463
471
|
});
|
|
464
472
|
},
|
|
465
473
|
fail: (error) => {
|
|
466
474
|
if (typeof error === 'string') error = {error: error}
|
|
467
475
|
if (window['jwxJfbSDKParams']) error = Object.assign(error, paySignData, window['jwxJfbSDKParams'])
|
|
468
476
|
this.$xdLog.setARMSError(error)
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
time: 2500,
|
|
472
|
-
isClose: false,
|
|
473
|
-
zIndex: 5000
|
|
477
|
+
uni.showToast({
|
|
478
|
+
title: "支付失败",
|
|
474
479
|
});
|
|
475
480
|
},
|
|
476
481
|
});
|
|
@@ -480,11 +485,9 @@ export default {
|
|
|
480
485
|
...paySignData,
|
|
481
486
|
success: (res) => {
|
|
482
487
|
this.$xdLog.setARMSInfo({options: this.options, res}, 'pay_success');
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
isClose: false,
|
|
487
|
-
zIndex: 5000
|
|
488
|
+
uni.showToast({
|
|
489
|
+
title: "支付成功",
|
|
490
|
+
icon: "none",
|
|
488
491
|
});
|
|
489
492
|
cb(res);
|
|
490
493
|
},
|
|
@@ -493,11 +496,9 @@ export default {
|
|
|
493
496
|
options: this.options,
|
|
494
497
|
error: JSON.stringify(err)
|
|
495
498
|
});
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
isClose: false,
|
|
500
|
-
zIndex: 5000
|
|
499
|
+
uni.showToast({
|
|
500
|
+
title: "支付失败",
|
|
501
|
+
icon: "none",
|
|
501
502
|
});
|
|
502
503
|
},
|
|
503
504
|
});
|
|
@@ -24,15 +24,6 @@ module.exports = {
|
|
|
24
24
|
"card_use_price": 10000,
|
|
25
25
|
"use_card_point": "5000"
|
|
26
26
|
},
|
|
27
|
-
{
|
|
28
|
-
"card_number": "101001000005195",
|
|
29
|
-
"card_type_name": "聚福宝福卡测试蛋糕",
|
|
30
|
-
"end_time": 1679034403,
|
|
31
|
-
"card_point": 5000,
|
|
32
|
-
"is_bind_card": true,
|
|
33
|
-
"card_use_price": 10000,
|
|
34
|
-
"use_card_point": "5000"
|
|
35
|
-
},
|
|
36
27
|
],
|
|
37
28
|
},
|
|
38
29
|
getBaseOrderStatus:{},
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
/**
|
|
3
|
+
* @description 接口配置,
|
|
4
|
+
* 在设置方法名字当时候,别忘记加上【模块名字】:Personal
|
|
5
|
+
* @type {*[]}
|
|
6
|
+
*/
|
|
7
|
+
module.exports = [
|
|
8
|
+
{
|
|
9
|
+
mapFnName: 'getBasePersonInfo',
|
|
10
|
+
title: '获取用户信息',
|
|
11
|
+
path: '/passport/v1/user/get',
|
|
12
|
+
params: {},
|
|
13
|
+
isRule: false,
|
|
14
|
+
isConsole: true,
|
|
15
|
+
disabled: true,
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
mapFnName: 'setBasePersonInfo',
|
|
19
|
+
title: '获取用户信息',
|
|
20
|
+
path: '/passport/v1/user/update-user-info',
|
|
21
|
+
data: {},
|
|
22
|
+
isRule: false,
|
|
23
|
+
isConsole: true,
|
|
24
|
+
disabled: true,
|
|
25
|
+
}
|
|
26
|
+
];
|