jufubao-base 1.0.236 → 1.0.237-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 (104) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbBaseBalance/Api.js +46 -0
  3. package/src/components/JfbBaseBalance/Attr.js +316 -0
  4. package/src/components/JfbBaseBalance/JfbBaseBalance.vue +332 -0
  5. package/src/components/JfbBaseBalance/JfbBaseBalanceLess.less +79 -0
  6. package/src/components/JfbBaseBalance/JfbBaseBalanceMixin.js +30 -0
  7. package/src/components/JfbBaseBalance/Mock.js +9 -0
  8. package/src/components/JfbBaseCodeOpenVip/Api.js +36 -0
  9. package/src/components/JfbBaseCodeOpenVip/Attr.js +281 -0
  10. package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVip.vue +253 -0
  11. package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVipLess.less +79 -0
  12. package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVipMixin.js +30 -0
  13. package/src/components/JfbBaseCodeOpenVip/Mock.js +13 -0
  14. package/src/components/JfbBaseConsumpCode/Api.js +133 -0
  15. package/src/components/JfbBaseConsumpCode/Attr.js +61 -0
  16. package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCode.vue +961 -0
  17. package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCodeLess.less +79 -0
  18. package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCodeMixin.js +30 -0
  19. package/src/components/JfbBaseConsumpCode/Mock.js +22 -0
  20. package/src/components/JfbBaseNoticeDialog/Api.js +1 -1
  21. package/src/components/JfbBaseNoticeDialog/Attr.js +26 -0
  22. package/src/components/JfbBaseNoticeDialog/JfbBaseNoticeDialog.vue +25 -6
  23. package/src/components/JfbBaseOpenVip/Api.js +39 -0
  24. package/src/components/JfbBaseOpenVip/Attr.js +270 -0
  25. package/src/components/JfbBaseOpenVip/JfbBaseOpenVip.vue +424 -0
  26. package/src/components/JfbBaseOpenVip/JfbBaseOpenVipLess.less +79 -0
  27. package/src/components/JfbBaseOpenVip/JfbBaseOpenVipMixin.js +30 -0
  28. package/src/components/JfbBaseOpenVip/Mock.js +7 -0
  29. package/src/components/JfbBaseOpenVip/XdVipList.vue +125 -0
  30. package/src/components/JfbBaseOpenVipCard/Api.js +58 -0
  31. package/src/components/JfbBaseOpenVipCard/Attr.js +48 -0
  32. package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCard.vue +111 -0
  33. package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCardLess.less +79 -0
  34. package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCardMixin.js +30 -0
  35. package/src/components/JfbBaseOpenVipCard/Mock.js +13 -0
  36. package/src/components/JfbBaseOpenVipDetail/Api.js +36 -0
  37. package/src/components/JfbBaseOpenVipDetail/Attr.js +37 -0
  38. package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetail.vue +225 -0
  39. package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetailLess.less +79 -0
  40. package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetailMixin.js +30 -0
  41. package/src/components/JfbBaseOpenVipDetail/Mock.js +13 -0
  42. package/src/components/JfbBasePersonalData/Api.js +26 -0
  43. package/src/components/JfbBasePersonalData/Attr.js +12 -0
  44. package/src/components/JfbBasePersonalData/JfbBasePersonalData.vue +198 -0
  45. package/src/components/JfbBasePersonalData/JfbBasePersonalDataLess.less +79 -0
  46. package/src/components/JfbBasePersonalData/JfbBasePersonalDataMixin.js +30 -0
  47. package/src/components/JfbBasePersonalData/Mock.js +13 -0
  48. package/src/components/JfbBasePointsCard/Api.js +18 -0
  49. package/src/components/JfbBasePointsCard/Attr.js +187 -0
  50. package/src/components/JfbBasePointsCard/JfbBasePointsCard.vue +208 -0
  51. package/src/components/JfbBasePointsCard/JfbBasePointsCardLess.less +79 -0
  52. package/src/components/JfbBasePointsCard/JfbBasePointsCardMixin.js +30 -0
  53. package/src/components/JfbBasePointsCard/Mock.js +5 -0
  54. package/src/components/JfbBasePointsDetail/Api.js +48 -0
  55. package/src/components/JfbBasePointsDetail/Attr.js +304 -0
  56. package/src/components/JfbBasePointsDetail/JfbBasePointsDetail.vue +267 -0
  57. package/src/components/JfbBasePointsDetail/JfbBasePointsDetailLess.less +79 -0
  58. package/src/components/JfbBasePointsDetail/JfbBasePointsDetailMixin.js +30 -0
  59. package/src/components/JfbBasePointsDetail/Mock.js +6 -0
  60. package/src/components/JfbBasePosterGroup/Api.js +58 -0
  61. package/src/components/JfbBasePosterGroup/Attr.js +48 -0
  62. package/src/components/JfbBasePosterGroup/JfbBasePosterGroup.vue +111 -0
  63. package/src/components/JfbBasePosterGroup/JfbBasePosterGroupLess.less +79 -0
  64. package/src/components/JfbBasePosterGroup/JfbBasePosterGroupMixin.js +30 -0
  65. package/src/components/JfbBasePosterGroup/Mock.js +13 -0
  66. package/src/components/JfbBaseSavingDetail/Api.js +41 -0
  67. package/src/components/JfbBaseSavingDetail/Attr.js +70 -0
  68. package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetail.vue +679 -0
  69. package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetailLess.less +79 -0
  70. package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetailMixin.js +30 -0
  71. package/src/components/JfbBaseSavingDetail/Mock.js +10 -0
  72. package/src/components/JfbBaseSavingDetail/components/echarts.min.js +26 -0
  73. package/src/components/JfbBaseSavingDetail/components/echarts.vue +254 -0
  74. package/src/components/JfbBaseSavingDetail/components/wx-canvas.js +105 -0
  75. package/src/components/JfbBaseShare/Api.js +20 -0
  76. package/src/components/JfbBaseShare/Attr.js +14 -0
  77. package/src/components/JfbBaseShare/JfbBaseShare.vue +261 -0
  78. package/src/components/JfbBaseShare/JfbBaseShareLess.less +79 -0
  79. package/src/components/JfbBaseShare/JfbBaseShareMixin.js +30 -0
  80. package/src/components/JfbBaseShare/Mock.js +16 -0
  81. package/src/components/JfbBaseTfkSearch/ContentProduct.vue +11 -22
  82. package/src/components/JfbBaseTfkSearch/JfbBaseTfkSearch.vue +8 -1
  83. package/src/components/JfbBaseTfkSearch/Mock.js +51 -3
  84. package/src/components/JfbBaseTfkSearch/listMixins.js +1 -1
  85. package/src/components/JfbBaseUserInfo/Attr.js +102 -10
  86. package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +305 -114
  87. package/src/components/JfbBaseWithDrawAgain/Api.js +41 -0
  88. package/src/components/JfbBaseWithDrawAgain/Attr.js +92 -0
  89. package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgain.vue +334 -0
  90. package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgainLess.less +79 -0
  91. package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgainMixin.js +30 -0
  92. package/src/components/JfbBaseWithDrawAgain/Mock.js +10 -0
  93. package/src/components/JfbBaseWithDrawRecord/Api.js +19 -0
  94. package/src/components/JfbBaseWithDrawRecord/Attr.js +79 -0
  95. package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecord.vue +233 -0
  96. package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecordLess.less +79 -0
  97. package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecordMixin.js +30 -0
  98. package/src/components/JfbBaseWithDrawRecord/Mock.js +7 -0
  99. package/src/components/JfbBaseWithdraw/Api.js +48 -0
  100. package/src/components/JfbBaseWithdraw/Attr.js +328 -0
  101. package/src/components/JfbBaseWithdraw/JfbBaseWithdraw.vue +245 -0
  102. package/src/components/JfbBaseWithdraw/JfbBaseWithdrawLess.less +79 -0
  103. package/src/components/JfbBaseWithdraw/JfbBaseWithdrawMixin.js +30 -0
  104. package/src/components/JfbBaseWithdraw/Mock.js +7 -0
