jufubao-base 1.0.56 → 1.0.61-beta1002

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.
Files changed (32) hide show
  1. package/package.json +2 -2
  2. package/src/components/JfbBaseCardDetail/JfbBaseCardDetail.vue +19 -1
  3. package/src/components/JfbBaseCardDetailEntry/Api.js +58 -0
  4. package/src/components/JfbBaseCardDetailEntry/Attr.js +30 -0
  5. package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +920 -0
  6. package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntryLess.less +80 -0
  7. package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntryMixin.js +30 -0
  8. package/src/components/JfbBaseCardDetailEntry/Mock.js +106 -0
  9. package/src/components/JfbBaseCardDetailEntry/XdEditPwd.vue +299 -0
  10. package/src/components/JfbBaseCardDetailEntry/XdPwPay.vue +214 -0
  11. package/src/components/JfbBaseCardDisabledEntry/Api.js +12 -7
  12. package/src/components/JfbBaseCardDisabledEntry/JfbBaseCardDisabledEntry.vue +39 -12
  13. package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +37 -1
  14. package/src/components/JfbBaseCardInfoEntry/Api.js +71 -0
  15. package/src/components/JfbBaseCardInfoEntry/Attr.js +37 -0
  16. package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntry.vue +768 -0
  17. package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntryLess.less +80 -0
  18. package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntryMixin.js +30 -0
  19. package/src/components/JfbBaseCardInfoEntry/Mock.js +122 -0
  20. package/src/components/JfbBaseCardMergeEntry/Api.js +61 -0
  21. package/src/components/JfbBaseCardMergeEntry/Attr.js +237 -0
  22. package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntry.vue +443 -0
  23. package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntryLess.less +80 -0
  24. package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntryMixin.js +30 -0
  25. package/src/components/JfbBaseCardMergeEntry/Mock.js +32 -0
  26. package/src/components/JfbBaseCardShiftEntry/Api.js +51 -0
  27. package/src/components/JfbBaseCardShiftEntry/Attr.js +237 -0
  28. package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntry.vue +593 -0
  29. package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntryLess.less +80 -0
  30. package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntryMixin.js +30 -0
  31. package/src/components/JfbBaseCardShiftEntry/Mock.js +5 -0
  32. package/src/mixins/colorCardMixins.js +1 -1
