jufubao-base 1.0.71-beta4 → 1.0.71-beta5
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
CHANGED
|
@@ -6,219 +6,219 @@
|
|
|
6
6
|
export default {
|
|
7
7
|
style: [],
|
|
8
8
|
content: [
|
|
9
|
-
{
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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
|
-
},
|
|
9
|
+
// {
|
|
10
|
+
// label: '领券规则:',
|
|
11
|
+
// ele: 'xd-site-news',
|
|
12
|
+
// valueKey: 'notice',
|
|
13
|
+
// value: null,
|
|
14
|
+
// className: 'input70',
|
|
15
|
+
// setting: {
|
|
16
|
+
// config: {
|
|
17
|
+
// sort: true,
|
|
18
|
+
// maxlen: 100,
|
|
19
|
+
// action: 'aliyun',
|
|
20
|
+
// size: 5,
|
|
21
|
+
// tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
|
|
22
|
+
// uploadType: 'aliyun',
|
|
23
|
+
// type: ['jpg', 'png', 'jpeg']
|
|
24
|
+
// },
|
|
25
|
+
// },
|
|
26
|
+
// handleCustom({action, data}) {
|
|
27
|
+
// if (data && data.params) {
|
|
28
|
+
// //当一个插件中出现使用内容分类时候需要设置code值,在页面引用时候容器id + code进行拼接
|
|
29
|
+
// //data.params = Object.assign({}, data.params, {code: 'g_test_id'});
|
|
30
|
+
// }
|
|
31
|
+
|
|
32
|
+
// //获取返回参数(场景类型名称为必填)
|
|
33
|
+
// let loading = XdBus.getParentApi('loading')({});
|
|
34
|
+
|
|
35
|
+
// //获取显示内容
|
|
36
|
+
// if (action === 'screen') {
|
|
37
|
+
// XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_bucket_content_tip'})
|
|
38
|
+
// .then(res => {
|
|
39
|
+
// loading.close();
|
|
40
|
+
// data.cb(res['list'])
|
|
41
|
+
// })
|
|
42
|
+
// .catch(error => {
|
|
43
|
+
// console.error(error);
|
|
44
|
+
// loading.close();
|
|
45
|
+
// });
|
|
46
|
+
|
|
47
|
+
// }
|
|
48
|
+
|
|
49
|
+
// //获取返回参数(广告位高度必选项)
|
|
50
|
+
// if (action === 'getNewsInfo') {
|
|
51
|
+
// XdBus.getParentApi('cmsGetPublishEditxContent')(data.params)
|
|
52
|
+
// .then(res => {
|
|
53
|
+
// loading.close()
|
|
54
|
+
// data.cb({list: res.list, selectId: res.selected})
|
|
55
|
+
// })
|
|
56
|
+
// .catch(error => {
|
|
57
|
+
// loading.close()
|
|
58
|
+
// console.error(error);
|
|
59
|
+
// });
|
|
60
|
+
// }
|
|
61
|
+
|
|
62
|
+
// //获取产品业务线列表
|
|
63
|
+
// if (action === 'namespace') {
|
|
64
|
+
// XdBus.getParentApi('getOptionsNamespaces')({})
|
|
65
|
+
// .then(res => {
|
|
66
|
+
// loading.close()
|
|
67
|
+
// data.cb(res['list'])
|
|
68
|
+
// })
|
|
69
|
+
// .catch(error => {
|
|
70
|
+
// loading.close()
|
|
71
|
+
// console.error(error);
|
|
72
|
+
// });
|
|
73
|
+
// }
|
|
74
|
+
|
|
75
|
+
// //使用内容分类
|
|
76
|
+
// if (action === 'cmsPublishEditxContent') {
|
|
77
|
+
// XdBus.getParentApi('cmsPublishEditxContent')(data.params)
|
|
78
|
+
// .then(res => {
|
|
79
|
+
// console.log('cmsPublishEditxContent', res)
|
|
80
|
+
// loading.close();
|
|
81
|
+
// data.cb(res)
|
|
82
|
+
// })
|
|
83
|
+
// .catch(error => {
|
|
84
|
+
// loading.close();
|
|
85
|
+
// console.error(error);
|
|
86
|
+
// });
|
|
87
|
+
// }
|
|
88
|
+
|
|
89
|
+
// //位置列表
|
|
90
|
+
// if (action === 'getListPostion') {
|
|
91
|
+
// XdBus.getParentApi('getListNewsPosition')(data.params)
|
|
92
|
+
// .then(res => {
|
|
93
|
+
// loading.close();
|
|
94
|
+
// data.cb(res)
|
|
95
|
+
// })
|
|
96
|
+
// .catch(error => {
|
|
97
|
+
// loading.close();
|
|
98
|
+
// console.error(error);
|
|
99
|
+
// });
|
|
100
|
+
// }
|
|
101
|
+
|
|
102
|
+
// //位置创建
|
|
103
|
+
// if (action === 'addPostion') {
|
|
104
|
+
// XdBus.getParentApi('addNewsPosition')(data.params)
|
|
105
|
+
// .then(res => {
|
|
106
|
+
// loading.close();
|
|
107
|
+
// data.cb(true)
|
|
108
|
+
// })
|
|
109
|
+
// .catch(error => {
|
|
110
|
+
// console.error(error);
|
|
111
|
+
// loading.close();
|
|
112
|
+
// data.cb(false)
|
|
113
|
+
// });
|
|
114
|
+
// }
|
|
115
|
+
|
|
116
|
+
// //位置编辑
|
|
117
|
+
// if (action === 'editPostion') {
|
|
118
|
+
// XdBus.getParentApi('updateNewsPosition')(data.params)
|
|
119
|
+
// .then(res => {
|
|
120
|
+
// loading.close();
|
|
121
|
+
// data.cb(true)
|
|
122
|
+
// })
|
|
123
|
+
// .catch(error => {
|
|
124
|
+
// console.error(error);
|
|
125
|
+
// loading.close();
|
|
126
|
+
// data.cb(false)
|
|
127
|
+
// });
|
|
128
|
+
// }
|
|
129
|
+
|
|
130
|
+
// //位置删除
|
|
131
|
+
// if (action === 'deleltePostion') {
|
|
132
|
+
// XdBus.getParentApi('deleteNewsPosition')(data.params)
|
|
133
|
+
// .then(res => {
|
|
134
|
+
// loading.close();
|
|
135
|
+
// data.cb(true)
|
|
136
|
+
// })
|
|
137
|
+
// .catch(error => {
|
|
138
|
+
// console.error(error);
|
|
139
|
+
// loading.close();
|
|
140
|
+
// data.cb(false)
|
|
141
|
+
// });
|
|
142
|
+
// }
|
|
143
|
+
|
|
144
|
+
// //获取广告位内容列表
|
|
145
|
+
// if (action === 'getListContent') {
|
|
146
|
+
// XdBus.getParentApi('getListNewsContent')(data.params)
|
|
147
|
+
// .then(res => {
|
|
148
|
+
// loading.close();
|
|
149
|
+
// data.cb(res)
|
|
150
|
+
// })
|
|
151
|
+
// .catch(error => {
|
|
152
|
+
// loading.close();
|
|
153
|
+
// console.error(error);
|
|
154
|
+
// });
|
|
155
|
+
// }
|
|
156
|
+
|
|
157
|
+
// //广告内容创建
|
|
158
|
+
// if (action === 'addContent') {
|
|
159
|
+
// XdBus.getParentApi('addNewsContent')(data.params)
|
|
160
|
+
// .then(res => {
|
|
161
|
+
// loading.close();
|
|
162
|
+
// data.cb(true)
|
|
163
|
+
// })
|
|
164
|
+
// .catch(error => {
|
|
165
|
+
// console.error(error);
|
|
166
|
+
// loading.close();
|
|
167
|
+
// data.cb(false)
|
|
168
|
+
// });
|
|
169
|
+
// }
|
|
170
|
+
|
|
171
|
+
// //广告内容编辑
|
|
172
|
+
// if (action === 'editContent') {
|
|
173
|
+
// XdBus.getParentApi('updateNewsContent')(data.params)
|
|
174
|
+
// .then(res => {
|
|
175
|
+
// loading.close();
|
|
176
|
+
// data.cb(true)
|
|
177
|
+
// })
|
|
178
|
+
// .catch(error => {
|
|
179
|
+
// console.error(error);
|
|
180
|
+
// loading.close();
|
|
181
|
+
// data.cb(false)
|
|
182
|
+
// });
|
|
183
|
+
// }
|
|
184
|
+
|
|
185
|
+
// //广告内容删除
|
|
186
|
+
// if (action === 'deleteContent') {
|
|
187
|
+
// XdBus.getParentApi('deleteNewsContent')(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 === 'publish') {
|
|
201
|
+
// console.log('publish', data.params)
|
|
202
|
+
// XdBus.getParentApi('cmsPublishContent')(data.params)
|
|
203
|
+
// .then(res => {
|
|
204
|
+
// loading.close();
|
|
205
|
+
// data.cb(res)
|
|
206
|
+
// })
|
|
207
|
+
// .catch(error => {
|
|
208
|
+
// loading.close();
|
|
209
|
+
// console.error(error);
|
|
210
|
+
// });
|
|
211
|
+
// }
|
|
212
|
+
|
|
213
|
+
// //通知页面进行刷新
|
|
214
|
+
// if (action === 'update') {
|
|
215
|
+
// XdBus.getParentApi('getXdBusUpdateView')('onUpdateView', {});
|
|
216
|
+
// loading.close()
|
|
217
|
+
// }
|
|
218
|
+
// },
|
|
219
|
+
// inline: false,
|
|
220
|
+
// notice: '请配置温馨提示内容,未配置的情况将不显示此模块',
|
|
221
|
+
// },
|
|
222
222
|
],
|
|
223
223
|
advanced: [],
|
|
224
224
|
};
|
|
@@ -281,6 +281,7 @@ export default {
|
|
|
281
281
|
});
|
|
282
282
|
console.log("couponList", this.couponList);
|
|
283
283
|
this.message = res.message;
|
|
284
|
+
this.notice = res.rule;
|
|
284
285
|
this.done = true;
|
|
285
286
|
})
|
|
286
287
|
.catch((err) => {
|
|
@@ -372,32 +373,32 @@ export default {
|
|
|
372
373
|
console.log(err, "err");
|
|
373
374
|
});
|
|
374
375
|
},
|
|
375
|
-
getContent() {
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
},
|
|
376
|
+
// getContent() {
|
|
377
|
+
// jfbRootExec("getListBaseNewsContentCoupon", {
|
|
378
|
+
// vm: this,
|
|
379
|
+
// data: {
|
|
380
|
+
// page_id: this.pageAttr["page_id"], //页面ID
|
|
381
|
+
// container_id: this.containerId, //组件ID
|
|
382
|
+
// limit: 1,
|
|
383
|
+
// },
|
|
384
|
+
// })
|
|
385
|
+
// .then((res) => {
|
|
386
|
+
// console.log(res, "ajajajajaj");
|
|
387
|
+
// if (res.list&&res.list.length > 0) {
|
|
388
|
+
// this.notice = res.list[0].content;
|
|
389
|
+
// }
|
|
390
|
+
// })
|
|
391
|
+
// .catch((error) => {
|
|
392
|
+
// console.error(error);
|
|
393
|
+
// });
|
|
394
|
+
// },
|
|
394
395
|
onJfbLoad(options) {
|
|
395
396
|
console.log(this.pageBusinessCode, "pageNamespace");
|
|
396
397
|
this.activity_id = options.activity_id;
|
|
397
398
|
this.method = options.distribution_method
|
|
398
399
|
? options.distribution_method
|
|
399
400
|
: "entry";
|
|
400
|
-
this.getContent();
|
|
401
|
+
// this.getContent();
|
|
401
402
|
this.getList();
|
|
402
403
|
},
|
|
403
404
|
|