jufubao-base 1.0.190 → 1.0.191
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/JfbBaseOrderDetail/Api.js +1 -0
- package/src/components/JfbBaseOrderDetail/Attr.js +54 -0
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +72 -11
- package/src/components/JfbBasePhoneCollect/Attr.js +945 -411
- package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +307 -27
- package/src/components/JfbBasePhoneLogin/Attr.js +893 -405
- package/src/components/JfbBasePhoneLogin/JfbBasePhoneLogin.vue +609 -253
- package/src/components/JfbBaseSuccess/Attr.js +1 -1
- package/src/components/JfbBaseTfkCardLogin/JfbBaseTfkCardLogin.vue +0 -1
- package/src/components/JfbBaseWallet/Attr.js +4 -1
|
@@ -3,458 +3,946 @@
|
|
|
3
3
|
export default {
|
|
4
4
|
style: [],
|
|
5
5
|
advanced: [],
|
|
6
|
-
content:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
6
|
+
content: data => {
|
|
7
|
+
return [
|
|
8
|
+
{
|
|
9
|
+
label: '隐私政策:',
|
|
10
|
+
ele: 'xd-site-news',
|
|
11
|
+
valueKey: 'notice',
|
|
12
|
+
groupKey: 'content',
|
|
13
|
+
value: data['notice'] || { type: 'privacy' },
|
|
14
|
+
className: 'input70',
|
|
15
|
+
setting: {
|
|
16
|
+
type: 'privacy',
|
|
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
|
+
},
|
|
24
26
|
},
|
|
27
|
+
handleCustom({ action, data }) {
|
|
28
|
+
if (data && data.params) {
|
|
29
|
+
//当一个插件中出现多个内容分类时候需要设置code值,在页面引用时候(容器id + code)进行拼接获取数据列表
|
|
30
|
+
data.params = Object.assign({}, data.params, { code: 'privacy_privacy' });
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
//获取返回参数(场景类型名称为必填)
|
|
34
|
+
let loading = { close() { } }
|
|
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
|
+
loading = XdBus.getParentApi('loading')({});
|
|
79
|
+
XdBus.getParentApi('cmsPublishEditxContent')(data.params)
|
|
80
|
+
.then(res => {
|
|
81
|
+
console.log('cmsPublishEditxContent', res)
|
|
82
|
+
loading.close();
|
|
83
|
+
data.cb(res)
|
|
84
|
+
})
|
|
85
|
+
.catch(error => {
|
|
86
|
+
loading.close();
|
|
87
|
+
console.error(error);
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
//位置列表
|
|
92
|
+
if (action === 'getListPostion') {
|
|
93
|
+
loading = XdBus.getParentApi('loading')({});
|
|
94
|
+
XdBus.getParentApi('getListNewsPosition')(data.params)
|
|
95
|
+
.then(res => {
|
|
96
|
+
loading.close();
|
|
97
|
+
data.cb(res)
|
|
98
|
+
})
|
|
99
|
+
.catch(error => {
|
|
100
|
+
loading.close();
|
|
101
|
+
console.error(error);
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
//位置创建
|
|
106
|
+
if (action === 'addPostion') {
|
|
107
|
+
loading = XdBus.getParentApi('loading')({});
|
|
108
|
+
XdBus.getParentApi('addNewsPosition')(data.params)
|
|
109
|
+
.then(res => {
|
|
110
|
+
loading.close();
|
|
111
|
+
data.cb(true)
|
|
112
|
+
})
|
|
113
|
+
.catch(error => {
|
|
114
|
+
console.error(error);
|
|
115
|
+
loading.close();
|
|
116
|
+
data.cb(false)
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
//位置编辑
|
|
121
|
+
if (action === 'editPostion') {
|
|
122
|
+
loading = XdBus.getParentApi('loading')({});
|
|
123
|
+
XdBus.getParentApi('updateNewsPosition')(data.params)
|
|
124
|
+
.then(res => {
|
|
125
|
+
loading.close();
|
|
126
|
+
data.cb(true)
|
|
127
|
+
})
|
|
128
|
+
.catch(error => {
|
|
129
|
+
console.error(error);
|
|
130
|
+
loading.close();
|
|
131
|
+
data.cb(false)
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
//位置删除
|
|
136
|
+
if (action === 'deleltePostion') {
|
|
137
|
+
loading = XdBus.getParentApi('loading')({});
|
|
138
|
+
XdBus.getParentApi('deleteNewsPosition')(data.params)
|
|
139
|
+
.then(res => {
|
|
140
|
+
loading.close();
|
|
141
|
+
data.cb(true)
|
|
142
|
+
})
|
|
143
|
+
.catch(error => {
|
|
144
|
+
console.error(error);
|
|
145
|
+
loading.close();
|
|
146
|
+
data.cb(false)
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
//获取广告位内容列表
|
|
151
|
+
if (action === 'getListContent') {
|
|
152
|
+
loading = XdBus.getParentApi('loading')({});
|
|
153
|
+
XdBus.getParentApi('getListNewsContent')(data.params)
|
|
154
|
+
.then(res => {
|
|
155
|
+
loading.close();
|
|
156
|
+
data.cb(res)
|
|
157
|
+
})
|
|
158
|
+
.catch(error => {
|
|
159
|
+
loading.close();
|
|
160
|
+
console.error(error);
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
//广告内容创建
|
|
165
|
+
if (action === 'addContent') {
|
|
166
|
+
loading = XdBus.getParentApi('loading')({});
|
|
167
|
+
XdBus.getParentApi('addNewsContent')(data.params)
|
|
168
|
+
.then(res => {
|
|
169
|
+
loading.close();
|
|
170
|
+
data.cb(true)
|
|
171
|
+
})
|
|
172
|
+
.catch(error => {
|
|
173
|
+
console.error(error);
|
|
174
|
+
loading.close();
|
|
175
|
+
data.cb(false)
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
//广告内容编辑
|
|
180
|
+
if (action === 'editContent') {
|
|
181
|
+
loading = XdBus.getParentApi('loading')({});
|
|
182
|
+
XdBus.getParentApi('updateNewsContent')(data.params)
|
|
183
|
+
.then(res => {
|
|
184
|
+
loading.close();
|
|
185
|
+
data.cb(true)
|
|
186
|
+
})
|
|
187
|
+
.catch(error => {
|
|
188
|
+
console.error(error);
|
|
189
|
+
loading.close();
|
|
190
|
+
data.cb(false)
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
//广告内容删除
|
|
195
|
+
if (action === 'deleteContent') {
|
|
196
|
+
loading = XdBus.getParentApi('loading')({});
|
|
197
|
+
XdBus.getParentApi('deleteNewsContent')(data.params)
|
|
198
|
+
.then(res => {
|
|
199
|
+
loading.close();
|
|
200
|
+
data.cb(true)
|
|
201
|
+
})
|
|
202
|
+
.catch(error => {
|
|
203
|
+
console.error(error);
|
|
204
|
+
loading.close();
|
|
205
|
+
data.cb(false)
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
//内容发布
|
|
210
|
+
if (action === 'publish') {
|
|
211
|
+
loading = XdBus.getParentApi('loading')({});
|
|
212
|
+
console.log('publish', data.params)
|
|
213
|
+
XdBus.getParentApi('cmsPublishContent')(data.params)
|
|
214
|
+
.then(res => {
|
|
215
|
+
loading.close();
|
|
216
|
+
data.cb(res)
|
|
217
|
+
})
|
|
218
|
+
.catch(error => {
|
|
219
|
+
loading.close();
|
|
220
|
+
console.error(error);
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
//通知页面进行刷新
|
|
225
|
+
if (action === 'update') {
|
|
226
|
+
loading = XdBus.getParentApi('loading')({});
|
|
227
|
+
XdBus.getParentApi('getXdBusUpdateView')('onUpdateView', {});
|
|
228
|
+
loading.close()
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
inline: false,
|
|
232
|
+
notice: '',
|
|
25
233
|
},
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
.
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
})
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
})
|
|
112
|
-
.
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
})
|
|
171
|
-
.
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
type: ['jpg', 'png', 'jpeg']
|
|
234
|
+
{
|
|
235
|
+
label: '用户服务协议:',
|
|
236
|
+
ele: 'xd-site-news',
|
|
237
|
+
valueKey: 'notices',
|
|
238
|
+
groupKey: 'content',
|
|
239
|
+
value: data['notices'] || { type: 'privacy' },
|
|
240
|
+
className: 'input70',
|
|
241
|
+
setting: {
|
|
242
|
+
config: {
|
|
243
|
+
sort: true,
|
|
244
|
+
maxlen: 100,
|
|
245
|
+
action: 'aliyun',
|
|
246
|
+
size: 5,
|
|
247
|
+
tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
|
|
248
|
+
uploadType: 'aliyun',
|
|
249
|
+
type: ['jpg', 'png', 'jpeg']
|
|
250
|
+
},
|
|
251
|
+
},
|
|
252
|
+
handleCustom({ action, data }) {
|
|
253
|
+
if (data && data.params) {
|
|
254
|
+
//当一个插件中出现多个内容分类时候需要设置code值,在页面引用时候(容器id + code)进行拼接获取数据列表
|
|
255
|
+
data.params = Object.assign({}, data.params, { code: 'privacy_service' });
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
//获取返回参数(场景类型名称为必填)
|
|
259
|
+
//获取返回参数(场景类型名称为必填)
|
|
260
|
+
let loading = { close() { } }
|
|
261
|
+
|
|
262
|
+
//获取显示内容
|
|
263
|
+
if (action === 'screen') {
|
|
264
|
+
XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_bucket_content_tip' })
|
|
265
|
+
.then(res => {
|
|
266
|
+
loading.close();
|
|
267
|
+
data.cb(res['list'])
|
|
268
|
+
})
|
|
269
|
+
.catch(error => {
|
|
270
|
+
console.error(error);
|
|
271
|
+
loading.close();
|
|
272
|
+
});
|
|
273
|
+
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
//获取返回参数(广告位高度必选项)
|
|
277
|
+
if (action === 'getNewsInfo') {
|
|
278
|
+
XdBus.getParentApi('cmsGetPublishEditxContent')(data.params)
|
|
279
|
+
.then(res => {
|
|
280
|
+
loading.close()
|
|
281
|
+
data.cb({ list: res.list, selectId: res.selected })
|
|
282
|
+
})
|
|
283
|
+
.catch(error => {
|
|
284
|
+
loading.close()
|
|
285
|
+
console.error(error);
|
|
286
|
+
});
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
//获取产品业务线列表
|
|
290
|
+
if (action === 'namespace') {
|
|
291
|
+
XdBus.getParentApi('getOptionsNamespaces')({})
|
|
292
|
+
.then(res => {
|
|
293
|
+
loading.close()
|
|
294
|
+
data.cb(res['list'])
|
|
295
|
+
})
|
|
296
|
+
.catch(error => {
|
|
297
|
+
loading.close()
|
|
298
|
+
console.error(error);
|
|
299
|
+
});
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
//使用内容分类
|
|
303
|
+
if (action === 'cmsPublishEditxContent') {
|
|
304
|
+
loading = XdBus.getParentApi('loading')({});
|
|
305
|
+
XdBus.getParentApi('cmsPublishEditxContent')(data.params)
|
|
306
|
+
.then(res => {
|
|
307
|
+
console.log('cmsPublishEditxContent', res)
|
|
308
|
+
loading.close();
|
|
309
|
+
data.cb(res)
|
|
310
|
+
})
|
|
311
|
+
.catch(error => {
|
|
312
|
+
loading.close();
|
|
313
|
+
console.error(error);
|
|
314
|
+
});
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
//位置列表
|
|
318
|
+
if (action === 'getListPostion') {
|
|
319
|
+
loading = XdBus.getParentApi('loading')({});
|
|
320
|
+
XdBus.getParentApi('getListNewsPosition')(data.params)
|
|
321
|
+
.then(res => {
|
|
322
|
+
loading.close();
|
|
323
|
+
data.cb(res)
|
|
324
|
+
})
|
|
325
|
+
.catch(error => {
|
|
326
|
+
loading.close();
|
|
327
|
+
console.error(error);
|
|
328
|
+
});
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
//位置创建
|
|
332
|
+
if (action === 'addPostion') {
|
|
333
|
+
loading = XdBus.getParentApi('loading')({});
|
|
334
|
+
XdBus.getParentApi('addNewsPosition')(data.params)
|
|
335
|
+
.then(res => {
|
|
336
|
+
loading.close();
|
|
337
|
+
data.cb(true)
|
|
338
|
+
})
|
|
339
|
+
.catch(error => {
|
|
340
|
+
console.error(error);
|
|
341
|
+
loading.close();
|
|
342
|
+
data.cb(false)
|
|
343
|
+
});
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
//位置编辑
|
|
347
|
+
if (action === 'editPostion') {
|
|
348
|
+
loading = XdBus.getParentApi('loading')({});
|
|
349
|
+
XdBus.getParentApi('updateNewsPosition')(data.params)
|
|
350
|
+
.then(res => {
|
|
351
|
+
loading.close();
|
|
352
|
+
data.cb(true)
|
|
353
|
+
})
|
|
354
|
+
.catch(error => {
|
|
355
|
+
console.error(error);
|
|
356
|
+
loading.close();
|
|
357
|
+
data.cb(false)
|
|
358
|
+
});
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
//位置删除
|
|
362
|
+
if (action === 'deleltePostion') {
|
|
363
|
+
loading = XdBus.getParentApi('loading')({});
|
|
364
|
+
XdBus.getParentApi('deleteNewsPosition')(data.params)
|
|
365
|
+
.then(res => {
|
|
366
|
+
loading.close();
|
|
367
|
+
data.cb(true)
|
|
368
|
+
})
|
|
369
|
+
.catch(error => {
|
|
370
|
+
console.error(error);
|
|
371
|
+
loading.close();
|
|
372
|
+
data.cb(false)
|
|
373
|
+
});
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
//获取广告位内容列表
|
|
377
|
+
if (action === 'getListContent') {
|
|
378
|
+
loading = XdBus.getParentApi('loading')({});
|
|
379
|
+
XdBus.getParentApi('getListNewsContent')(data.params)
|
|
380
|
+
.then(res => {
|
|
381
|
+
loading.close();
|
|
382
|
+
data.cb(res)
|
|
383
|
+
})
|
|
384
|
+
.catch(error => {
|
|
385
|
+
loading.close();
|
|
386
|
+
console.error(error);
|
|
387
|
+
});
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
//广告内容创建
|
|
391
|
+
if (action === 'addContent') {
|
|
392
|
+
loading = XdBus.getParentApi('loading')({});
|
|
393
|
+
XdBus.getParentApi('addNewsContent')(data.params)
|
|
394
|
+
.then(res => {
|
|
395
|
+
loading.close();
|
|
396
|
+
data.cb(true)
|
|
397
|
+
})
|
|
398
|
+
.catch(error => {
|
|
399
|
+
console.error(error);
|
|
400
|
+
loading.close();
|
|
401
|
+
data.cb(false)
|
|
402
|
+
});
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
//广告内容编辑
|
|
406
|
+
if (action === 'editContent') {
|
|
407
|
+
loading = XdBus.getParentApi('loading')({});
|
|
408
|
+
XdBus.getParentApi('updateNewsContent')(data.params)
|
|
409
|
+
.then(res => {
|
|
410
|
+
loading.close();
|
|
411
|
+
data.cb(true)
|
|
412
|
+
})
|
|
413
|
+
.catch(error => {
|
|
414
|
+
console.error(error);
|
|
415
|
+
loading.close();
|
|
416
|
+
data.cb(false)
|
|
417
|
+
});
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
//广告内容删除
|
|
421
|
+
if (action === 'deleteContent') {
|
|
422
|
+
loading = XdBus.getParentApi('loading')({});
|
|
423
|
+
XdBus.getParentApi('deleteNewsContent')(data.params)
|
|
424
|
+
.then(res => {
|
|
425
|
+
loading.close();
|
|
426
|
+
data.cb(true)
|
|
427
|
+
})
|
|
428
|
+
.catch(error => {
|
|
429
|
+
console.error(error);
|
|
430
|
+
loading.close();
|
|
431
|
+
data.cb(false)
|
|
432
|
+
});
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
//内容发布
|
|
436
|
+
if (action === 'publish') {
|
|
437
|
+
loading = XdBus.getParentApi('loading')({});
|
|
438
|
+
console.log('publish', data.params)
|
|
439
|
+
XdBus.getParentApi('cmsPublishContent')(data.params)
|
|
440
|
+
.then(res => {
|
|
441
|
+
loading.close();
|
|
442
|
+
data.cb(res)
|
|
443
|
+
})
|
|
444
|
+
.catch(error => {
|
|
445
|
+
loading.close();
|
|
446
|
+
console.error(error);
|
|
447
|
+
});
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
//通知页面进行刷新
|
|
451
|
+
if (action === 'update') {
|
|
452
|
+
loading = XdBus.getParentApi('loading')({});
|
|
453
|
+
XdBus.getParentApi('getXdBusUpdateView')('onUpdateView', {});
|
|
454
|
+
loading.close()
|
|
455
|
+
}
|
|
249
456
|
},
|
|
457
|
+
inline: false,
|
|
458
|
+
notice: '',
|
|
250
459
|
},
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
460
|
+
{
|
|
461
|
+
label: "手机号自定义提示语:",
|
|
462
|
+
ele: 'el-input',
|
|
463
|
+
valueKey: 'phonePlaceholder',
|
|
464
|
+
value: data.phonePlaceholder || "",
|
|
465
|
+
groupKey: 'content',
|
|
466
|
+
placeholder: "请输入手机号自定义提示语",
|
|
467
|
+
className: 'input80',
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
label: "验证码自定义提示语:",
|
|
471
|
+
ele: 'el-input',
|
|
472
|
+
valueKey: 'codePlaceholder',
|
|
473
|
+
value: data.codePlaceholder || "",
|
|
474
|
+
groupKey: 'content',
|
|
475
|
+
placeholder: "请输入验证码自定义提示语",
|
|
476
|
+
className: 'input80',
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
ele: "title",
|
|
480
|
+
label: "表单样式配置",
|
|
481
|
+
size: "small",
|
|
482
|
+
groupKey: "style",
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
label: "输入框样式:",
|
|
486
|
+
ele: 'xd-radio',
|
|
487
|
+
valueKey: 'inputStyle',
|
|
488
|
+
value: data.inputStyle || "linear",
|
|
489
|
+
groupKey: 'style',
|
|
490
|
+
placeholder: "请选择输入框样式",
|
|
491
|
+
multiple: false,
|
|
492
|
+
className: 'input80',
|
|
493
|
+
list: [
|
|
494
|
+
{ label: '线性', value: "linear" },
|
|
495
|
+
{ label: '面性', value: "face" },
|
|
496
|
+
],
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
label: "表单边框颜色:",
|
|
500
|
+
ele: 'xd-color',
|
|
501
|
+
valueKey: 'formBorderColor',
|
|
502
|
+
value: data.formBorderColor || "#F9F9F9",
|
|
503
|
+
groupKey: 'style',
|
|
504
|
+
placeholder: "请选择表单边框颜色",
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
label: "表单边框宽度:",
|
|
508
|
+
ele: 'el-input',
|
|
509
|
+
valueKey: 'formBorderWidth',
|
|
510
|
+
value: data.formBorderWidth || "1",
|
|
511
|
+
type: "number",
|
|
512
|
+
groupKey: 'style',
|
|
513
|
+
placeholder: "请输入表单边框宽度",
|
|
514
|
+
className: 'input60',
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
label: "表单背景颜色:",
|
|
518
|
+
ele: 'xd-color',
|
|
519
|
+
valueKey: 'formBgColor',
|
|
520
|
+
value: data.formBgColor || "#FFFFFF",
|
|
521
|
+
groupKey: 'style',
|
|
522
|
+
placeholder: "请选择表单背景颜色",
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
label: '表单容器设置内边距:',
|
|
526
|
+
groupKey: 'style',
|
|
527
|
+
ele: 'xd-margin-padding',
|
|
528
|
+
valueKey: 'formPadding',
|
|
529
|
+
value: data.formPadding || null,
|
|
530
|
+
setting: {
|
|
531
|
+
type: 'padding',
|
|
532
|
+
},
|
|
533
|
+
placeholder: '请设置边距',
|
|
534
|
+
inline: false,
|
|
535
|
+
notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
label: '表单容器设置外边距:',
|
|
539
|
+
ele: "xd-margin-padding",
|
|
540
|
+
valueKey: 'formMargin',
|
|
541
|
+
value: data.formMargin || {
|
|
542
|
+
top: 0,
|
|
543
|
+
right: 0,
|
|
544
|
+
bottom: 0,
|
|
545
|
+
left: 0
|
|
546
|
+
},
|
|
547
|
+
setting: {
|
|
548
|
+
type: 'margin',
|
|
549
|
+
},
|
|
550
|
+
groupKey:'style',
|
|
551
|
+
placeholder: '请设置边距',
|
|
552
|
+
inline: false,
|
|
553
|
+
notice: '设置外边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
label: "表单容器圆角",
|
|
557
|
+
ele: 'xd-site-select-list',
|
|
558
|
+
valueKey: 'formRadius',
|
|
559
|
+
value: data['formRadius'] || '0',
|
|
560
|
+
groupKey: 'style',
|
|
561
|
+
placeholder: '请选择内容圆角设置',
|
|
562
|
+
multiple: false,
|
|
563
|
+
className: 'input80',
|
|
564
|
+
handleCustom({ action, data }) {
|
|
565
|
+
XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
|
|
320
566
|
.then(res => {
|
|
321
|
-
|
|
322
|
-
data.cb(res)
|
|
567
|
+
data.cb(res.list)
|
|
323
568
|
})
|
|
324
569
|
.catch(error => {
|
|
325
|
-
loading.close();
|
|
326
570
|
console.error(error);
|
|
327
571
|
});
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
572
|
+
},
|
|
573
|
+
},
|
|
574
|
+
{
|
|
575
|
+
label: "表单容器边框颜色:",
|
|
576
|
+
ele: 'xd-color',
|
|
577
|
+
valueKey: 'formWrapBorderColor',
|
|
578
|
+
value: data.formWrapBorderColor || "#F9F9F9",
|
|
579
|
+
groupKey: 'style',
|
|
580
|
+
placeholder: "请选择表单边框颜色",
|
|
581
|
+
},
|
|
582
|
+
{
|
|
583
|
+
label: "表单容器边框宽度:",
|
|
584
|
+
ele: 'el-input',
|
|
585
|
+
valueKey: 'formWrapBorderWidth',
|
|
586
|
+
value: data.formWrapBorderWidth || "1",
|
|
587
|
+
type: "number",
|
|
588
|
+
groupKey: 'style',
|
|
589
|
+
placeholder: "请输入表单边框宽度",
|
|
590
|
+
className: 'input60',
|
|
591
|
+
},
|
|
592
|
+
{
|
|
593
|
+
label: '表单容器投影颜色:',
|
|
594
|
+
ele: 'xd-color',
|
|
595
|
+
groupKey:'style',
|
|
596
|
+
valueKey: 'formShadowColor',
|
|
597
|
+
value: data['formShadowColor'] || '',
|
|
598
|
+
placeholder: '请选择投影颜色',
|
|
599
|
+
classNmae: 'input80',
|
|
600
|
+
},
|
|
601
|
+
{
|
|
602
|
+
label: '表单容器投影范围:',
|
|
603
|
+
groupKey:'style',
|
|
604
|
+
ele: 'xd-site-select-list',
|
|
605
|
+
valueKey: 'formShadowW',
|
|
606
|
+
value: data['formShadowW'] || '0',
|
|
607
|
+
placeholder: '请选择投影范围',
|
|
608
|
+
multiple: false,
|
|
609
|
+
className: 'input80',
|
|
610
|
+
handleCustom({action, data}) {
|
|
611
|
+
XdBus.getParentApi('getOptionsSettingList')({
|
|
612
|
+
setting_id: 'edtix_style_radius',
|
|
613
|
+
key: Date.now()
|
|
614
|
+
})
|
|
334
615
|
.then(res => {
|
|
335
|
-
|
|
336
|
-
data.cb(true)
|
|
616
|
+
data.cb(res.list)
|
|
337
617
|
})
|
|
338
618
|
.catch(error => {
|
|
339
619
|
console.error(error);
|
|
340
|
-
loading.close();
|
|
341
|
-
data.cb(false)
|
|
342
620
|
});
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
621
|
+
},
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
ele: 'title',
|
|
625
|
+
label: '标签样式配置',
|
|
626
|
+
size: 'small',
|
|
627
|
+
groupKey: 'style',
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
label: "标签文字对齐方式:",
|
|
631
|
+
ele: 'xd-radio',
|
|
632
|
+
valueKey: 'labelAlign',
|
|
633
|
+
value: data.labelAlign || "right",
|
|
634
|
+
groupKey: 'style',
|
|
635
|
+
placeholder: "请选择标签对齐方式",
|
|
636
|
+
multiple: false,
|
|
637
|
+
className: 'input80',
|
|
638
|
+
list: [
|
|
639
|
+
{ label: '左对齐', value: "left" },
|
|
640
|
+
{ label: '右对齐', value: "right" },
|
|
641
|
+
{ label: '居中', value: "center" },
|
|
642
|
+
],
|
|
643
|
+
},
|
|
644
|
+
{
|
|
645
|
+
label: "标签位置:",
|
|
646
|
+
ele: "xd-radio",
|
|
647
|
+
valueKey: "labelPosition",
|
|
648
|
+
value: data.labelPosition || "left",
|
|
649
|
+
groupKey: 'style',
|
|
650
|
+
placeholder: "请选择标签对齐方式",
|
|
651
|
+
multiple: false,
|
|
652
|
+
className: 'input80',
|
|
653
|
+
list: [
|
|
654
|
+
{ label: '居左', value: "left" },
|
|
655
|
+
{ label: '居上', value: "top" },
|
|
656
|
+
],
|
|
657
|
+
},
|
|
658
|
+
{
|
|
659
|
+
label: "标签宽度:",
|
|
660
|
+
ele: 'el-input',
|
|
661
|
+
type: "number",
|
|
662
|
+
valueKey: 'labelWidth',
|
|
663
|
+
value: data.labelWidth || "180",
|
|
664
|
+
groupKey: 'style',
|
|
665
|
+
placeholder: "请输入标签宽度",
|
|
666
|
+
className: 'input60',
|
|
667
|
+
},
|
|
668
|
+
{
|
|
669
|
+
label: "手机号图标:",
|
|
670
|
+
ele: "el-input",
|
|
671
|
+
valueKey: "phoneIcon",
|
|
672
|
+
value: data.phoneIcon || "",
|
|
673
|
+
groupKey: 'style',
|
|
674
|
+
placeholder: "请输入手机号图标",
|
|
675
|
+
className: "input70",
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
label: "验证码图标:",
|
|
679
|
+
ele: "el-input",
|
|
680
|
+
valueKey: "codeIcon",
|
|
681
|
+
value: data.codeIcon || "",
|
|
682
|
+
groupKey: 'style',
|
|
683
|
+
placeholder: "请输入验证码图标",
|
|
684
|
+
className: "input70",
|
|
685
|
+
},
|
|
686
|
+
{
|
|
687
|
+
label: "标签字体样式设置:",
|
|
688
|
+
ele: "xd-font",
|
|
689
|
+
valueKey: "labelFont",
|
|
690
|
+
value: data.labelFont || {},
|
|
691
|
+
groupKey: 'style',
|
|
692
|
+
setting: {
|
|
693
|
+
align: false,
|
|
694
|
+
lineHeight: false,
|
|
695
|
+
},
|
|
696
|
+
handleCustom({ action, data }) {
|
|
697
|
+
XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_font_size' })
|
|
349
698
|
.then(res => {
|
|
350
|
-
|
|
351
|
-
data.cb(true)
|
|
699
|
+
data.cb(res.list)
|
|
352
700
|
})
|
|
353
701
|
.catch(error => {
|
|
702
|
+
data.cb([])
|
|
354
703
|
console.error(error);
|
|
355
|
-
loading.close();
|
|
356
|
-
data.cb(false)
|
|
357
704
|
});
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
705
|
+
},
|
|
706
|
+
inline: false,
|
|
707
|
+
notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
ele: 'title',
|
|
711
|
+
label: '输入框设置',
|
|
712
|
+
size: 'small',
|
|
713
|
+
groupKey: 'style',
|
|
714
|
+
},
|
|
715
|
+
{
|
|
716
|
+
label: "占位符字体样式设置:",
|
|
717
|
+
ele: "xd-font",
|
|
718
|
+
valueKey: "placeholderFont",
|
|
719
|
+
value: data.placeholderFont || {
|
|
720
|
+
color: '#d4d4d4',
|
|
721
|
+
fontSize: '24rpx',
|
|
722
|
+
fontWeight: "normal",
|
|
723
|
+
},
|
|
724
|
+
groupKey: 'style',
|
|
725
|
+
setting: {
|
|
726
|
+
align: false,
|
|
727
|
+
lineHeight: false,
|
|
728
|
+
},
|
|
729
|
+
handleCustom({ action, data }) {
|
|
730
|
+
XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_font_size' })
|
|
364
731
|
.then(res => {
|
|
365
|
-
|
|
366
|
-
data.cb(true)
|
|
732
|
+
data.cb(res.list)
|
|
367
733
|
})
|
|
368
734
|
.catch(error => {
|
|
735
|
+
data.cb([])
|
|
369
736
|
console.error(error);
|
|
370
|
-
loading.close();
|
|
371
|
-
data.cb(false)
|
|
372
737
|
});
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
738
|
+
},
|
|
739
|
+
inline: false,
|
|
740
|
+
notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
|
|
741
|
+
},
|
|
742
|
+
{
|
|
743
|
+
label: "内容字体样式设置:",
|
|
744
|
+
ele: "xd-font",
|
|
745
|
+
valueKey: "contentFont",
|
|
746
|
+
value: data.contentFont || {},
|
|
747
|
+
groupKey: 'style',
|
|
748
|
+
setting: {
|
|
749
|
+
align: false,
|
|
750
|
+
lineHeight: false,
|
|
751
|
+
},
|
|
752
|
+
handleCustom({ action, data }) {
|
|
753
|
+
XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_font_size' })
|
|
379
754
|
.then(res => {
|
|
380
|
-
|
|
381
|
-
data.cb(res)
|
|
755
|
+
data.cb(res.list)
|
|
382
756
|
})
|
|
383
757
|
.catch(error => {
|
|
384
|
-
|
|
758
|
+
data.cb([])
|
|
385
759
|
console.error(error);
|
|
386
760
|
});
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
761
|
+
},
|
|
762
|
+
inline: false,
|
|
763
|
+
notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
|
|
764
|
+
},
|
|
765
|
+
{
|
|
766
|
+
ele: 'title',
|
|
767
|
+
label: '获取验证码',
|
|
768
|
+
size: 'small',
|
|
769
|
+
groupKey: 'style',
|
|
770
|
+
},
|
|
771
|
+
{
|
|
772
|
+
label: "获取验证码字体样式设置:",
|
|
773
|
+
ele: "xd-font",
|
|
774
|
+
valueKey: "getCodeFont",
|
|
775
|
+
value: data.getCodeFont || {
|
|
776
|
+
color: "#ff5a39",
|
|
777
|
+
fontSize: "24rpx",
|
|
778
|
+
fontWeight: "normal",
|
|
779
|
+
},
|
|
780
|
+
groupKey: 'style',
|
|
781
|
+
setting: {
|
|
782
|
+
align: false,
|
|
783
|
+
lineHeight: false,
|
|
784
|
+
},
|
|
785
|
+
handleCustom({ action, data }) {
|
|
786
|
+
XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_font_size' })
|
|
393
787
|
.then(res => {
|
|
394
|
-
|
|
395
|
-
data.cb(true)
|
|
788
|
+
data.cb(res.list)
|
|
396
789
|
})
|
|
397
790
|
.catch(error => {
|
|
791
|
+
data.cb([])
|
|
398
792
|
console.error(error);
|
|
399
|
-
loading.close();
|
|
400
|
-
data.cb(false)
|
|
401
793
|
});
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
794
|
+
},
|
|
795
|
+
inline: false,
|
|
796
|
+
notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
|
|
797
|
+
},
|
|
798
|
+
{
|
|
799
|
+
label: "获取验证码展示方式:",
|
|
800
|
+
ele: 'xd-radio',
|
|
801
|
+
valueKey: 'getCodeShowType',
|
|
802
|
+
value: data.getCodeShowType || 'text',
|
|
803
|
+
groupKey: 'style',
|
|
804
|
+
multiple: false,
|
|
805
|
+
className: 'input80',
|
|
806
|
+
list: [
|
|
807
|
+
{ label: '文字', value: 'text' },
|
|
808
|
+
{ label: '按钮', value: 'button' },
|
|
809
|
+
],
|
|
810
|
+
},
|
|
811
|
+
{
|
|
812
|
+
ele: 'title',
|
|
813
|
+
label: '按钮样式配置',
|
|
814
|
+
size: 'small',
|
|
815
|
+
groupKey: 'style',
|
|
816
|
+
},
|
|
817
|
+
// {
|
|
818
|
+
// label: "按钮颜色",
|
|
819
|
+
// ele: 'xd-color',
|
|
820
|
+
// valueKey: 'btnColor',
|
|
821
|
+
// value: data.btnColor || '',
|
|
822
|
+
// groupKey:'style',
|
|
823
|
+
// placeholder: "请选择按钮颜色",
|
|
824
|
+
// className: 'input60',
|
|
825
|
+
// },
|
|
826
|
+
{
|
|
827
|
+
label: "表单按钮外边距设置",
|
|
828
|
+
groupKey: 'style',
|
|
829
|
+
ele: 'xd-margin-padding',
|
|
830
|
+
valueKey: 'btnMargin',
|
|
831
|
+
value: data.btnMargin || null,
|
|
832
|
+
setting: {
|
|
833
|
+
type: 'padding',
|
|
834
|
+
},
|
|
835
|
+
placeholder: '请设置边距',
|
|
836
|
+
inline: false,
|
|
837
|
+
notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
|
|
838
|
+
},
|
|
839
|
+
{
|
|
840
|
+
label: "按钮圆角 - 通用",
|
|
841
|
+
ele: 'xd-site-select-list',
|
|
842
|
+
valueKey: 'btnRadius',
|
|
843
|
+
value: data['btnRadius'] || '20',
|
|
844
|
+
groupKey: 'style',
|
|
845
|
+
placeholder: '请选择内容圆角设置',
|
|
846
|
+
multiple: false,
|
|
847
|
+
className: 'input80',
|
|
848
|
+
handleCustom({ action, data }) {
|
|
849
|
+
XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
|
|
408
850
|
.then(res => {
|
|
409
|
-
|
|
410
|
-
data.cb(true)
|
|
851
|
+
data.cb(res.list)
|
|
411
852
|
})
|
|
412
853
|
.catch(error => {
|
|
413
854
|
console.error(error);
|
|
414
|
-
loading.close();
|
|
415
|
-
data.cb(false)
|
|
416
855
|
});
|
|
417
|
-
}
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
856
|
+
},
|
|
857
|
+
},
|
|
858
|
+
{
|
|
859
|
+
ele: 'title',
|
|
860
|
+
label: '条款协议 - 通用',
|
|
861
|
+
size: 'small',
|
|
862
|
+
groupKey: 'style',
|
|
863
|
+
},
|
|
864
|
+
{
|
|
865
|
+
label: "文字样式设置: ",
|
|
866
|
+
ele: "xd-font",
|
|
867
|
+
valueKey: "agreeFont",
|
|
868
|
+
value: data.agreeFont || {
|
|
869
|
+
color: "#666666",
|
|
870
|
+
fontSize: "24rpx",
|
|
871
|
+
fontWeight: "normal",
|
|
872
|
+
},
|
|
873
|
+
groupKey: 'style',
|
|
874
|
+
setting: {
|
|
875
|
+
align: false,
|
|
876
|
+
},
|
|
877
|
+
handleCustom({ action, data }) {
|
|
878
|
+
XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_font_size' })
|
|
423
879
|
.then(res => {
|
|
424
|
-
|
|
425
|
-
data.cb(true)
|
|
880
|
+
data.cb(res.list)
|
|
426
881
|
})
|
|
427
882
|
.catch(error => {
|
|
883
|
+
data.cb([])
|
|
428
884
|
console.error(error);
|
|
429
|
-
loading.close();
|
|
430
|
-
data.cb(false)
|
|
431
885
|
});
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
886
|
+
},
|
|
887
|
+
inline: false,
|
|
888
|
+
notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
|
|
889
|
+
},
|
|
890
|
+
{
|
|
891
|
+
label: "隐私条款链接字体设置:",
|
|
892
|
+
ele: "xd-font",
|
|
893
|
+
valueKey: "privacyFont",
|
|
894
|
+
value: data.privacyFont || {},
|
|
895
|
+
groupKey: 'style',
|
|
896
|
+
setting: {
|
|
897
|
+
align: false,
|
|
898
|
+
lineHeight: false,
|
|
899
|
+
fontSize: false,
|
|
900
|
+
},
|
|
901
|
+
handleCustom({ action, data }) {
|
|
902
|
+
XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_font_size' })
|
|
439
903
|
.then(res => {
|
|
440
|
-
|
|
441
|
-
data.cb(res)
|
|
904
|
+
data.cb(res.list)
|
|
442
905
|
})
|
|
443
906
|
.catch(error => {
|
|
444
|
-
|
|
907
|
+
data.cb([])
|
|
445
908
|
console.error(error);
|
|
446
909
|
});
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
910
|
+
},
|
|
911
|
+
inline: false,
|
|
912
|
+
notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
|
|
913
|
+
},
|
|
914
|
+
{
|
|
915
|
+
label: "选择框垂直对齐方式:",
|
|
916
|
+
ele: 'xd-radio',
|
|
917
|
+
valueKey: 'agreementAlign',
|
|
918
|
+
value: data.agreementAlign || "center",
|
|
919
|
+
groupKey: 'style',
|
|
920
|
+
multiple: false,
|
|
921
|
+
className: 'input80',
|
|
922
|
+
list: [
|
|
923
|
+
{ label: '居中', value: "center" },
|
|
924
|
+
{ label: '顶部', value: "flex-start" },
|
|
925
|
+
{ label: '底部', value: "flex-end" },
|
|
926
|
+
]
|
|
927
|
+
},
|
|
928
|
+
{
|
|
929
|
+
label: "条款协议外边距设置 - 账号登录",
|
|
930
|
+
groupKey: 'style',
|
|
931
|
+
ele: 'xd-margin-padding',
|
|
932
|
+
valueKey: 'agreePadding',
|
|
933
|
+
value: data.agreePadding || {
|
|
934
|
+
top: 40,
|
|
935
|
+
left: 20,
|
|
936
|
+
right: 20,
|
|
937
|
+
bottom: 0
|
|
938
|
+
},
|
|
939
|
+
setting: {
|
|
940
|
+
type: 'padding',
|
|
941
|
+
},
|
|
942
|
+
placeholder: '请设置边距',
|
|
943
|
+
inline: false,
|
|
944
|
+
notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
|
|
945
|
+
},
|
|
946
|
+
]
|
|
947
|
+
}
|
|
460
948
|
}
|