jufubao-base 1.0.115 → 1.0.116-beta10

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 (84) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +1 -1
  3. package/src/components/JfbBaseCardInfo/Attr.js +21 -0
  4. package/src/components/JfbBaseCardInfo/JfbBaseCardInfo.vue +40 -4
  5. package/src/components/JfbBaseCardInfoEntry/Attr.js +11 -0
  6. package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntry.vue +33 -4
  7. package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntry.vue +10 -10
  8. package/src/components/JfbBaseConDialog/JfbBaseConDialog.vue +6 -1
  9. package/src/components/JfbBaseConDialog/XdCouCardBind.vue +35 -33
  10. package/src/components/JfbBaseConFlashHome/Api.js +60 -0
  11. package/src/components/JfbBaseConFlashHome/Attr.js +129 -0
  12. package/src/components/JfbBaseConFlashHome/JfbBaseConFlashHome.vue +287 -0
  13. package/src/components/JfbBaseConFlashHome/JfbBaseConFlashHomeLess.less +80 -0
  14. package/src/components/JfbBaseConFlashHome/JfbBaseConFlashHomeMixin.js +30 -0
  15. package/src/components/JfbBaseConFlashHome/Mock.js +5 -0
  16. package/src/components/JfbBaseConFlashList/Api.js +60 -0
  17. package/src/components/JfbBaseConFlashList/Attr.js +106 -0
  18. package/src/components/JfbBaseConFlashList/JfbBaseConFlashList.vue +110 -0
  19. package/src/components/JfbBaseConFlashList/JfbBaseConFlashListLess.less +80 -0
  20. package/src/components/JfbBaseConFlashList/JfbBaseConFlashListMixin.js +30 -0
  21. package/src/components/JfbBaseConFlashList/Mock.js +5 -0
  22. package/src/components/JfbBaseConList/JfbBaseConList.vue +93 -98
  23. package/src/components/JfbBaseConPhone/Api.js +70 -0
  24. package/src/components/JfbBaseConPhone/Attr.js +10 -0
  25. package/src/components/JfbBaseConPhone/JfbBaseConPhone.vue +486 -0
  26. package/src/components/JfbBaseConPhone/JfbBaseConPhoneLess.less +80 -0
  27. package/src/components/JfbBaseConPhone/JfbBaseConPhoneMixin.js +30 -0
  28. package/src/components/JfbBaseConPhone/Mock.js +5 -0
  29. package/src/components/JfbBaseMySetting/Api.js +43 -0
  30. package/src/components/JfbBaseMySetting/Attr.js +23 -0
  31. package/src/components/JfbBaseMySetting/JfbBaseMySetting.vue +202 -0
  32. package/src/components/JfbBaseMySetting/JfbBaseMySettingLess.less +80 -0
  33. package/src/components/JfbBaseMySetting/JfbBaseMySettingMixin.js +30 -0
  34. package/src/components/JfbBaseMySetting/Mock.js +5 -0
  35. package/src/components/JfbBaseMySetting/XdListItem.vue +136 -0
  36. package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +1 -1
  37. package/src/components/JfbBaseSaasBlessDetail/Api.js +59 -0
  38. package/src/components/JfbBaseSaasBlessDetail/Attr.js +24 -0
  39. package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetail.vue +315 -0
  40. package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetailLess.less +80 -0
  41. package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetailMixin.js +30 -0
  42. package/src/components/JfbBaseSaasBlessDetail/Mock.js +5 -0
  43. package/src/components/JfbBaseSaasBlessDialog/Api.js +25 -0
  44. package/src/components/JfbBaseSaasBlessDialog/Attr.js +50 -0
  45. package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialog.vue +274 -0
  46. package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialogLess.less +80 -0
  47. package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialogMixin.js +30 -0
  48. package/src/components/JfbBaseSaasBlessDialog/Mock.js +5 -0
  49. package/src/components/JfbBaseSaasBlessReceive/Api.js +25 -0
  50. package/src/components/JfbBaseSaasBlessReceive/Attr.js +24 -0
  51. package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceive.vue +183 -0
  52. package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceiveLess.less +80 -0
  53. package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceiveMixin.js +30 -0
  54. package/src/components/JfbBaseSaasBlessReceive/Mock.js +5 -0
  55. package/src/components/JfbBaseSaasHome/Api.js +48 -0
  56. package/src/components/JfbBaseSaasHome/Attr.js +35 -0
  57. package/src/components/JfbBaseSaasHome/JfbBaseSaasHome.vue +356 -0
  58. package/src/components/JfbBaseSaasHome/JfbBaseSaasHomeLess.less +80 -0
  59. package/src/components/JfbBaseSaasHome/JfbBaseSaasHomeMixin.js +30 -0
  60. package/src/components/JfbBaseSaasHome/Mock.js +5 -0
  61. package/src/components/JfbBaseSaasLogin/Api.js +39 -0
  62. package/src/components/JfbBaseSaasLogin/Attr.js +37 -0
  63. package/src/components/JfbBaseSaasLogin/JfbBaseSaasLogin.vue +410 -0
  64. package/src/components/JfbBaseSaasLogin/JfbBaseSaasLoginLess.less +80 -0
  65. package/src/components/JfbBaseSaasLogin/JfbBaseSaasLoginMixin.js +30 -0
  66. package/src/components/JfbBaseSaasLogin/Mock.js +5 -0
  67. package/src/components/JfbBaseSaasNewsDetail/Api.js +27 -0
  68. package/src/components/JfbBaseSaasNewsDetail/Attr.js +14 -0
  69. package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetail.vue +144 -0
  70. package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetailLess.less +80 -0
  71. package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetailMixin.js +30 -0
  72. package/src/components/JfbBaseSaasNewsDetail/Mock.js +5 -0
  73. package/src/components/JfbBaseSaasNewsList/Api.js +26 -0
  74. package/src/components/JfbBaseSaasNewsList/Attr.js +24 -0
  75. package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsList.vue +181 -0
  76. package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsListLess.less +80 -0
  77. package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsListMixin.js +30 -0
  78. package/src/components/JfbBaseSaasNewsList/Mock.js +5 -0
  79. package/src/components/JfbBaseSassPhoneCollect/Api.js +39 -0
  80. package/src/components/JfbBaseSassPhoneCollect/Attr.js +438 -0
  81. package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollect.vue +266 -0
  82. package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollectLess.less +80 -0
  83. package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollectMixin.js +30 -0
  84. package/src/components/JfbBaseSassPhoneCollect/Mock.js +5 -0
