jufubao-movie 1.0.67 → 1.0.68-beta1
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/get.package.path.js +2 -2
- package/package.json +1 -1
- package/src/components/JfbMovieLineCinema/Attr.js +26 -92
- package/src/components/JfbMovieLineCinema/JfbMovieLineCinema.vue +310 -121
- package/src/components/JfbMovieLineCinema/Mock.js +28 -2
- package/src/components/JfbMovieLineCinema/cusAttr/advanced.js +136 -0
- package/src/components/JfbMovieLineCinema/cusAttr/content.js +203 -0
- package/src/components/JfbMovieLineCinema/cusAttr/shops.js +242 -0
- package/src/components/JfbMovieLineCinema/cusAttr/style.js +80 -0
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
import {
|
|
3
|
+
dataVal,
|
|
4
|
+
statusDataVal,
|
|
5
|
+
statusShow
|
|
6
|
+
} from "@/utils/AttrTools";
|
|
7
|
+
export default (data, gValue, gColor, oldData = {}) => {
|
|
8
|
+
let scanPath = null, jhdPath = null, qpPath = null
|
|
9
|
+
if (data['scanPath'] !== undefined) {
|
|
10
|
+
scanPath = data['scanPath'];
|
|
11
|
+
} else {
|
|
12
|
+
scanPath = data['sellPath']
|
|
13
|
+
}
|
|
14
|
+
if (data['jhdPath'] !== undefined) {
|
|
15
|
+
jhdPath = data['jhdPath'];
|
|
16
|
+
} else {
|
|
17
|
+
jhdPath = data['sellPath']
|
|
18
|
+
}
|
|
19
|
+
if (data['qpPath'] !== undefined) {
|
|
20
|
+
qpPath = data['qpPath'];
|
|
21
|
+
} else {
|
|
22
|
+
qpPath = data['sellPath']
|
|
23
|
+
}
|
|
24
|
+
return [
|
|
25
|
+
{
|
|
26
|
+
label: '在线选座',
|
|
27
|
+
ele: 'xd-select-pages-path',
|
|
28
|
+
labelInline: true,
|
|
29
|
+
valueKey: 'schedule_choose_path',
|
|
30
|
+
placeholder: '请选择在线选座跳转路径',
|
|
31
|
+
className: 'input100',
|
|
32
|
+
value: dataVal({ data, key: 'schedule_choose_path', dValue: null, gValue }),
|
|
33
|
+
groupKey: 'advanced',
|
|
34
|
+
notice: '点击影院也会跳转到这个地址',
|
|
35
|
+
inline: false,
|
|
36
|
+
setting: {
|
|
37
|
+
mode: 'new',
|
|
38
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
label: '切换城市',
|
|
43
|
+
ele: 'xd-select-pages-path',
|
|
44
|
+
labelInline: true,
|
|
45
|
+
valueKey: 'choseCityPath',
|
|
46
|
+
placeholder: '选择切换城市跳转路径',
|
|
47
|
+
value: dataVal({ data, key: 'choseCityPath', dValue: null, gValue }),
|
|
48
|
+
className: 'input100',
|
|
49
|
+
groupKey: 'advanced',
|
|
50
|
+
setting: {
|
|
51
|
+
mode: 'new',
|
|
52
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
label: '电子码',
|
|
57
|
+
ele: 'xd-select-pages-path',
|
|
58
|
+
labelInline: true,
|
|
59
|
+
valueKey: 'codeChoosePath',
|
|
60
|
+
placeholder: '请选择电子码跳转路径',
|
|
61
|
+
value: dataVal({ data, key: 'codeChoosePath', dValue: null, gValue }),
|
|
62
|
+
className: 'input100',
|
|
63
|
+
groupKey: 'advanced',
|
|
64
|
+
setting: {
|
|
65
|
+
mode: 'new',
|
|
66
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
label: '扫一扫',
|
|
71
|
+
ele: 'xd-select-pages-path',
|
|
72
|
+
valueKey: 'scanPath',
|
|
73
|
+
placeholder: '请选扫一扫跳转地址',
|
|
74
|
+
groupKey: 'advanced',
|
|
75
|
+
className: 'input100',
|
|
76
|
+
labelInline: true,
|
|
77
|
+
value: scanPath,
|
|
78
|
+
setting: {
|
|
79
|
+
mode: 'new',
|
|
80
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
81
|
+
},
|
|
82
|
+
inline: false,
|
|
83
|
+
notice: '服务类型为支持 核销时使用'
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
label: '聚好兑',
|
|
87
|
+
ele: 'xd-select-pages-path',
|
|
88
|
+
valueKey: 'jhdPath',
|
|
89
|
+
placeholder: '请选择聚好兑跳转地址',
|
|
90
|
+
labelInline: true,
|
|
91
|
+
groupKey: 'advanced',
|
|
92
|
+
className: 'input100',
|
|
93
|
+
value: jhdPath,
|
|
94
|
+
setting: {
|
|
95
|
+
mode: 'new',
|
|
96
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
97
|
+
},
|
|
98
|
+
inline: false,
|
|
99
|
+
notice: '服务类型为支持 核销时使用'
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
label: '快捷码',
|
|
103
|
+
ele: 'xd-select-pages-path',
|
|
104
|
+
valueKey: 'qpPath',
|
|
105
|
+
placeholder: '请选择快捷码跳转地址',
|
|
106
|
+
groupKey: 'advanced',
|
|
107
|
+
labelInline: true,
|
|
108
|
+
className: 'input100',
|
|
109
|
+
value: qpPath,
|
|
110
|
+
setting: {
|
|
111
|
+
mode: 'new',
|
|
112
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
113
|
+
},
|
|
114
|
+
inline: false,
|
|
115
|
+
notice: '服务类型为支持 核销时使用'
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
label: '线下核销',
|
|
119
|
+
ele: 'xd-select-pages-path',
|
|
120
|
+
valueKey: 'sellPath',
|
|
121
|
+
labelInline: true,
|
|
122
|
+
placeholder: '请选择线下核销路径',
|
|
123
|
+
value: dataVal({ data, key: 'sellPath', dValue: null, gValue }),
|
|
124
|
+
className: 'input100',
|
|
125
|
+
hidden: true,
|
|
126
|
+
groupKey: 'advanced',
|
|
127
|
+
notice: '线下核销跳转地址',
|
|
128
|
+
setting: {
|
|
129
|
+
mode: 'new',
|
|
130
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
131
|
+
},
|
|
132
|
+
inline: false,
|
|
133
|
+
},
|
|
134
|
+
].filter(i => i)
|
|
135
|
+
}
|
|
136
|
+
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
import { customVal, dataVal } from "@/utils/AttrTools";
|
|
4
|
+
|
|
5
|
+
export default (data, gValue, gColor, oldData = {}) => {
|
|
6
|
+
let checkFieldsBg = {
|
|
7
|
+
bodyPaddingStatus: ['bodyPadding'],
|
|
8
|
+
cardItemSpaceStatus: ['cardItemSpace']
|
|
9
|
+
}
|
|
10
|
+
let checkJHD = false;
|
|
11
|
+
let checkWB = false;
|
|
12
|
+
let checkQP = false
|
|
13
|
+
if (data['fastEntryStatus']===undefined) {
|
|
14
|
+
if (data['is_show_sell'] === 'Y') {
|
|
15
|
+
checkJHD = true;
|
|
16
|
+
checkWB = true;
|
|
17
|
+
checkQP = true;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return [
|
|
21
|
+
{
|
|
22
|
+
ele: 'title',
|
|
23
|
+
label: '基础',
|
|
24
|
+
size: 'small',
|
|
25
|
+
groupKey: 'content',
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
label: '排序方式',
|
|
29
|
+
ele: 'xd-site-select-list',
|
|
30
|
+
labelInline: true,
|
|
31
|
+
valueKey: 'sort_consume_mode',
|
|
32
|
+
value: dataVal({ data, key: 'sort_consume_mode', dValue: '', gValue }),
|
|
33
|
+
groupKey: 'content',
|
|
34
|
+
placeholder: '请选择排序方式',
|
|
35
|
+
multiple: false,
|
|
36
|
+
className: 'input80',
|
|
37
|
+
handleCustom({ action, data }) {
|
|
38
|
+
XdBus.getParentApi('getOptionsSettingList')({
|
|
39
|
+
setting_id: 'sort_consume_mode',
|
|
40
|
+
key: Date.now()
|
|
41
|
+
})
|
|
42
|
+
.then(res => {
|
|
43
|
+
data.cb(res.list)
|
|
44
|
+
})
|
|
45
|
+
.catch(error => {
|
|
46
|
+
console.error(error);
|
|
47
|
+
});
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
ele: 'title',
|
|
52
|
+
label: '组件样式',
|
|
53
|
+
size: 'small',
|
|
54
|
+
groupKey: 'content',
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
label: "门店布局",
|
|
58
|
+
ele: "xd-style-image",
|
|
59
|
+
groupKey: 'content',
|
|
60
|
+
valueKey: "shopListStyle",
|
|
61
|
+
value: dataVal({ data, key: 'shopListStyle', dValue: 'v3', gValue }),
|
|
62
|
+
labelInline: true,
|
|
63
|
+
className: 'input100',
|
|
64
|
+
handleCustom(cusRes) {
|
|
65
|
+
XdBus.getParentApi('getCompStylesOptions')({
|
|
66
|
+
layout_ids: '67gEK19OLvv1pnomF15oJ',
|
|
67
|
+
key: Date.now()
|
|
68
|
+
})
|
|
69
|
+
.then(res => {
|
|
70
|
+
res.list = res.list.filter(item => item.value !== 'v2')
|
|
71
|
+
cusRes.data.cb(res)
|
|
72
|
+
})
|
|
73
|
+
.catch(error => {
|
|
74
|
+
console.error(error);
|
|
75
|
+
});
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
label: "门店样式",
|
|
80
|
+
ele: "xd-style-image",
|
|
81
|
+
groupKey: 'content',
|
|
82
|
+
valueKey: "shopStyle",
|
|
83
|
+
cusStyle: { marginBottom: '5px' },
|
|
84
|
+
value: customVal({
|
|
85
|
+
data,
|
|
86
|
+
key: 'shopStyle',
|
|
87
|
+
fields: checkFieldsBg,
|
|
88
|
+
gValue,
|
|
89
|
+
sValue: `{"cardItemSpace":16,"margin":{"bottom":16,"left":16,"right":16,"top":16},"backgroundColor":"rgba(245, 245, 245, 1)"}`,
|
|
90
|
+
}),
|
|
91
|
+
labelInline: true,
|
|
92
|
+
className: 'input100',
|
|
93
|
+
handleCustom(cusRes) {
|
|
94
|
+
XdBus.getParentApi('getCompStylesOptions')({
|
|
95
|
+
layout_ids: 'KwoIQ5lXgRFd4LQMYWJIY',
|
|
96
|
+
key: Date.now()
|
|
97
|
+
})
|
|
98
|
+
.then(res => {
|
|
99
|
+
cusRes.data.cb(res)
|
|
100
|
+
})
|
|
101
|
+
.catch(error => {
|
|
102
|
+
console.error(error);
|
|
103
|
+
});
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
ele: 'title',
|
|
108
|
+
label: '展示内容',
|
|
109
|
+
size: 'small',
|
|
110
|
+
groupKey: 'content',
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
ele: 'xd-line',
|
|
114
|
+
groupKey: 'content'
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
label: "是否显示到店使用:",
|
|
118
|
+
ele: "xd-radio",
|
|
119
|
+
valueKey: "is_show_sell",
|
|
120
|
+
value: data['is_show_sell'] || 'N',
|
|
121
|
+
groupKey: 'content',
|
|
122
|
+
hidden: true,
|
|
123
|
+
list: [
|
|
124
|
+
{ label: '显示', value: "Y" },
|
|
125
|
+
{ label: '不显示', value: "N" },
|
|
126
|
+
]
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
label: '门店地址',
|
|
130
|
+
ele: 'xd-cus-switch',
|
|
131
|
+
valueKey: 'showStoreAddress',
|
|
132
|
+
value: dataVal({ data, key: 'showStoreAddress', dValue: 'Y', gValue }),
|
|
133
|
+
isRefresh: true,
|
|
134
|
+
className: 'input100',
|
|
135
|
+
groupKey: 'content',
|
|
136
|
+
labelInline: true,
|
|
137
|
+
cusStyle: { marginBottom: '10px' },
|
|
138
|
+
setting: {
|
|
139
|
+
isBackType: 'string'
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
ele: 'xd-line',
|
|
144
|
+
groupKey: 'content'
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
label: '距离',
|
|
148
|
+
ele: 'xd-cus-switch',
|
|
149
|
+
valueKey: 'showStoreDistance',
|
|
150
|
+
value: dataVal({ data, key: 'showStoreDistance', dValue: "Y", gValue }),
|
|
151
|
+
className: 'input100',
|
|
152
|
+
groupKey: 'content',
|
|
153
|
+
labelInline: true,
|
|
154
|
+
cusStyle: { marginBottom: '10px' },
|
|
155
|
+
setting: {
|
|
156
|
+
isBackType: 'string'
|
|
157
|
+
},
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
ele: 'xd-line',
|
|
161
|
+
groupKey: 'content'
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
label: '快捷入口',
|
|
165
|
+
ele: 'xd-cus-switch',
|
|
166
|
+
valueKey: 'fastEntryStatus',
|
|
167
|
+
value: dataVal({ data, key: 'fastEntryStatus', dValue: "N", gValue }),
|
|
168
|
+
className: 'input100',
|
|
169
|
+
groupKey: 'content',
|
|
170
|
+
labelInline: true,
|
|
171
|
+
cusStyle: { marginBottom: '10px' },
|
|
172
|
+
setting: {
|
|
173
|
+
isBackType: 'string'
|
|
174
|
+
},
|
|
175
|
+
},
|
|
176
|
+
{ ele: 'group_start' },
|
|
177
|
+
{
|
|
178
|
+
label: '',
|
|
179
|
+
ele: 'xd-name-check',
|
|
180
|
+
valueKey: 'fastEntry',
|
|
181
|
+
groupKey: 'content',
|
|
182
|
+
value: dataVal({ data, key: 'fastEntry', dValue: [], gValue }),
|
|
183
|
+
className: 'input100',
|
|
184
|
+
setting: {
|
|
185
|
+
isSort: false,
|
|
186
|
+
width: 90,
|
|
187
|
+
},
|
|
188
|
+
labelInline: true,
|
|
189
|
+
hidden: data['fastEntryStatus'] !== 'Y',
|
|
190
|
+
handleCustom({ action, data }) {
|
|
191
|
+
data.cb([
|
|
192
|
+
{ value: 'jhd', label: '聚好兑', input: '', def: '聚好兑', check: checkJHD, placeholder: '服务类型为支持核销时使用' },
|
|
193
|
+
{ value: 'wb', label: '扫一扫', input: '', def: '扫一扫', check: checkWB, placeholder: '服务类型为支持核销时使用' },
|
|
194
|
+
{ value: 'qp', label: '快捷码', input: '', def: '去提货', check: checkQP, placeholder: '服务类型为支持核销时使用' },
|
|
195
|
+
{ value: 'seat', label: '在线选座', input: '', def: '去订票', check: false, placeholder: '去订票' },
|
|
196
|
+
{ value: 'code', label: '电子码', input: '', def: '电子码', check: false, placeholder: '电子码' },
|
|
197
|
+
])
|
|
198
|
+
},
|
|
199
|
+
},
|
|
200
|
+
{ ele: 'group_end' },
|
|
201
|
+
].filter(i => i)
|
|
202
|
+
}
|
|
203
|
+
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
import {
|
|
3
|
+
dataVal ,
|
|
4
|
+
statusShow,
|
|
5
|
+
statusDataVal,
|
|
6
|
+
getCustomAttr,
|
|
7
|
+
cRaBorShadow
|
|
8
|
+
} from "@/utils/AttrTools";
|
|
9
|
+
export default function (data, gValue, gColor, oldData) {
|
|
10
|
+
console.log('data', data, gValue, gColor, oldData);
|
|
11
|
+
let defCardItemBorder = cRaBorShadow( data, 'cardItemBorder', {dValue:'N'},gValue);
|
|
12
|
+
let defCardItemShadow = cRaBorShadow( data, 'cardItemShadow', {dValue:'N'},gValue);
|
|
13
|
+
let defCardImageBorder = cRaBorShadow( data, 'cardImageBorder', {dValue:'N'},gValue);
|
|
14
|
+
return [
|
|
15
|
+
{
|
|
16
|
+
label: "影院列表样式",
|
|
17
|
+
ele: "title",
|
|
18
|
+
groupKey: "style",
|
|
19
|
+
size: "small",
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
label: '内边距',
|
|
23
|
+
ele: 'xd-radio',
|
|
24
|
+
groupKey: 'style',
|
|
25
|
+
valueKey: 'itemPaddingStatus',
|
|
26
|
+
value: statusDataVal({data, key:'itemPaddingStatus', fields:['itemPadding'],gValue}),
|
|
27
|
+
labelInline:true,
|
|
28
|
+
list: [
|
|
29
|
+
{label: '默认', value: 'D'},
|
|
30
|
+
{label: '自定义', value: 'C'},
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
{ele: 'group_start'},
|
|
34
|
+
{
|
|
35
|
+
label: '',
|
|
36
|
+
ele: 'xd-margin-padding',
|
|
37
|
+
groupKey:'style',
|
|
38
|
+
valueKey: 'itemPadding',
|
|
39
|
+
hidden:!statusShow({data, key: 'itemPaddingStatus', fields:['itemPadding'], gValue}),
|
|
40
|
+
value: dataVal({
|
|
41
|
+
data,
|
|
42
|
+
key:'itemPadding',
|
|
43
|
+
dValue:[gValue.isAdd && gValue.isFirst ?{top:16,left:16, right:16, bottom:16}:20],
|
|
44
|
+
gValue,
|
|
45
|
+
isPM: true,
|
|
46
|
+
}),
|
|
47
|
+
setting: {
|
|
48
|
+
type: 'padding',
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
{ele: 'group_end'},
|
|
52
|
+
{
|
|
53
|
+
label: '背景色',
|
|
54
|
+
ele: 'xd-radio',
|
|
55
|
+
groupKey: 'style',
|
|
56
|
+
valueKey: 'cardItemBgColorStatus',
|
|
57
|
+
value: statusDataVal({data, key: 'cardItemBgColorStatus', fields:['cardItemBgColor'], gValue}),
|
|
58
|
+
labelInline:true,
|
|
59
|
+
list: [
|
|
60
|
+
{label: '默认', value: 'D'},
|
|
61
|
+
{label: '自定义', value: 'C'},
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
{ele: 'group_start'},
|
|
65
|
+
{
|
|
66
|
+
label: '颜色',
|
|
67
|
+
ele: 'xd-color',
|
|
68
|
+
groupKey:'style',
|
|
69
|
+
valueKey: 'cardItemBgColor',
|
|
70
|
+
labelInline:true,
|
|
71
|
+
value: dataVal({data, key:'cardItemBgColor', dValue:'#FFF', gValue}),
|
|
72
|
+
hidden: !statusShow({data, key: 'cardItemBgColorStatus', fields:['cardItemBgColor'], gValue}),
|
|
73
|
+
placeholder: '请选择背景颜色',
|
|
74
|
+
classNmae: 'input80',
|
|
75
|
+
setting: {
|
|
76
|
+
showAlpha: true
|
|
77
|
+
},
|
|
78
|
+
inline: false,
|
|
79
|
+
},
|
|
80
|
+
{ele: 'group_end'},
|
|
81
|
+
{
|
|
82
|
+
label: '间距设置',
|
|
83
|
+
ele: 'xd-radio',
|
|
84
|
+
groupKey: 'style',
|
|
85
|
+
valueKey: 'cardItemSpaceStatus',
|
|
86
|
+
value: statusDataVal({data, key:'cardItemSpaceStatus', fields:['cardItemSpace'],gValue,cusField:['shopStyle']}),
|
|
87
|
+
labelInline:true,
|
|
88
|
+
list: [
|
|
89
|
+
{label: '默认', value: 'D'},
|
|
90
|
+
{label: '自定义', value: 'C'},
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
{ele: 'group_start'},
|
|
94
|
+
{
|
|
95
|
+
label: "",
|
|
96
|
+
groupKey: 'style',
|
|
97
|
+
ele: 'xd-slider',
|
|
98
|
+
valueKey: "cardItemSpace",
|
|
99
|
+
value: dataVal({data, key:'cardItemSpace', dValue:[gValue.isAdd && gValue.isFirst ?16:20], gValue}),
|
|
100
|
+
hidden: !statusShow({data, key: 'cardItemSpaceStatus', fields:['cardItemSpace'], gValue}),
|
|
101
|
+
className: "input100",
|
|
102
|
+
labelInline: true,
|
|
103
|
+
setting:{
|
|
104
|
+
min: 0,
|
|
105
|
+
max: 100,
|
|
106
|
+
step:1,
|
|
107
|
+
showStops:false,
|
|
108
|
+
showInput:false,
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
{ele: 'group_end'},
|
|
112
|
+
{
|
|
113
|
+
label: '圆角',
|
|
114
|
+
ele: 'xd-radio',
|
|
115
|
+
groupKey: 'style',
|
|
116
|
+
valueKey: 'cardItemRadiusStatus',
|
|
117
|
+
value: statusDataVal({data, key:'cardItemRadiusStatus', fields:['cardItemRadius'],gValue}),
|
|
118
|
+
labelInline:true,
|
|
119
|
+
list: [
|
|
120
|
+
{label: '默认', value: 'D'},
|
|
121
|
+
{label: '无圆角', value: 'N'},
|
|
122
|
+
{label: '自定义', value: 'C'},
|
|
123
|
+
]
|
|
124
|
+
},
|
|
125
|
+
{ele: 'group_start'},
|
|
126
|
+
{
|
|
127
|
+
label: '大小',
|
|
128
|
+
ele: 'xd-site-select-list',
|
|
129
|
+
labelInline: true,
|
|
130
|
+
valueKey: 'cardItemRadius',
|
|
131
|
+
value: dataVal({data, key:'cardItemRadius', dValue:['10'], gValue}),
|
|
132
|
+
hidden: !statusShow({data, key: 'cardItemRadiusStatus', fields:['cardItemRadius'], gValue}),
|
|
133
|
+
placeholder: '请选择圆角',
|
|
134
|
+
multiple: false,
|
|
135
|
+
className: 'input40',
|
|
136
|
+
groupKey:'style',
|
|
137
|
+
handleCustom({action, data}) {
|
|
138
|
+
XdBus.getParentApi('getOptionsSettingList')({
|
|
139
|
+
setting_id: 'edtix_style_radius',
|
|
140
|
+
key: Date.now()
|
|
141
|
+
})
|
|
142
|
+
.then(res => {
|
|
143
|
+
res.list = res.list.filter(item=>{
|
|
144
|
+
return item.label !== '无';
|
|
145
|
+
});
|
|
146
|
+
data.cb(res.list)
|
|
147
|
+
})
|
|
148
|
+
.catch(error => {
|
|
149
|
+
console.error(error);
|
|
150
|
+
});
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
{ele: 'group_end'},
|
|
154
|
+
{
|
|
155
|
+
label: '描边',
|
|
156
|
+
ele: 'xd-border',
|
|
157
|
+
labelInline: true,
|
|
158
|
+
groupKey:'style',
|
|
159
|
+
valueKey: 'cardItemBorder',
|
|
160
|
+
value: defCardItemBorder,
|
|
161
|
+
setting: {
|
|
162
|
+
selected:defCardItemBorder.type,
|
|
163
|
+
isRadio: true,//启用editx默认
|
|
164
|
+
isDef: true, //启动默认选项
|
|
165
|
+
//==设置默认值==
|
|
166
|
+
color: '#f8f8f8',
|
|
167
|
+
width: '2',
|
|
168
|
+
style: 'solid'
|
|
169
|
+
//==设置默认值==
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
label: '投影',
|
|
174
|
+
ele: 'xd-shadow',
|
|
175
|
+
labelInline: true,
|
|
176
|
+
groupKey:'style',
|
|
177
|
+
valueKey: 'cardItemShadow',
|
|
178
|
+
value: defCardItemShadow,
|
|
179
|
+
className: 'input100',
|
|
180
|
+
setting: {
|
|
181
|
+
selected: defCardItemShadow.type,
|
|
182
|
+
isRadio:true,
|
|
183
|
+
isDef: true,
|
|
184
|
+
default: {
|
|
185
|
+
color:'rgba(0,0,0,0.1)',
|
|
186
|
+
width:'10',
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
handleCustom({action, data}) {
|
|
190
|
+
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
|
|
191
|
+
.then(res => {
|
|
192
|
+
res.list = res.list.filter(item=>{
|
|
193
|
+
return item.label !== '无';
|
|
194
|
+
});
|
|
195
|
+
data.cb(res.list)
|
|
196
|
+
})
|
|
197
|
+
.catch(error => {
|
|
198
|
+
console.error(error);
|
|
199
|
+
data.cb([])
|
|
200
|
+
});
|
|
201
|
+
},
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
label: "背景颜色:",
|
|
205
|
+
ele: "xd-color",
|
|
206
|
+
valueKey: "bodyBgColor",
|
|
207
|
+
value: data.bodyBgColor || "",
|
|
208
|
+
groupKey: "style",
|
|
209
|
+
hidden:true,
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
label: '距离样式',
|
|
213
|
+
ele: 'xd-radio',
|
|
214
|
+
groupKey: 'style',
|
|
215
|
+
valueKey: 'distanceColorStatus',
|
|
216
|
+
value: statusDataVal({data, key: 'distanceColorStatus', fields:['distanceColor'], gValue}),
|
|
217
|
+
labelInline:true,
|
|
218
|
+
list: [
|
|
219
|
+
{label: '默认', value: 'D'},
|
|
220
|
+
{label: '自定义', value: 'C'},
|
|
221
|
+
]
|
|
222
|
+
},
|
|
223
|
+
{ele: 'group_start'},
|
|
224
|
+
{
|
|
225
|
+
label: '文字颜色',
|
|
226
|
+
ele: 'xd-color',
|
|
227
|
+
groupKey:'style',
|
|
228
|
+
valueKey: 'distanceColor',
|
|
229
|
+
labelInline:true,
|
|
230
|
+
value: dataVal({data, key:'distanceColor', dValue:'#999999', gValue}),
|
|
231
|
+
hidden: !statusShow({data, key: 'distanceColorStatus', fields:['distanceColor'], gValue}),
|
|
232
|
+
placeholder: '请选择背景颜色',
|
|
233
|
+
classNmae: 'input80',
|
|
234
|
+
setting: {
|
|
235
|
+
showAlpha: true
|
|
236
|
+
},
|
|
237
|
+
inline: false,
|
|
238
|
+
},
|
|
239
|
+
{ele: 'group_end'},
|
|
240
|
+
].filter(i=>i)
|
|
241
|
+
}
|
|
242
|
+
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
import {
|
|
3
|
+
dataVal,
|
|
4
|
+
statusShow,
|
|
5
|
+
statusDataVal,
|
|
6
|
+
} from "@/utils/AttrTools";
|
|
7
|
+
import shops from "./shops";
|
|
8
|
+
|
|
9
|
+
export default function (data, gValue, gColor, oldData) {
|
|
10
|
+
return [
|
|
11
|
+
{
|
|
12
|
+
label: "内容区",
|
|
13
|
+
ele: "title",
|
|
14
|
+
groupKey: "style",
|
|
15
|
+
size: "small",
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
label: '内容区边距',
|
|
19
|
+
ele: 'xd-radio',
|
|
20
|
+
groupKey: 'style',
|
|
21
|
+
valueKey: 'bodyPaddingStatus',
|
|
22
|
+
value: statusDataVal({ data, key: 'bodyPaddingStatus', fields: ['bodyPadding'], gValue, cusField: ['shopStyle'] }),
|
|
23
|
+
labelInline: true,
|
|
24
|
+
list: [
|
|
25
|
+
{ label: '默认', value: 'D' },
|
|
26
|
+
{ label: '自定义', value: 'C' },
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
{ ele: 'group_start' },
|
|
30
|
+
{
|
|
31
|
+
label: '',
|
|
32
|
+
ele: 'xd-margin-padding',
|
|
33
|
+
groupKey: 'style',
|
|
34
|
+
valueKey: 'bodyPadding',
|
|
35
|
+
hidden: !statusShow({ data, key: 'bodyPaddingStatus', fields: ['bodyPadding'], gValue }),
|
|
36
|
+
value: dataVal({
|
|
37
|
+
data,
|
|
38
|
+
key: 'bodyPadding',
|
|
39
|
+
dValue: [gValue.isAdd && gValue.isFirst ? { bottom: 0, left: 16, right: 16, top: 16 } : 20],
|
|
40
|
+
gValue,
|
|
41
|
+
isPM: true,
|
|
42
|
+
}),
|
|
43
|
+
setting: {
|
|
44
|
+
type: 'margin',
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
{ ele: 'group_end' },
|
|
48
|
+
{
|
|
49
|
+
label: '内容区背景',
|
|
50
|
+
ele: 'xd-radio',
|
|
51
|
+
groupKey: 'style',
|
|
52
|
+
valueKey: 'contentBgColorStatus',
|
|
53
|
+
value: statusDataVal({ data, key: 'contentBgColorStatus', fields: ['contentBgColor'], gValue }),
|
|
54
|
+
labelInline: true,
|
|
55
|
+
list: [
|
|
56
|
+
{ label: '默认', value: 'D' },
|
|
57
|
+
{ label: '自定义', value: 'C' },
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
{ ele: 'group_start' },
|
|
61
|
+
{
|
|
62
|
+
label: '颜色',
|
|
63
|
+
ele: 'xd-color',
|
|
64
|
+
groupKey: 'style',
|
|
65
|
+
valueKey: 'contentBgColor',
|
|
66
|
+
labelInline: true,
|
|
67
|
+
value: dataVal({ data, key: 'contentBgColor', dValue: '#f8f8f8', gValue }),
|
|
68
|
+
hidden: !statusShow({ data, key: 'contentBgColorStatus', fields: ['contentBgColor'], gValue }),
|
|
69
|
+
placeholder: '请选择背景颜色',
|
|
70
|
+
classNmae: 'input80',
|
|
71
|
+
setting: {
|
|
72
|
+
showAlpha: true
|
|
73
|
+
},
|
|
74
|
+
inline: false,
|
|
75
|
+
},
|
|
76
|
+
{ ele: 'group_end' },
|
|
77
|
+
...shops(data, gValue, gColor, oldData),
|
|
78
|
+
].filter(i => i)
|
|
79
|
+
}
|
|
80
|
+
|