@@ -0,0 +1,593 @@
1
+ <template>
2
+ <view
3
+ class="jfb-base-card-shift-entry"
4
+ @click="handleEditxSelect"
5
+ :class="{
6
+ editx: isEditx && active,
7
+ noBorder: noBorder,
8
+ }"
9
+ >
10
+ <!--#ifdef H5-->
11
+ <view
12
+ class="jfb-base-card-shift-entry__edit"
13
+ :class="{ editx: isEditx && active }"
14
+ v-if="isEditx && active && !noBorder"
15
+ >
16
+ <view class="jfb-base-card-shift-entry__edit-icon" @click="delEdit">删除</view>
17
+ </view>
18
+ <!-- #endif -->
19
+ <view
20
+ class="jfb-base-card-shift-entry__body"
21
+ v-if="info !== null"
22
+ :style="{minHeight: layoutInfo.bodyMinHeightRpx + 'rpx'}"
23
+ >
24
+ <view class="card-list" :style="{
25
+ background: headerBg['color'],
26
+ backgroundSize: '100%'
27
+ }">
28
+ <view class="card-list-warp" :style="{backgroundImage: `url(${headerBg['image']})`}">
29
+ <view class="card-list__title">
30
+ <view style="display:flex;align-items:center">
31
+ <xd-font-icon
32
+ size="40"
33
+ color="#fff"
34
+ icon="iconzhuanhuanshitu"
35
+ style="margin-right:10rpx"
36
+ ></xd-font-icon>
37
+ <text>转换的票券</text>
38
+ </view>
39
+ </view>
40
+ <div class="card-list__content">
41
+ <view>
42
+ <text>券号:</text>
43
+ <text>{{info.card_number}}</text>
44
+ </view>
45
+ </div>
46
+ <view class="card-list__date">
47
+ <text>有效期:</text>
48
+ <text>{{info.end_time}}</text>
49
+ </view>
50
+ <view class="card-list__yue">
51
+ <text>余额:</text>
52
+ <text>{{info.card_point}} {{ info.unit }}</text>
53
+ </view>
54
+ <view class="card-list__other" v-if="info.other_card_point && info.card_point_type === 2">
55
+ <view><text>购买其他物品可抵:</text><text>{{info.other_card_point}} {{ info.unit }}</text></view>
56
+ </view>
57
+ </view>
58
+ </view>
59
+ <!-- 转换剩余 -->
60
+ <view>
61
+ <xd-font-icon
62
+ size="32"
63
+ color="#bbb"
64
+ icon="iconrepository-xialaxuanxiangdown"
65
+ ></xd-font-icon>
66
+ </view>
67
+ <view
68
+ class="jfb-base-card-shift-entry__body-content"
69
+ :style="{background:changeBg}"
70
+ >
71
+ <view class="jfb-base-card-shift-entry__body-content-title">
72
+ <view>转换后预估票券额度</view>
73
+ </view>
74
+ <view
75
+ :class="
76
+ item.key === 'other_card_point'
77
+ ? 'jfb-base-card-shift-entry__body-content-special'
78
+ : 'jfb-base-card-shift-entry__body-content-item'
79
+ "
80
+ v-for="(item, index) in changeValueKey"
81
+ :key="index"
82
+ >
83
+ <view> {{ item.label }}: </view>
84
+ <view :style="{color:mainColor,fontWeight:500}" v-if="item.type === 'price'">
85
+ {{ info[item.key] }}
86
+ <text>点</text>
87
+ </view>
88
+ <view style="color: #333; font-weight: 500" v-else>
89
+ {{ info[item.key] }}
90
+ <text v-if="item.type === 'type'">券</text>
91
+ </view>
92
+ </view>
93
+ </view>
94
+ <!-- 注意事项 -->
95
+ <view class="jfb-base-card-shift-entry__body-tips" v-if="notice">
96
+ <view style="text-align:center;padding-bottom:24rpx;color:#333;font-weight:500">注意事项</view>
97
+ <xd-content-xss :html="notice"></xd-content-xss>
98
+ </view>
99
+ <view :style="{height: '100rpx'}"></view>
100
+ <!-- 靠底支付 -->
101
+ <view class="fixe_bottom" :style="prod_bottom">
102
+ <xd-button
103
+ @click="handleChange"
104
+ width="500rpx"
105
+ type="primary">
106
+ 转换
107
+ </xd-button>
108
+ </view>
109
+ <xd-dailog
110
+ class="dialog"
111
+ title=""
112
+ :show.sync="success"
113
+ :showClose="false"
114
+ :confirm="false"
115
+ :cancel="false"
116
+ :radius="20"
117
+ >
118
+ <view class="jfb-base-card-shift-entry__body-success">
119
+ <view class="jfb-base-card-shift-entry__body-success-title">
120
+ <xd-font-icon
121
+ size="48"
122
+ :color="mainColor"
123
+ icon="icondui-01"
124
+ ></xd-font-icon>
125
+ <text :style="{color:mainColor,marginLeft:'20rpx'}">转换成功</text>
126
+ </view>
127
+ <view class="jfb-base-card-shift-entry__body-success-content">
128
+ 已成功将 <text style="color:#333;padding: 0 16rpx">{{ card_number }}</text> 转换成为
129
+ <text style="color:#333;padding: 0 16rpx">{{ changeNumber }}</text>可在券包中查看
130
+ </view>
131
+ <xd-button type="primarys" width="360rpx" @click="handleToLink"
132
+ >返回列表</xd-button
133
+ >
134
+ </view>
135
+ </xd-dailog>
136
+ </view>
137
+ </view>
138
+ </template>
139
+
140
+ <script>
141
+ import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
142
+ import XdRadio from "@/components/XdRadio/XdRadio";
143
+ import XdButton from "@/components/XdButton/XdButton";
144
+ import XdDailog from "@/components/XdDailog/XdDailog";
145
+ import { jfbRootExec } from "@/utils/xd.event";
146
+ import JfbBaseCardShifEntrytMixin from "./JfbBaseCardShiftEntryMixin";
147
+ import componentsMixins from "@/mixins/componentsMixins";
148
+ import colorCardMixins from "@/mixins/colorCardMixins";
149
+ import extsMixins from "@/mixins/extsMixins";
150
+ import { getContainerPropsValue } from "@/utils/xd.base";
151
+ import XdContentXss from '@/components/XdContentXss/XdContentXss'
152
+ const Color = require("color");
153
+
154
+ export default {
155
+ name: "JfbBaseCardShiftEntry",
156
+ components: {
157
+ XdFontIcon,
158
+ XdRadio,
159
+ XdButton,
160
+ XdDailog,
161
+ XdContentXss
162
+ },
163
+ mixins: [JfbBaseCardShifEntrytMixin, componentsMixins, extsMixins,colorCardMixins],
164
+ data() {
165
+ return {
166
+ info: null,
167
+ changeValueKey: [
168
+ {
169
+ label: "票券余额",
170
+ key: "exchange_card_point",
171
+ type: "price",
172
+ },
173
+ {
174
+ label: "购买其他物品可抵",
175
+ key: "other_card_point",
176
+ type: "price",
177
+ }
178
+ ],
179
+ card_number: "",
180
+ changeNumber: "",
181
+ success: false,
182
+ notice: "",
183
+
184
+ //页面跳转地址
185
+ backUrl: "",
186
+ bottomHeight: 120,
187
+ changeBg: ''
188
+ };
189
+ },
190
+ computed: {
191
+ prod_bottom() {
192
+ return this.fixedStyle({height: 0, zIndex: 111});
193
+ },
194
+ },
195
+ created() {
196
+ this.changeBg = Color(this.warningColor).alpha(0.2).toString();
197
+ this.backUrl = getContainerPropsValue(this.container, "content.back_url", {
198
+ value: "",
199
+ }).value;
200
+ },
201
+ methods: {
202
+ handleChange() {
203
+ jfbRootExec("changeCardBindEntry", {
204
+ vm: this,
205
+ data: {
206
+ card_number: this.card_number,
207
+ },
208
+ })
209
+ .then((res) => {
210
+ this.success = true;
211
+ this.changeNumber = res["to_card_number"];
212
+ })
213
+ .catch();
214
+ },
215
+ handleToLink() {
216
+ this.$xdUniHelper.navigateTo({
217
+ url: this.backUrl,
218
+ });
219
+ },
220
+ getContent() {
221
+ jfbRootExec("getListGiftNewsContentEntry", {
222
+ vm: this,
223
+ data: {
224
+ page_id: this.pageAttr["page_id"], //页面ID
225
+ container_id: this.containerId, //组件ID
226
+ limit: 1,
227
+ },
228
+ })
229
+ .then((res) => {
230
+ this.notice = res.list[0].content;
231
+ })
232
+ .catch((error) => {
233
+ console.error(error);
234
+ });
235
+ },
236
+
237
+ onJfbLoad(options) {
238
+ this.card_number = options.card_number;
239
+ this.getContent();
240
+ jfbRootExec("getByIdCardDetailEntry", {
241
+ vm: this,
242
+ data: {
243
+ card_number: this.card_number,
244
+ },
245
+ })
246
+ .then((res) => {
247
+ let temp = {};
248
+ Object.keys(res).map((key) => {
249
+ if (key === "card_point" || key === "exchange_card_point" || key=== "other_card_point") {
250
+ temp[key] = this.$xdUniHelper.divisionFloatNumber(res[key], 100);
251
+ } else {
252
+ temp[key] = res[key];
253
+ }
254
+ });
255
+ if(res.other_card_point===0 || res.card_point_type === 1) {
256
+ this.changeValueKey.splice(1,1)
257
+ }
258
+ this.headerBg = this.getCardThemes(res.card_type_name);
259
+ this.info = temp;
260
+ })
261
+ .catch((err) => {});
262
+ },
263
+ onJfbUpdate(data) {
264
+ this.getContent();
265
+ },
266
+ onJfbBack(options) {
267
+ this.$xdUniHelper.navigateBack();
268
+ },
269
+ },
270
+ };
271
+ </script>
272
+
273
+ <style scoped lang="less">
274
+ @import "./JfbBaseCardShiftEntryLess.less";
275
+
276
+ .jfb-base-card-shift-entry {
277
+ border: 1px dashed rgba(0, 0, 0, 0);
278
+ box-sizing: border-box;
279
+
280
+ &__body {
281
+ position: relative;
282
+ color: #333;
283
+ padding: unit(26, rpx);
284
+ .card-list {
285
+ overflow: hidden;
286
+ border-radius: unit(16, rpx);
287
+ margin-bottom: unit(30, rpx);
288
+
289
+ &:last-child {
290
+ margin-bottom: 0;
291
+ }
292
+
293
+
294
+ &__title {
295
+ height: unit(56, rpx);
296
+ display: flex;
297
+ justify-content: flex-start;
298
+ align-items: center;
299
+
300
+ & > view {
301
+ padding: 0 unit(80, rpx);
302
+ font-size: unit(24, rpx);
303
+ line-height: unit(56, rpx);
304
+ background: rgba(102, 102, 102, 0.4);
305
+ color: #fff;
306
+ border-radius: 0 0 unit(16, rpx) 0;
307
+ }
308
+
309
+ }
310
+
311
+ &__content {
312
+ padding: unit(10, rpx) unit(40, rpx) 0;
313
+ height: unit(86, rpx);
314
+ display: flex;
315
+ justify-content: space-between;
316
+ align-items: center;
317
+
318
+ & > view:first-child {
319
+ font-size: unit(36, rpx);
320
+ line-height: unit(86, rpx);
321
+ color: #fff;
322
+ font-weight: 700;
323
+ }
324
+
325
+ & > view:nth-child(2) {
326
+ font-size: unit(24, rpx);
327
+ display: flex;
328
+ justify-content: space-between;
329
+ align-items: center;
330
+ flex-flow: wrap;
331
+ flex-direction: column;
332
+ color: #fff;
333
+ }
334
+ }
335
+
336
+ &__date {
337
+ padding: 0 unit(40, rpx);
338
+ font-size: unit(28, rpx);
339
+ line-height: unit(32, rpx);
340
+ color: #fff;
341
+ }
342
+
343
+ &__yue {
344
+ padding: unit(10, rpx) unit(40, rpx) 0;
345
+ font-size: unit(28, rpx);
346
+ line-height: unit(32, rpx);
347
+ color: #fff;
348
+
349
+ & > text:nth-child(2) {
350
+ font-weight: 700;
351
+ }
352
+ }
353
+
354
+ &__other {
355
+ display: flex;
356
+ justify-content: flex-start;
357
+ align-items: center;
358
+ padding: unit(20, rpx) unit(40, rpx) 0;
359
+ margin-top: unit(0, rpx);
360
+
361
+ & > view {
362
+ border-radius:unit(8, rpx);
363
+ background: rgba(255, 255, 255, 0.2);
364
+ height: unit(48, rpx);
365
+ line-height: unit(48, rpx);
366
+ display: flex;
367
+ justify-content: flex-start;
368
+ align-items: center;
369
+ font-weight: 400;
370
+ font-size: unit(24, rpx);
371
+ padding: 0 unit(20, rpx);
372
+ color: #fff;
373
+ }
374
+
375
+
376
+ }
377
+
378
+ &__nodata {
379
+ padding: unit(20, rpx) unit(40, rpx) 0;
380
+ margin-top: unit(0, rpx);
381
+ color: #fff;
382
+ font-size: unit(28, rpx);
383
+ }
384
+
385
+ &__entry {
386
+ padding: unit(20, rpx) unit(40, rpx) 0;
387
+ & > view {
388
+ line-height: unit(64, rpx);
389
+ text-align: center;
390
+ font-size: unit(26, rpx);
391
+ border-radius: unit(32, rpx);
392
+ background: rgba(255, 255, 255, 1);
393
+ box-shadow: 0 unit(4, rpx) unit(8, rpx) rgba(156, 62, 0, 0.11);
394
+ font-weight: 500;
395
+ }
396
+ }
397
+
398
+ &__entrys {
399
+ margin: unit(20, rpx) unit(20, rpx) 0;
400
+ padding: unit(30, rpx);
401
+ border-radius: unit(16, rpx);
402
+ background: rgba(255, 255, 255, 1);
403
+ box-shadow: 0 unit(4, rpx) unit(8, rpx) rgba(156, 62, 0, 0.11);
404
+
405
+ &-title {
406
+ display: flex;
407
+ justify-content: space-between;
408
+ align-items: center;
409
+
410
+
411
+ & > view:first-child {
412
+ font-size: unit(28, rpx);
413
+ font-weight: 500;
414
+ flex: 1;
415
+ }
416
+
417
+ & > view:nth-child(2) {
418
+ display: flex;
419
+ justify-content: flex-start;
420
+ align-items: center;
421
+ flex-shrink: 0;
422
+ font-size: unit(20, rpx);
423
+ color: #999;
424
+ }
425
+ }
426
+
427
+ &-scroll {
428
+
429
+ }
430
+
431
+ &-item {
432
+ display: flex;
433
+ justify-content: flex-start;
434
+ align-items: center;
435
+ flex-flow: nowrap;
436
+ margin-left: unit(-14, rpx);
437
+ padding-top: unit(20, rpx);
438
+
439
+ & > view {
440
+ width: unit(120, rpx);
441
+ margin-right: unit(10, rpx);
442
+ flex-shrink: 0;
443
+ display: flex;
444
+ justify-content: center;
445
+ flex-direction: column;
446
+ align-items: center;
447
+
448
+ & > view:first-child {
449
+ width: unit(76, rpx);
450
+ height: unit(76, rpx);
451
+ overflow: hidden;
452
+
453
+ & > image {
454
+ height: 100%;
455
+ width: 100%;
456
+ }
457
+ }
458
+
459
+ & > view:nth-child(2) {
460
+ margin-top: unit(10, rpx);
461
+ font-size: unit(24, rpx);
462
+ line-height: unit(36, rpx);
463
+ margin-bottom: unit(10, rpx);
464
+ }
465
+
466
+ & > view:nth-child(3) {
467
+ display: flex;
468
+ justify-content: flex-start;
469
+ align-items: center;
470
+ flex-shrink: 0;
471
+ font-size: unit(20, rpx);
472
+ color: #999;
473
+ }
474
+
475
+ &:last-child {
476
+ margin-right: 0;
477
+ }
478
+
479
+ }
480
+
481
+
482
+ }
483
+ }
484
+
485
+ &-warp {
486
+ width: unit(700, rpx);
487
+ min-height: unit(290, rpx);
488
+ position: relative;
489
+ border-radius: unit(16, rpx);
490
+ background-size: 100%;
491
+ padding-bottom: unit(20, rpx);
492
+ }
493
+ }
494
+ &-content {
495
+ background: #fff;
496
+ border-radius: unit(16, rpx);
497
+ padding: unit(38, rpx) 0;
498
+ margin-top: unit(24, rpx);
499
+
500
+ &-title {
501
+ display: flex;
502
+ flex-direction: column;
503
+ justify-content: center;
504
+ align-items: center;
505
+ font-weight: 500;
506
+ margin-bottom: unit(32,rpx);
507
+ }
508
+
509
+ &-item {
510
+ display: flex;
511
+ color: #666;
512
+ justify-content: space-between;
513
+ align-content: center;
514
+ font-size: unit(28, rpx);
515
+ padding: unit(16, rpx) unit(48, rpx);
516
+ }
517
+
518
+ &-special {
519
+ display: flex;
520
+ color: #666;
521
+ justify-content: space-between;
522
+ font-size: unit(24, rpx);
523
+ padding: unit(18, rpx) unit(24, rpx);
524
+ margin: 0 unit(24, rpx);
525
+ border-radius: unit(16, rpx);
526
+ background: #f9f9f9;
527
+ align-content: center;
528
+ }
529
+ }
530
+
531
+ &-tips {
532
+ font-size: unit(28, rpx);
533
+ padding: unit(28, rpx);
534
+ color: #666;
535
+ background: #fff;
536
+ border-radius: unit(16,rpx);
537
+ margin-top: unit(24,rpx);
538
+ }
539
+
540
+ &-agree {
541
+ display: flex;
542
+ align-items: center;
543
+ justify-content: center;
544
+ font-size: unit(24, rpx);
545
+ color: #bbb;
546
+ padding: unit(20, rpx) 0;
547
+ margin-bottom: unit(40,rpx);
548
+
549
+ & > view {
550
+ margin-left: unit(25, rpx);
551
+ }
552
+ }
553
+
554
+ .fixe_bottom{
555
+ display: flex;
556
+ align-items: center;
557
+ justify-content: space-between;
558
+ height: unit(100, rpx);
559
+ padding: 0 unit(40, rpx);
560
+ background: #FFF;
561
+ box-shadow: 0 0 unit(16, rpx) rgba(0,0,0,.05);
562
+ .flex_l{
563
+ display: flex;
564
+ align-items: center;
565
+ font-size: unit(32,rpx);
566
+ }
567
+ }
568
+
569
+ &-success {
570
+ padding: unit(70, rpx);
571
+ &-title {
572
+ font-size: unit(32, rpx);
573
+ display: flex;
574
+ align-items: center;
575
+ justify-content: center;
576
+ }
577
+
578
+ &-content {
579
+ font-size: unit(28, rpx);
580
+ color: #666;
581
+ text-align: center;
582
+ line-height: unit(42, rpx);
583
+ margin: unit(50, rpx) 0;
584
+ }
585
+ }
586
+
587
+
588
+ .dialog ::v-deep .xd-dailog__body-content {
589
+ padding: 0;
590
+ }
591
+ }
592
+ }
593
+ </style>
@@ -0,0 +1,80 @@
1
+ /**
2
+ * @desc 获取绝对路径完整地址
3
+ * @param @path
4
+ **/
5
+ //例如:https://image.jufubao.cn/20220501010108/image/bg/default_gonghui_bg.png
6
+ @basePath: 'business/';
7
+ @doMain: '//sandbox-img.jufubao.cn/';
8
+
9
+ .getBusinessImageUrl(@path, @size: 'size8') {
10
+ @url: "@{doMain}@{basePath}@{path}?x-oss-process=style/@{size}";
11
+ background-image: url(@url);
12
+ }
13
+
14
+ //start
15
+ .jfb-base-card-shift-entry {
16
+ border: 1px dashed rgba(0, 0, 0, 0);
17
+ box-sizing: border-box;
18
+ min-height: unit(100, rpx);
19
+
20
+ &__body{
21
+ position: relative;
22
+ overflow: hidden;
23
+ z-index: 2
24
+ }
25
+
26
+ &.editx {
27
+ position: relative;
28
+ border: 1px dashed blue;
29
+ box-sizing: border-box;
30
+ z-index: 3
31
+
32
+ }
33
+
34
+ &:hover {
35
+ border: 1px dashed blue;
36
+ }
37
+
38
+ &.noBorder {
39
+ border-color: rgba(0,0,0,0);
40
+ border-width: 0;
41
+ }
42
+
43
+
44
+ &__edit {
45
+ cursor: pointer;
46
+ position: absolute;
47
+ right: unit(0, rpx);
48
+ top: unit(-52, rpx);
49
+ height: unit(50, rpx);
50
+ line-height: unit(50, rpx);
51
+ display: flex;
52
+ justify-content: center;
53
+ align-items: center;
54
+ background: rgba(0, 0, 0, .6);
55
+ border-radius: unit(10, rpx);
56
+ box-shadow: 0 0 10px rbga(0, 0, 0, 0.3);
57
+ color: #fff;
58
+ font-size: unit(22, rpx);
59
+
60
+ &-icon{
61
+ padding: 0 unit(20, rpx);
62
+ }
63
+
64
+ &.editx {
65
+ box-sizing: border-box;
66
+
67
+ }
68
+ }
69
+ }
70
+ //end
71
+
72
+
73
+ /**notPreview**/
74
+ .jfb-base-card-shift-entry {
75
+ &:before {
76
+ content: " ";
77
+ display: table;
78
+ }
79
+ }
80
+ /**endNotPreview**/
@@ -0,0 +1,30 @@
1
+ 'use strict';
2
+
3
+
4
+ //@AttrImport
5
+ import Attr from "./Attr";
6
+ //@EndAttrImport
7
+
8
+
9
+ export default {
10
+ data() {
11
+ return {
12
+ //#ifdef H5
13
+
14
+ //@AttrData
15
+ Attr:{}, //对外开发编辑属性
16
+ //@EndAttrData
17
+
18
+ // #endif
19
+ cssRoot: 'jfb-base-card-shift-entry'
20
+ }
21
+ },
22
+ created() {
23
+
24
+ //@AttrDataCreated
25
+ this.Attr = this.$xdUniHelper.customClone(Attr);
26
+ //@EndAttrDataCreated
27
+
28
+
29
+ },
30
+ }
@@ -0,0 +1,5 @@
1
+ 'use strict';
2
+
3
+ module.exports = {
4
+ getByIdCardDetailEntry:{"card_number":"171003500000390","card_point":900,"card_type_name":"一对一次卡(无限制)","end_time":"2024-09-30","card_status":"Y","card_status_name":"开启","card_qrcode":"\/\/sandbox-apis.jufubao.cn\/common\/v1\/image\/qrcode?code_content=h.161.4tzflzciaovkl5e","barcode":"\/\/sandbox-apis.jufubao.cn\/common\/v1\/image\/barcode?code_content=h.161.4tzflzciaovkl5e","card_qrcode_expire":600,"unit":"次","main_business_code_name":"","other_card_point":0,"is_exchange":"Y","exchange_card_type_name":"福券","exchange_card_point":26730,"card_point_type":1,"is_show_qrcode_logo":"Y","is_can_unbind":"Y","site_entry_settings":[],"business_codes":["movie","cake","video"],"request_id":"e27d6887c093c381"}
5
+ }
@@ -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