jufubao-base 1.0.243-beta201 → 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/JfbBaseAfterSales/JfbBaseAfterSales.vue +40 -3
- package/src/components/JfbBaseAfterSales/Mock.js +2 -9
- package/src/components/JfbBaseAfterSalesDetail/JfbBaseAfterSalesDetail.vue +12 -3
- package/src/components/JfbBaseAfterSalesDetail/secProd.vue +9 -1
- package/src/components/JfbBaseAfterSalesList/Attr.js +23 -0
- package/src/components/JfbBaseAfterSalesList/JfbBaseAfterSalesList.vue +31 -6
- 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/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/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 +17 -3
- 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/JfbBaseOrderDetail.vue +191 -19
- package/src/components/JfbBaseOrderList/Api.js +11 -0
- package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +31 -13
- package/src/components/JfbBasePay/Attr.js +52 -0
- package/src/components/JfbBasePay/JfbBasePay.vue +23 -6
- 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/JfbBasePhoneLogin/JfbBasePhoneLogin.vue +11 -1
- 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/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/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
|
@@ -21,6 +21,21 @@ export default {
|
|
|
21
21
|
groupKey:'advanced',
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
|
+
label: '是否展示我的订单:',
|
|
25
|
+
ele: 'xd-radio',
|
|
26
|
+
valueKey: 'isShowMyOrder',
|
|
27
|
+
value: data['isShowMyOrder'] || 'Y',
|
|
28
|
+
placeholder: '请选择是否展示我的订单',
|
|
29
|
+
groupKey:'content',
|
|
30
|
+
multiple: false,
|
|
31
|
+
labelInline:true,
|
|
32
|
+
className: 'input80',
|
|
33
|
+
list: [
|
|
34
|
+
{label: '展示', value: 'Y'},
|
|
35
|
+
{label: '隐藏', value: 'N'},
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
data['isShowMyOrder']==='Y'&&{
|
|
24
39
|
label: '我的订单自定义名称:',
|
|
25
40
|
ele: 'el-input',
|
|
26
41
|
type: 'text',
|
|
@@ -101,6 +116,7 @@ export default {
|
|
|
101
116
|
{"label": "待收货", "value": 'unreceived'},
|
|
102
117
|
{"label": "已取消", "value": 'cancel'},
|
|
103
118
|
{"label": "已完成", "value": 'com'},
|
|
119
|
+
{"label": "售后", "value": 'afterSale'},
|
|
104
120
|
])
|
|
105
121
|
}
|
|
106
122
|
},
|
|
@@ -16,8 +16,9 @@
|
|
|
16
16
|
<view class="jfb-base-user-order__body">
|
|
17
17
|
<view class="x-line"></view>
|
|
18
18
|
<view :style="[bodyStyleComp]" v-if="list.length > 0">
|
|
19
|
-
<view class="my-order__add" :style="[titleMarginComp]">
|
|
20
|
-
<view :style="[titleStyleComp]">{{myOrderName}}</view>
|
|
19
|
+
<view v-if="isShowMyOrder==='Y'||isShowBtn === 'Y'" class="my-order__add" :style="[titleMarginComp]">
|
|
20
|
+
<view v-if="isShowMyOrder==='Y'" :style="[titleStyleComp]">{{myOrderName}}</view>
|
|
21
|
+
<view v-else></view>
|
|
21
22
|
<view
|
|
22
23
|
v-if="isShowBtn === 'Y'"
|
|
23
24
|
@click="handleToLink(afterUrl)"
|
|
@@ -179,6 +180,7 @@
|
|
|
179
180
|
cardNameColor: '#333',
|
|
180
181
|
titleStyle: {},
|
|
181
182
|
titleMargin:{},
|
|
183
|
+
isShowMyOrder: '',
|
|
182
184
|
|
|
183
185
|
//售后订单
|
|
184
186
|
isShowBtn:'Y',
|
|
@@ -274,6 +276,7 @@
|
|
|
274
276
|
|
|
275
277
|
|
|
276
278
|
//标题
|
|
279
|
+
this.isShowMyOrder = getContainerPropsValue(container, 'content.isShowMyOrder', 'Y');
|
|
277
280
|
this.myOrderName = getContainerPropsValue(container, 'content.myOrderName', '我的订单')
|
|
278
281
|
this.titleStyle = getContainerPropsValue(container, 'content.titleStyle', {});
|
|
279
282
|
this.titleMargin = getContainerPropsValue(container,'content.titleMargin', {})
|
|
@@ -333,6 +336,12 @@
|
|
|
333
336
|
|
|
334
337
|
handleToLink(path, type) {
|
|
335
338
|
if (this.$configProject['isPreview']) return;
|
|
339
|
+
if(type==='afterSale'){
|
|
340
|
+
this.$xdUniHelper.navigateTo({
|
|
341
|
+
url: this.afterUrl
|
|
342
|
+
})
|
|
343
|
+
return
|
|
344
|
+
}
|
|
336
345
|
this.$xdUniHelper.navigateTo({
|
|
337
346
|
url: type ? `${path}?type=${type}` : path
|
|
338
347
|
})
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
/**
|
|
3
|
+
* @description 接口配置,
|
|
4
|
+
* 在设置方法名字当时候,别忘记加上【模块名字】:With
|
|
5
|
+
* @type {*[]}
|
|
6
|
+
*/
|
|
7
|
+
module.exports = [
|
|
8
|
+
{
|
|
9
|
+
mapFnName: 'cancelWithdraw',
|
|
10
|
+
title: '用户资产 - 提现取消',
|
|
11
|
+
path: '/pay/v1/property/withdraw-order/cancel',
|
|
12
|
+
isRule: false,
|
|
13
|
+
data: {
|
|
14
|
+
order_id: ['提现订单号', 'Number', '必选'],
|
|
15
|
+
},
|
|
16
|
+
isConsole: true,
|
|
17
|
+
disabled: true,
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
mapFnName: 'getWithdrawOrderDetail',
|
|
21
|
+
title: '用户资产 - 提现订单详情',
|
|
22
|
+
path: '/pay/v1/property/withdraw-order/detail',
|
|
23
|
+
isRule: false,
|
|
24
|
+
params: {
|
|
25
|
+
order_id: ['提现订单号', 'Number', '必选'],
|
|
26
|
+
},
|
|
27
|
+
isConsole: true,
|
|
28
|
+
disabled: true,
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
mapFnName: 'getWithdrawThirdPlaceOrderList',
|
|
32
|
+
title: '用户资产 - 提现渠道下单',
|
|
33
|
+
path: '/pay/v1/property/withdraw-order/third-place',
|
|
34
|
+
isRule: false,
|
|
35
|
+
params: {
|
|
36
|
+
order_id: ['提现订单号', 'Number', '必选'],
|
|
37
|
+
},
|
|
38
|
+
isConsole: true,
|
|
39
|
+
disabled: true,
|
|
40
|
+
},
|
|
41
|
+
];
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @description 当表单组件中有联动操作时候,使用方法进行返回
|
|
5
|
+
*/
|
|
6
|
+
export default {
|
|
7
|
+
style: [],
|
|
8
|
+
content: (data) => {
|
|
9
|
+
return [
|
|
10
|
+
{
|
|
11
|
+
label: '外边距:',
|
|
12
|
+
ele: 'xd-margin-padding',
|
|
13
|
+
valueKey: 'bodyMargin',
|
|
14
|
+
groupKey: 'style',
|
|
15
|
+
value: data['bodyMargin'] || null,
|
|
16
|
+
setting: {
|
|
17
|
+
type: 'margin',
|
|
18
|
+
},
|
|
19
|
+
placeholder: '请设置外边距',
|
|
20
|
+
inline: false,
|
|
21
|
+
notice: '设置外边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">0</span>像素',
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
label: '外填充:',
|
|
25
|
+
ele: 'xd-margin-padding',
|
|
26
|
+
valueKey: 'bodyPadding',
|
|
27
|
+
groupKey: 'style',
|
|
28
|
+
value: data['bodyPadding'] || null,
|
|
29
|
+
setting: {
|
|
30
|
+
type: 'padding',
|
|
31
|
+
},
|
|
32
|
+
placeholder: '请设置外填充',
|
|
33
|
+
inline: false,
|
|
34
|
+
notice: '设置填充值,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
label: '圆角设置:',
|
|
38
|
+
ele: 'xd-site-select-list',
|
|
39
|
+
valueKey: 'radius',
|
|
40
|
+
value: data['radius'] || '20',
|
|
41
|
+
labelInline: true,
|
|
42
|
+
groupKey: 'style',
|
|
43
|
+
placeholder: '请选择圆角设置',
|
|
44
|
+
multiple: false,
|
|
45
|
+
className: 'input60',
|
|
46
|
+
handleCustom({ action, data }) {
|
|
47
|
+
XdBus.getParentApi('getOptionsSettingList')({
|
|
48
|
+
setting_id: 'edtix_style_radius',
|
|
49
|
+
key: Date.now()
|
|
50
|
+
})
|
|
51
|
+
.then(res => {
|
|
52
|
+
data.cb(res.list)
|
|
53
|
+
})
|
|
54
|
+
.catch(error => {
|
|
55
|
+
console.error(error);
|
|
56
|
+
});
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
label: "边框设置:",
|
|
61
|
+
ele: "xd-border",
|
|
62
|
+
valueKey: "bodyBorder",
|
|
63
|
+
value: data['bodyBorder'] || { type: 'Y', value: { color: '#eee', style: "solid", width: '1' } },
|
|
64
|
+
className: 'input80',
|
|
65
|
+
groupKey: 'style',
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
label: '背景颜色:',
|
|
69
|
+
ele: 'xd-color',
|
|
70
|
+
valueKey: 'bgColor',
|
|
71
|
+
groupKey: 'style',
|
|
72
|
+
value: data['bgColor'] || null,
|
|
73
|
+
placeholder: '请选择背景颜色',
|
|
74
|
+
labelInline: true,
|
|
75
|
+
classNmae: 'input80',
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
label: '提现成功路径:',
|
|
79
|
+
ele: 'xd-select-pages-path',
|
|
80
|
+
valueKey: 'withDrawSuccessPath',
|
|
81
|
+
groupKey: 'advanced',
|
|
82
|
+
placeholder: '请选择提现成功路径',
|
|
83
|
+
value: data['withDrawSuccessPath'] || {},
|
|
84
|
+
setting: {
|
|
85
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
86
|
+
},
|
|
87
|
+
inline: false,
|
|
88
|
+
},
|
|
89
|
+
].filter(i => i)
|
|
90
|
+
},
|
|
91
|
+
advanced: [],
|
|
92
|
+
};
|
|
@@ -0,0 +1,354 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view class="jfb-base-with-draw-again" @click="handleEditxSelect" :class="{ editx : isEditx && active }">
|
|
3
|
+
<!--#ifdef H5-->
|
|
4
|
+
<view class="jfb-base-with-draw-again__edit" :class="{ editx : isEditx && active }" v-if="isEditx && active">
|
|
5
|
+
<view class="jfb-base-with-draw-again__edit-icon" @click="delEdit">删除</view>
|
|
6
|
+
</view>
|
|
7
|
+
<!-- #endif -->
|
|
8
|
+
<view class="jfb-base-with-draw-again__body" :style="{minHeight: layoutInfo.bodyMinHeight}">
|
|
9
|
+
<view :style="[bodyStyleComp]">
|
|
10
|
+
<view class="jfb-base-with-draw-again__body-title">
|
|
11
|
+
<view>提现金额</view>
|
|
12
|
+
</view>
|
|
13
|
+
<view class="jfb-base-with-draw-again__body-amount">
|
|
14
|
+
{{getAmout(info.total_amount)}}
|
|
15
|
+
</view>
|
|
16
|
+
</view>
|
|
17
|
+
<view class="jfb-base-with-draw-again__body-tips">
|
|
18
|
+
<image :src="logo"></image>
|
|
19
|
+
<!-- <XdFontIcon size="60" color="#28C445" style="margin-right:20rpx" icon="iconwx"></XdFontIcon> -->
|
|
20
|
+
提现至{{channel_name}}
|
|
21
|
+
</view>
|
|
22
|
+
<view v-if="info.status==='N'" class="fixe_bottom" :style="prod_bottom">
|
|
23
|
+
<XdButton v-if="showDisabled" disabled fontSize="32" type="primary">确认提现</XdButton>
|
|
24
|
+
<XdButton v-else fontSize="32" type="primary" @click="handleWithDraw">确认提现</XdButton>
|
|
25
|
+
<view @click="handleCancelWithDraw">取消提现</view>
|
|
26
|
+
</view>
|
|
27
|
+
<XdDailog :radius="30" :showClose="false" :show.sync="showSuccess">
|
|
28
|
+
<template slot="title">
|
|
29
|
+
<view class="dialog-title">
|
|
30
|
+
<view>
|
|
31
|
+
提现成功
|
|
32
|
+
</view>
|
|
33
|
+
<XdFontIcon class="close" color="#333" size="26" icon="icondanchuangguanbi_xian"></XdFontIcon>
|
|
34
|
+
</view>
|
|
35
|
+
</template>
|
|
36
|
+
<template>
|
|
37
|
+
<XdFontIcon color="#00C800" size="96" icon="iconchenggong"></XdFontIcon>
|
|
38
|
+
<view class="dialog-content">成功提现 500 积分</view>
|
|
39
|
+
</template>
|
|
40
|
+
<template slot="btn">
|
|
41
|
+
<XdButton width="600" @click="handleWithDrawSuccess" type="primary" fontSize="32" style="width:100%">确定
|
|
42
|
+
</XdButton>
|
|
43
|
+
</template>
|
|
44
|
+
</XdDailog>
|
|
45
|
+
</view>
|
|
46
|
+
</view>
|
|
47
|
+
</template>
|
|
48
|
+
|
|
49
|
+
<script>
|
|
50
|
+
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
51
|
+
import XdDailog from "@/components/XdDailog/XdDailog";
|
|
52
|
+
import XdButton from "@/components/XdButton/XdButton";
|
|
53
|
+
import { jfbRootExec } from "@/utils/xd.event";
|
|
54
|
+
import JfbBaseWithDrawAgainMixin from "./JfbBaseWithDrawAgainMixin";
|
|
55
|
+
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
56
|
+
import componentsMixins from "@/mixins/componentsMixins";
|
|
57
|
+
import extsMixins from "@/mixins/extsMixins";
|
|
58
|
+
export default {
|
|
59
|
+
name: "JfbBaseWithDrawAgain",
|
|
60
|
+
components: {
|
|
61
|
+
XdFontIcon,
|
|
62
|
+
XdDailog,
|
|
63
|
+
XdButton
|
|
64
|
+
},
|
|
65
|
+
mixins: [
|
|
66
|
+
componentsMixins, extsMixins, JfbBaseWithDrawAgainMixin
|
|
67
|
+
],
|
|
68
|
+
data() {
|
|
69
|
+
return {
|
|
70
|
+
radius: 0,
|
|
71
|
+
margin: {},
|
|
72
|
+
padding: {},
|
|
73
|
+
bgColor: '',
|
|
74
|
+
bodyBorder: {},
|
|
75
|
+
showSuccess: false,
|
|
76
|
+
order_id: '',
|
|
77
|
+
info: {},
|
|
78
|
+
channel_name: '',
|
|
79
|
+
logo: '',
|
|
80
|
+
withDrawSuccessPath: '',
|
|
81
|
+
jwxSDK: null,
|
|
82
|
+
showDisabled: false
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
computed: {
|
|
86
|
+
bodyStyleComp() {
|
|
87
|
+
return {
|
|
88
|
+
borderRadius: `${this.radius}rpx`,
|
|
89
|
+
margin: this.getMarginAndPadding(this.margin, 20),
|
|
90
|
+
padding: this.getMarginAndPadding(this.padding, 40),
|
|
91
|
+
background: this.bgColor,
|
|
92
|
+
border: this.bodyBorder,
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
prod_bottom() {
|
|
96
|
+
return this.fixedStyle({ height: 0, zIndex: 111, paddingBottom: 70 });
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
watch: {
|
|
100
|
+
container(value, oldValue) {
|
|
101
|
+
if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
102
|
+
if (this.$configProject['isPreview']) this.init(value)
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
created() {
|
|
106
|
+
console.log(this.$configProject,this.settings.index,'apapapa');
|
|
107
|
+
|
|
108
|
+
this.init(this.container);
|
|
109
|
+
},
|
|
110
|
+
methods: {
|
|
111
|
+
onJfbLoad(options) {
|
|
112
|
+
this.order_id = options.order_id;
|
|
113
|
+
this.getOrderDetail()
|
|
114
|
+
// #ifdef H5
|
|
115
|
+
this.p_getH5WxAuthorize()
|
|
116
|
+
// #endif
|
|
117
|
+
},
|
|
118
|
+
p_getH5WxAuthorize() {
|
|
119
|
+
jfbRootExec("getH5WxAuthorize", {
|
|
120
|
+
vm: this,
|
|
121
|
+
data: { jsApiList: ["requestMerchantTransfer"] },
|
|
122
|
+
})
|
|
123
|
+
.then((res) => {
|
|
124
|
+
console.log(res, 'appapa');
|
|
125
|
+
this.jwxSDK = res.jwxSDK;
|
|
126
|
+
|
|
127
|
+
})
|
|
128
|
+
.catch(error => {
|
|
129
|
+
this.$xdAlert({
|
|
130
|
+
content: error,
|
|
131
|
+
});
|
|
132
|
+
});
|
|
133
|
+
},
|
|
134
|
+
getAmout(amount) {
|
|
135
|
+
return this.$xdUniHelper.divisionFloatNumber(amount, 100)
|
|
136
|
+
},
|
|
137
|
+
getOrderDetail() {
|
|
138
|
+
jfbRootExec("getWithdrawOrderDetail", {
|
|
139
|
+
vm: this,
|
|
140
|
+
data: {
|
|
141
|
+
order_id: this.order_id
|
|
142
|
+
},
|
|
143
|
+
}).then(res => {
|
|
144
|
+
this.info = res.detail;
|
|
145
|
+
this.channel_name = res.channel_name;
|
|
146
|
+
this.logo = res.logo;
|
|
147
|
+
}).catch(err => {
|
|
148
|
+
console.log(err, 'err')
|
|
149
|
+
})
|
|
150
|
+
},
|
|
151
|
+
/**
|
|
152
|
+
* @description 监听事件变化
|
|
153
|
+
* @param container {object} 业务组件对象自己
|
|
154
|
+
*/
|
|
155
|
+
init(container) {
|
|
156
|
+
this.radius = getContainerPropsValue(container, 'content.radius', 20);
|
|
157
|
+
this.margin = getContainerPropsValue(container, 'content.bodyMargin', {});
|
|
158
|
+
this.padding = getContainerPropsValue(container, 'content.bodyPadding', {});
|
|
159
|
+
this.bgColor = getContainerPropsValue(container, 'content.bgColor', '#fff');
|
|
160
|
+
this.bodyBorder = this.getXdBorder({}, getContainerPropsValue(container, 'content.bodyBorder', {}))
|
|
161
|
+
this.withDrawSuccessPath = getContainerPropsValue(container, 'content.withDrawSuccessPath', { value: '' }).value;
|
|
162
|
+
},
|
|
163
|
+
handleWithDraw() {
|
|
164
|
+
this.showDisabled = true
|
|
165
|
+
jfbRootExec("getWithdrawThirdPlaceOrderList", {
|
|
166
|
+
vm: this,
|
|
167
|
+
data: {
|
|
168
|
+
order_id: this.order_id
|
|
169
|
+
},
|
|
170
|
+
}).then(res => {
|
|
171
|
+
//调用微信js
|
|
172
|
+
let that= this;
|
|
173
|
+
//#ifdef MP-WEIXIN
|
|
174
|
+
if (wx.canIUse('requestMerchantTransfer')) {
|
|
175
|
+
wx.requestMerchantTransfer({
|
|
176
|
+
mchId: res.mch_id,
|
|
177
|
+
appId: res.app_id,
|
|
178
|
+
package: res.channel_data,
|
|
179
|
+
success: (request) => {
|
|
180
|
+
console.log('success:', request);
|
|
181
|
+
if(that.withDrawSuccessPath){
|
|
182
|
+
that.$xdUniHelper.navigateTo({ url: that.withDrawSuccessPath })
|
|
183
|
+
} else {
|
|
184
|
+
that.$xdUniHelper.navigateTo({ url: that.settings.index })
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
fail: (request) => {
|
|
188
|
+
this.showDisabled = false
|
|
189
|
+
console.log('fail:', request);
|
|
190
|
+
},
|
|
191
|
+
});
|
|
192
|
+
} else {
|
|
193
|
+
this.showDisabled = false
|
|
194
|
+
wx.showModal({
|
|
195
|
+
content: '你的微信版本过低,请更新至最新版本。',
|
|
196
|
+
showCancel: false,
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
//#endif
|
|
200
|
+
//#ifdef H5
|
|
201
|
+
this.jwxSDK.checkJsApi({
|
|
202
|
+
jsApiList: ['requestMerchantTransfer'],
|
|
203
|
+
success: function (request) {
|
|
204
|
+
if (request.checkResult['requestMerchantTransfer']) {
|
|
205
|
+
WeixinJSBridge.invoke('requestMerchantTransfer', {
|
|
206
|
+
mchId: res.mch_id,
|
|
207
|
+
appId: res.app_id,
|
|
208
|
+
package: res.channel_data,
|
|
209
|
+
},
|
|
210
|
+
function (request) {
|
|
211
|
+
if (request.err_msg === 'requestMerchantTransfer:ok') {
|
|
212
|
+
console.log(request,that.withDrawSuccessPath,'requestrequestrequest');
|
|
213
|
+
if(that.withDrawSuccessPath){
|
|
214
|
+
that.$xdUniHelper.navigateTo({ url: that.withDrawSuccessPath })
|
|
215
|
+
} else {
|
|
216
|
+
that.$xdUniHelper.navigateTo({ url: that.settings.index })
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
);
|
|
221
|
+
} else {
|
|
222
|
+
this.showDisabled = false
|
|
223
|
+
alert('你的微信版本过低,请更新至最新版本。');
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
})
|
|
227
|
+
//#endif
|
|
228
|
+
}).catch(err=>{
|
|
229
|
+
this.showDisabled = false
|
|
230
|
+
})
|
|
231
|
+
},
|
|
232
|
+
handleCancelWithDraw() {
|
|
233
|
+
jfbRootExec("cancelWithdraw", {
|
|
234
|
+
vm: this,
|
|
235
|
+
data: {
|
|
236
|
+
order_id: this.order_id
|
|
237
|
+
},
|
|
238
|
+
}).then(res => {
|
|
239
|
+
this.$xdUniHelper.navigateBack();
|
|
240
|
+
})
|
|
241
|
+
},
|
|
242
|
+
handleWithDrawSuccess() {
|
|
243
|
+
this.showSuccess = false;
|
|
244
|
+
this.$xdUniHelper.navigateTo({ url: `${this.withDrawSuccessPath}` })
|
|
245
|
+
},
|
|
246
|
+
onJfbScroll(options) {
|
|
247
|
+
console.log('event.onJfbScroll', options)
|
|
248
|
+
},
|
|
249
|
+
onJfbReachBottom(options) {
|
|
250
|
+
console.log('event.onJfbReachBottom', options)
|
|
251
|
+
},
|
|
252
|
+
onJfbShow(options) {
|
|
253
|
+
console.log('event.onJfbShow', options)
|
|
254
|
+
},
|
|
255
|
+
onJfbHide(options) {
|
|
256
|
+
console.log('event.onJfbHide', options)
|
|
257
|
+
},
|
|
258
|
+
onJfbBack(options) {
|
|
259
|
+
console.log('event.onJfbBack', options)
|
|
260
|
+
},
|
|
261
|
+
onJfbUpdate(...data) {
|
|
262
|
+
console.log('event.onJfbUpdate', data)
|
|
263
|
+
},
|
|
264
|
+
onJfbCustomEvent(options) {
|
|
265
|
+
console.log('event.onJfbReachBottom', options)
|
|
266
|
+
},
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
</script>
|
|
271
|
+
|
|
272
|
+
<style scoped lang="less">
|
|
273
|
+
@import "./JfbBaseWithDrawAgainLess.less";
|
|
274
|
+
|
|
275
|
+
.jfb-base-with-draw-again {
|
|
276
|
+
&__body {
|
|
277
|
+
&-title {
|
|
278
|
+
display: flex;
|
|
279
|
+
align-items: center;
|
|
280
|
+
justify-content: space-between;
|
|
281
|
+
font-size: 24rpx;
|
|
282
|
+
|
|
283
|
+
&>view:first-child {
|
|
284
|
+
color: #999999;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
&>view:last-child {
|
|
288
|
+
color: #666666;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
&-amount {
|
|
293
|
+
color: #333;
|
|
294
|
+
font-size: 64rpx;
|
|
295
|
+
font-weight: 500;
|
|
296
|
+
margin-top: 40rpx;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
&-tips {
|
|
300
|
+
display: flex;
|
|
301
|
+
align-items: center;
|
|
302
|
+
padding-left: 60rpx;
|
|
303
|
+
margin-top: 40rpx;
|
|
304
|
+
font-size: 24rpx;
|
|
305
|
+
color: #333;
|
|
306
|
+
|
|
307
|
+
&>image {
|
|
308
|
+
width: 60rpx;
|
|
309
|
+
height: 60rpx;
|
|
310
|
+
margin-right: 20rpx;
|
|
311
|
+
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.fixe_bottom {
|
|
316
|
+
position: fixed;
|
|
317
|
+
left: 0;
|
|
318
|
+
right: 0;
|
|
319
|
+
bottom: 0;
|
|
320
|
+
z-index: 999;
|
|
321
|
+
background: #fff;
|
|
322
|
+
padding: unit(48, rpx) unit(70, rpx);
|
|
323
|
+
|
|
324
|
+
&>view {
|
|
325
|
+
text-align: center;
|
|
326
|
+
font-size: 28rpx;
|
|
327
|
+
color: #999;
|
|
328
|
+
margin-top: 48rpx;
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
.dialog-title {
|
|
333
|
+
font-size: 36rpx;
|
|
334
|
+
font-weight: 500;
|
|
335
|
+
width: 570rpx;
|
|
336
|
+
text-align: center;
|
|
337
|
+
position: relative;
|
|
338
|
+
|
|
339
|
+
.close {
|
|
340
|
+
position: absolute;
|
|
341
|
+
right: 0;
|
|
342
|
+
top: 0;
|
|
343
|
+
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.dialog-content {
|
|
348
|
+
color: #666666;
|
|
349
|
+
font-size: 36rpx;
|
|
350
|
+
margin-top: 32rpx;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
</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-with-draw-again {
|
|
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-with-draw-again {
|
|
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-with-draw-again'
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
created() {
|
|
23
|
+
|
|
24
|
+
//@AttrDataCreated
|
|
25
|
+
this.Attr = this.$xdUniHelper.customClone(Attr);
|
|
26
|
+
//@EndAttrDataCreated
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
},
|
|
30
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
|
|
5
|
+
getWithdrawOrderDetail: { "detail": { "partner_id": 161, "site_id": "04c78d51890a18b8", "user_id": 5000358, "wallet_type": "UC", "total_amount": 200, "channel_amount": 200, "order_id": "i771668569418104913", "channel_code": "wxpay", "channel_code_name": "微信", "channel_order_id": "", "channel_user_id": "oJM1I6-ns0kM_byNgio_n_ZuTqCk", "channel_app_id": "wxad70f65127f9471c", "wallet_nnid": "", "wallet_trade_nnid": "", "arrival_time": 0, "extras": "", "comment": "", "created_time": 1744940123, "updated_time": 0, "status": "N", "status_name": "提现中", "service_amount": 0, "service_rate": 0 }, "channel_name": "微信", "logo": "https:\/\/jfb-public-images.oss-cn-qingdao.aliyuncs.com\/system-paychannel-logo-wxpay.png?x-oss-process=style\/200_200", "request_id": "473e8bf6986efc25" },
|
|
6
|
+
|
|
7
|
+
getWithdrawThirdPlaceOrderList: { "order_id": "i771668569418104913", "channel_data": "ABBQO+oYAAABAAAAAAAvz7kzb9HMNRWNvawBaBAAAADnGpepZahT9IkJjn90+1qgAYQYW\/LmJL0WH47tlOYOunGem4Trqj+ox5EfmQFESJ76f9lMWaLN2pvCJ5stBUZFIFIjhvk8fybnzYnmaUkvbpln+bc=", "app_id": "wxad70f65127f9471c", "mch_id": "1614921673", "request_id": "48ef7a43d95aa020" },
|
|
8
|
+
|
|
9
|
+
cancelWithdraw: { "request_id": "48ef7a43d95aa020" }
|
|
10
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
/**
|
|
3
|
+
* @description 接口配置,
|
|
4
|
+
* 在设置方法名字当时候,别忘记加上【模块名字】:With
|
|
5
|
+
* @type {*[]}
|
|
6
|
+
*/
|
|
7
|
+
module.exports = [
|
|
8
|
+
{
|
|
9
|
+
mapFnName: 'getRecordWithdrawOrderList',
|
|
10
|
+
title: '用户资产 - 提现订单列表',
|
|
11
|
+
path: '/pay/v1/property/withdraw-order/list',
|
|
12
|
+
isRule: false,
|
|
13
|
+
params: {
|
|
14
|
+
page_size: ['每页条数', 'Number', '必选'],
|
|
15
|
+
},
|
|
16
|
+
isConsole: true,
|
|
17
|
+
disabled: true,
|
|
18
|
+
},
|
|
19
|
+
];
|