jufubao-base 1.0.177-beta3 → 1.0.179

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 (27) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbBaseCardDelay/Api.js +30 -19
  3. package/src/components/JfbBaseCardDelay/Attr.js +37 -227
  4. package/src/components/JfbBaseCardDelay/JfbBaseCardDelay.vue +79 -254
  5. package/src/components/JfbBaseCardDetailEntry/Attr.js +0 -12
  6. package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +0 -14
  7. package/src/components/JfbBaseCardDetailEntry/Mock.js +1 -1
  8. package/src/components/JfbBaseCardDisabled/JfbBaseCardDisabled.vue +2 -2
  9. package/src/components/JfbBaseCardDisabledEntry/JfbBaseCardDisabledEntry.vue +8 -8
  10. package/src/components/JfbBaseCardEntry/Attr.js +0 -121
  11. package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +29 -202
  12. package/src/components/JfbBaseCardGive/Api.js +34 -18
  13. package/src/components/JfbBaseCardGive/Attr.js +36 -29
  14. package/src/components/JfbBaseCardGive/JfbBaseCardGive.vue +80 -463
  15. package/src/components/JfbBaseCardGive/Mock.js +9 -2
  16. package/src/components/JfbBaseCardReceive/Api.js +36 -10
  17. package/src/components/JfbBaseCardReceive/Attr.js +39 -9
  18. package/src/components/JfbBaseCardReceive/JfbBaseCardReceive.vue +81 -382
  19. package/src/components/JfbBaseCardReceiveCover/Api.js +43 -5
  20. package/src/components/JfbBaseCardReceiveCover/Attr.js +32 -57
  21. package/src/components/JfbBaseCardReceiveCover/JfbBaseCardReceiveCover.vue +82 -143
  22. package/src/components/JfbBasePay/Attr.js +0 -12
  23. package/src/components/JfbBasePay/JfbBasePay.vue +4 -4
  24. package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrder.vue +2 -2
  25. package/src/components/JfbBaseRechargeOrderDetail/JfbBaseRechargeOrderDetail.vue +12 -135
  26. package/src/components/JfbBaseRechargeSuccess/JfbBaseRechargeSuccess.vue +1 -1
  27. package/src/components/JfbBaseTfkCardLogin/JfbBaseTfkCardLogin.vue +1 -1
@@ -2,493 +2,110 @@
2
2
  <view
3
3
  class="jfb-base-card-give"
4
4
  @click="handleEditxSelect"
5
- :class="{ editx: isEditx && active }"
5
+ :class="{ editx : isEditx && active }"
6
6
  >
7
7
  <!--#ifdef H5-->
8
8
  <view
9
9
  class="jfb-base-card-give__edit"
10
- :class="{ editx: isEditx && active }"
10
+ :class="{ editx : isEditx && active }"
11
11
  v-if="isEditx && active"
12
12
  >
13
13
  <view class="jfb-base-card-give__edit-icon" @click="delEdit">删除</view>
14
14
  </view>
15
15
  <!-- #endif -->
