jufubao-base 1.0.56-beta2011 → 1.0.56-beta2013

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-beta2011",
3
+ "version": "1.0.56-beta2013",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -50,7 +50,7 @@
50
50
  "core-js": "^2.6.5",
51
51
  "flyio": "^0.6.2",
52
52
  "gxd-commands-bussiness": "^1.0.12",
53
- "gxd-uni-library-editx": "1.0.13-beta5",
53
+ "gxd-uni-library-editx": "1.0.13-beta7",
54
54
  "jweixin-module": "^1.6.0",
55
55
  "md5": "^2.3.0",
56
56
  "path-to-regexp": "^6.2.1",
@@ -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
- this.setInval(this.info.card_qrcode_expire);
406
+ if(!this.$configProject.isPreview) {
407
+ this.setInval(this.info.card_qrcode_expire);
408
+ }
392
409
  this.show = false;
393
410
 
394
411
  //显示按钮
@@ -55,9 +55,7 @@
55
55
  :key="index"
56
56
  >
57
57
  <view> {{ item.label }}: </view>
58
- <xd-unit v-if="item.type === 'price'&&info.unit==='点'" fontSize="28" :price="info[item.key]">
59
- </xd-unit>
60
- <view :style="{color:mainColor,fontWeight:500}" v-else-if="item.type === 'price'&&info.unit==='次'">
58
+ <view :style="{color:mainColor,fontWeight:500}" v-if="item.type === 'price'">
61
59
  {{ info[item.key] }}
62
60
  <text>{{info.unit}}</text>
63
61
  </view>
@@ -108,7 +106,6 @@
108
106
  <!-- 靠底支付 -->
109
107
  <view class="fixe_bottom" :style="prod_bottom">
110
108
  <!-- <xd-button
111
- radius="8rpx"
112
109
  size="small"
113
110
  type="primary">
114
111
  消费记录
@@ -116,7 +113,6 @@
116
113
  <xd-button
117
114
  v-if="info.is_exchange==='Y'"
118
115
  @click="handleToShift"
119
- radius="8rpx"
120
116
  size="small"
121
117
  type="primary">
122
118
  券转换
@@ -124,7 +120,6 @@
124
120
  <xd-button
125
121
  v-if="isShowUnbind"
126
122
  @click="handleUnBindCard"
127
- radius="8rpx"
128
123
  size="small"
129
124
  type="primary">
130
125
  解除绑定
@@ -311,6 +306,9 @@ export default {
311
306
  return item
312
307
  })
313
308
  }
309
+ if(res.other_card_point===0 || res.card_point_type === 1) {
310
+ this.valueKey.splice(1,1)
311
+ }
314
312
  this.info = res;
