jufubao-base 1.0.56-beta2008 → 1.0.56-beta2011

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-base",
3
- "version": "1.0.56-beta2008",
3
+ "version": "1.0.56-beta2011",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -275,6 +275,9 @@ export default {
275
275
  init() {
276
276
  this.detail();
277
277
  this.refrush();
278
+ if(this.$configProject.isPreview) {
279
+ this.timeStr = "01分19秒"
280
+ }
278
281
  this.backUrl = getContainerPropsValue( this.container, "content.back_url", { value: "" }).value;
279
282
  this.shift_url = getContainerPropsValue( this.container, "content.shift_url", { value: "" }).value;
280
283
  },
@@ -309,7 +312,9 @@ export default {
309
312
  })
310
313
  }
311
314
  this.info = res;
312
- this.setInval(this.info.card_qrcode_expire);
315
+ if(!this.$configProject.isPreview) {
316
+ this.setInval(this.info.card_qrcode_expire);
317
+ }
313
318
  this.show = false;
314
319
  this.headerBg = this.getCardThemes(res.card_type_name);
315
320
 
@@ -395,6 +400,7 @@ export default {
395
400
  vm: this,
396
401
  success: (res) => {
397
402
  if (res.confirm) {
403
+ this.timeStr = ""
398
404
  clearTimeout(this.timeer);
399
405
  clearTimeout(this.refrushTimeer);
400
406
  this.stopTimer = true;
@@ -454,6 +460,7 @@ export default {
454
460
  this.$xdUniHelper.navigateBack();
455
461
  },
456
462
  onJfbUnload() {
463
+ this.timeStr = ""
457
464
  if (this.timeer) {
458
465
  clearTimeout(this.timeer);
459
466
  }
@@ -496,7 +503,13 @@ export default {
496
503
  // }
497
504
  },
498
505
  onJfbHide(options) {
499
- console.log("event.onJfbHide", options);
506
+ this.timeStr = ""
507
+ if (this.timeer) {
508
+ clearTimeout(this.timeer);
509
+ }
510
+ if (this.refrushTimeer) {
511
+ clearTimeout(this.refrushTimeer);
512
+ }
500
513
  },
501
514
  onJfbBack(options) {
502
515
  console.log("event.onJfbBack", options);
@@ -530,13 +543,18 @@ export default {
530
543
  border-radius: unit(16, rpx);
531
544
  font-size: unit(40, rpx);
532
545
  font-weight: 700;
533
- padding: unit(48, rpx) unit(32, rpx);
534
546
  color: #fff;
547
+ position: relative;
548
+ height: unit(260,rpx);
535
549
 
536
550
  &-wrap {
537
551
  width: unit(700, rpx);
538
552
  border-radius: unit(16, rpx);
539
553
  background-size: 100%;
554
+ height: 100%;
555
+ display: flex;
556
+ flex-direction: column;
557
+ justify-content: center;
540
558
  }
541
559
 
542
560
  &-item {
@@ -544,6 +562,7 @@ export default {
544
562
  justify-content: flex-start;
545
563
  align-content: center;
546
564
  padding-bottom: unit(32, rpx);
565
+ padding-left: unit(40,rpx);
547
566
  }
548
567
  }
549
568
 
@@ -583,6 +602,7 @@ export default {
583
602
  border-radius: unit(16,rpx);
584
603
  margin-top: unit(24, rpx);
585
604
  padding: unit(20,rpx) unit(70,rpx) unit(70,rpx) unit(70,rpx);
605
+ color: #000;
586
606
 
587
607
  & > view {
588
608
  // margin-bottom: unit(20, rpx);
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  module.exports = {
4
- getCardYue: {},
4
+ getCardYueEntry: {},
5
5
  getBaseByIdCardDetailEntry: {
6
6
  "site_entry_settings": [{
7
7
  "id": 57,
@@ -50,7 +50,6 @@
50
50
  <xd-button
51
51
  type="primary"
52
52
  radius="8rpx"
53
- size="small"
54
53
  width="360rpx"
55
54
  @click="handleGetInfo"
56
55
  >确认</xd-button
@@ -138,7 +137,6 @@
138
137
  <view class="fixe_bottom" :style="prod_bottom">
139
138
  <xd-button
140
139
  radius="8rpx"
141
- size="small"
142
140
  type="primary"
143
141
  width="360rpx"
144
142
  @click="handleToLink"
@@ -448,13 +446,18 @@ export default {
448
446
  border-radius: unit(16, rpx);
449
447
  font-size: unit(40, rpx);
450
448
  font-weight: 700;
451
- padding: unit(48, rpx) unit(32, rpx);
452
449
  color: #fff;
450
+ position: relative;
451
+ height: unit(260,rpx);
453
452
 
454
453
  &-wrap {
455
454
  width: unit(700, rpx);
456
455
  border-radius: unit(16, rpx);
457
456
  background-size: 100%;
457
+ height: 100%;
458
+ display: flex;
459
+ flex-direction: column;
460
+ justify-content: center;
458
461
  }
459
462
 
460
463
  &-item {
@@ -462,6 +465,7 @@ export default {
462
465
  justify-content: flex-start;
463
466
  align-content: center;
464
467
  padding-bottom: unit(32, rpx);
468
+ padding-left: unit(40,rpx);
465
469
  }
466
470
  }
467
471
 
@@ -3,233 +3,235 @@
3
3
  export default {
4
4
  style: [],
5
5
  advanced: [],
6
- content: [
7
- {
8
- label: '返回按钮地址:', //label
9
- ele: 'xd-select-pages-path', //package 名称
10
- valueKey: 'back_url', //form[valueKey]
11
- placeholder: '请选择返回按钮地址',
12
- value: null,
13
- setting: {
14
- router: XdBus.getParentApi('getPagesTree'),
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
- handleCustom({action, data}) {
36
- if (data && data.params) {
37
- //当一个插件中出现使用内容分类时候需要设置code值,在页面引用时候容器id + code进行拼接
38
- //data.params = Object.assign({}, data.params, {code: 'g_test_id'});
39
- }
40
-
41
- //获取返回参数(场景类型名称为必填)
42
- let loading = XdBus.getParentApi('loading')({});
43
-
44
- //获取显示内容
45
- if (action === 'screen') {
46
- XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_bucket_content_tip'})
47
- .then(res => {
48
- loading.close();
49
- data.cb(res['list'])
50
- })
51
- .catch(error => {
52
- console.error(error);
53
- loading.close();
54
- });
55
-
56
- }
57
-
58
- //获取返回参数(广告位高度必选项)
59
- if (action === 'getNewsInfo') {
60
- XdBus.getParentApi('cmsGetPublishEditxContent')(data.params)
61
- .then(res => {
62
- loading.close()
63
- data.cb({list: res.list, selectId: res.selected})
64
- })
65
- .catch(error => {
66
- loading.close()
67
- console.error(error);
68
- });
69
- }
70
-
71
- //获取产品业务线列表
72
- if (action === 'namespace') {
73
- XdBus.getParentApi('getOptionsNamespaces')({})
74
- .then(res => {
75
- loading.close()
76
- data.cb(res['list'])
77
- })
78
- .catch(error => {
79
- loading.close()
80
- console.error(error);
81
- });
82
- }
83
-
84
- //使用内容分类
85
- if (action === 'cmsPublishEditxContent') {
86
- XdBus.getParentApi('cmsPublishEditxContent')(data.params)
87
- .then(res => {
88
- console.log('cmsPublishEditxContent', res)
89
- loading.close();
90
- data.cb(res)
91
- })
92
- .catch(error => {
93
- loading.close();
94
- console.error(error);
95
- });
96
- }
97
-
98
- //位置列表
99
- if (action === 'getListPostion') {
100
- XdBus.getParentApi('getListNewsPosition')(data.params)
101
- .then(res => {
102
- loading.close();
103
- data.cb(res)
104
- })
105
- .catch(error => {
106
- loading.close();
107
- console.error(error);
108
- });
109
- }
110
-
111
- //位置创建
112
- if (action === 'addPostion') {
113
- XdBus.getParentApi('addNewsPosition')(data.params)
114
- .then(res => {
115
- loading.close();
116
- data.cb(true)
117
- })
118
- .catch(error => {
119
- console.error(error);
120
- loading.close();
121
- data.cb(false)
122
- });
123
- }
124
-
125
- //位置编辑
126
- if (action === 'editPostion') {
127
- XdBus.getParentApi('updateNewsPosition')(data.params)
128
- .then(res => {
129
- loading.close();
130
- data.cb(true)
131
- })
132
- .catch(error => {
133
- console.error(error);
134
- loading.close();
135
- data.cb(false)
136
- });
137
- }
138
-
139
- //位置删除
140
- if (action === 'deleltePostion') {
141
- XdBus.getParentApi('deleteNewsPosition')(data.params)
142
- .then(res => {
143
- loading.close();
144
- data.cb(true)
145
- })
146
- .catch(error => {
147
- console.error(error);
148
- loading.close();
149
- data.cb(false)
150
- });
151
- }
152
-
153
- //获取广告位内容列表
154
- if (action === 'getListContent') {
155
- XdBus.getParentApi('getListNewsContent')(data.params)
156
- .then(res => {
157
- loading.close();
158
- data.cb(res)
159
- })
160
- .catch(error => {
161
- loading.close();
162
- console.error(error);
163
- });
164
- }
165
-
166
- //广告内容创建
167
- if (action === 'addContent') {
168
- XdBus.getParentApi('addNewsContent')(data.params)
169
- .then(res => {
170
- loading.close();
171
- data.cb(true)
172
- })
173
- .catch(error => {
174
- console.error(error);
175
- loading.close();
176
- data.cb(false)
177
- });
178
- }
179
-
180
- //广告内容编辑
181
- if (action === 'editContent') {
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
- XdBus.getParentApi('deleteNewsContent')(data.params)
197
- .then(res => {
198
- loading.close();
199
- data.cb(true)
200
- })
201
- .catch(error => {
202
- console.error(error);
203
- loading.close();
204
- data.cb(false)
205
- });
206
- }
207
-
208
- //内容发布
209
- if (action === 'publish') {
210
- console.log('publish', data.params)
211
- XdBus.getParentApi('cmsPublishContent')(data.params)
212
- .then(res => {
213
- loading.close();
214
- data.cb(res)
215
- })
216
- .catch(error => {
217
- loading.close();
218
- console.error(error);
219
- });
220
- }
221
-
222
- //通知页面进行刷新
223
- if (action === 'update') {
224
- XdBus.getParentApi('getXdBusUpdateView')('onUpdateView', {});
225
- loading.close()
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
- inline: false,
229
- notice: '',
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,7 @@
130
130
  <xd-button
131
131
  @click="handleChange"
132
132
  width="500rpx"
133
- radius="8rpx"
134
- size="small"
133
+ radius="8rpx"
135
134
  type="primary">
136
135
  转换
137
136
  </xd-button>
@@ -329,9 +328,9 @@ export default {
329
328
  border-radius: unit(16, rpx);
330
329
  font-size: unit(40, rpx);
331
330
  font-weight: 700;
332
- padding: unit(88,rpx) unit(32, rpx) unit(48, rpx) unit(32, rpx);
333
331
  color: #fff;
334
332
  position: relative;
333
+ height: unit(260,rpx);
335
334
 
336
335
  &__title {
337
336
  height: unit(56, rpx);
@@ -358,6 +357,10 @@ export default {
358
357
  width: unit(700, rpx);
359
358
  border-radius: unit(16, rpx);
360
359
  background-size: 100%;
360
+ height: 100%;
361
+ display: flex;
362
+ flex-direction: column;
363
+ justify-content: center;
361
364
  }
362
365
 
363
366
  &-item {
@@ -365,6 +368,7 @@ export default {
365
368
  justify-content: flex-start;
366
369
  align-content: center;
367
370
  padding-bottom: unit(32, rpx);
371
+ padding-left: unit(40,rpx);
368
372
  }
369
373
  }
370
374