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.
Files changed (32) hide show
  1. package/package.json +2 -2
  2. package/src/components/JfbBaseCardDetail/JfbBaseCardDetail.vue +19 -1
  3. package/src/components/JfbBaseCardDetailEntry/Api.js +58 -0
  4. package/src/components/JfbBaseCardDetailEntry/Attr.js +30 -0
  5. package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +920 -0
  6. package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntryLess.less +80 -0
  7. package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntryMixin.js +30 -0
  8. package/src/components/JfbBaseCardDetailEntry/Mock.js +106 -0
  9. package/src/components/JfbBaseCardDetailEntry/XdEditPwd.vue +299 -0
  10. package/src/components/JfbBaseCardDetailEntry/XdPwPay.vue +214 -0
  11. package/src/components/JfbBaseCardDisabledEntry/Api.js +12 -7
  12. package/src/components/JfbBaseCardDisabledEntry/JfbBaseCardDisabledEntry.vue +39 -12
  13. package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +37 -1
  14. package/src/components/JfbBaseCardInfoEntry/Api.js +71 -0
  15. package/src/components/JfbBaseCardInfoEntry/Attr.js +37 -0
  16. package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntry.vue +768 -0
  17. package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntryLess.less +80 -0
  18. package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntryMixin.js +30 -0
  19. package/src/components/JfbBaseCardInfoEntry/Mock.js +122 -0
  20. package/src/components/JfbBaseCardMergeEntry/Api.js +61 -0
  21. package/src/components/JfbBaseCardMergeEntry/Attr.js +237 -0
  22. package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntry.vue +443 -0
  23. package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntryLess.less +80 -0
  24. package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntryMixin.js +30 -0
  25. package/src/components/JfbBaseCardMergeEntry/Mock.js +32 -0
  26. package/src/components/JfbBaseCardShiftEntry/Api.js +51 -0
  27. package/src/components/JfbBaseCardShiftEntry/Attr.js +237 -0
  28. package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntry.vue +593 -0
  29. package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntryLess.less +80 -0
  30. package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntryMixin.js +30 -0
  31. package/src/components/JfbBaseCardShiftEntry/Mock.js +5 -0
  32. package/src/mixins/colorCardMixins.js +1 -1