315
313
  if(!this.$configProject.isPreview) {
316
314
  this.setInval(this.info.card_qrcode_expire);
@@ -545,13 +543,13 @@ export default {
545
543
  font-weight: 700;
546
544
  color: #fff;
547
545
  position: relative;
548
- height: unit(260,rpx);
546
+ min-height: unit(260,rpx);
549
547
 
550
548
  &-wrap {
551
549
  width: unit(700, rpx);
552
550
  border-radius: unit(16, rpx);
553
551
  background-size: 100%;
554
- height: 100%;
552
+ min-height: unit(260,rpx);
555
553
  display: flex;
556
554
  flex-direction: column;
557
555
  justify-content: center;
@@ -563,6 +561,11 @@ export default {
563
561
  align-content: center;
564
562
  padding-bottom: unit(32, rpx);
565
563
  padding-left: unit(40,rpx);
564
+
565
+ & > view:first-child {
566
+ flex-basis: unit(120,rpx);
567
+ flex-shrink: 0;
568
+ }
566
569
  }
567
570
  }
568
571
 
@@ -49,7 +49,6 @@
49
49
  <view class="fixe_bottom" :style="prod_bottom">
50
50
  <xd-button
51
51
  type="primary"
52
- radius="8rpx"
53
52
  width="360rpx"
54
53
  @click="handleGetInfo"
55
54
  >确认</xd-button
@@ -95,9 +94,7 @@
95
94
  :key="index"
96
95
  >
97
96
  <view> {{ item.label }}: </view>
98
- <xd-unit v-if="item.type === 'price'&&info.unit==='点'" fontSize="28" :price="info[item.key]">
99
- </xd-unit>
100
- <view :style="{color:mainColor,fontWeight:500}" v-else-if="item.type === 'price'&&info.unit==='次'">
97
+ <view :style="{color:mainColor,fontWeight:500}" v-if="item.type === 'price'">
101
98
  {{ info[item.key] }}
102
99
  <text>{{info.unit}}</text>
103
100
  </view>
@@ -136,7 +133,6 @@
136
133
  <view :style="{ height: '100rpx' }"></view>
137
134
  <view class="fixe_bottom" :style="prod_bottom">
138
135
  <xd-button
139
- radius="8rpx"
140
136
  type="primary"
141
137
  width="360rpx"
142
138
  @click="handleToLink"
@@ -218,7 +214,23 @@ export default {
218
214
  },
219
215
  created() {},
220
216
  methods: {
221
- handleToLink(path) {
217
+ handleToLink() {
218
+ if(this.info.card_point===0) {
219
+ this.$xdConfirm({
220
+ $vm: this,
221
+ content: "票券余额为0,是否确认绑定?",
222
+ width: "80%",
223
+ success: (res) => {
224
+ if (res.confirm) {
225
+ this.handleToBind()
226
+ }
227
+ },
228
+ });
229
+ return
230
+ }
231
+ this.handleToBind()
232
+ },
233
+ handleToBind() {
222
234
  if (this.qrcode) {
223
235
  jfbRootExec("qrCardBindEntry", {
224
236
  vm: this,
@@ -320,6 +332,9 @@ export default {
320
332
  item['image_url'] = getServiceUrl(item['image_url'])
321
333
  return item
322
334
  })
335
+ }
336
+ if(res.other_card_point===0 || res.card_point_type === 1) {
337
+ this.valueKey.splice(1,1);
323
338
  }
324
339
  this.headerBg = this.getCardThemes(res.card_type_name);
325
340
  this.showInfo = true;
@@ -357,6 +372,9 @@ export default {
357
372
  return item
358
373
  })
359
374
  }
375
+ if(res.other_card_point===0 || res.card_point_type === 1) {
376
+ this.valueKey.splice(1,1);
377
+ }
360
378
  this.headerBg = this.getCardThemes(res.card_type_name);
361
379
  this.showInfo = true;
362
380
  this.showForm = false;
@@ -448,13 +466,13 @@ export default {
448
466
  font-weight: 700;
449
467
  color: #fff;
450
468
  position: relative;
451
- height: unit(260,rpx);
469
+ min-height: unit(260,rpx);
452
470
 
453
471
  &-wrap {
454
472
  width: unit(700, rpx);
455
473
  border-radius: unit(16, rpx);
456
474
  background-size: 100%;
457
- height: 100%;
475
+ min-height: unit(260,rpx);
458
476
  display: flex;
459
477
  flex-direction: column;
460
478
  justify-content: center;
@@ -466,6 +484,11 @@ export default {
466
484
  align-content: center;
467
485
  padding-bottom: unit(32, rpx);
468
486
  padding-left: unit(40,rpx);
487
+
488
+ & > view:first-child {
489
+ flex-basis: unit(120,rpx);
490
+ flex-shrink: 0;
491
+ }
469
492
  }
470
493
  }
471
494
 
@@ -16,7 +16,7 @@ export default {
16
16
  //@EndAttrData
17
17
 
18
18
  // #endif
19
- cssRoot: ''
19
+ cssRoot: 'jfb-base-card-info-entry'
20
20
  }
21
21
  },
22
22
  created() {
@@ -10,21 +10,21 @@ export default {
10
10
  data() {
11
11
  return {
12
12
  //#ifdef H5
13
-
13
+
14
14
  //@AttrData
15
15
  Attr:{}, //对外开发编辑属性
16
16
  //@EndAttrData
17
-
17
+
18
18
  // #endif
19
19
  cssRoot: 'jfb-base-card-merge-entry'
20
20
  }
21
21
  },
22
22
  created() {
23
-
23
+
24
24
  //@AttrDataCreated
25
25
  this.Attr = this.$xdUniHelper.customClone(Attr);
26
26
  //@EndAttrDataCreated
27
-
27
+
28
28
 
29
29
  },
30
30
  }
@@ -50,7 +50,7 @@
50
50
  <view>{{info.card_type_name}}</view>
51
51
  </view>
52
52
  <view
53
- style="padding-bottom: 0px"
53
+ style="padding-bottom: 20rpx"
54
54
  class="jfb-base-card-shift-entry__body-header-item"
55
55
  >
56
56
  <view>券号:</view>
@@ -71,10 +71,8 @@
71
71
  v-for="(item, index) in valueKey"
72
72
  :key="index"
73
73
  >
74
- <view> {{ item.label }}: </view>
75
- <xd-unit v-if="item.type === 'price'&&info.unit==='点'" fontSize="28" :price="info[item.key]">
76
- </xd-unit>
77
- <view :style="{color:mainColor,fontWeight:500}" v-else-if="item.type === 'price'&&info.unit==='次'">
74
+ <view> {{ item.label }}: </view>
75
+ <view :style="{color:mainColor,fontWeight:500}" v-if="item.type === 'price'">
78
76
  {{ info[item.key] }}
79
77
  <text>{{info.unit}}</text>
80
78
  </view>
@@ -106,10 +104,8 @@
106
104
  v-for="(item, index) in changeValueKey"
107
105
  :key="index"
108
106
  >
109
- <view> {{ item.label }}: </view>
110
- <xd-unit v-if="item.type === 'price'&&info.unit==='点'" fontSize="28" :price="info[item.key]">
111
- </xd-unit>
112
- <view :style="{color:mainColor,fontWeight:500}" v-else-if="item.type === 'price'&&info.unit==='次'">
107
+ <view> {{ item.label }}: </view>
108
+ <view :style="{color:mainColor,fontWeight:500}" v-if="item.type === 'price'">
113
109
  {{ info[item.key] }}
114
110
  <text>{{info.unit}}</text>
115
111
  </view>
@@ -130,7 +126,6 @@
130
126
  <xd-button
131
127
  @click="handleChange"
132
128
  width="500rpx"
133
- radius="8rpx"
134
129
  type="primary">
135
130
  转换
136
131
  </xd-button>
@@ -298,6 +293,10 @@ export default {
298
293
  temp[key] = res[key];
299
294
  }
300
295
  });
296
+ if(res.other_card_point===0 || res.card_point_type === 1) {
297
+ this.valueKey.splice(1,1);
298
+ this.changeValueKey.splice(1,1)
299
+ }
301
300
  this.headerBg = this.getCardThemes(res);
302
301
  this.info = temp;
303
302
  })
@@ -330,19 +329,16 @@ export default {
330
329
  font-weight: 700;
331
330
  color: #fff;
332
331
  position: relative;
333
- height: unit(260,rpx);
332
+ min-height: unit(260,rpx);
334
333
 
335
334
  &__title {
336
335
  height: unit(56, rpx);
337
336
  display: flex;
338
337
  justify-content: flex-start;
339
338
  align-items: center;
340
- position: absolute;
341
- top: 0;
342
- left: 0;
339
+
343
340
 
344
341
  & > view {
345
- padding: 0 unit(80, rpx);
346
342
  font-size: unit(24, rpx);
347
343
  line-height: unit(56, rpx);
348
344
  background: rgba(102, 102, 102, 0.4);
@@ -357,7 +353,7 @@ export default {
357
353
  width: unit(700, rpx);
358
354
  border-radius: unit(16, rpx);
359
355
  background-size: 100%;
360
- height: 100%;
356
+ min-height: 100%;
361
357
  display: flex;
362
358
  flex-direction: column;
363
359
  justify-content: center;
@@ -369,6 +365,11 @@ export default {
369
365
  align-content: center;
370
366
  padding-bottom: unit(32, rpx);
371
367
  padding-left: unit(40,rpx);
368
+
369
+ & > view:first-child {
370
+ flex-basis: unit(120,rpx);
371
+ flex-shrink: 0;
372
+ }
372
373
  }
373
374
  }
374
375
 
@@ -10,21 +10,21 @@ export default {
10
10
  data() {
11
11
  return {
12
12
  //#ifdef H5
13
-
13
+
14
14
  //@AttrData
15
15
  Attr:{}, //对外开发编辑属性
16
16
  //@EndAttrData
17
-
17
+
18
18
  // #endif
19
19
  cssRoot: 'jfb-base-card-shift-entry'
20
20
  }
21
21
  },
22
22
  created() {
23
-
23
+
24
24
  //@AttrDataCreated
25
25
  this.Attr = this.$xdUniHelper.customClone(Attr);
26
26
  //@EndAttrDataCreated
27
-
27
+
28
28
 
29
29
  },
30
30
  }
@@ -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'] + item['card_type']);
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