jufubao-base 1.0.183 → 1.0.184-beta2

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