@@ -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-con-flash-list {
16
+ border: 1px dashed rgba(0, 0, 0, 0);
17
+ box-sizing: border-box;
18
+ min-height: unit(50, 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-con-flash-list {
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-con-flash-list'
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
+ aaaa: {}
5
+ }
@@ -44,76 +44,36 @@
44
44
  <view v-for="(item, index) in couponList" :key="index">
45
45
  <view
46
46
  class="jfb-base-con-list__body-content-list-item"
47
+ :class="'status_' + item.can_take_num"
47
48
  :style="{
48
49
  backgroundColor: item.can_take_num==='Y'||item.can_take_num==='P'? contentBackground:'#F3F3F3',
49
50
  }"
50
51
  >
51
- <view class="jfb-base-con-list__body-content-list-item-left">
52
- <view
53
- :style="item.couponBackground"
54
- class="jfb-base-con-list__body-content-list-item-left-info"
55
- >
56
- <view
57
- :style="{
58
- color: item.nameColor,
59
- textAlign: 'center',
60
- }"
61
- >{{ item.prize_type }}</view
62
- >
63
- <view
64
- :style="{
65
- color: item.infoColor,
66
- }"
67
- >{{ item.prize_name }}</view
68
- >
69
- </view>
52
+ <view class="item_head">
53
+ <image class="t_icon" mode="widthFix" :src="item.headIcon"></image>
54
+ <view>{{ item.prize_type }}</view>
70
55
  </view>
71
- <view class="jfb-base-con-list__body-content-list-item-right">
72
- <view
73
- class="jfb-base-con-list__body-content-list-item-right-name"
74
- >
75
- <view>{{ item.prize_name }}</view>
76
- <xd-font-icon
77
- size="100"
78
- :style="{
79
- color: item.iconColor,
80
- position: 'absolute',
81
- right: '0rpx',
82
- top: '0rpx',
83
- }"
84
- :icon="item.icon"
85
- ></xd-font-icon>
86
- </view>
87
- <view
88
- class="jfb-base-con-list__body-content-list-item-right-num"
89
- >
90
- <!-- <view
91
- :style="{
92
- color: '#FF4D4A',
93
- display: 'flex',
94
- alignItems: 'center',
95
- fontSize: '28rpx',
96
- }"
97
- >
98
- <xd-font-icon
99
- style="margin-right: 10rpx"
100
- size="22"
101
- icon="icondanchuangguanbi_xian"
102
- ></xd-font-icon>
103
- {{ item.prize_num }}
104
- </view> -->
105
- <view></view>
106
-
107
- <xd-button
108
- size="small"
109
- :disabled="item.can_take_num !=='Y' && item.remain_card_count == 0"
110
- @click="getCoupont(item)"
111
- type="primary"
112
- style="width: 170rpx;height: 60rpx;"
113
- :style="item.btn"
114
- :color="item.infoColor"
115
- >{{ item.btn_txt }}</xd-button>
116
- </view>
56
+ <view class="item_sub">{{ item.prize_name }}</view>
57
+ <xd-font-icon
58
+ size="100"
59
+ :style="{
60
+ color: item.iconColor,
61
+ position: 'absolute',
62
+ right: '0rpx',
63
+ top: '0rpx',
64
+ }"
65
+ :icon="item.icon"
66
+ ></xd-font-icon>
67
+ <view class="btn_wrap">
68
+ <xd-button
69
+ size="small"
70
+ :disabled="item.can_take_num !=='Y' && item.remain_card_count == 0"
71
+ @click="getCoupont(item)"
72
+ type="primary"
73
+ style="width: 170rpx;height: 60rpx;"
74
+ :style="item.btn"
75
+ :color="item.infoColor"
76
+ >{{ item.btn_txt }}</xd-button>
117
77
  </view>
