jufubao-base 1.0.56 → 1.0.61-beta1002
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 +2 -2
- package/src/components/JfbBaseCardDetail/JfbBaseCardDetail.vue +19 -1
- package/src/components/JfbBaseCardDetailEntry/Api.js +58 -0
- package/src/components/JfbBaseCardDetailEntry/Attr.js +30 -0
- package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +920 -0
- package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntryLess.less +80 -0
- package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntryMixin.js +30 -0
- package/src/components/JfbBaseCardDetailEntry/Mock.js +106 -0
- package/src/components/JfbBaseCardDetailEntry/XdEditPwd.vue +299 -0
- package/src/components/JfbBaseCardDetailEntry/XdPwPay.vue +214 -0
- package/src/components/JfbBaseCardDisabledEntry/Api.js +12 -7
- package/src/components/JfbBaseCardDisabledEntry/JfbBaseCardDisabledEntry.vue +39 -12
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +37 -1
- package/src/components/JfbBaseCardInfoEntry/Api.js +71 -0
- package/src/components/JfbBaseCardInfoEntry/Attr.js +37 -0
- package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntry.vue +768 -0
- package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntryLess.less +80 -0
- package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntryMixin.js +30 -0
- package/src/components/JfbBaseCardInfoEntry/Mock.js +122 -0
- package/src/components/JfbBaseCardMergeEntry/Api.js +61 -0
- package/src/components/JfbBaseCardMergeEntry/Attr.js +237 -0
- package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntry.vue +443 -0
- package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntryLess.less +80 -0
- package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntryMixin.js +30 -0
- package/src/components/JfbBaseCardMergeEntry/Mock.js +32 -0
- package/src/components/JfbBaseCardShiftEntry/Api.js +51 -0
- package/src/components/JfbBaseCardShiftEntry/Attr.js +237 -0
- package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntry.vue +593 -0
- package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntryLess.less +80 -0
- package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntryMixin.js +30 -0
- package/src/components/JfbBaseCardShiftEntry/Mock.js +5 -0
- package/src/mixins/colorCardMixins.js +1 -1
|
@@ -0,0 +1,80 @@
|
|
|
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-card-info-entry {
|
|
16
|
+
border: 1px dashed rgba(0, 0, 0, 0);
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
min-height: unit(100, rpx);
|
|
19
|
+
|
|
20
|
+
&__body{
|
|
21
|
+
position: relative;
|
|
22
|
+
overflow: hidden;
|
|
23
|
+
z-index: 2
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&.editx {
|
|
27
|
+
position: relative;
|
|
28
|
+
border: 1px dashed blue;
|
|
29
|
+
box-sizing: border-box;
|
|
30
|
+
z-index: 3
|
|
31
|
+
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&:hover {
|
|
35
|
+
border: 1px dashed blue;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&.noBorder {
|
|
39
|
+
border-color: rgba(0,0,0,0);
|
|
40
|
+
border-width: 0;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
&__edit {
|
|
45
|
+
cursor: pointer;
|
|
46
|
+
position: absolute;
|
|
47
|
+
right: unit(0, rpx);
|
|
48
|
+
top: unit(-52, rpx);
|
|
49
|
+
height: unit(50, rpx);
|
|
50
|
+
line-height: unit(50, rpx);
|
|
51
|
+
display: flex;
|
|
52
|
+
justify-content: center;
|
|
53
|
+
align-items: center;
|
|
54
|
+
background: rgba(0, 0, 0, .6);
|
|
55
|
+
border-radius: unit(10, rpx);
|
|
56
|
+
box-shadow: 0 0 10px rbga(0, 0, 0, 0.3);
|
|
57
|
+
color: #fff;
|
|
58
|
+
font-size: unit(22, rpx);
|
|
59
|
+
|
|
60
|
+
&-icon{
|
|
61
|
+
padding: 0 unit(20, rpx);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&.editx {
|
|
65
|
+
box-sizing: border-box;
|
|
66
|
+
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
//end
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
/**notPreview**/
|
|
74
|
+
.jfb-base-card-info-entry {
|
|
75
|
+
&:before {
|
|
76
|
+
content: " ";
|
|
77
|
+
display: table;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
/**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-card-info-entry'
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
created() {
|
|
23
|
+
|
|
24
|
+
//@AttrDataCreated
|
|
25
|
+
this.Attr = this.$xdUniHelper.customClone(Attr);
|
|
26
|
+
//@EndAttrDataCreated
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
},
|
|
30
|
+
}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
getByPwdCardDetailEntry: {
|
|
5
|
+
"card_number": "101001000005195",
|
|
6
|
+
"card_point": 0,
|
|
7
|
+
"card_type_name": "聚福宝",
|
|
8
|
+
"end_time": "2024-10-31 23:59:59",
|
|
9
|
+
"card_status": "Y",
|
|
10
|
+
"card_status_name": "开启",
|
|
11
|
+
"unit": "点",
|
|
12
|
+
"main_product_name": "",
|
|
13
|
+
"other_card_point": 0,
|
|
14
|
+
"is_exchange": "N",
|
|
15
|
+
"request_id": "741c41d86c5ae0cf",
|
|
16
|
+
"main_business_code_name": "蛋糕(勿改)",
|
|
17
|
+
"other_card_point": 4073,
|
|
18
|
+
"site_entry_settings": [{
|
|
19
|
+
"id": 57,
|
|
20
|
+
"business_code": "movie",
|
|
21
|
+
"entry_name": "在线选座",
|
|
22
|
+
"image_url": "https:\/\/sandbox-img.jufubao.cn\/uploads\/20230927\/74fcb8bf1bf617249eee5f1416533766.png",
|
|
23
|
+
"redirect_data": "{\"path\":\"https:\\\/\\\/website-01.jufubao.cn\\\/base\\\/system\\\/zhrk\\\/zkrk\"}",
|
|
24
|
+
"redirect_type": "URL"
|
|
25
|
+
}, {
|
|
26
|
+
"id": 10,
|
|
27
|
+
"business_code": "gift",
|
|
28
|
+
"entry_name": "礼包",
|
|
29
|
+
"image_url": "https:\/\/sandbox-img.jufubao.cn\/uploads\/20230927\/f1c8a447209eb04d77c2095a13cdadf4.png",
|
|
30
|
+
"redirect_data": "{\"dir\":\"apply\",\"host\":\"sandbox-website-05.jufubao.cn\",\"path\":\"\\\/main\\\/gift\\\/type\",\"site_id\":\"17928cc37788be02\",\"site_url\":\"https:\\\/\\\/sandbox-website-05.jufubao.cn\\\/apply\\\/main\\\/gift\\\/type\",\"frontPath\":\"\\\/apply\\\/main\\\/gift\\\/type\",\"fixed_business_code\":\"\"}",
|
|
31
|
+
"redirect_type": "INN"
|
|
32
|
+
}, {
|
|
33
|
+
"id": 7,
|
|
34
|
+
"business_code": "movie",
|
|
35
|
+
"entry_name": "在线选座",
|
|
36
|
+
"image_url": "https:\/\/sandbox-img.jufubao.cn\/uploads\/20230927\/61b3302ec80009964e0a4b7b2336e5cf.png",
|
|
37
|
+
"redirect_data": "{\"dir\":\"apply\",\"host\":\"sandbox-website-05.jufubao.cn\",\"path\":\"\\\/main\\\/movie\\\/index\",\"site_id\":\"17928cc37788be02\",\"site_url\":\"https:\\\/\\\/sandbox-website-05.jufubao.cn\\\/apply\\\/main\\\/movie\\\/index\",\"frontPath\":\"\\\/apply\\\/main\\\/movie\\\/index\",\"fixed_business_code\":\"\"}",
|
|
38
|
+
"redirect_type": "INN"
|
|
39
|
+
}, {
|
|
40
|
+
"id": 9,
|
|
41
|
+
"business_code": "cake",
|
|
42
|
+
"entry_name": "蛋糕",
|
|
43
|
+
"image_url": "https:\/\/sandbox-img.jufubao.cn\/uploads\/20230927\/e582dc796bdb703a10860bcbbbb378f3.png",
|
|
44
|
+
"redirect_data": "{\"dir\":\"apply\",\"host\":\"sandbox-website-05.jufubao.cn\",\"path\":\"\\\/main\\\/cake\\\/index\",\"site_id\":\"17928cc37788be02\",\"site_url\":\"https:\\\/\\\/sandbox-website-05.jufubao.cn\\\/apply\\\/main\\\/cake\\\/index\",\"frontPath\":\"\\\/apply\\\/main\\\/cake\\\/index\",\"fixed_business_code\":\"\"}",
|
|
45
|
+
"redirect_type": "INN"
|
|
46
|
+
}, {
|
|
47
|
+
"id": 18,
|
|
48
|
+
"business_code": "book",
|
|
49
|
+
"entry_name": "图书",
|
|
50
|
+
"image_url": "https:\/\/sandbox-img.jufubao.cn\/uploads\/20230927\/9edcdc737c48cdbf9364e321e8199a93.png",
|
|
51
|
+
"redirect_data": "{\"dir\":\"apply\",\"host\":\"sandbox-website-05.jufubao.cn\",\"path\":\"\\\/main\\\/book\\\/index\",\"site_id\":\"17928cc37788be02\",\"site_url\":\"https:\\\/\\\/sandbox-website-05.jufubao.cn\\\/apply\\\/main\\\/book\\\/index\",\"frontPath\":\"\\\/apply\\\/main\\\/book\\\/index\",\"fixed_business_code\":\"\"}",
|
|
52
|
+
"redirect_type": "INN"
|
|
53
|
+
}, {
|
|
54
|
+
"id": 8,
|
|
55
|
+
"business_code": "market",
|
|
56
|
+
"entry_name": "百货",
|
|
57
|
+
"image_url": "https:\/\/sandbox-img.jufubao.cn\/uploads\/20230927\/920c4bd80f0a995e245aedbfaf1181d5.png",
|
|
58
|
+
"redirect_data": "{\"dir\":\"apply02\",\"host\":\"sandbox-website-05.jufubao.cn\",\"path\":\"\\\/main\\\/mall\\\/index\",\"site_id\":\"17928cc37788be02\",\"site_url\":\"https:\\\/\\\/sandbox-website-05.jufubao.cn\\\/apply02\\\/main\\\/mall\\\/index\",\"frontPath\":\"\\\/apply02\\\/main\\\/mall\\\/index\",\"fixed_business_code\":\"\"}",
|
|
59
|
+
"redirect_type": "INN"
|
|
60
|
+
}, {
|
|
61
|
+
"id": 17,
|
|
62
|
+
"business_code": "video",
|
|
63
|
+
"entry_name": "网络视听",
|
|
64
|
+
"image_url": "https:\/\/sandbox-img.jufubao.cn\/uploads\/20230927\/1ca9647b7ddd9937054792412d3c2367.png",
|
|
65
|
+
"redirect_data": "{\"dir\":\"apply\",\"host\":\"sandbox-website-05.jufubao.cn\",\"path\":\"\\\/main\\\/video\\\/index\",\"site_id\":\"17928cc37788be02\",\"site_url\":\"https:\\\/\\\/sandbox-website-05.jufubao.cn\\\/apply\\\/main\\\/video\\\/index\",\"frontPath\":\"\\\/apply\\\/main\\\/video\\\/index\",\"fixed_business_code\":\"\"}",
|
|
66
|
+
"redirect_type": "INN"
|
|
67
|
+
}, {
|
|
68
|
+
"id": 35,
|
|
69
|
+
"business_code": "v-RcA8Mv-Gpd96_Y_mjIf",
|
|
70
|
+
"entry_name": "全福券",
|
|
71
|
+
"image_url": "https:\/\/sandbox-img.jufubao.cn\/uploads\/20230927\/53191864826b864b8b6fd4f1eb397a93.png",
|
|
72
|
+
"redirect_data": "{\"dir\":\"apply\",\"host\":\"sandbox-website-05.jufubao.cn\",\"path\":\"\\\/system\\\/card\\\/card\",\"site_id\":\"17928cc37788be02\",\"site_url\":\"https:\\\/\\\/sandbox-website-05.jufubao.cn\\\/apply\\\/system\\\/card\\\/card\",\"frontPath\":\"\\\/apply\\\/system\\\/card\\\/card\",\"fixed_business_code\":\"\"}",
|
|
73
|
+
"redirect_type": "INN"
|
|
74
|
+
}, {
|
|
75
|
+
"id": 40,
|
|
76
|
+
"business_code": "93028be3",
|
|
77
|
+
"entry_name": "专区",
|
|
78
|
+
"image_url": "https:\/\/sandbox-img.jufubao.cn\/uploads\/20230927\/84d23a8c7af7a63842eb696c00068b3d.png",
|
|
79
|
+
"redirect_data": "{\"dir\":\"apply05\",\"host\":\"sandbox-website-05.jufubao.cn\",\"path\":\"\\\/main\\\/mall\\\/index\",\"site_id\":\"17928cc37788be02\",\"site_url\":\"https:\\\/\\\/sandbox-website-05.jufubao.cn\\\/apply05\\\/main\\\/mall\\\/index\",\"frontPath\":\"\\\/apply05\\\/main\\\/mall\\\/index\",\"fixed_business_code\":\"-y8t4cmogeFvi8fmuxFSK\"}",
|
|
80
|
+
"redirect_type": "INN"
|
|
81
|
+
}, {
|
|
82
|
+
"id": 34,
|
|
83
|
+
"business_code": "food",
|
|
84
|
+
"entry_name": "餐饮",
|
|
85
|
+
"image_url": "https:\/\/sandbox-img.jufubao.cn\/uploads\/20230927\/97728bf3ef2a6361c0a1771549d2d435.png",
|
|
86
|
+
"redirect_data": "{\"dir\":\"apply\",\"host\":\"sandbox-website-05.jufubao.cn\",\"path\":\"\\\/main\\\/food\\\/rkym\",\"site_id\":\"17928cc37788be02\",\"site_url\":\"https:\\\/\\\/sandbox-website-05.jufubao.cn\\\/apply\\\/main\\\/food\\\/rkym\",\"frontPath\":\"\\\/apply\\\/main\\\/food\\\/rkym\",\"fixed_business_code\":\"\"}",
|
|
87
|
+
"redirect_type": "INN"
|
|
88
|
+
}, {
|
|
89
|
+
"id": 55,
|
|
90
|
+
"business_code": "cake",
|
|
91
|
+
"entry_name": "蛋糕内部",
|
|
92
|
+
"image_url": "https:\/\/sandbox-img.jufubao.cn\/uploads\/20230927\/2e549739768758dde7968ff7cb98c6d8.png",
|
|
93
|
+
"redirect_data": "{\"dir\":\"apply03\",\"host\":\"sandbox-website-05.jufubao.cn\",\"path\":\"\\\/main\\\/cake\\\/index\",\"site_id\":\"17928cc37788be02\",\"site_url\":\"https:\\\/\\\/sandbox-website-05.jufubao.cn\\\/apply03\\\/main\\\/cake\\\/index\",\"frontPath\":\"\\\/apply03\\\/main\\\/cake\\\/index\",\"fixed_business_code\":\"cake\"}",
|
|
94
|
+
"redirect_type": "INN"
|
|
95
|
+
}, {
|
|
96
|
+
"id": 54,
|
|
97
|
+
"business_code": "health",
|
|
98
|
+
"entry_name": "体检",
|
|
99
|
+
"image_url": "https:\/\/sandbox-img.jufubao.cn\/uploads\/20230927\/e06b058a2104025ffecee960b3b9321d.png",
|
|
100
|
+
"redirect_data": "{\"dir\":\"apply\",\"host\":\"sandbox-website-05.jufubao.cn\",\"path\":\"\\\/main\\\/health\\\/index\",\"site_id\":\"17928cc37788be02\",\"site_url\":\"https:\\\/\\\/sandbox-website-05.jufubao.cn\\\/apply\\\/main\\\/health\\\/index\",\"frontPath\":\"\\\/apply\\\/main\\\/health\\\/index\",\"fixed_business_code\":\"\"}",
|
|
101
|
+
"redirect_type": "INN"
|
|
102
|
+
}, {
|
|
103
|
+
"id": 30,
|
|
104
|
+
"business_code": "travel",
|
|
105
|
+
"entry_name": "旅游",
|
|
106
|
+
"image_url": "https:\/\/sandbox-img.jufubao.cn\/uploads\/20230927\/09ceefe2d1776a399b567c7acdf2c9db.png",
|
|
107
|
+
"redirect_data": "{\"dir\":\"apply\",\"host\":\"sandbox-website-05.jufubao.cn\",\"path\":\"\\\/main\\\/travel\\\/index\",\"site_id\":\"17928cc37788be02\",\"site_url\":\"https:\\\/\\\/sandbox-website-05.jufubao.cn\\\/apply\\\/main\\\/travel\\\/index\",\"frontPath\":\"\\\/apply\\\/main\\\/travel\\\/index\",\"fixed_business_code\":\"\"}",
|
|
108
|
+
"redirect_type": "INN"
|
|
109
|
+
}, {
|
|
110
|
+
"id": 16,
|
|
111
|
+
"business_code": "play",
|
|
112
|
+
"entry_name": "演出",
|
|
113
|
+
"image_url": "https:\/\/sandbox-img.jufubao.cn\/uploads\/20230927\/07e1d76f1850fbadc9a12d7ff2d7689c.png",
|
|
114
|
+
"redirect_data": "{\"dir\":\"apply\",\"host\":\"sandbox-website-05.jufubao.cn\",\"path\":\"\\\/main\\\/play\\\/index\",\"site_id\":\"17928cc37788be02\",\"site_url\":\"https:\\\/\\\/sandbox-website-05.jufubao.cn\\\/apply\\\/main\\\/play\\\/index\",\"frontPath\":\"\\\/apply\\\/main\\\/play\\\/index\",\"fixed_business_code\":\"\"}",
|
|
115
|
+
"redirect_type": "INN"
|
|
116
|
+
}]
|
|
117
|
+
},
|
|
118
|
+
pwdCardBindEntry: { "id": 20, "request_id": "91f76bd11d5889be" },
|
|
119
|
+
qrcodeCardBind: {},
|
|
120
|
+
getByQrCardDetail: {},
|
|
121
|
+
qrCardBind: {},
|
|
122
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @description API模型
|
|
5
|
+
* 建议:Ffff=>模块 Xxxx=>自定义名字
|
|
6
|
+
* 获取单记录(getByIdFfffXxxx)
|
|
7
|
+
* 获取列表记录(getByListFfffXxxx)
|
|
8
|
+
* 添加列表记录(addFfffXxxxx)
|
|
9
|
+
* 删除列表记录(removeFfffXxxxx|deleteFfffXxxx)
|
|
10
|
+
* 更新列表记录(updateFfffXxxxx)
|
|
11
|
+
* @type {*[]}
|
|
12
|
+
*/
|
|
13
|
+
module.exports = [
|
|
14
|
+
{
|
|
15
|
+
mapFnName: 'fromCardListEntry',
|
|
16
|
+
title: '转出卡号列表',
|
|
17
|
+
path: '/card/v1/card-merge/list-card-merge',
|
|
18
|
+
isRule: false,
|
|
19
|
+
params: {},
|
|
20
|
+
isConsole: true,
|
|
21
|
+
disabled: true,
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
mapFnName: 'toCardListEntry',
|
|
25
|
+
title: '转入卡号列表',
|
|
26
|
+
path: '/card/v1/card-merge/list-can-use-card-merge',
|
|
27
|
+
isRule: false,
|
|
28
|
+
params: {
|
|
29
|
+
card_number: ['来源卡', 'String', '必选'],
|
|
30
|
+
},
|
|
31
|
+
isConsole: true,
|
|
32
|
+
disabled: true,
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
mapFnName: 'mergeCardEntry',
|
|
36
|
+
title: '合并卡',
|
|
37
|
+
path: '/card/v1/card-merge/merge-card',
|
|
38
|
+
isRule: false,
|
|
39
|
+
data: {
|
|
40
|
+
from_card_number: ['来源卡', 'String', '必选'],
|
|
41
|
+
to_card_number: ['转到卡', 'String', '必选']
|
|
42
|
+
},
|
|
43
|
+
isConsole: true,
|
|
44
|
+
disabled: true,
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
mapFnName: 'getListBaseNewsContent',
|
|
48
|
+
title: '获取内容',
|
|
49
|
+
path: '/cms/v1/news-content',
|
|
50
|
+
isRule: false,
|
|
51
|
+
params: {
|
|
52
|
+
scene: ['使用场景', 'String', '选填'],
|
|
53
|
+
container_id: ['插件ID', 'String', '必填'],
|
|
54
|
+
page_id: ['页面ID', 'String', '必填'],
|
|
55
|
+
page_size: ['记录条数', 'Number', '必填', 1],
|
|
56
|
+
code: ['业务线id', 'String', '选填'],
|
|
57
|
+
},
|
|
58
|
+
isConsole: true,
|
|
59
|
+
disabled: true,
|
|
60
|
+
},
|
|
61
|
+
];
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @description 当表单组件中有联动操作时候,使用方法进行返回
|
|
5
|
+
*/
|
|
6
|
+
export default {
|
|
7
|
+
style: [],
|
|
8
|
+
content: (data) => {
|
|
9
|
+
return [
|
|
10
|
+
{
|
|
11
|
+
label: '内容配置:',
|
|
12
|
+
ele: 'xd-site-news',
|
|
13
|
+
valueKey: 'notice',
|
|
14
|
+
value: data.notice || null,
|
|
15
|
+
className: 'input70',
|
|
16
|
+
setting: {
|
|
17
|
+
config: {
|
|
18
|
+
sort: true,
|
|
19
|
+
maxlen: 100,
|
|
20
|
+
action: 'aliyun',
|
|
21
|
+
size: 5,
|
|
22
|
+
tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
|
|
23
|
+
uploadType: 'aliyun',
|
|
24
|
+
type: ['jpg', 'png', 'jpeg']
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
handleCustom({action, data}) {
|
|
28
|
+
if (data && data.params) {
|
|
29
|
+
//当一个插件中出现使用内容分类时候需要设置code值,在页面引用时候容器id + code进行拼接
|
|
30
|
+
//data.params = Object.assign({}, data.params, {code: 'g_test_id'});
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
//获取返回参数(场景类型名称为必填)
|
|
34
|
+
let loading = XdBus.getParentApi('loading')({});
|
|
35
|
+
|
|
36
|
+
//获取显示内容
|
|
37
|
+
if (action === 'screen') {
|
|
38
|
+
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_bucket_content_tip'})
|
|
39
|
+
.then(res => {
|
|
40
|
+
loading.close();
|
|
41
|
+
data.cb(res['list'])
|
|
42
|
+
})
|
|
43
|
+
.catch(error => {
|
|
44
|
+
console.error(error);
|
|
45
|
+
loading.close();
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
//获取返回参数(广告位高度必选项)
|
|
51
|
+
if (action === 'getNewsInfo') {
|
|
52
|
+
XdBus.getParentApi('cmsGetPublishEditxContent')(data.params)
|
|
53
|
+
.then(res => {
|
|
54
|
+
loading.close()
|
|
55
|
+
data.cb({list: res.list, selectId: res.selected})
|
|
56
|
+
})
|
|
57
|
+
.catch(error => {
|
|
58
|
+
loading.close()
|
|
59
|
+
console.error(error);
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
//获取产品业务线列表
|
|
64
|
+
if (action === 'namespace') {
|
|
65
|
+
XdBus.getParentApi('getOptionsNamespaces')({})
|
|
66
|
+
.then(res => {
|
|
67
|
+
loading.close()
|
|
68
|
+
data.cb(res['list'])
|
|
69
|
+
})
|
|
70
|
+
.catch(error => {
|
|
71
|
+
loading.close()
|
|
72
|
+
console.error(error);
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
//使用内容分类
|
|
77
|
+
if (action === 'cmsPublishEditxContent') {
|
|
78
|
+
XdBus.getParentApi('cmsPublishEditxContent')(data.params)
|
|
79
|
+
.then(res => {
|
|
80
|
+
console.log('cmsPublishEditxContent', res)
|
|
81
|
+
loading.close();
|
|
82
|
+
data.cb(res)
|
|
83
|
+
})
|
|
84
|
+
.catch(error => {
|
|
85
|
+
loading.close();
|
|
86
|
+
console.error(error);
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
//位置列表
|
|
91
|
+
if (action === 'getListPostion') {
|
|
92
|
+
XdBus.getParentApi('getListNewsPosition')(data.params)
|
|
93
|
+
.then(res => {
|
|
94
|
+
loading.close();
|
|
95
|
+
data.cb(res)
|
|
96
|
+
})
|
|
97
|
+
.catch(error => {
|
|
98
|
+
loading.close();
|
|
99
|
+
console.error(error);
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
//位置创建
|
|
104
|
+
if (action === 'addPostion') {
|
|
105
|
+
XdBus.getParentApi('addNewsPosition')(data.params)
|
|
106
|
+
.then(res => {
|
|
107
|
+
loading.close();
|
|
108
|
+
data.cb(true)
|
|
109
|
+
})
|
|
110
|
+
.catch(error => {
|
|
111
|
+
console.error(error);
|
|
112
|
+
loading.close();
|
|
113
|
+
data.cb(false)
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
//位置编辑
|
|
118
|
+
if (action === 'editPostion') {
|
|
119
|
+
XdBus.getParentApi('updateNewsPosition')(data.params)
|
|
120
|
+
.then(res => {
|
|
121
|
+
loading.close();
|
|
122
|
+
data.cb(true)
|
|
123
|
+
})
|
|
124
|
+
.catch(error => {
|
|
125
|
+
console.error(error);
|
|
126
|
+
loading.close();
|
|
127
|
+
data.cb(false)
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
//位置删除
|
|
132
|
+
if (action === 'deleltePostion') {
|
|
133
|
+
XdBus.getParentApi('deleteNewsPosition')(data.params)
|
|
134
|
+
.then(res => {
|
|
135
|
+
loading.close();
|
|
136
|
+
data.cb(true)
|
|
137
|
+
})
|
|
138
|
+
.catch(error => {
|
|
139
|
+
console.error(error);
|
|
140
|
+
loading.close();
|
|
141
|
+
data.cb(false)
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
//获取广告位内容列表
|
|
146
|
+
if (action === 'getListContent') {
|
|
147
|
+
XdBus.getParentApi('getListNewsContent')(data.params)
|
|
148
|
+
.then(res => {
|
|
149
|
+
loading.close();
|
|
150
|
+
data.cb(res)
|
|
151
|
+
})
|
|
152
|
+
.catch(error => {
|
|
153
|
+
loading.close();
|
|
154
|
+
console.error(error);
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
//广告内容创建
|
|
159
|
+
if (action === 'addContent') {
|
|
160
|
+
XdBus.getParentApi('addNewsContent')(data.params)
|
|
161
|
+
.then(res => {
|
|
162
|
+
loading.close();
|
|
163
|
+
data.cb(true)
|
|
164
|
+
})
|
|
165
|
+
.catch(error => {
|
|
166
|
+
console.error(error);
|
|
167
|
+
loading.close();
|
|
168
|
+
data.cb(false)
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
//广告内容编辑
|
|
173
|
+
if (action === 'editContent') {
|
|
174
|
+
XdBus.getParentApi('updateNewsContent')(data.params)
|
|
175
|
+
.then(res => {
|
|
176
|
+
loading.close();
|
|
177
|
+
data.cb(true)
|
|
178
|
+
})
|
|
179
|
+
.catch(error => {
|
|
180
|
+
console.error(error);
|
|
181
|
+
loading.close();
|
|
182
|
+
data.cb(false)
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
//广告内容删除
|
|
187
|
+
if (action === 'deleteContent') {
|
|
188
|
+
XdBus.getParentApi('deleteNewsContent')(data.params)
|
|
189
|
+
.then(res => {
|
|
190
|
+
loading.close();
|
|
191
|
+
data.cb(true)
|
|
192
|
+
})
|
|
193
|
+
.catch(error => {
|
|
194
|
+
console.error(error);
|
|
195
|
+
loading.close();
|
|
196
|
+
data.cb(false)
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
//内容发布
|
|
201
|
+
if (action === 'publish') {
|
|
202
|
+
console.log('publish', data.params)
|
|
203
|
+
XdBus.getParentApi('cmsPublishContent')(data.params)
|
|
204
|
+
.then(res => {
|
|
205
|
+
loading.close();
|
|
206
|
+
data.cb(res)
|
|
207
|
+
})
|
|
208
|
+
.catch(error => {
|
|
209
|
+
loading.close();
|
|
210
|
+
console.error(error);
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
//通知页面进行刷新
|
|
215
|
+
if (action === 'update') {
|
|
216
|
+
XdBus.getParentApi('getXdBusUpdateView')('onUpdateView', {});
|
|
217
|
+
loading.close()
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
inline: false,
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
label: '卡券主页:', //label
|
|
224
|
+
ele: 'xd-select-pages-path', //package 名称
|
|
225
|
+
valueKey: 'cardPath', //form[valueKey]
|
|
226
|
+
placeholder: '请选择卡券主页地址',
|
|
227
|
+
value: data.cardPath || null,
|
|
228
|
+
setting: {
|
|
229
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
230
|
+
},
|
|
231
|
+
inline: false,
|
|
232
|
+
},
|
|
233
|
+
].filter(i=>i)
|
|
234
|
+
},
|
|
235
|
+
advanced: [
|
|
236
|
+
],
|
|
237
|
+
};
|