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
|
@@ -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-balance {
|
|
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-balance {
|
|
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-balance'
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
created() {
|
|
23
|
+
|
|
24
|
+
//@AttrDataCreated
|
|
25
|
+
this.Attr = this.$xdUniHelper.customClone(Attr);
|
|
26
|
+
//@EndAttrDataCreated
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
},
|
|
30
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
|
|
5
|
+
getBalanceDetail: { "wallet_list": [{ "sort": 2, "wallet_type": "UC", "show_name": "可用余额", "amount": 19940, "is_support_withdraw": "Y" }, { "sort": 0, "wallet_type": "UT", "show_name": "待到账余额", "amount": 0, "is_support_withdraw": "N" }], "request_id": "279b309d137cae9f" },
|
|
6
|
+
|
|
7
|
+
getBalanceWalletTradeList: { "next_page_token": "2", "total_size": 0, "list": [{ "trade_nnid": "eDaOl5aPD4Fx8gtBJC1bd", "order_id": "i771037005030096968", "amount": 10, "trade_type": "user_withdraw_chargeback", "trade_type_name": "提现失败", "operate_type": "A", "operate_type_name": "收入", "trade_name": "", "comment": "余额提现", "created_time": 1744883229 }, { "trade_nnid": "qhBI-btv4hh8TpsGdCrDG", "order_id": "i771066286233878607", "amount": 10, "trade_type": "user_withdraw", "trade_type_name": "余额提现", "operate_type": "R", "operate_type_name": "支出", "trade_name": "", "comment": "", "created_time": 1744796528 }, { "trade_nnid": "NCI4DolRx-0GqFfY5J9-P", "order_id": "i771065517556367438", "amount": 10, "trade_type": "user_withdraw", "trade_type_name": "余额提现", "operate_type": "R", "operate_type_name": "支出", "trade_name": "", "comment": "", "created_time": 1744796345 }, { "trade_nnid": "upM7epMxX3FqoTytFyKUn", "order_id": "i771062549364867149", "amount": 10, "trade_type": "user_withdraw", "trade_type_name": "余额提现", "operate_type": "R", "operate_type_name": "支出", "trade_name": "", "comment": "", "created_time": 1744795637 }, { "trade_nnid": "nzH3e_P25C-q7wcN52L-z", "order_id": "i771061580484837452", "amount": 10, "trade_type": "user_withdraw", "trade_type_name": "余额提现", "operate_type": "R", "operate_type_name": "支出", "trade_name": "", "comment": "", "created_time": 1744795406 }, { "trade_nnid": "aduSpdXNKl0dwqxPhovf0", "order_id": "i771059916772212811", "amount": 10, "trade_type": "user_withdraw", "trade_type_name": "余额提现", "operate_type": "R", "operate_type_name": "支出", "trade_name": "", "comment": "", "created_time": 1744795009 }, { "trade_nnid": "dTTmA75uN-Mv3as8XE1Te", "order_id": "i771054224359293002", "amount": 10, "trade_type": "user_withdraw", "trade_type_name": "余额提现", "operate_type": "R", "operate_type_name": "支出", "trade_name": "", "comment": "", "created_time": 1744793652 }, { "trade_nnid": "jo4IOWJ1wPyGXiA5wQYUU", "order_id": "i771037005030096968", "amount": 10, "trade_type": "user_withdraw", "trade_type_name": "余额提现", "operate_type": "R", "operate_type_name": "支出", "trade_name": "", "comment": "", "created_time": 1744789547 }, { "trade_nnid": "78qU6Cemnhqnvms2-iJDI", "order_id": "i771019326374281284", "amount": 1000, "trade_type": "user_withdraw_chargeback", "trade_type_name": "提现失败", "operate_type": "A", "operate_type_name": "收入", "trade_name": "", "comment": "余额提现", "created_time": 1744789418 }, { "trade_nnid": "yLLohJoE-qowAuxastB1z", "order_id": "i771034873199591494", "amount": 1000, "trade_type": "user_withdraw_chargeback", "trade_type_name": "提现失败", "operate_type": "A", "operate_type_name": "收入", "trade_name": "", "comment": "余额提现", "created_time": 1744789410 }], "request_id": "e9f0142e62066570" },
|
|
8
|
+
|
|
9
|
+
}
|
|
@@ -157,12 +157,10 @@
|
|
|
157
157
|
},
|
|
158
158
|
handleBindCard(){
|
|
159
159
|
if(!this.cardForm.valid_code){
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
zIndex: 5000
|
|
165
|
-
});
|
|
160
|
+
uni.showToast({
|
|
161
|
+
title: "请输入验证码",
|
|
162
|
+
icon: "none"
|
|
163
|
+
})
|
|
166
164
|
return;
|
|
167
165
|
}
|
|
168
166
|
jfbRootExec("pwdCardBind", {
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
/**
|
|
3
|
+
* @description 接口配置,
|
|
4
|
+
* 在设置方法名字当时候,别忘记加上【模块名字】:Code
|
|
5
|
+
* @type {*[]}
|
|
6
|
+
*/
|
|
7
|
+
module.exports = [
|
|
8
|
+
{
|
|
9
|
+
mapFnName: "getExchangeCode",
|
|
10
|
+
title: "兑换码",
|
|
11
|
+
path: "/member/v1/exchange/:exchange_code",
|
|
12
|
+
isRule: true,
|
|
13
|
+
params: {
|
|
14
|
+
exchange_code: ['兑换码', 'String', '必选']
|
|
15
|
+
},
|
|
16
|
+
isConsole: true,
|
|
17
|
+
disabled: true,
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
mapFnName: "createVipOrder",
|
|
21
|
+
title: "创建VIP订单",
|
|
22
|
+
path: "/member/v1/order/submit",
|
|
23
|
+
isRule: false,
|
|
24
|
+
data: {
|
|
25
|
+
business_code: ['业务编码', 'String', '必选'],
|
|
26
|
+
product_id: ['商品id', 'Number', '必选'],
|
|
27
|
+
notify_provider_id: ['notify_provider_id', 'Number', '可选'],
|
|
28
|
+
selected_card_list_json: ['已使用的卡券数据', 'array', '可选'],
|
|
29
|
+
selected_wallet_list_json: ['已使用的钱包数据', 'array', '可选'],
|
|
30
|
+
need_pay_price: ['需要支付的价格', 'Number', '可选']
|
|
31
|
+
},
|
|
32
|
+
isConsole: true,
|
|
33
|
+
disabled: true,
|
|
34
|
+
}
|
|
35
|
+
];
|
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @description 当表单组件中有联动操作时候,使用方法进行返回
|
|
5
|
+
*/
|
|
6
|
+
export default {
|
|
7
|
+
style: [],
|
|
8
|
+
content: (data) => {
|
|
9
|
+
let imageConfig = {
|
|
10
|
+
sort: true,
|
|
11
|
+
maxlen: 100,
|
|
12
|
+
action: "aliyun",
|
|
13
|
+
qiniuCdn: "aliyun",
|
|
14
|
+
size: 2,
|
|
15
|
+
tipsformet: "上传文件格式:@imageType@,不超过@size@MB。该上传图会在用户端显示,不建议上传超过1920*1080图片。",
|
|
16
|
+
uploadType: "aliyun",
|
|
17
|
+
type: ["jpg", "png", "jpeg", "gif"],
|
|
18
|
+
};
|
|
19
|
+
return [
|
|
20
|
+
{
|
|
21
|
+
label: "文案描述:", //label
|
|
22
|
+
ele: "xd-tinymce", //package 名称
|
|
23
|
+
valueKey: "description", //form[valueKey]
|
|
24
|
+
value: data.description || "",
|
|
25
|
+
imageConfig: imageConfig,
|
|
26
|
+
inline: false,
|
|
27
|
+
groupKey: "content",
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
label: '共享PLUS会员用户协议:',
|
|
31
|
+
ele: 'xd-site-news',
|
|
32
|
+
valueKey: 'notices',
|
|
33
|
+
groupKey:'content',
|
|
34
|
+
value: data.notices || {type: 'privacy'},
|
|
35
|
+
className: 'input70',
|
|
36
|
+
setting: {
|
|
37
|
+
config: {
|
|
38
|
+
sort: true,
|
|
39
|
+
maxlen: 100,
|
|
40
|
+
action: 'aliyun',
|
|
41
|
+
size: 5,
|
|
42
|
+
tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
|
|
43
|
+
uploadType: 'aliyun',
|
|
44
|
+
type: ['jpg', 'png', 'jpeg']
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
handleCustom({action, data}) {
|
|
48
|
+
if (data && data.params) {
|
|
49
|
+
//当一个插件中出现多个内容分类时候需要设置code值,在页面引用时候(容器id + code)进行拼接获取数据列表
|
|
50
|
+
data.params = Object.assign({}, data.params, {code: 'privacy_service'});
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
//获取返回参数(场景类型名称为必填)
|
|
54
|
+
let loading = { close(){}}
|
|
55
|
+
|
|
56
|
+
//获取显示内容
|
|
57
|
+
if (action === 'screen') {
|
|
58
|
+
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_bucket_content_tip'})
|
|
59
|
+
.then(res => {
|
|
60
|
+
loading.close();
|
|
61
|
+
data.cb(res['list'])
|
|
62
|
+
})
|
|
63
|
+
.catch(error => {
|
|
64
|
+
console.error(error);
|
|
65
|
+
loading.close();
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
//获取返回参数(广告位高度必选项)
|
|
71
|
+
if (action === 'getNewsInfo') {
|
|
72
|
+
XdBus.getParentApi('cmsGetPublishEditxContent')(data.params)
|
|
73
|
+
.then(res => {
|
|
74
|
+
loading.close()
|
|
75
|
+
data.cb({list: res.list, selectId: res.selected})
|
|
76
|
+
})
|
|
77
|
+
.catch(error => {
|
|
78
|
+
loading.close()
|
|
79
|
+
console.error(error);
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
//获取产品业务线列表
|
|
84
|
+
if (action === 'namespace') {
|
|
85
|
+
XdBus.getParentApi('getOptionsNamespaces')({})
|
|
86
|
+
.then(res => {
|
|
87
|
+
loading.close()
|
|
88
|
+
data.cb(res['list'])
|
|
89
|
+
})
|
|
90
|
+
.catch(error => {
|
|
91
|
+
loading.close()
|
|
92
|
+
console.error(error);
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
//使用内容分类
|
|
97
|
+
if (action === 'cmsPublishEditxContent') {
|
|
98
|
+
loading = XdBus.getParentApi('loading')({});
|
|
99
|
+
XdBus.getParentApi('cmsPublishEditxContent')(data.params)
|
|
100
|
+
.then(res => {
|
|
101
|
+
console.log('cmsPublishEditxContent', res)
|
|
102
|
+
loading.close();
|
|
103
|
+
data.cb(res)
|
|
104
|
+
})
|
|
105
|
+
.catch(error => {
|
|
106
|
+
loading.close();
|
|
107
|
+
console.error(error);
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
//位置列表
|
|
112
|
+
if (action === 'getListPostion') {
|
|
113
|
+
loading = XdBus.getParentApi('loading')({});
|
|
114
|
+
XdBus.getParentApi('getListNewsPosition')(data.params)
|
|
115
|
+
.then(res => {
|
|
116
|
+
loading.close();
|
|
117
|
+
data.cb(res)
|
|
118
|
+
})
|
|
119
|
+
.catch(error => {
|
|
120
|
+
loading.close();
|
|
121
|
+
console.error(error);
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
//位置创建
|
|
126
|
+
if (action === 'addPostion') {
|
|
127
|
+
loading = XdBus.getParentApi('loading')({});
|
|
128
|
+
XdBus.getParentApi('addNewsPosition')(data.params)
|
|
129
|
+
.then(res => {
|
|
130
|
+
loading.close();
|
|
131
|
+
data.cb(true)
|
|
132
|
+
})
|
|
133
|
+
.catch(error => {
|
|
134
|
+
console.error(error);
|
|
135
|
+
loading.close();
|
|
136
|
+
data.cb(false)
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
//位置编辑
|
|
141
|
+
if (action === 'editPostion') {
|
|
142
|
+
loading = XdBus.getParentApi('loading')({});
|
|
143
|
+
XdBus.getParentApi('updateNewsPosition')(data.params)
|
|
144
|
+
.then(res => {
|
|
145
|
+
loading.close();
|
|
146
|
+
data.cb(true)
|
|
147
|
+
})
|
|
148
|
+
.catch(error => {
|
|
149
|
+
console.error(error);
|
|
150
|
+
loading.close();
|
|
151
|
+
data.cb(false)
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
//位置删除
|
|
156
|
+
if (action === 'deleltePostion') {
|
|
157
|
+
loading = XdBus.getParentApi('loading')({});
|
|
158
|
+
XdBus.getParentApi('deleteNewsPosition')(data.params)
|
|
159
|
+
.then(res => {
|
|
160
|
+
loading.close();
|
|
161
|
+
data.cb(true)
|
|
162
|
+
})
|
|
163
|
+
.catch(error => {
|
|
164
|
+
console.error(error);
|
|
165
|
+
loading.close();
|
|
166
|
+
data.cb(false)
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
//获取广告位内容列表
|
|
171
|
+
if (action === 'getListContent') {
|
|
172
|
+
loading = XdBus.getParentApi('loading')({});
|
|
173
|
+
XdBus.getParentApi('getListNewsContent')(data.params)
|
|
174
|
+
.then(res => {
|
|
175
|
+
loading.close();
|
|
176
|
+
data.cb(res)
|
|
177
|
+
})
|
|
178
|
+
.catch(error => {
|
|
179
|
+
loading.close();
|
|
180
|
+
console.error(error);
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
//广告内容创建
|
|
185
|
+
if (action === 'addContent') {
|
|
186
|
+
loading = XdBus.getParentApi('loading')({});
|
|
187
|
+
XdBus.getParentApi('addNewsContent')(data.params)
|
|
188
|
+
.then(res => {
|
|
189
|
+
loading.close();
|
|
190
|
+
data.cb(true)
|
|
191
|
+
})
|
|
192
|
+
.catch(error => {
|
|
193
|
+
console.error(error);
|
|
194
|
+
loading.close();
|
|
195
|
+
data.cb(false)
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
//广告内容编辑
|
|
200
|
+
if (action === 'editContent') {
|
|
201
|
+
loading = XdBus.getParentApi('loading')({});
|
|
202
|
+
XdBus.getParentApi('updateNewsContent')(data.params)
|
|
203
|
+
.then(res => {
|
|
204
|
+
loading.close();
|
|
205
|
+
data.cb(true)
|
|
206
|
+
})
|
|
207
|
+
.catch(error => {
|
|
208
|
+
console.error(error);
|
|
209
|
+
loading.close();
|
|
210
|
+
data.cb(false)
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
//广告内容删除
|
|
215
|
+
if (action === 'deleteContent') {
|
|
216
|
+
loading = XdBus.getParentApi('loading')({});
|
|
217
|
+
XdBus.getParentApi('deleteNewsContent')(data.params)
|
|
218
|
+
.then(res => {
|
|
219
|
+
loading.close();
|
|
220
|
+
data.cb(true)
|
|
221
|
+
})
|
|
222
|
+
.catch(error => {
|
|
223
|
+
console.error(error);
|
|
224
|
+
loading.close();
|
|
225
|
+
data.cb(false)
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
//内容发布
|
|
230
|
+
if (action === 'publish') {
|
|
231
|
+
loading = XdBus.getParentApi('loading')({});
|
|
232
|
+
console.log('publish', data.params)
|
|
233
|
+
XdBus.getParentApi('cmsPublishContent')(data.params)
|
|
234
|
+
.then(res => {
|
|
235
|
+
loading.close();
|
|
236
|
+
data.cb(res)
|
|
237
|
+
})
|
|
238
|
+
.catch(error => {
|
|
239
|
+
loading.close();
|
|
240
|
+
console.error(error);
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
//通知页面进行刷新
|
|
245
|
+
if (action === 'update') {
|
|
246
|
+
loading = XdBus.getParentApi('loading')({});
|
|
247
|
+
XdBus.getParentApi('getXdBusUpdateView')('onUpdateView', {});
|
|
248
|
+
loading.close()
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
inline: false,
|
|
252
|
+
notice: '',
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
label: 'PLUS会员开通成功跳转路径:',
|
|
256
|
+
ele: 'xd-select-pages-path',
|
|
257
|
+
valueKey: 'vipSuccessPath',
|
|
258
|
+
groupKey:'advanced',
|
|
259
|
+
placeholder: '请选择PLUS会员开通成功跳转路径',
|
|
260
|
+
value: data['vipSuccessPath'] || null,
|
|
261
|
+
setting: {
|
|
262
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
263
|
+
},
|
|
264
|
+
inline: false,
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
label: '支付页面跳转路径:',
|
|
268
|
+
ele: 'xd-select-pages-path',
|
|
269
|
+
valueKey: 'payPath',
|
|
270
|
+
groupKey:'advanced',
|
|
271
|
+
placeholder: '请选择支付页面跳转路径',
|
|
272
|
+
value: data['payPath'] || null,
|
|
273
|
+
setting: {
|
|
274
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
275
|
+
},
|
|
276
|
+
inline: false,
|
|
277
|
+
},
|
|
278
|
+
].filter(i=>i)
|
|
279
|
+
},
|
|
280
|
+
advanced: [],
|
|
281
|
+
};
|