jufubao-base 1.0.71-beta3 → 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
|
};
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
<!-- #endif -->
|
|
19
19
|
<view class="jfb-base-con-list__body" v-if="done">
|
|
20
20
|
<view
|
|
21
|
-
v-if="couponList.length > 0"
|
|
21
|
+
v-if="couponList&&couponList.length > 0"
|
|
22
22
|
:style="{
|
|
23
23
|
backgroundImage: `url(${background})`,
|
|
24
24
|
backgroundSize: '100%',
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
<view class="jfb-base-con-list__body-content">
|
|
30
30
|
<view class="jfb-base-con-list__body-content-header">
|
|
31
31
|
<view class="jfb-base-con-list__body-content-header-left">
|
|
32
|
-
<view :style="{ backgroundColor:
|
|
32
|
+
<view :style="{ backgroundColor: '#FF4D4A' }"></view>
|
|
33
33
|
<view>赠送优惠券</view>
|
|
34
34
|
</view>
|
|
35
35
|
<view
|
|
36
|
-
:style="{ color:
|
|
36
|
+
:style="{ color: '#FA2125', backgroundColor: contentBackground }"
|
|
37
37
|
class="jfb-base-con-list__body-content-header-right"
|
|
38
38
|
@click="showRule = true"
|
|
39
39
|
>
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
>
|
|
91
91
|
<!-- <view
|
|
92
92
|
:style="{
|
|
93
|
-
color:
|
|
93
|
+
color: '#FF4D4A',
|
|
94
94
|
display: 'flex',
|
|
95
95
|
alignItems: 'center',
|
|
96
96
|
fontSize: '28rpx',
|
|
@@ -211,8 +211,8 @@ export default {
|
|
|
211
211
|
},
|
|
212
212
|
methods: {
|
|
213
213
|
init(value) {
|
|
214
|
-
this.contentBackground =
|
|
215
|
-
this.iconColor =
|
|
214
|
+
this.contentBackground = '#FFF8F8';
|
|
215
|
+
this.iconColor = '#FF4D4A';
|
|
216
216
|
},
|
|
217
217
|
getList() {
|
|
218
218
|
jfbRootExec("getCouponList", {
|
|
@@ -238,10 +238,11 @@ export default {
|
|
|
238
238
|
)})`,
|
|
239
239
|
backgroundSize: "100%",
|
|
240
240
|
backgroundRepeat: "no-repeat",
|
|
241
|
+
backgroundColor: '',
|
|
241
242
|
margin: "0",
|
|
242
243
|
}
|
|
243
244
|
: {
|
|
244
|
-
backgroundColor:
|
|
245
|
+
backgroundColor: '#FB5B3F',
|
|
245
246
|
margin: "0",
|
|
246
247
|
};
|
|
247
248
|
//整块背景
|
|
@@ -280,6 +281,7 @@ export default {
|
|
|
280
281
|
});
|
|
281
282
|
console.log("couponList", this.couponList);
|
|
282
283
|
this.message = res.message;
|
|
284
|
+
this.notice = res.rule;
|
|
283
285
|
this.done = true;
|
|
284
286
|
})
|
|
285
287
|
.catch((err) => {
|
|
@@ -371,32 +373,32 @@ export default {
|
|
|
371
373
|
console.log(err, "err");
|
|
372
374
|
});
|
|
373
375
|
},
|
|
374
|
-
getContent() {
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
},
|
|
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
|
+
// },
|
|
393
395
|
onJfbLoad(options) {
|
|
394
396
|
console.log(this.pageBusinessCode, "pageNamespace");
|
|
395
397
|
this.activity_id = options.activity_id;
|
|
396
398
|
this.method = options.distribution_method
|
|
397
399
|
? options.distribution_method
|
|
398
400
|
: "entry";
|
|
399
|
-
this.getContent();
|
|
401
|
+
// this.getContent();
|
|
400
402
|
this.getList();
|
|
401
403
|
},
|
|
402
404
|
|
|
@@ -1,18 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
|
-
getCouponList: {
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"prize_num": 23
|
|
10
|
-
}
|
|
11
|
-
],
|
|
12
|
-
"background": "//sandbox-img.jufubao.cn/uploads/20231123/4767f11be07185af4d31c657812dd96f.jpg",
|
|
13
|
-
"app_coupon_url": "//sandbox-img.jufubao.cn/uploads/20231123/9709c60e75753585d7bab94699ce1d96.jpg",
|
|
14
|
-
"request_id": "60417690eab2c156"
|
|
15
|
-
},
|
|
4
|
+
getCouponList: {"list":[
|
|
5
|
+
{"prize_id":153,"prize_name":"满50减50","prize_type":"满减券","prize_num":1,"can_take":"Y","is_over":"N","can_take_num":"P","today_times":1,"today_num":0,"total_times":1,"total_num":0,"remain_card_count":55},
|
|
6
|
+
{"prize_id":153,"prize_name":"满50减50","prize_type":"满减券","prize_num":1,"can_take":"Y","is_over":"N","can_take_num":"P","today_times":1,"today_num":0,"total_times":1,"total_num":0,"remain_card_count":55},
|
|
7
|
+
{"prize_id":153,"prize_name":"满50减50","prize_type":"满减券","prize_num":1,"can_take":"Y","is_over":"N","can_take_num":"P","today_times":1,"today_num":0,"total_times":1,"total_num":0,"remain_card_count":55}
|
|
8
|
+
],"background":"//sandbox-img.jufubao.cn/uploads/20231204/96b801e0dc27422c183dc90d905dd2ed.jpg","can_take":"Y","message":"","app_coupon_url":"//sandbox-img.jufubao.cn/uploads/20231205/fee9b644b83495c9ba8a4db277600b54.jpg","app_activity_button":"//sandbox-img.jufubao.cn/uploads/20231207/35f3065b2b2bc3fc2dda73d7b5b9eae8.jpg","app_coupon_button_bg_url":"//sandbox-img.jufubao.cn/uploads/20231212/026a3ea901f87f51b531d06c24604676.png","app_coupon_invalid_url":"//sandbox-img.jufubao.cn/uploads/20231208/8b153ce4870686a37295c16fbc992235.jpg","request_id":"a2603f2a480485f4"},
|
|
16
9
|
getAllCoupon: {
|
|
17
10
|
"request_id": "5987aa28c709d4ef"
|
|
18
11
|
}
|