jufubao-base 1.0.237-beta4 → 1.0.237
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/JfbBaseMySetting/JfbBaseMySetting.vue +8 -0
- package/src/components/JfbBaseNoticeDialog/Api.js +1 -1
- package/src/components/JfbBaseNoticeDialog/Attr.js +0 -26
- package/src/components/JfbBaseNoticeDialog/JfbBaseNoticeDialog.vue +6 -25
- package/src/components/JfbBaseTfkSearch/ContentProduct.vue +22 -11
- package/src/components/JfbBaseTfkSearch/JfbBaseTfkSearch.vue +1 -8
- package/src/components/JfbBaseTfkSearch/Mock.js +3 -51
- package/src/components/JfbBaseTfkSearch/listMixins.js +1 -1
- package/src/components/JfbBaseUserInfo/Attr.js +10 -114
- package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +114 -312
- package/src/components/JfbBaseBalance/Api.js +0 -46
- package/src/components/JfbBaseBalance/Attr.js +0 -316
- package/src/components/JfbBaseBalance/JfbBaseBalance.vue +0 -331
- package/src/components/JfbBaseBalance/JfbBaseBalanceLess.less +0 -79
- package/src/components/JfbBaseBalance/JfbBaseBalanceMixin.js +0 -30
- package/src/components/JfbBaseBalance/Mock.js +0 -9
- package/src/components/JfbBaseCodeOpenVip/Api.js +0 -35
- package/src/components/JfbBaseCodeOpenVip/Attr.js +0 -281
- package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVip.vue +0 -251
- package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVipLess.less +0 -79
- package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVipMixin.js +0 -30
- package/src/components/JfbBaseCodeOpenVip/Mock.js +0 -13
- package/src/components/JfbBaseConsumpCode/Api.js +0 -133
- package/src/components/JfbBaseConsumpCode/Attr.js +0 -61
- package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCode.vue +0 -961
- package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCodeLess.less +0 -79
- package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCodeMixin.js +0 -30
- package/src/components/JfbBaseConsumpCode/Mock.js +0 -22
- package/src/components/JfbBaseOpenVip/Api.js +0 -39
- package/src/components/JfbBaseOpenVip/Attr.js +0 -290
- package/src/components/JfbBaseOpenVip/JfbBaseOpenVip.vue +0 -430
- package/src/components/JfbBaseOpenVip/JfbBaseOpenVipLess.less +0 -79
- package/src/components/JfbBaseOpenVip/JfbBaseOpenVipMixin.js +0 -30
- package/src/components/JfbBaseOpenVip/Mock.js +0 -7
- package/src/components/JfbBaseOpenVip/XdVipList.vue +0 -125
- package/src/components/JfbBaseOpenVipCard/Api.js +0 -58
- package/src/components/JfbBaseOpenVipCard/Attr.js +0 -48
- package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCard.vue +0 -111
- package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCardLess.less +0 -79
- package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCardMixin.js +0 -30
- package/src/components/JfbBaseOpenVipCard/Mock.js +0 -13
- package/src/components/JfbBaseOpenVipDetail/Api.js +0 -35
- package/src/components/JfbBaseOpenVipDetail/Attr.js +0 -37
- package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetail.vue +0 -223
- package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetailLess.less +0 -79
- package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetailMixin.js +0 -30
- package/src/components/JfbBaseOpenVipDetail/Mock.js +0 -13
- package/src/components/JfbBasePersonalData/Api.js +0 -26
- package/src/components/JfbBasePersonalData/Attr.js +0 -12
- package/src/components/JfbBasePersonalData/JfbBasePersonalData.vue +0 -198
- package/src/components/JfbBasePersonalData/JfbBasePersonalDataLess.less +0 -79
- package/src/components/JfbBasePersonalData/JfbBasePersonalDataMixin.js +0 -30
- package/src/components/JfbBasePersonalData/Mock.js +0 -13
- package/src/components/JfbBasePointsCard/Api.js +0 -18
- package/src/components/JfbBasePointsCard/Attr.js +0 -187
- package/src/components/JfbBasePointsCard/JfbBasePointsCard.vue +0 -208
- package/src/components/JfbBasePointsCard/JfbBasePointsCardLess.less +0 -79
- package/src/components/JfbBasePointsCard/JfbBasePointsCardMixin.js +0 -30
- package/src/components/JfbBasePointsCard/Mock.js +0 -5
- package/src/components/JfbBasePointsDetail/Api.js +0 -48
- package/src/components/JfbBasePointsDetail/Attr.js +0 -304
- package/src/components/JfbBasePointsDetail/JfbBasePointsDetail.vue +0 -267
- package/src/components/JfbBasePointsDetail/JfbBasePointsDetailLess.less +0 -79
- package/src/components/JfbBasePointsDetail/JfbBasePointsDetailMixin.js +0 -30
- package/src/components/JfbBasePointsDetail/Mock.js +0 -6
- package/src/components/JfbBasePosterGroup/Api.js +0 -22
- package/src/components/JfbBasePosterGroup/Attr.js +0 -146
- package/src/components/JfbBasePosterGroup/JfbBasePosterGroup.vue +0 -265
- package/src/components/JfbBasePosterGroup/JfbBasePosterGroupLess.less +0 -79
- package/src/components/JfbBasePosterGroup/JfbBasePosterGroupMixin.js +0 -30
- package/src/components/JfbBasePosterGroup/Mock.js +0 -13
- package/src/components/JfbBaseSavingDetail/Api.js +0 -41
- package/src/components/JfbBaseSavingDetail/Attr.js +0 -70
- package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetail.vue +0 -679
- package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetailLess.less +0 -79
- package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetailMixin.js +0 -30
- package/src/components/JfbBaseSavingDetail/Mock.js +0 -10
- package/src/components/JfbBaseSavingDetail/components/echarts.min.js +0 -26
- package/src/components/JfbBaseSavingDetail/components/echarts.vue +0 -254
- package/src/components/JfbBaseSavingDetail/components/wx-canvas.js +0 -105
- package/src/components/JfbBaseShare/Api.js +0 -20
- package/src/components/JfbBaseShare/Attr.js +0 -14
- package/src/components/JfbBaseShare/JfbBaseShare.vue +0 -270
- package/src/components/JfbBaseShare/JfbBaseShareLess.less +0 -79
- package/src/components/JfbBaseShare/JfbBaseShareMixin.js +0 -30
- package/src/components/JfbBaseShare/Mock.js +0 -16
- package/src/components/JfbBaseWithDrawAgain/Api.js +0 -41
- package/src/components/JfbBaseWithDrawAgain/Attr.js +0 -92
- package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgain.vue +0 -334
- package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgainLess.less +0 -79
- package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgainMixin.js +0 -30
- package/src/components/JfbBaseWithDrawAgain/Mock.js +0 -10
- package/src/components/JfbBaseWithDrawRecord/Api.js +0 -19
- package/src/components/JfbBaseWithDrawRecord/Attr.js +0 -79
- package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecord.vue +0 -233
- package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecordLess.less +0 -79
- package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecordMixin.js +0 -30
- package/src/components/JfbBaseWithDrawRecord/Mock.js +0 -7
- package/src/components/JfbBaseWithdraw/Api.js +0 -48
- package/src/components/JfbBaseWithdraw/Attr.js +0 -328
- package/src/components/JfbBaseWithdraw/JfbBaseWithdraw.vue +0 -245
- package/src/components/JfbBaseWithdraw/JfbBaseWithdrawLess.less +0 -79
- package/src/components/JfbBaseWithdraw/JfbBaseWithdrawMixin.js +0 -30
- package/src/components/JfbBaseWithdraw/Mock.js +0 -7
|
@@ -1,79 +0,0 @@
|
|
|
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**/
|
|
@@ -1,30 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
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
|
-
];
|
|
@@ -1,281 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,251 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<view
|
|
3
|
-
class="jfb-base-code-open-vip"
|
|
4
|
-
@click="handleEditxSelect"
|
|
5
|
-
:class="{ editx : isEditx && active }"
|
|
6
|
-
>
|
|
7
|
-
<!--#ifdef H5-->
|
|
8
|
-
<view
|
|
9
|
-
class="jfb-base-code-open-vip__edit"
|
|
10
|
-
:class="{ editx : isEditx && active }"
|
|
11
|
-
v-if="isEditx && active"
|
|
12
|
-
>
|
|
13
|
-
<view class="jfb-base-code-open-vip__edit-icon" @click="delEdit">删除</view>
|
|
14
|
-
</view>
|
|
15
|
-
<!-- #endif -->
|
|
16
|
-
<view class="jfb-base-code-open-vip__body" :style="[bodyStyle]">
|
|
17
|
-
<view v-if="step === 1" class="vip_panel">
|
|
18
|
-
<view class="combo_section">
|
|
19
|
-
<view class="code_input_wrap">
|
|
20
|
-
<input class="code_input" v-model="exchange_code" placeholder="请输入兑换码"></input>
|
|
21
|
-
</view>
|
|
22
|
-
</view>
|
|
23
|
-
<view class="combo_section">
|
|
24
|
-
<!-- <view class="desc_tit">文案描述</view> -->
|
|
25
|
-
<view class="desc_cont">
|
|
26
|
-
<xd-content-xss :html="description"></xd-content-xss>
|
|
27
|
-
</view>
|
|
28
|
-
</view>
|
|
29
|
-
<view class="fixed_bottom" :style="[fixed_bottom]">
|
|
30
|
-
<xd-button type="primary" width="600rpx" @click="searchCode">查询</xd-button>
|
|
31
|
-
<view class="plus_privacy">开通视为同意 <text @click.stop="handlePrivacy('privacy_service')"></text>《共享PLUS会员用户协议》</view>
|
|
32
|
-
</view>
|
|
33
|
-
</view>
|
|
34
|
-
<view v-else class="vip_panel">
|
|
35
|
-
<view class="combo_section">
|
|
36
|
-
<view class="combo_section-title">兑换码:{{ vipInfo.exchange_code }}</view>
|
|
37
|
-
<xd-list-item label="套餐名称" paddingLR="40rpx">{{ vipInfo.product_name }}</xd-list-item>
|
|
38
|
-
<xd-list-item label="套餐期限" paddingLR="40rpx">{{ vipInfo.life_cycle_label }}</xd-list-item>
|
|
39
|
-
<xd-list-item label="套餐金额" paddingLR="40rpx">¥{{ $xdUniHelper.divisionFloatNumber(vipInfo.sale_price, 100) }}</xd-list-item>
|
|
40
|
-
</view>
|
|
41
|
-
<view class="fixed_bottom" :style="[fixed_bottom]">
|
|
42
|
-
<xd-button type="primary" width="600rpx" @click="p_createVipOrder">立即兑换</xd-button>
|
|
43
|
-
<view class="plus_privacy">开通视为同意 <text @click.stop="handlePrivacy('privacy_service')"></text>《共享PLUS会员用户协议》</view>
|
|
44
|
-
</view>
|
|
45
|
-
</view>
|
|
46
|
-
</view>
|
|
47
|
-
</view>
|
|
48
|
-
</template>
|
|
49
|
-
|
|
50
|
-
<script>
|
|
51
|
-
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
52
|
-
import XdListItem from "@/components/CusListItem/CusListItem"
|
|
53
|
-
import XdButton from "@/components/XdButton/XdButton";
|
|
54
|
-
import XdContentXss from "@/components/XdContentXss/XdContentXss"
|
|
55
|
-
import { jfbRootExec } from "@/utils/xd.event";
|
|
56
|
-
import JfbBaseCodeOpenVipMixin from "./JfbBaseCodeOpenVipMixin";
|
|
57
|
-
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
58
|
-
import componentsMixins from "@/mixins/componentsMixins";
|
|
59
|
-
import extsMixins from "@/mixins/extsMixins";
|
|
60
|
-
export default {
|
|
61
|
-
name: "JfbBaseCodeOpenVip",
|
|
62
|
-
components: {
|
|
63
|
-
XdFontIcon,
|
|
64
|
-
XdListItem,
|
|
65
|
-
XdButton,
|
|
66
|
-
XdContentXss
|
|
67
|
-
},
|
|
68
|
-
mixins: [
|
|
69
|
-
componentsMixins, extsMixins, JfbBaseCodeOpenVipMixin
|
|
70
|
-
],
|
|
71
|
-
data() {
|
|
72
|
-
return {
|
|
73
|
-
closeMask: true,
|
|
74
|
-
xnamespace: "",
|
|
75
|
-
|
|
76
|
-
exchange_code: "",
|
|
77
|
-
step: 1,
|
|
78
|
-
vipInfo: {},
|
|
79
|
-
//todo
|
|
80
|
-
description: "",
|
|
81
|
-
vipSuccessPath: "",
|
|
82
|
-
payPath: "",
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
computed: {
|
|
86
|
-
bodyStyle(){
|
|
87
|
-
return {
|
|
88
|
-
minHeight: this.layoutInfo.bodyMinHeightRpx + 'rpx',
|
|
89
|
-
'--main-color': this.mainColor,
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
fixed_bottom() {
|
|
93
|
-
return this.fixedStyle({paddingBottom: 36, zIndex: 111})
|
|
94
|
-
},
|
|
95
|
-
},
|
|
96
|
-
watch: {
|
|
97
|
-
container(value, oldValue) {
|
|
98
|
-
if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
99
|
-
if (this.$configProject['isPreview']) this.init(value)
|
|
100
|
-
},
|
|
101
|
-
},
|
|
102
|
-
created() {
|
|
103
|
-
this.init(this.container);
|
|
104
|
-
|
|
105
|
-
//todo
|
|
106
|
-
},
|
|
107
|
-
methods: {
|
|
108
|
-
onJfbLoad(options) {
|
|
109
|
-
},
|
|
110
|
-
/**
|
|
111
|
-
* @description 监听事件变化
|
|
112
|
-
* @param container {object} 业务组件对象自己
|
|
113
|
-
*/
|
|
114
|
-
init(container) {
|
|
115
|
-
this.description = getContainerPropsValue(container, 'content.description', "");
|
|
116
|
-
this.vipSuccessPath = getContainerPropsValue(container, 'content.vipSuccessPath', {value: ""}).value;
|
|
117
|
-
this.payPath = getContainerPropsValue(container, 'content.payPath', {value: ""}).value;
|
|
118
|
-
},
|
|
119
|
-
handlePrivacy(code){
|
|
120
|
-
let params = `page_id=${this.pageAttr["page_id"]}`;
|
|
121
|
-
params = `${params}&container_id=${this.containerId}${code}`;
|
|
122
|
-
this.$xdUniHelper.navigateTo({
|
|
123
|
-
url: `/pages/content/content?${params}`
|
|
124
|
-
})
|
|
125
|
-
},
|
|
126
|
-
searchCode(){
|
|
127
|
-
if(!this.exchange_code) return;
|
|
128
|
-
this.$xdShowLoading({});
|
|
129
|
-
jfbRootExec("getExchangeCode", {
|
|
130
|
-
vm: this,
|
|
131
|
-
data: {
|
|
132
|
-
exchange_code: this.exchange_code
|
|
133
|
-
}
|
|
134
|
-
}).then(res => {
|
|
135
|
-
this.$xdHideLoading();
|
|
136
|
-
this.step = 2;
|
|
137
|
-
this.vipInfo = res;
|
|
138
|
-
})
|
|
139
|
-
},
|
|
140
|
-
p_createVipOrder(){
|
|
141
|
-
jfbRootExec("createVipOrder", {
|
|
142
|
-
vm: this,
|
|
143
|
-
data: {
|
|
144
|
-
business_code: this.xnamespace,
|
|
145
|
-
product_id: this.vipInfo.product_id,
|
|
146
|
-
notify_provider_id: this.projectAttr.notify_provider_id,
|
|
147
|
-
need_pay_price: 0,
|
|
148
|
-
selected_card_list_json: this.vipInfo.selected_card_list_json
|
|
149
|
-
}
|
|
150
|
-
}).then(res => {
|
|
151
|
-
if(res.need_pay_price > 0){
|
|
152
|
-
this.$xdUniHelper.redirectTo({
|
|
153
|
-
url: this.payPath + `?order_id=${res.pay_order_id}&main_order_id=${res.main_order_id}`
|
|
154
|
-
})
|
|
155
|
-
}else{
|
|
156
|
-
this.$xdUniHelper.redirectTo({
|
|
157
|
-
url: this.vipSuccessPath + `?order_id=${res.main_order_id}`
|
|
158
|
-
})
|
|
159
|
-
}
|
|
160
|
-
})
|
|
161
|
-
},
|
|
162
|
-
onJfbScroll(options) {
|
|
163
|
-
// console.log('event.onJfbScroll', options)
|
|
164
|
-
},
|
|
165
|
-
onJfbReachBottom(options) {
|
|
166
|
-
console.log('event.onJfbReachBottom', options)
|
|
167
|
-
},
|
|
168
|
-
onJfbShow(options) {
|
|
169
|
-
console.log('event.onJfbShow', options)
|
|
170
|
-
},
|
|
171
|
-
onJfbHide(options) {
|
|
172
|
-
console.log('event.onJfbHide', options)
|
|
173
|
-
},
|
|
174
|
-
onJfbBack(options) {
|
|
175
|
-
console.log('event.onJfbBack', options)
|
|
176
|
-
},
|
|
177
|
-
onJfbUpdate(...data) {
|
|
178
|
-
console.log('event.onJfbUpdate', data)
|
|
179
|
-
},
|
|
180
|
-
onJfbCustomEvent(options) {
|
|
181
|
-
console.log('event.onJfbReachBottom', options)
|
|
182
|
-
},
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
</script>
|
|
187
|
-
|
|
188
|
-
<style scoped lang="less">
|
|
189
|
-
@import "./JfbBaseCodeOpenVipLess.less";
|
|
190
|
-
|
|
191
|
-
.jfb-base-code-open-vip {
|
|
192
|
-
&__body{
|
|
193
|
-
.combo_section{
|
|
194
|
-
border-radius: 24rpx;
|
|
195
|
-
overflow: hidden;
|
|
196
|
-
margin: 20rpx;
|
|
197
|
-
background-color: #FFFFFF;
|
|
198
|
-
&-title{
|
|
199
|
-
height: 72rpx;
|
|
200
|
-
line-height: 72rpx;
|
|
201
|
-
text-align: center;
|
|
202
|
-
background: linear-gradient(90deg, #FCD083 0%, #FFDEAD 100%);
|
|
203
|
-
font-size: 28rpx;
|
|
204
|
-
color: #915714;
|
|
205
|
-
font-weight: 500;
|
|
206
|
-
}
|
|
207
|
-
::v-deep .my-list_value{
|
|
208
|
-
color: #999999;
|
|
209
|
-
}
|
|
210
|
-
.desc_tit{
|
|
211
|
-
height: 72rpx;
|
|
212
|
-
line-height: 72rpx;
|
|
213
|
-
text-align: center;
|
|
214
|
-
}
|
|
215
|
-
.desc_cont{
|
|
216
|
-
padding: 24rpx;
|
|
217
|
-
}
|
|
218
|
-
.code_input_wrap{
|
|
219
|
-
width: 100%;
|
|
220
|
-
padding: 36rpx;
|
|
221
|
-
box-sizing: border-box;
|
|
222
|
-
}
|
|
223
|
-
.code_input{
|
|
224
|
-
width: 100%;
|
|
225
|
-
height: 90rpx;
|
|
226
|
-
background-color: #FAFAFA;
|
|
227
|
-
box-sizing: border-box;
|
|
228
|
-
padding: 0 36rpx;
|
|
229
|
-
border-radius: 16rpx;
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
.fixed_bottom{
|
|
233
|
-
position: fixed;
|
|
234
|
-
bottom: 0;
|
|
235
|
-
left: 0;
|
|
236
|
-
width: 100%;
|
|
237
|
-
padding: 36rpx;
|
|
238
|
-
box-sizing: border-box;
|
|
239
|
-
background-color: #FFFFFF;
|
|
240
|
-
display: flex;
|
|
241
|
-
flex-direction: column;
|
|
242
|
-
align-items: center;
|
|
243
|
-
.plus_privacy{
|
|
244
|
-
font-size: 22rpx;
|
|
245
|
-
color: #999;
|
|
246
|
-
margin-top: 16rpx;
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
</style>
|