@@ -0,0 +1,79 @@
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-consump-code {
16
+ box-sizing: border-box;
17
+
18
+ &__body{
19
+ position: relative;
20
+ overflow: hidden;
21
+ z-index: 2
22
+ }
23
+
24
+ &.editx,&.editx:hover {
25
+ position: relative;
26
+ min-height: unit(100, rpx);
27
+ z-index: 3;
28
+ &::after {
29
+ border: 2rpx dashed blue;
30
+ content: " ";
31
+ position: absolute;
32
+ top:0;
33
+ left:0;
34
+ bottom:0;
35
+ right:0;
36
+ z-index: 4;
37
+ cursor: pointer;
38
+ }
39
+
40
+ }
41
+
42
+
43
+ &__edit {
44
+ cursor: pointer;
45
+ position: absolute;
46
+ right: unit(0, rpx);
47
+ top: unit(-52, rpx);
48
+ height: unit(50, rpx);
49
+ line-height: unit(50, rpx);
50
+ display: flex;
51
+ justify-content: center;
52
+ align-items: center;
53
+ background: rgba(0, 0, 0, .6);
54
+ border-radius: unit(10, rpx);
55
+ box-shadow: 0 0 10px rbga(0, 0, 0, 0.3);
56
+ color: #fff;
57
+ font-size: unit(22, rpx);
58
+
59
+ &-icon{
60
+ padding: 0 unit(20, rpx);
61
+ }
62
+
63
+ &.editx {
64
+ box-sizing: border-box;
65
+
66
+ }
67
+ }
68
+ }
69
+ //end
70
+
71
+
72
+ /**notPreview**/
73
+ .jfb-base-consump-code {
74
+ //&:before {
75
+ //content: " ";
76
+ //display: table;
77
+ //}
78
+ }
79
+ /**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-consump-code'
20
+ }
21
+ },
22
+ created() {
23
+
24
+ //@AttrDataCreated
25
+ this.Attr = this.$xdUniHelper.customClone(Attr);
26
+ //@EndAttrDataCreated
27
+
28
+
29
+ },
30
+ }
@@ -0,0 +1,22 @@
1
+ 'use strict';
2
+
3
+ module.exports = {
4
+
5
+ getConsumpCode: { "payment_code": "h.161.v71913434717194", "expiration_time": 1744971193, "expiration_sec": 60, "temp_order_id": "quickpay-5000358-DBeMnvrvInuINYeTqbCXw", "confirm_notice": false, "notice": "", "cash_order_id": "", "code_url": "\/common\/v1\/image\/qrcode?code_content=h.161.v71913434717194&size=240", "plus_discount": 0, "is_st_flow": "张三", "barcode_url": "\/common\/v1\/image\/barcode?code_content=h.161.v71913434717194", "shop_name": "六九豆浆饺子(石门市场店)", "request_id": "52ebf80c255ebcb5" },
6
+
7
+ getConsumpCodeScanStatus: { "status": "P", "message": "", "order_data": "{\"total_amount\":\"0\",\"pay_expire_time\":\"0\",\"message\":\"\",\"status\":\"P\",\"cash_order_id\":\"\",\"user_id\":\"5000358\",\"channel_order_id\":\"\",\"cart_order_id\":\"\"}", "seconds": 0, "request_id": "a54ac53ad31312d6" },
8
+
9
+ getConsumpListUserPayChannel: { "list": [{ "channel_provider_id": "1rRq74ACKJj5nIx5CgLpb", "channel_provider_name": "微信", "channel_code": "wxpay", "channel_logo": "https:\/\/jfb-public-images.oss-cn-qingdao.aliyuncs.com\/system-paychannel-logo-wxpay.png?x-oss-process=style\/200_200" }], "request_id": "e142d26c3d24c060" },
10
+
11
+ batchConsumpUseCardCreated: { "request_order_id": "quickpay-5000358-DBeMnvrvInuINYeTqbCXw", "request_id": "e17499843ece44b1" },
12
+
13
+ getConsumpAsyncSubmitStatus: { "hand_status": "U", "hand_status_msg": "异步下单中", "order_id": "", "pay_order_id": "", "need_pay_price": "0", "request_id": "fddff0af4216825d" },
14
+
15
+ getConsumpShopList: { "namespaces": [{ "label": "蛋糕(勿改)", "value": "cake" }], "brands": [{ "label": "测试1111", "value": 14, "icon": "\/uploads\/20230324\/3265afeb6a1f2a94f25c968a09275574.png" }, { "label": "品牌jls0519", "value": 100003, "icon": "\/uploads\/20230710\/44f645b06fe4da358f7b0ee06259afcd.jpg" }], "list": [{ "brand_id": 14, "brand_name": "测试1111", "brand_type": "MA", "business_status": "CLOSED", "consume_mode": ["SELL"], "consume_mode_name": "", "distance": "42km", "distance_conversion": "41.9km", "default_consume_type": "CV", "consume_type": ["CV"], "is_support_jhd": true, "address": "顺义区东六环与顺于路交叉口东150米", "province_name": "", "city_name": "", "area_name": "", "street_name": "", "phone": "(010)89430806", "resource_shop_id": 8003489, "exts_params": "eyJyZXNvdXJjZV9zaG9wX2lkIjo4MDAzNDg5LCJzaG9wX2lkIjoxMTUzNTIwLCJ2ZXJzaW9uIjoyfQ", "resource_shop_name": "六九豆浆饺子(石门市场店)", "shop_icon": "\/uploads\/20230324\/3265afeb6a1f2a94f25c968a09275574.png", "shop_id": 1153520, "shop_tags": [], "stars": 0, "time_slot_name": "-", "business_code": "", "longitude": "116.630756", "latitude": "40.134773" }, { "brand_id": 100003, "brand_name": "品牌jls0519", "brand_type": "MA", "business_status": "OPEN_BUSINESS", "consume_mode": ["SELL"], "consume_mode_name": "", "distance": "55km", "distance_conversion": "54.8km", "default_consume_type": "", "consume_type": [""], "is_support_jhd": false, "address": "东城区东直门街道东城区东直门内南大街4号(东直门内第一个十字路口东南角)", "province_name": "", "city_name": "", "area_name": "", "street_name": "", "phone": "64034959", "resource_shop_id": 8000077, "exts_params": "eyJyZXNvdXJjZV9zaG9wX2lkIjo4MDAwMDc3LCJzaG9wX2lkIjoxMDIzNTMwLCJ2ZXJzaW9uIjoyfQ", "resource_shop_name": "东直门[2]", "shop_icon": "\/uploads\/20230710\/44f645b06fe4da358f7b0ee06259afcd.jpg", "shop_id": 1023530, "shop_tags": [], "stars": 0, "time_slot_name": "09:00-18:00", "business_code": "", "longitude": "116.44373384708321", "latitude": "39.94636369444035" }, { "brand_id": 100003, "brand_name": "品牌jls0519", "brand_type": "MA", "business_status": "OPEN_BUSINESS", "consume_mode": ["SELL"], "consume_mode_name": "", "distance": "56km", "distance_conversion": "55.5km", "default_consume_type": "JHD", "consume_type": ["JHD"], "is_support_jhd": true, "address": "东城区建国门街道北京inn", "province_name": "", "city_name": "", "area_name": "", "street_name": "", "phone": "18843854566", "resource_shop_id": 8000078, "exts_params": "eyJyZXNvdXJjZV9zaG9wX2lkIjo4MDAwMDc4LCJzaG9wX2lkIjoxMDM3MjY2LCJ2ZXJzaW9uIjoyfQ", "resource_shop_name": "a加盟商-185", "shop_icon": "\/uploads\/20230710\/44f645b06fe4da358f7b0ee06259afcd.jpg", "shop_id": 1037266, "shop_tags": [], "stars": 0, "time_slot_name": "-", "business_code": "", "longitude": "116.43814998003319", "latitude": "39.9280800962547" }], "total_size": 3, "next_page_token": "", "request_id": "fa91f05cff4b280b" },
16
+
17
+ getConsumpSettleMainInfo: { "shop_id": 1037266, "shop_logo": "\/uploads\/20230710\/44f645b06fe4da358f7b0ee06259afcd.jpg", "shop_name": "a加盟商-185", "shop_brand": 100003, "shop_partner_name": "A加盟商-余额测试", "settle_tag_list": [{ "label": "幸福西饼、goodlike品牌", "value": 262, "price": 0, "price_yuan": "0.00", "is_static_price": false, "icon_url": "https:\/\/sandbox-img.jufubao.cn\/uploads\/20230728\/70f4dd90cdf2681e71ccf41d332d71a0.jpeg" }], "request_id": "a4a6cfe9db905597" },
18
+
19
+ getConsumpBaseUserInfo: { "user_name": "", "user_code": "WuE5Wotf08", "nickname": "张三", "real_name": "", "head_url": "https:\/\/thirdwx.qlogo.cn\/mmopen\/vi_32\/AOqEDeiaxss8GR4jD1GicIgyqWSOZV8xN23Iw3DOzFjVBzTFbdv21X7u9ZASQJYsTNm07XSq6ebzp4K4qu1JT26qGZ0qYFMe1nHdQjFZib83Fg\/132", "province_code": "", "city_code": "", "province_name": "", "city_name": "", "sex": "1", "sex_name": "男", "birthday_date": "2025-04-16", "phone_number": "177****7945", "show_user_name": "张三", "user_level": "VIP", "vip_expire_time": 1776157293, "request_id": "f1dbb1c0bb8da893" },
20
+
21
+ addConsumpCashierTempOrderData: { "cart_order_id": "c08f38347ec8bc5b", "request_id": "779bf62e988587ce" }
22
+ }
@@ -8,7 +8,7 @@ module.exports = [
8
8
  {
9
9
  mapFnName: 'getListNoticeDialogContent', //自定义方法名字(必选)
10
10
  title: '获取内容',
11
- path: '/cms/v1/news-content',
11
+ path: '/cms/v1/ad-content',
12
12
  isRule: false,
13
13
  params: {
14
14
  scene: ['使用场景', 'String', '选填'],
@@ -247,6 +247,32 @@ export default {
247
247
  { label: '弹框', value: 'pop' },
248
248
  ]
249
249
  },
250
+ {
251
+ label: '展示位置:',
252
+ ele: 'xd-radio',
253
+ valueKey: 'systemType',
254
+ groupKey:'content',
255
+ value: data['systemType'] || 'fuli',
256
+ placeholder: '请选择展示位置',
257
+ className: 'input60',
258
+ list: [
259
+ { label: '福利系统', value: 'fuli' },
260
+ { label: 'plus系统', value: 'plus' },
261
+ ]
262
+ },
263
+ data['systemType']==='plus'&&{
264
+ label: '展示方式:',
265
+ ele: 'xd-radio',
266
+ valueKey: 'showGroup',
267
+ groupKey:'content',
268
+ value: data['showGroup'] || 'all',
269
+ placeholder: '请选择展示方式',
270
+ className: 'input60',
271
+ list: [
272
+ { label: '全部用户', value: 'all' },
273
+ { label: '仅会员', value: 'vip' },
274
+ ]
275
+ },
250
276
  {
251
277
  label: '是否隐藏弹框(仅预览模式生效):',
252
278
  ele: 'xd-radio',
@@ -84,7 +84,9 @@ export default {
84
84
  currentLinkUrl: "",
85
85
  currentIndex: 0,
86
86
  contentList: [],
87
- number: ''
87
+ number: '',
88
+ systemType: '',
89
+ showGroup: ''
88
90
  };
89
91
  },
90
92
  watch: {
@@ -134,9 +136,7 @@ export default {
134
136
 
135
137
  //弹窗显示
136
138
  if (res.list.length > 0) {
137
- this.contentList = res.list.map((item) => {
138
- return JSON.parse(item.content);
139
- });
139
+ this.contentList = res.list
140
140
  this.currentImage = getServiceUrl(
141
141
  this.contentList[0].image_url,
142
142
  "size3"
@@ -145,8 +145,17 @@ export default {
145
145
  this.contentList[0].redirect_data
146
146
  );
147
147
  this.currentIndex = 0;
148
-
149
- this.handlePop();
148
+ if(this.systemType === 'fuli'){
149
+ this.handlePop();
150
+ } else {
151
+ if(this.showGroup==='all') {
152
+ this.handlePop();
153
+ }else {
154
+ if(this.getTokenForKey('user_level')&&this.getTokenForKey('user_level')==='VIP') {
155
+ this.handlePop();
156
+ }
157
+ }
158
+ }
150
159
  }
151
160
  })
152
161
  .catch((error) => {
@@ -175,6 +184,16 @@ export default {
175
184
  );
176
185
  this.type = getContainerPropsValue(container, "content.type", "pop");
177
186
  this.number = getContainerPropsValue(container, "content.number", 1);
187
+ this.systemType = getContainerPropsValue(
188
+ container,
189
+ "content.systemType",
190
+ "fuli"
191
+ );
192
+ this.showGroup = getContainerPropsValue(
193
+ container,
194
+ "content.showGroup",
195
+ "all"
196
+ );
178
197
  },
179
198
  handlePop() {
180
199
  console.warn(`this.time${this.time * 60 + "分钟"}`);
@@ -0,0 +1,39 @@
1
+ 'use strict';
2
+ /**
3
+ * @description 接口配置,
4
+ * 在设置方法名字当时候,别忘记加上【模块名字】:Open
5
+ * @type {*[]}
6
+ */
7
+ module.exports = [
8
+ {
9
+ mapFnName: 'getOpenBaseUserInfo',
10
+ title: '获取用户信息',
11
+ path: '/passport/v1/user/get',
12
+ params: {},
13
+ isRule: false,
14
+ isConsole: true,
15
+ disabled: true,
16
+ },
17
+ {
18
+ mapFnName: "getVipList",
19
+ title: "会员中心 - 会员卡列表",
20
+ path: "/member/v1/:namespace/vip-card",
21
+ isRule: false,
22
+ params: {
23
+ namespace: ['业务线', 'String', true],
24
+ is_show_exchange_code: ['是否展示 兑换码 ', 'Y/N,默认N', false],
25
+ },
26
+ isConsole: true,
27
+ disabled: true
28
+ },
29
+ {
30
+ mapFnName: "getVipMoneySaving",
31
+ title: "获取会员省钱金额",
32
+ path: '/member/v1/money-saving-record/total-amount',
33
+ isRule: false,
34
+ params: {
35
+ },
36
+ isConsole: true,
37
+ disabled: true
38
+ }
39
+ ];
@@ -0,0 +1,270 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * @description 当表单组件中有联动操作时候,使用方法进行返回
5
+ */
6
+ export default {
7
+ style: [],
8
+ content: (data) => {
9
+ return [
10
+ {
11
+ label: '共享PLUS会员用户协议:',
12
+ ele: 'xd-site-news',
13
+ valueKey: 'notices',
14
+ groupKey:'content',
15
+ value: data.notices || {type: 'privacy'},
16
+ className: 'input70',
17
+ setting: {
18
+ config: {
19
+ sort: true,
20
+ maxlen: 100,
21
+ action: 'aliyun',
22
+ size: 5,
23
+ tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
24
+ uploadType: 'aliyun',
25
+ type: ['jpg', 'png', 'jpeg']
26
+ },
27
+ },
28
+ handleCustom({action, data}) {
29
+ if (data && data.params) {
30
+ //当一个插件中出现多个内容分类时候需要设置code值,在页面引用时候(容器id + code)进行拼接获取数据列表
31
+ data.params = Object.assign({}, data.params, {code: 'privacy_service'});
32
+ }
33
+
34
+ //获取返回参数(场景类型名称为必填)
35
+ let loading = { close(){}}
36
+
37
+ //获取显示内容
38
+ if (action === 'screen') {
39
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_bucket_content_tip'})
40
+ .then(res => {
41
+ loading.close();
42
+ data.cb(res['list'])
43
+ })
44
+ .catch(error => {
45
+ console.error(error);
46
+ loading.close();
47
+ });
48
+
49
+ }
50
+
51
+ //获取返回参数(广告位高度必选项)
52
+ if (action === 'getNewsInfo') {
53
+ XdBus.getParentApi('cmsGetPublishEditxContent')(data.params)
54
+ .then(res => {
55
+ loading.close()
56
+ data.cb({list: res.list, selectId: res.selected})
57
+ })
58
+ .catch(error => {
59
+ loading.close()
60
+ console.error(error);
61
+ });
62
+ }
63
+
64
+ //获取产品业务线列表
65
+ if (action === 'namespace') {
66
+ XdBus.getParentApi('getOptionsNamespaces')({})
67
+ .then(res => {
68
+ loading.close()
69
+ data.cb(res['list'])
70
+ })
71
+ .catch(error => {
72
+ loading.close()
73
+ console.error(error);
74
+ });
75
+ }
76
+
77
+ //使用内容分类
78
+ if (action === 'cmsPublishEditxContent') {
79
+ loading = XdBus.getParentApi('loading')({});
80
+ XdBus.getParentApi('cmsPublishEditxContent')(data.params)
81
+ .then(res => {
82
+ console.log('cmsPublishEditxContent', res)
83
+ loading.close();
84
+ data.cb(res)
85
+ })
86
+ .catch(error => {
87
+ loading.close();
88
+ console.error(error);
89
+ });
90
+ }
91
+
92
+ //位置列表
93
+ if (action === 'getListPostion') {
94
+ loading = XdBus.getParentApi('loading')({});
95
+ XdBus.getParentApi('getListNewsPosition')(data.params)
96
+ .then(res => {
97
+ loading.close();
98
+ data.cb(res)
99
+ })
100
+ .catch(error => {
101
+ loading.close();
102
+ console.error(error);
103
+ });
104
+ }
105
+
106
+ //位置创建
107
+ if (action === 'addPostion') {
108
+ loading = XdBus.getParentApi('loading')({});
109
+ XdBus.getParentApi('addNewsPosition')(data.params)
110
+ .then(res => {
111
+ loading.close();
112
+ data.cb(true)
113
+ })
114
+ .catch(error => {
115
+ console.error(error);
116
+ loading.close();
117
+ data.cb(false)
118
+ });
119
+ }
120
+
121
+ //位置编辑
122
+ if (action === 'editPostion') {
123
+ loading = XdBus.getParentApi('loading')({});
124
+ XdBus.getParentApi('updateNewsPosition')(data.params)
125
+ .then(res => {
126
+ loading.close();
127
+ data.cb(true)
128
+ })
129
+ .catch(error => {
130
+ console.error(error);
131
+ loading.close();
132
+ data.cb(false)
133
+ });
134
+ }
135
+
136
+ //位置删除
137
+ if (action === 'deleltePostion') {
138
+ loading = XdBus.getParentApi('loading')({});
139
+ XdBus.getParentApi('deleteNewsPosition')(data.params)
140
+ .then(res => {
141
+ loading.close();
142
+ data.cb(true)
143
+ })
144
+ .catch(error => {
145
+ console.error(error);
146
+ loading.close();
147
+ data.cb(false)
148
+ });
149
+ }
150
+
151
+ //获取广告位内容列表
152
+ if (action === 'getListContent') {
153
+ loading = XdBus.getParentApi('loading')({});
154
+ XdBus.getParentApi('getListNewsContent')(data.params)
155
+ .then(res => {
156
+ loading.close();
157
+ data.cb(res)
158
+ })
159
+ .catch(error => {
160
+ loading.close();
161
+ console.error(error);
162
+ });
163
+ }
164
+
165
+ //广告内容创建
166
+ if (action === 'addContent') {
167
+ loading = XdBus.getParentApi('loading')({});
168
+ XdBus.getParentApi('addNewsContent')(data.params)
169
+ .then(res => {
170
+ loading.close();
171
+ data.cb(true)
172
+ })
173
+ .catch(error => {
174
+ console.error(error);
175
+ loading.close();
176
+ data.cb(false)
177
+ });
178
+ }
179
+
180
+ //广告内容编辑
181
+ if (action === 'editContent') {
182
+ loading = XdBus.getParentApi('loading')({});
183
+ XdBus.getParentApi('updateNewsContent')(data.params)
184
+ .then(res => {
185
+ loading.close();
186
+ data.cb(true)
187
+ })
188
+ .catch(error => {
189
+ console.error(error);
190
+ loading.close();
191
+ data.cb(false)
192
+ });
193
+ }
194
+
195
+ //广告内容删除
196
+ if (action === 'deleteContent') {
197
+ loading = XdBus.getParentApi('loading')({});
198
+ XdBus.getParentApi('deleteNewsContent')(data.params)
199
+ .then(res => {
200
+ loading.close();
201
+ data.cb(true)
202
+ })
203
+ .catch(error => {
204
+ console.error(error);
205
+ loading.close();
206
+ data.cb(false)
207
+ });
208
+ }
209
+
210
+ //内容发布
211
+ if (action === 'publish') {
212
+ loading = XdBus.getParentApi('loading')({});
213
+ console.log('publish', data.params)
214
+ XdBus.getParentApi('cmsPublishContent')(data.params)
215
+ .then(res => {
216
+ loading.close();
217
+ data.cb(res)
218
+ })
219
+ .catch(error => {
220
+ loading.close();
221
+ console.error(error);
222
+ });
223
+ }
224
+
225
+ //通知页面进行刷新
226
+ if (action === 'update') {
227
+ loading = XdBus.getParentApi('loading')({});
228
+ XdBus.getParentApi('getXdBusUpdateView')('onUpdateView', {});
229
+ loading.close()
230
+ }
231
+ },
232
+ inline: false,
233
+ notice: '',
234
+ },
235
+ {
236
+ label: '4大特权图片:',
237
+ ele: 'xd-upload',
238
+ valueKey: 'specialImage',
239
+ groupKey:'content',
240
+ value: data.specialImage || {},
241
+ defaultValue: data.specialImage || null,
242
+ slot: true,
243
+ oneWidth: 375,
244
+ oneHeight: 500,
245
+ elinputClassName: 'input40',
246
+ tipsformet: '上传文件格式:@imageType@,不超过@size@MB.建议高度为<span style="color:red">750px</span>,宽度自适应',
247
+ type: ['jpg', 'png', 'jpeg'],
248
+ styleType: 'one',
249
+ uploadType: 'aliyun',
250
+ size: 5,
251
+ action: 'action',
252
+ sort: true,
253
+ maxlen: 100,
254
+ },
255
+ {
256
+ label: '会员详情路径:',
257
+ ele: 'xd-select-pages-path',
258
+ valueKey: 'vipDetailPath',
259
+ groupKey:'advanced',
260
+ placeholder: '请选择会员详情路径',
261
+ value: data['vipDetailPath'] || null,
262
+ setting: {
263
+ router: XdBus.getParentApi('getPagesTree'),
264
+ },
265
+ inline: false,
266
+ },
267
+ ].filter(i=>i)
268
+ },
269
+ advanced: [],
270
+ };