118
78
  </view>
119
79
  </view>
@@ -193,6 +153,7 @@ export default {
193
153
  done: false,
194
154
  message: "",
195
155
  options: {},
156
+ next_url: "",
196
157
 
197
158
  collectedPath: "",
198
159
  };
@@ -237,6 +198,7 @@ export default {
237
198
  this.used_up_url = res.used_up_url && getServiceUrl(res.used_up_url);
238
199
  this.can_take = res.can_take;
239
200
  this.has_times = res.has_times;
201
+ this.next_url = res.next_url;
240
202
 
241
203
  this.couponList =
242
204
  res.list &&
@@ -251,7 +213,7 @@ export default {
251
213
  backgroundImage: `url(${getServiceUrl(
252
214
  item.can_take_num === "Y" ? res.app_coupon_button_see_url : res.app_coupon_button_bg_url
253
215
  )})`,
254
- backgroundSize: "100%",
216
+ backgroundSize: "100% 100%",
255
217
  backgroundRepeat: "no-repeat",
256
218
  backgroundColor: '',
257
219
  margin: "0",
@@ -261,6 +223,7 @@ export default {
261
223
  margin: "0",
262
224
  };
263
225
  //整块背景
226
+ item.headIcon = getServiceUrl(res.app_coupon_url);
264
227
  item.couponBackground = {
265
228
  backgroundImage: `url(${getServiceUrl(res.app_coupon_url)})`,
266
229
  backgroundSize: "100%",
@@ -278,6 +241,7 @@ export default {
278
241
  //按钮样式
279
242
  item.btn = { background: "#D6D6D6", margin: "0" };
280
243
  //整块背景
244
+ item.headIcon = getServiceUrl(res.app_coupon_invalid_url)
281
245
  item.couponBackground = {
282
246
  backgroundImage: `url(${getServiceUrl(res.app_coupon_invalid_url)})`,
283
247
  backgroundSize: "100%",
@@ -296,7 +260,7 @@ export default {
296
260
  });
297
261
  console.log("couponList", this.couponList);
298
262
  this.message = res.message;
299
- this.notice = res.rule;
263
+ this.notice = res.about;
300
264
  this.done = true;
301
265
  })
302
266
  .catch((err) => {
@@ -305,7 +269,7 @@ export default {
305
269
  },
306
270
  toCoupon(){
307
271
  this.$xdUniHelper.navigateTo({
308
- url: this.collectedPath,
272
+ url: this.next_url || this.collectedPath,
309
273
  });
310
274
  },
311
275
  getCoupont(item) {
@@ -520,43 +484,74 @@ export default {
520
484
 
521
485
  &-item {
522
486
  display: flex;
523
- justify-content: space-between;
524
- align-items: center;
525
- padding: unit(20, rpx) unit(30, rpx);
487
+ flex-direction: column;
488
+ padding: unit(40, rpx) unit(40, rpx);
526
489
  border-radius: unit(12, rpx);
527
490
  margin: unit(20, rpx) auto 0 auto;
528
491
  position: relative;
529
- &-left {
530
- display: flex;
531
- &-info {
532
- padding: unit(20, rpx) unit(36, rpx);
533
- & > view:first-child {
534
- font-size: unit(44, rpx);
535
- font-weight: 500;
536
- margin-bottom: unit(36, rpx);
537
- }
538
- & > view:nth-child(2) {
539
- font-size: unit(28, rpx);
540
- color: #fff;
541
- }
492
+
493
+ &.status_N{
494
+ .item_head{
495
+ color: #BBBBBB;
542
496
  }
543
- }
544
- &-right {
545
- margin-left: unit(24, rpx);
546
- flex: 1;
547
- &-name {
548
- font-size: unit(40, rpx);
549
- color: #000;
550
- display: flex;
551
- align-items: center;
552
- justify-content: space-between;
497
+ .item_sub{
498
+ color: #BBBBBB;
553
499
  }
554
- &-num {
555
- margin-top: unit(40, rpx);
556
- display: flex;
557
- justify-content: space-between;
500
+ }
501
+ .btn_wrap{
502
+ position: absolute;
503
+ right: 30rpx;
504
+ bottom: 40rpx;
505
+ }
506
+
507
+ .item_head{
508
+ display: flex;
509
+ align-items: center;
510
+ font-size: 40rpx;
511
+ color: #000000;
512
+ font-weight: 500;
513
+ .t_icon{
514
+ width: 44rpx;
515
+ margin-right: 20rpx;
558
516
  }
559
517
  }
518
+ .item_sub{
519
+ margin-top: 26rpx;
520
+ color: #FF4D4A;
521
+ font-size: 36rpx;
522
+ font-weight: 400;
523
+ }
524
+ // &-left {
525
+ // display: flex;
526
+ // &-info {
527
+ // padding: unit(20, rpx) unit(36, rpx);
528
+ // & > view:first-child {
529
+ // font-size: unit(44, rpx);
530
+ // font-weight: 500;
531
+ // margin-bottom: unit(36, rpx);
532
+ // }
533
+ // & > view:nth-child(2) {
534
+ // font-size: unit(28, rpx);
535
+ // color: #fff;
536
+ // }
537
+ // }
538
+ // }
539
+ // &-right {
540
+ // margin-left: unit(24, rpx);
541
+ // flex: 1;
542
+ // &-name {
543
+ // font-size: unit(40, rpx);
544
+ // color: #000;
545
+ // display: flex;
546
+ // align-items: center;
547
+ // justify-content: space-between;
548
+ // }
549
+ // &-num {
550
+ // margin-top: unit(40, rpx);
551
+ // display: flex;
552
+ // justify-content: space-between;
553
+ // }
554
+ // }
560
555
  }
561
556
  }
562
557
  &-foot {
@@ -0,0 +1,70 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * @description API模型
5
+ * 建议:Ffff=>模块 Xxxx=>自定义名字
6
+ * 获取单记录(getByIdFfffXxxx)
7
+ * 获取列表记录(getByListFfffXxxx)
8
+ * 添加列表记录(addFfffXxxxx)
9
+ * 删除列表记录(removeFfffXxxxx|deleteFfffXxxx)
10
+ * 更新列表记录(updateFfffXxxxx)
11
+ * @type {*[]}
12
+ */
13
+ module.exports = [
14
+ {
15
+ mapFnName: 'sendMsgConPhone',
16
+ title: '发送验证码',
17
+ path: '/common/v1/valid_code/sms/send',
18
+ isRule: false,
19
+ data: {
20
+ phone_number: ['手机号', 'String', '必选'],
21
+ biz_name: ['业务名称', 'String', '必选']
22
+ },
23
+ isConsole: true,
24
+ disabled: true,
25
+ },
26
+ {
27
+ mapFnName: 'getCouponPhoneList', //自定义方法名字(必选)
28
+ title: '获取优惠券列表',
29
+ path: '/sms-coupon/v1/activity-prizes-user/list',
30
+ isRule: false,
31
+ params: {
32
+ distribution_method: ['发放方式 entry=主动发放, homed=首页发放,paid=消费后发放,card_binded=绑定卡后发放', 'String', '选填'],
33
+ namespace: ['业务线', 'String', '必填'],
34
+ },
35
+ isConsole: true,
36
+ disabled: true,
37
+ },
38
+ {
39
+ mapFnName: 'getAllCouponPhone', //自定义方法名字(必选)
40
+ title: '领取优惠券',
41
+ path: '/sms-coupon/v1/activity-prizes-user/set',
42
+ isRule: false,
43
+ params: {
44
+ distribution_method: ['发放方式 entry=主动发放, homed=首页发放,paid=消费后发放,card_binded=绑定卡后发放', 'String', '选填'],
45
+ namespace: ['业务线', 'String', '必填'],
46
+ },
47
+ isConsole: true,
48
+ disabled: true,
49
+ },
50
+ {
51
+ mapFnName: 'getCouponPhoneResult', //自定义方法名字(必选)
52
+ title: '轮询查询活动结果',
53
+ path: '/sms-coupon/v1/activity-prizes-user/get',
54
+ isRule: false,
55
+ params: {
56
+ tmp_order_number: ['tmp_order_number', 'String', '选填'],
57
+ },
58
+ isConsole: true,
59
+ disabled: true,
60
+ },
61
+ {
62
+ mapFnName: 'getUserPhone',
63
+ title: '获取用户信息',
64
+ path: '/passport/v1/user/get',
65
+ isRule: false,
66
+ params: {},
67
+ isConsole: true,
68
+ disabled: true,
69
+ },
70
+ ];
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * @description 当表单组件中有联动操作时候,使用方法进行返回
5
+ */
6
+ export default {
7
+ style: [],
8
+ content: [],
9
+ advanced: [],
10
+ };