jufubao-base 1.0.56-beta2010 → 1.0.56-beta2012
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 +1 -1
- package/src/components/JfbBaseCardDetail/JfbBaseCardDetail.vue +18 -1
- package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +23 -6
- package/src/components/JfbBaseCardDetailEntry/Mock.js +1 -1
- package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntry.vue +7 -5
- package/src/components/JfbBaseCardShiftEntry/Attr.js +228 -226
- package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntry.vue +8 -5
- package/src/mixins/colorCardMixins.js +1 -1
package/package.json
CHANGED
|
@@ -247,6 +247,17 @@ export default {
|
|
|
247
247
|
},
|
|
248
248
|
|
|
249
249
|
onJfbUnload() {
|
|
250
|
+
this.timeStr = ""
|
|
251
|
+
if (this.timeer) {
|
|
252
|
+
clearTimeout(this.timeer);
|
|
253
|
+
}
|
|
254
|
+
if (this.refrushTimeer) {
|
|
255
|
+
clearTimeout(this.refrushTimeer);
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
|
|
259
|
+
onJfbHide(options) {
|
|
260
|
+
this.timeStr = ""
|
|
250
261
|
if (this.timeer) {
|
|
251
262
|
clearTimeout(this.timeer);
|
|
252
263
|
}
|
|
@@ -294,6 +305,7 @@ export default {
|
|
|
294
305
|
vm: this,
|
|
295
306
|
success: (res) => {
|
|
296
307
|
if (res.confirm) {
|
|
308
|
+
this.timeStr = ""
|
|
297
309
|
clearTimeout(this.timeer);
|
|
298
310
|
clearTimeout(this.refrushTimeer);
|
|
299
311
|
this.stopTimer = true;
|
|
@@ -369,6 +381,9 @@ export default {
|
|
|
369
381
|
init() {
|
|
370
382
|
this.detail();
|
|
371
383
|
this.refrush();
|
|
384
|
+
if(this.$configProject.isPreview) {
|
|
385
|
+
this.timeStr = "01分19秒"
|
|
386
|
+
}
|
|
372
387
|
this.backUrl = getContainerPropsValue( this.container, "content.back_url", { value: "" }).value;
|
|
373
388
|
},
|
|
374
389
|
|
|
@@ -388,7 +403,9 @@ export default {
|
|
|
388
403
|
res["other_card_point"] = this.$xdUniHelper.divisionFloatNumber(res.other_card_point, 100);
|
|
389
404
|
}
|
|
390
405
|
this.info = res;
|
|
391
|
-
|
|
406
|
+
if(!this.$configProject.isPreview) {
|
|
407
|
+
this.setInval(this.info.card_qrcode_expire);
|
|
408
|
+
}
|
|
392
409
|
this.show = false;
|
|
393
410
|
|
|
394
411
|
//显示按钮
|
|
@@ -108,7 +108,6 @@
|
|
|
108
108
|
<!-- 靠底支付 -->
|
|
109
109
|
<view class="fixe_bottom" :style="prod_bottom">
|
|
110
110
|
<!-- <xd-button
|
|
111
|
-
radius="8rpx"
|
|
112
111
|
size="small"
|
|
113
112
|
type="primary">
|
|
114
113
|
消费记录
|
|
@@ -116,7 +115,6 @@
|
|
|
116
115
|
<xd-button
|
|
117
116
|
v-if="info.is_exchange==='Y'"
|
|
118
117
|
@click="handleToShift"
|
|
119
|
-
radius="8rpx"
|
|
120
118
|
size="small"
|
|
121
119
|
type="primary">
|
|
122
120
|
券转换
|
|
@@ -124,7 +122,6 @@
|
|
|
124
122
|
<xd-button
|
|
125
123
|
v-if="isShowUnbind"
|
|
126
124
|
@click="handleUnBindCard"
|
|
127
|
-
radius="8rpx"
|
|
128
125
|
size="small"
|
|
129
126
|
type="primary">
|
|
130
127
|
解除绑定
|
|
@@ -275,6 +272,9 @@ export default {
|
|
|
275
272
|
init() {
|
|
276
273
|
this.detail();
|
|
277
274
|
this.refrush();
|
|
275
|
+
if(this.$configProject.isPreview) {
|
|
276
|
+
this.timeStr = "01分19秒"
|
|
277
|
+
}
|
|
278
278
|
this.backUrl = getContainerPropsValue( this.container, "content.back_url", { value: "" }).value;
|
|
279
279
|
this.shift_url = getContainerPropsValue( this.container, "content.shift_url", { value: "" }).value;
|
|
280
280
|
},
|
|
@@ -309,7 +309,9 @@ export default {
|
|
|
309
309
|
})
|
|
310
310
|
}
|
|
311
311
|
this.info = res;
|
|
312
|
-
|
|
312
|
+
if(!this.$configProject.isPreview) {
|
|
313
|
+
this.setInval(this.info.card_qrcode_expire);
|
|
314
|
+
}
|
|
313
315
|
this.show = false;
|
|
314
316
|
this.headerBg = this.getCardThemes(res.card_type_name);
|
|
315
317
|
|
|
@@ -395,6 +397,7 @@ export default {
|
|
|
395
397
|
vm: this,
|
|
396
398
|
success: (res) => {
|
|
397
399
|
if (res.confirm) {
|
|
400
|
+
this.timeStr = ""
|
|
398
401
|
clearTimeout(this.timeer);
|
|
399
402
|
clearTimeout(this.refrushTimeer);
|
|
400
403
|
this.stopTimer = true;
|
|
@@ -454,6 +457,7 @@ export default {
|
|
|
454
457
|
this.$xdUniHelper.navigateBack();
|
|
455
458
|
},
|
|
456
459
|
onJfbUnload() {
|
|
460
|
+
this.timeStr = ""
|
|
457
461
|
if (this.timeer) {
|
|
458
462
|
clearTimeout(this.timeer);
|
|
459
463
|
}
|
|
@@ -496,7 +500,13 @@ export default {
|
|
|
496
500
|
// }
|
|
497
501
|
},
|
|
498
502
|
onJfbHide(options) {
|
|
499
|
-
|
|
503
|
+
this.timeStr = ""
|
|
504
|
+
if (this.timeer) {
|
|
505
|
+
clearTimeout(this.timeer);
|
|
506
|
+
}
|
|
507
|
+
if (this.refrushTimeer) {
|
|
508
|
+
clearTimeout(this.refrushTimeer);
|
|
509
|
+
}
|
|
500
510
|
},
|
|
501
511
|
onJfbBack(options) {
|
|
502
512
|
console.log("event.onJfbBack", options);
|
|
@@ -530,13 +540,18 @@ export default {
|
|
|
530
540
|
border-radius: unit(16, rpx);
|
|
531
541
|
font-size: unit(40, rpx);
|
|
532
542
|
font-weight: 700;
|
|
533
|
-
padding: unit(48, rpx) unit(32, rpx);
|
|
534
543
|
color: #fff;
|
|
544
|
+
position: relative;
|
|
545
|
+
height: unit(260,rpx);
|
|
535
546
|
|
|
536
547
|
&-wrap {
|
|
537
548
|
width: unit(700, rpx);
|
|
538
549
|
border-radius: unit(16, rpx);
|
|
539
550
|
background-size: 100%;
|
|
551
|
+
height: 100%;
|
|
552
|
+
display: flex;
|
|
553
|
+
flex-direction: column;
|
|
554
|
+
justify-content: center;
|
|
540
555
|
}
|
|
541
556
|
|
|
542
557
|
&-item {
|
|
@@ -544,6 +559,7 @@ export default {
|
|
|
544
559
|
justify-content: flex-start;
|
|
545
560
|
align-content: center;
|
|
546
561
|
padding-bottom: unit(32, rpx);
|
|
562
|
+
padding-left: unit(40,rpx);
|
|
547
563
|
}
|
|
548
564
|
}
|
|
549
565
|
|
|
@@ -583,6 +599,7 @@ export default {
|
|
|
583
599
|
border-radius: unit(16,rpx);
|
|
584
600
|
margin-top: unit(24, rpx);
|
|
585
601
|
padding: unit(20,rpx) unit(70,rpx) unit(70,rpx) unit(70,rpx);
|
|
602
|
+
color: #000;
|
|
586
603
|
|
|
587
604
|
& > view {
|
|
588
605
|
// margin-bottom: unit(20, rpx);
|
|
@@ -49,8 +49,6 @@
|
|
|
49
49
|
<view class="fixe_bottom" :style="prod_bottom">
|
|
50
50
|
<xd-button
|
|
51
51
|
type="primary"
|
|
52
|
-
radius="8rpx"
|
|
53
|
-
size="small"
|
|
54
52
|
width="360rpx"
|
|
55
53
|
@click="handleGetInfo"
|
|
56
54
|
>确认</xd-button
|
|
@@ -137,8 +135,6 @@
|
|
|
137
135
|
<view :style="{ height: '100rpx' }"></view>
|
|
138
136
|
<view class="fixe_bottom" :style="prod_bottom">
|
|
139
137
|
<xd-button
|
|
140
|
-
radius="8rpx"
|
|
141
|
-
size="small"
|
|
142
138
|
type="primary"
|
|
143
139
|
width="360rpx"
|
|
144
140
|
@click="handleToLink"
|
|
@@ -448,13 +444,18 @@ export default {
|
|
|
448
444
|
border-radius: unit(16, rpx);
|
|
449
445
|
font-size: unit(40, rpx);
|
|
450
446
|
font-weight: 700;
|
|
451
|
-
padding: unit(48, rpx) unit(32, rpx);
|
|
452
447
|
color: #fff;
|
|
448
|
+
position: relative;
|
|
449
|
+
height: unit(260,rpx);
|
|
453
450
|
|
|
454
451
|
&-wrap {
|
|
455
452
|
width: unit(700, rpx);
|
|
456
453
|
border-radius: unit(16, rpx);
|
|
457
454
|
background-size: 100%;
|
|
455
|
+
height: 100%;
|
|
456
|
+
display: flex;
|
|
457
|
+
flex-direction: column;
|
|
458
|
+
justify-content: center;
|
|
458
459
|
}
|
|
459
460
|
|
|
460
461
|
&-item {
|
|
@@ -462,6 +463,7 @@ export default {
|
|
|
462
463
|
justify-content: flex-start;
|
|
463
464
|
align-content: center;
|
|
464
465
|
padding-bottom: unit(32, rpx);
|
|
466
|
+
padding-left: unit(40,rpx);
|
|
465
467
|
}
|
|
466
468
|
}
|
|
467
469
|
|
|
@@ -3,233 +3,235 @@
|
|
|
3
3
|
export default {
|
|
4
4
|
style: [],
|
|
5
5
|
advanced: [],
|
|
6
|
-
content:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
inline: false,
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
label: '提示内容:',
|
|
20
|
-
ele: 'xd-site-news',
|
|
21
|
-
valueKey: 'notice',
|
|
22
|
-
value: null,
|
|
23
|
-
className: 'input70',
|
|
24
|
-
setting: {
|
|
25
|
-
config: {
|
|
26
|
-
sort: true,
|
|
27
|
-
maxlen: 100,
|
|
28
|
-
action: 'aliyun',
|
|
29
|
-
size: 5,
|
|
30
|
-
tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
|
|
31
|
-
uploadType: 'aliyun',
|
|
32
|
-
type: ['jpg', 'png', 'jpeg']
|
|
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'),
|
|
33
16
|
},
|
|
17
|
+
inline: false,
|
|
34
18
|
},
|
|
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
|
-
|
|
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
|
+
],
|
|
227
234
|
},
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
rules: [
|
|
231
|
-
{required: true, message: '请配置温馨提示内容', trigger: 'change'},
|
|
232
|
-
],
|
|
233
|
-
},
|
|
234
|
-
],
|
|
235
|
+
].filter(i=>i)
|
|
236
|
+
},
|
|
235
237
|
};
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
{{info.card_type_name}}
|
|
46
46
|
</view>
|
|
47
47
|
</view>
|
|
48
|
-
<view class="jfb-base-card-shift-entry__body-header-item">
|
|
48
|
+
<view style="padding-top:40rpx" class="jfb-base-card-shift-entry__body-header-item">
|
|
49
49
|
<view>券名:</view>
|
|
50
50
|
<view>{{info.card_type_name}}</view>
|
|
51
51
|
</view>
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
</view>
|
|
121
121
|
</view>
|
|
122
122
|
<!-- 注意事项 -->
|
|
123
|
-
<view class="jfb-base-card-shift-entry__body-tips">
|
|
123
|
+
<view class="jfb-base-card-shift-entry__body-tips" v-if="notice">
|
|
124
124
|
<view style="text-align:center;padding-bottom:24rpx;color:#333;font-weight:500">注意事项</view>
|
|
125
125
|
<xd-content-xss :html="notice"></xd-content-xss>
|
|
126
126
|
</view>
|
|
@@ -130,8 +130,6 @@
|
|
|
130
130
|
<xd-button
|
|
131
131
|
@click="handleChange"
|
|
132
132
|
width="500rpx"
|
|
133
|
-
radius="8rpx"
|
|
134
|
-
size="small"
|
|
135
133
|
type="primary">
|
|
136
134
|
转换
|
|
137
135
|
</xd-button>
|
|
@@ -329,9 +327,9 @@ export default {
|
|
|
329
327
|
border-radius: unit(16, rpx);
|
|
330
328
|
font-size: unit(40, rpx);
|
|
331
329
|
font-weight: 700;
|
|
332
|
-
padding: unit(88,rpx) unit(32, rpx) unit(48, rpx) unit(32, rpx);
|
|
333
330
|
color: #fff;
|
|
334
331
|
position: relative;
|
|
332
|
+
height: unit(260,rpx);
|
|
335
333
|
|
|
336
334
|
&__title {
|
|
337
335
|
height: unit(56, rpx);
|
|
@@ -358,6 +356,10 @@ export default {
|
|
|
358
356
|
width: unit(700, rpx);
|
|
359
357
|
border-radius: unit(16, rpx);
|
|
360
358
|
background-size: 100%;
|
|
359
|
+
height: 100%;
|
|
360
|
+
display: flex;
|
|
361
|
+
flex-direction: column;
|
|
362
|
+
justify-content: center;
|
|
361
363
|
}
|
|
362
364
|
|
|
363
365
|
&-item {
|
|
@@ -365,6 +367,7 @@ export default {
|
|
|
365
367
|
justify-content: flex-start;
|
|
366
368
|
align-content: center;
|
|
367
369
|
padding-bottom: unit(32, rpx);
|
|
370
|
+
padding-left: unit(40,rpx);
|
|
368
371
|
}
|
|
369
372
|
}
|
|
370
373
|
|
|
@@ -51,7 +51,7 @@ export default {
|
|
|
51
51
|
getCardGroupItem(list, allEntry) {
|
|
52
52
|
list.map(item => {
|
|
53
53
|
//设置卡片样式
|
|
54
|
-
item['theme'] = this.getCardThemes(item['card_type_name']
|
|
54
|
+
item['theme'] = this.getCardThemes(item['card_type_name']);
|
|
55
55
|
item['entries'] = this.getEntry(item['business_codes'], allEntry)
|
|
56
56
|
});
|
|
57
57
|
return list
|