@@ -0,0 +1,237 @@
1
+ 'use strict';
2
+
3
+ export default {
4
+ style: [],
5
+ advanced: [],
6
+ content: (data) => {
7
+ return [
8
+ {
9
+ label: '返回按钮地址:', //label
10
+ ele: 'xd-select-pages-path', //package 名称
11
+ valueKey: 'back_url', //form[valueKey]
12
+ placeholder: '请选择返回按钮地址',
13
+ value: data.back_url || null,
14
+ setting: {
15
+ router: XdBus.getParentApi('getPagesTree'),
16
+ },
17
+ inline: false,
18
+ },
19
+ {
20
+ label: '提示内容:',
21
+ ele: 'xd-site-news',
22
+ valueKey: 'notice',
23
+ value: data.notice || null,
24
+ className: 'input70',
25
+ setting: {
26
+ config: {
27
+ sort: true,
28
+ maxlen: 100,
29
+ action: 'aliyun',
30
+ size: 5,
31
+ tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
32
+ uploadType: 'aliyun',
33
+ type: ['jpg', 'png', 'jpeg']
34
+ },
35
+ },
36
+ handleCustom({action, data}) {
37
+ if (data && data.params) {
38
+ //当一个插件中出现使用内容分类时候需要设置code值,在页面引用时候容器id + code进行拼接
39
+ //data.params = Object.assign({}, data.params, {code: 'g_test_id'});
40
+ }
41
+
42
+ //获取返回参数(场景类型名称为必填)
43
+ let loading = XdBus.getParentApi('loading')({});
44
+
45
+ //获取显示内容
46
+ if (action === 'screen') {
47
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_bucket_content_tip'})
48
+ .then(res => {
49
+ loading.close();
50
+ data.cb(res['list'])
51
+ })
52
+ .catch(error => {
53
+ console.error(error);
54
+ loading.close();
55
+ });
56
+
57
+ }
58
+
59
+ //获取返回参数(广告位高度必选项)
60
+ if (action === 'getNewsInfo') {
61
+ XdBus.getParentApi('cmsGetPublishEditxContent')(data.params)
62
+ .then(res => {
63
+ loading.close()
64
+ data.cb({list: res.list, selectId: res.selected})
65
+ })
66
+ .catch(error => {
67
+ loading.close()
68
+ console.error(error);
69
+ });
70
+ }
71
+
72
+ //获取产品业务线列表
73
+ if (action === 'namespace') {
74
+ XdBus.getParentApi('getOptionsNamespaces')({})
75
+ .then(res => {
76
+ loading.close()
77
+ data.cb(res['list'])
78
+ })
79
+ .catch(error => {
80
+ loading.close()
81
+ console.error(error);
82
+ });
83
+ }
84
+
85
+ //使用内容分类
86
+ if (action === 'cmsPublishEditxContent') {
87
+ XdBus.getParentApi('cmsPublishEditxContent')(data.params)
88
+ .then(res => {
89
+ console.log('cmsPublishEditxContent', res)
90
+ loading.close();
91
+ data.cb(res)
92
+ })
93
+ .catch(error => {
94
+ loading.close();
95
+ console.error(error);
96
+ });
97
+ }
98
+
99
+ //位置列表
100
+ if (action === 'getListPostion') {
101
+ XdBus.getParentApi('getListNewsPosition')(data.params)
102
+ .then(res => {
103
+ loading.close();
104
+ data.cb(res)
105
+ })
106
+ .catch(error => {
107
+ loading.close();
108
+ console.error(error);
109
+ });
110
+ }
111
+
112
+ //位置创建
113
+ if (action === 'addPostion') {
114
+ XdBus.getParentApi('addNewsPosition')(data.params)
115
+ .then(res => {
116
+ loading.close();
117
+ data.cb(true)
118
+ })
119
+ .catch(error => {
120
+ console.error(error);
121
+ loading.close();
122
+ data.cb(false)
123
+ });
124
+ }
125
+
126
+ //位置编辑
127
+ if (action === 'editPostion') {
128
+ XdBus.getParentApi('updateNewsPosition')(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 === 'deleltePostion') {
142
+ XdBus.getParentApi('deleteNewsPosition')(data.params)
143
+ .then(res => {
144
+ loading.close();
145
+ data.cb(true)
146
+ })
147
+ .catch(error => {
148
+ console.error(error);
149
+ loading.close();
150
+ data.cb(false)
151
+ });
152
+ }
153
+
154
+ //获取广告位内容列表
155
+ if (action === 'getListContent') {
156
+ XdBus.getParentApi('getListNewsContent')(data.params)
157
+ .then(res => {
158
+ loading.close();
159
+ data.cb(res)
160
+ })
161
+ .catch(error => {
162
+ loading.close();
163
+ console.error(error);
164
+ });
165
+ }
166
+
167
+ //广告内容创建
168
+ if (action === 'addContent') {
169
+ XdBus.getParentApi('addNewsContent')(data.params)
170
+ .then(res => {
171
+ loading.close();
172
+ data.cb(true)
173
+ })
174
+ .catch(error => {
175
+ console.error(error);
176
+ loading.close();
177
+ data.cb(false)
178
+ });
179
+ }
180
+
181
+ //广告内容编辑
182
+ if (action === 'editContent') {
183
+ XdBus.getParentApi('updateNewsContent')(data.params)
184
+ .then(res => {
185
+ loading.close();
186
+ data.cb(true)
187
+ })
188
+ .catch(error => {
189
+ console.error(error);
190
+ loading.close();
191
+ data.cb(false)
192
+ });
193
+ }
194
+
195
+ //广告内容删除
196
+ if (action === 'deleteContent') {
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
+ console.log('publish', data.params)
212
+ XdBus.getParentApi('cmsPublishContent')(data.params)
213
+ .then(res => {
214
+ loading.close();
215
+ data.cb(res)
216
+ })
217
+ .catch(error => {
218
+ loading.close();
219
+ console.error(error);
220
+ });
221
+ }
222
+
223
+ //通知页面进行刷新
224
+ if (action === 'update') {
225
+ XdBus.getParentApi('getXdBusUpdateView')('onUpdateView', {});
226
+ loading.close()
227
+ }
228
+ },
229
+ inline: false,
230
+ notice: '',
231
+ rules: [
232
+ {required: true, message: '请配置温馨提示内容', trigger: 'change'},
233
+ ],
234
+ },
235
+ ].filter(i=>i)
236
+ },
237
+ };