16
- <view class="jfb-base-card-give__body" v-if="info !== null">
17
- <view
18
- class="qrcode_card"
19
- :style="{ background: info['theme']['color'], backgroundSize: '100%' }"
20
- >
21
- <view
22
- :style="{ backgroundImage: 'url(' + info['theme']['image'] + ')' }"
23
- >
24
- <view class="card-title"
25
- ><view>{{ info["card_type_name"] }}</view></view
26
- >
27
- <view class="card_info">
28
- <view class="card_type">券号:{{ info.card_number }}</view>
29
- <view class="card_sec">有效期:{{ info.end_time }}</view>
30
- <view class="card_sec"
31
- >余额:{{ info.card_point }}{{ info.unit }}</view
32
- >
33
- <view
34
- class="card_other"
35
- v-if="info.other_card_point && info.card_point_type === 2"
36
- >
37
- <text>购买其他物品可抵:</text
38
- ><text>{{ info.other_card_point }} {{ info.unit }}</text>
39
- </view>
40
- </view>
41
- </view>
42
- </view>
43
-
44
- <view
45
- v-if="
46
- info.transfer_record.status &&
47
- info.site_entry_settings &&
48
- info.site_entry_settings.length > 0
49
- "
50
- class="jfb-base-card-give__body-business"
51
- >
52
- <view class="jfb-base-card-give__body-business-title"
53
- >支持业务板块</view
54
- >
55
- <view
56
- style="
57
- display: flex;
58
- align-content: center;
59
- justify-content: flex-start;
60
- "
61
- >
62
- <view class="jfb-base-card-give__body-business-content">
63
- <view
64
- class="jfb-base-card-give__body-business-content-item"
65
- v-for="(item, index) in info.site_entry_settings"
66
- :key="index"
67
- >
68
- <view><image :src="item.image_url"></image></view>
69
- <view>{{ item.entry_name }}</view>
70
- </view>
71
- </view>
72
- </view>
73
- </view>
74
-
75
- <view v-if="!info.transfer_record.status" class="greeting">
76
- <view class="greeting-title">礼品赠言</view>
77
- <textarea
78
- v-model="greeting"
79
- name=""
80
- id=""
81
- maxlength="20"
82
- cols="30"
83
- rows="10"
84
- ></textarea>
85
- <xd-button @click="handleGive" type="primary">确认赠送</xd-button>
86
- </view>
87
- <view
88
- class="jfb-base-card-give__body-footer"
89
- :style="prod_bottom"
90
- v-if="
91
- info.transfer_record.status && info.transfer_record.status === 'N'
92
- "
93
- >
94
- <xd-button type="primary" @click="handleCancel">取消赠送</xd-button>
95
- <!-- #ifdef H5 -->
96
- <xd-button type="primary" @click="handleShare">再次分享</xd-button>
97
- <!-- #endif -->
98
- <!-- #ifdef MP-WEIXIN -->
99
- <button class="share-btn" @click="handleShare" open-type="share">
100
- 再次分享
101
- </button>
102
- <!-- #endif -->
103
- </view>
104
- <xd-dailog
105
- title=""
106
- :cancel="false"
107
- :confirm="false"
108
- :show.sync="dialogShow"
109
- >
110
- <view class="dialog">
111
- <view class="dialog-title">已赠送</view>
112
- <view class="dialog-content"
113
- >您的票券已赠送,快去告诉朋友及时领取吧!</view
114
- >
115
- <view class="dialog-notice"
116
- >超过24H未领取,票券会自动退回您的账户中。</view
117
- >
118
- <!-- #ifdef MP-WEIXIN -->
119
- <button class="share-btn" @click="handleShare" open-type="share">
120
- 通知微信好友
121
- </button>
122
- <!-- #endif -->
123
- <!-- #ifdef H5 -->
124
- <xd-button @click="handleShare" width="360rpx" type="primary"
125
- >通知微信好友</xd-button
126
- >
127
- <!-- #endif -->
128
- </view>
129
- </xd-dailog>
130
- <xd-dailog
131
- title=""
132
- :cancel="false"
133
- :confirm="false"
134
- :show.sync="resultDialog"
135
- >
136
- <view class="dialog">
137
- <view class="dialog-title">取消失败</view>
138
- <view class="dialog-content">{{ errMsg }}</view>
139
- <xd-button @click="resultDialog = false" width="360rpx" type="primary"
140
- >确定</xd-button
141
- >
142
- </view>
143
- </xd-dailog>
16
+ <view class="jfb-base-card-give__body">
17
+ <view>测试插件( {{containerId}} )</view>
144
18
  </view>
145
19
  </view>
146
20
  </template>
147
21
 
148
22
  <script>
149
- import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
150
- import XdButton from "@/components/XdButton/XdButton";
151
- import XdDailog from "@/components/XdDailog/XdDailog";
152
- import { jfbRootExec } from "@/utils/xd.event";
153
- import JfbBaseCardGiveMixin from "./JfbBaseCardGiveMixin";
154
- import colorCardMixins from "@/mixins/colorCardMixins";
155
- import { getContainerPropsValue } from "@/utils/xd.base";
156
- import componentsMixins from "@/mixins/componentsMixins";
157
- import { mapState, mapMutations } from "vuex";
158
- import extsMixins from "@/mixins/extsMixins";
159
- import getServiceUrl from "@/common/getServiceUrl";
160
-
161
- export default {
162
- name: "JfbBaseCardGive",
163
- components: {
164
- XdFontIcon,
165
- XdButton,
166
- XdDailog,
167
- },
168
- mixins: [componentsMixins, extsMixins, JfbBaseCardGiveMixin, colorCardMixins],
169
- data() {
170
- return {
171
- info: null,
172
- card_number: null,
173
- greeting: "",
174
- dialogShow: false,
175
- get_url: null,
176
- shareImage: "",
177
- isPreview: false,
178
- errMsg: "",
179
- resultDialog: false,
180
- };
181
- },
182
- computed: {
183
- ...mapState(["shareInfo"]),
184
- prod_bottom() {
185
- return this.fixedStyle({ height: 0, zIndex: 111 });
186
- },
187
- },
188
- watch: {
189
- container(value, oldValue) {
190
- if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
191
- if (this.$configProject["isPreview"]) this.init(value);
192
- },
193
- },
194
- async created() {
195
- this.isPreview = this.$configProject["isPreview"];
196
- this.init(this.container);
197
- console.log(this.projectAttr, "this.projectAttr");
198
- },
199
- methods: {
200
- ...mapMutations(["setShareInfo"]),
201
- async onJfbLoad(options) {
202
- this.card_number = options.card_number;
203
- await this.getDetail();
23
+ import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
24
+ import { jfbRootExec } from "@/utils/xd.event";
25
+ import JfbBaseCardGiveMixin from "./JfbBaseCardGiveMixin";
26
+ import { getContainerPropsValue } from "@/utils/xd.base";
27
+ import componentsMixins from "@/mixins/componentsMixins";
28
+ import extsMixins from "@/mixins/extsMixins";
29
+ export default {
30
+ name: "JfbBaseCardGive",
31
+ components: {
32
+ XdFontIcon
204
33
  },
205
- getDetail() {
206
- jfbRootExec("getBaseByIdCardDetailGive", {
207
- vm: this,
208
- data: {
209
- card_number: this.card_number,
210
- is_show_entry_settings: "Y",
211
- },
212
- })
213
- .then((res) => {
214
- this.info = res;
215
- this.greeting = res.transfer_record.greeting;
216
- this.info["theme"] = this.getCardThemes(this.info["card_type_name"]);
217
- if (
218
- this.info &&
219
- this.info.site_entry_settings &&
220
- this.info.site_entry_settings.length > 0
221
- ) {
222
- this.info.site_entry_settings =
223
- this.info.site_entry_settings.filter((item) => {
224
- item["image_url"] = getServiceUrl(item["image_url"]);
225
- return this.info.business_codes.includes(item.business_code);
226
- });
227
- }
228
- })
229
- .catch((err) => {
230
- console.log(err, "err");
231
- });
232
- },
233
- /**
234
- * @description 监听事件变化
235
- * @param container {object} 业务组件对象自己
236
- */
237
- init(container) {
238
- this.get_url = getContainerPropsValue(container, "content.get_url", {
239
- value: "",
240
- }).value;
241
- this.shareImage = getContainerPropsValue(
242
- container,
243
- "content.shareImage",
244
- { url: "" }
245
- ).url;
246
- },
247
- handleCancel() {
248
- jfbRootExec("cancelGiveCard", {
249
- vm: this,
250
- data: {
251
- transfer_auth_code: this.info.transfer_record.transfer_auth_code,
252
- },
253
- })
254
- .then((res) => {
255
- if (res.error_code) {
256
- this.resultDialog = true;
257
- this.errMsg = res.error_msg;
258
- } else {
259
- this.getDetail();
260
- }
261
- })
262
- .catch((err) => {
263
- console.log(err, "err");
264
- });
265
- },
266
- handleGive() {
267
- jfbRootExec("confirmGiveCard", {
268
- vm: this,
269
- data: {
270
- card_number: this.card_number,
271
- greeting: this.greeting,
272
- },
273
- })
274
- .then((res) => {
275
- this.getDetail();
276
- this.dialogShow = true;
277
- })
278
- .catch((err) => {
279
- console.log(err, "err");
280
- });
34
+ mixins: [
35
+ componentsMixins, extsMixins, JfbBaseCardGiveMixin
36
+ ],
37
+ data() {
38
+ return {
39
+
40
+ //todo
41
+ }
281
42
  },
282
- copy(text) {
283
- // #ifdef H5
284
- this.$copyText(text).then((res) => {
285
- this.$xdAlert({ content: "复制成功" });
286
- });
287
- // #endif
288
- // #ifndef H5
289
- uni.setClipboardData({
290
- data: text,
291
- success: () => {
292
- //this.$xdAlert({ content: "复制成功" });
293
- },
294
- });
295
- // #endif
43
+ watch: {
44
+ container(value, oldValue) {
45
+ if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
46
+ if (this.$configProject['isPreview']) this.init(value)
47
+ },
296
48
  },
297
- handleShare() {
298
- //#ifdef H5
299
- let share = `${document.location.origin}/${this.projectAttr.deploy_dir}${this.get_url}?transfer_auth_code=${this.info.transfer_record.transfer_auth_code}`;
300
- this.copy(share);
301
- // #endif
302
- // #ifdef MP-WEIXIN
303
- this.setShareInfo({
304
- title: "您的好友送你一张票券,快来领取吧",
305
- imageUrl: getServiceUrl(this.shareImage),
306
- path: `${this.get_url}?transfer_auth_code=${this.info.transfer_record.transfer_auth_code}`,
307
- });
308
- console.log(this.shareInfo, "shareInfoshareInfo");
49
+ created() {
50
+ this.init(this.container);
309
51
 
310
- // #endif
52
+ //todo
311
53
  },
312
- },
313
- };
314
- </script>
315
-
316
- <style scoped lang="less">
317
- @import "./JfbBaseCardGiveLess.less";
318
-
319
- .jfb-base-card-give {
320
- &__body {
321
- padding: 28rpx;
322
- color: #333;
323
- .qrcode_card {
324
- position: relative;
325
- border-radius: unit(16, rpx);
326
- &-title {
327
- display: flex;
328
- font-size: 32rpx;
329
- }
330
- .card-title {
331
- height: unit(56, rpx);
332
- display: flex;
333
- justify-content: flex-start;
334
- align-items: center;
335
-
336
- & > view {
337
- padding: 0 unit(50, rpx);
338
- font-size: unit(24, rpx);
339
- line-height: unit(56, rpx);
340
- background: rgba(102, 102, 102, 0.4);
341
- color: #fff;
342
- border-radius: unit(16, rpx) 0 unit(16, rpx) 0;
343
- display: flex;
344
- align-items: center;
345
- }
346
- }
347
- .card_info {
348
- color: #ffffff;
349
- font-size: 28rpx;
350
- padding-left: 40rpx;
351
- background-size: 100%;
352
- min-height: unit(200, rpx);
353
-
354
-   .card_type {
355
- font-size: 40rpx;
356
- font-weight: 600;
357
- margin-top: 20rpx;
358
- }
359
- .card_sec {
360
- margin: 12rpx 0;
361
- }
362
- .card_other {
363
- background-color: rgba(255, 255, 255, 0.2);
364
- border-radius: 8rpx;
365
- padding: 8rpx 20rpx;
366
- display: inline-block;
367
- }
368
- }
54
+ methods: {
55
+ onJfbLoad(options) {
56
+
57
+ // jfbRootExec('baiduUserLogin', {
58
+
59
+ // vm: this,// data: {
60
+
61
+ // account: 'gaoshiyong',// password: '123456789',// type: 3,// ...options
62
+
63
+ // }
64
+
65
+ // }).then().catch()
66
+ },
67
+ /**
68
+ * @description 监听事件变化
69
+ * @param container {object} 业务组件对象自己
70
+ */
71
+ init(container) {
72
+
73
+ //this.bgcolor = getContainerPropsValue(container, 'content.bgcolor', '#fff');
74
+
75
+ //this.height = getContainerPropsValue(container, 'content.height', 10);
76
+ },
77
+ onJfbScroll(options) {
78
+ console.log('event.onJfbScroll', options)
79
+ },
80
+ onJfbReachBottom(options) {
81
+ console.log('event.onJfbReachBottom', options)
82
+ },
83
+ onJfbShow(options) {
84
+ console.log('event.onJfbShow', options)
85
+ },
86
+ onJfbHide(options) {
87
+ console.log('event.onJfbHide', options)
88
+ },
89
+ onJfbBack(options) {
90
+ console.log('event.onJfbBack', options)
91
+ },
92
+ onJfbUpdate(...data) {
93
+ console.log('event.onJfbUpdate', data)
94
+ },
95
+ onJfbCustomEvent(options) {
96
+ console.log('event.onJfbReachBottom', options)
97
+ },
369
98
  }
370
- .greeting {
371
- border-radius: 16rpx;
372
- background: rgba(255, 255, 255, 1);
373
- padding: 40rpx;
374
- margin-top: 26rpx;
375
- &-title {
376
- font-size: 26rpx;
377
- margin-bottom: 40rpx;
378
- }
379
- textarea {
380
- border-radius: 16rpx;
381
- border: 2rpx solid #eeeeee;
382
- padding: 18rpx 26rpx;
383
- margin: 0 auto 40rpx auto;
384
- width: 90%;
385
- }
386
- }
387
- .dialog {
388
- padding-top: 70rpx;
389
- .dialog-title {
390
- font-size: 40rpx;
391
- font-weight: 500;
392
- text-align: center;
393
- }
394
- .dialog-content {
395
- font-size: 36rpx;
396
- margin: 40rpx 0;
397
- text-align: left;
398
- }
399
- .dialog-notice {
400
- font-size: 24rpx;
401
- color: rgba(255, 87, 51, 1);
402
- text-align: left;
403
- margin-bottom: 40rpx;
404
- }
405
- }
406
- &-footer {
407
- position: fixed;
408
- left: 0;
409
- right: 0;
410
- height: unit(100, rpx);
411
- display: flex;
412
- justify-content: space-around;
413
- align-items: center;
414
- background: #fff;
415
- }
416
- &-business {
417
- background: #fff;
418
- border-radius: unit(16, rpx);
419
- margin-top: unit(24, rpx);
420
-
421
- &-title {
422
- font-size: unit(28, rpx);
423
- font-weight: 500;
424
- text-align: center;
425
- padding: unit(28, rpx);
426
- }
427
-
428
- &-content {
429
- display: flex;
430
- justify-content: flex-start;
431
- align-items: center;
432
- flex-flow: wrap;
433
- padding-left: unit(30, rpx);
434
-
435
- & > view {
436
- width: unit(120, rpx);
437
- margin-right: unit(10, rpx);
438
- flex-shrink: 0;
439
- display: flex;
440
- justify-content: center;
441
- flex-direction: column;
442
- align-items: center;
443
-
444
- & > view:first-child {
445
- width: unit(76, rpx);
446
- height: unit(76, rpx);
447
- overflow: hidden;
99
+ }
448
100
 
449
- & > image {
450
- height: 100%;
451
- width: 100%;
452
- }
453
- }
101
+ </script>
454
102
 
455
- & > view:nth-child(2) {
456
- margin-top: unit(10, rpx);
457
- font-size: unit(24, rpx);
458
- line-height: unit(36, rpx);
459
- margin-bottom: unit(10, rpx);
460
- .uni-cut(1,36);
461
- }
103
+ <style scoped lang="less">
104
+ @import "./JfbBaseCardGiveLess.less";
462
105
 
463
- & > view:nth-child(3) {
464
- display: flex;
465
- justify-content: flex-start;
466
- align-items: center;
467
- flex-shrink: 0;
468
- font-size: unit(20, rpx);
469
- color: #999;
470
- }
106
+ .jfb-base-card-give {
107
+ &__body{
471
108
 
472
- &:last-child {
473
- margin-right: 0;
474
- }
475
- }
476
- }
477
- }
478
- .share-btn {
479
- opacity: 1;
480
- background: #ff5a39;
481
- font-size: 19px;
482
- height: 44px;
483
- line-height: 44px;
484
- border-radius: 22px;
485
- color: #fff;
486
- width: auto;
487
- box-shadow: 0 0 0 rgba(0, 0, 0, 0);
488
- border: 0;
489
- padding: 0 33px;
490
- margin: 0;
491
109
  }
492
110
  }
493
- }
494
111
  </style>
@@ -1,6 +1,13 @@
1
1
  'use strict';
2
2
 
3
3
  module.exports = {
4
- getBaseByIdCardDetailGive:{"card_number":"101001000008485","card_point":88705,"card_type_name":"聚福宝福","end_time":"2025-05-30","card_status":"Y","card_status_name":"开启","unit":"点","main_business_code_name":"","other_card_point":0,"is_exchange":"N","exchange_card_type_name":"","exchange_card_point":0,"card_point_type":1,"is_can_unbind":"","business_codes":["movie","market","cake","book","video"],"site_entry_settings":[],"transfer_record":[],"request_id":"970de3fe6285d556"},
5
- confirmGive:{"transfer_auth_code":"FM9DFOlHKt5x4tX7s1e_b","record_id":6,"expired_time":1723100884,"request_id":"259819d9ed24f218"},
4
+
5
+ getCardByIdFilmSquate:{},
6
+
7
+ updateCardFilmPaiqiDate:{},
8
+
9
+ removeCardFilmAddress:{},
10
+
11
+ addCardFilmcart:{},
12
+
6
13
  }
@@ -7,26 +7,52 @@
7
7
  module.exports = [
8
8
  {
9
9
  //设置方法名字当别忘记加上【模块名字】:Card
10
- mapFnName: 'getReceiveDetailCard',
11
- title: '获取领取详情',
12
- path: '/card/v1/card-transfer/get-record',
10
+ mapFnName: 'getCardByIdFilmSquate',
11
+ title: '获取电影广场列表',
12
+ path: '/api/account/film/list-film-square',
13
13
  isRule: false,
14
14
  params: {
15
- transfer_auth_code: ['转增授权码', 'Number', '必选'],
15
+ last_key: ['当前页', 'Number', '必选'],
16
+ page_size: ['每页数量', 'Number', '必选'],
16
17
  },
17
18
  isConsole: true,
18
19
  disabled: true,
19
20
  },
20
21
  {
21
22
  //设置方法名字当别忘记加上【模块名字】:Card
22
- mapFnName: 'receiveCard',
23
- title: '获取领取详情',
24
- path: '/card/v1/card-transfer/receive',
23
+ mapFnName: 'updateCardFilmPaiqiDate',
24
+ title: '更新排期',
25
+ path: '/api/account/film/paiqi-date',
25
26
  isRule: false,
26
- data: {
27
- transfer_auth_code: ['转增授权码', 'Number', '必选'],
27
+ params: {
28
+ film_id: ['电影id', 'Number', '必选'],
29
+ cinema_id: ['影院id', 'Number', '必选'],
30
+ },
31
+ isConsole: true,
32
+ disabled: true,
33
+ },
34
+ {
35
+ //设置方法名字当别忘记加上【模块名字】:Card
36
+ mapFnName: 'removeCardFilmAddress',
37
+ title: '删除我的配送地址',
38
+ path: '/api/account/film/paiqi-date',
39
+ isRule: false,
40
+ params: {
41
+ film_id: ['电影id', 'Number', '必选'],
28
42
  },
29
43
  isConsole: true,
30
44
  disabled: true,
31
- }
45
+ },
46
+ {
47
+ //设置方法名字当别忘记加上【模块名字】:Card
48
+ mapFnName: 'addCardFilmcart',
49
+ title: '添加购物车',
50
+ path: '/api/account/film/paiqi-date',
51
+ isRule: false,
52
+ params: {
53
+ film_id: ['电影id', 'Number', '必选'],
54
+ },
55
+ isConsole: true,
56
+ disabled: true,
57
+ },
32
58
  ];