jufubao-base 1.0.237-beta2 → 1.0.237

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 (105) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbBaseMySetting/JfbBaseMySetting.vue +8 -0
  3. package/src/components/JfbBaseNoticeDialog/Api.js +1 -1
  4. package/src/components/JfbBaseNoticeDialog/Attr.js +0 -26
  5. package/src/components/JfbBaseNoticeDialog/JfbBaseNoticeDialog.vue +6 -25
  6. package/src/components/JfbBaseTfkSearch/ContentProduct.vue +22 -11
  7. package/src/components/JfbBaseTfkSearch/JfbBaseTfkSearch.vue +1 -8
  8. package/src/components/JfbBaseTfkSearch/Mock.js +3 -51
  9. package/src/components/JfbBaseTfkSearch/listMixins.js +1 -1
  10. package/src/components/JfbBaseUserInfo/Attr.js +10 -102
  11. package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +114 -305
  12. package/src/components/JfbBaseBalance/Api.js +0 -46
  13. package/src/components/JfbBaseBalance/Attr.js +0 -316
  14. package/src/components/JfbBaseBalance/JfbBaseBalance.vue +0 -332
  15. package/src/components/JfbBaseBalance/JfbBaseBalanceLess.less +0 -79
  16. package/src/components/JfbBaseBalance/JfbBaseBalanceMixin.js +0 -30
  17. package/src/components/JfbBaseBalance/Mock.js +0 -9
  18. package/src/components/JfbBaseCodeOpenVip/Api.js +0 -36
  19. package/src/components/JfbBaseCodeOpenVip/Attr.js +0 -281
  20. package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVip.vue +0 -253
  21. package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVipLess.less +0 -79
  22. package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVipMixin.js +0 -30
  23. package/src/components/JfbBaseCodeOpenVip/Mock.js +0 -13
  24. package/src/components/JfbBaseConsumpCode/Api.js +0 -133
  25. package/src/components/JfbBaseConsumpCode/Attr.js +0 -61
  26. package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCode.vue +0 -961
  27. package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCodeLess.less +0 -79
  28. package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCodeMixin.js +0 -30
  29. package/src/components/JfbBaseConsumpCode/Mock.js +0 -22
  30. package/src/components/JfbBaseOpenVip/Api.js +0 -39
  31. package/src/components/JfbBaseOpenVip/Attr.js +0 -270
  32. package/src/components/JfbBaseOpenVip/JfbBaseOpenVip.vue +0 -424
  33. package/src/components/JfbBaseOpenVip/JfbBaseOpenVipLess.less +0 -79
  34. package/src/components/JfbBaseOpenVip/JfbBaseOpenVipMixin.js +0 -30
  35. package/src/components/JfbBaseOpenVip/Mock.js +0 -7
  36. package/src/components/JfbBaseOpenVip/XdVipList.vue +0 -125
  37. package/src/components/JfbBaseOpenVipCard/Api.js +0 -58
  38. package/src/components/JfbBaseOpenVipCard/Attr.js +0 -48
  39. package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCard.vue +0 -111
  40. package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCardLess.less +0 -79
  41. package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCardMixin.js +0 -30
  42. package/src/components/JfbBaseOpenVipCard/Mock.js +0 -13
  43. package/src/components/JfbBaseOpenVipDetail/Api.js +0 -36
  44. package/src/components/JfbBaseOpenVipDetail/Attr.js +0 -37
  45. package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetail.vue +0 -225
  46. package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetailLess.less +0 -79
  47. package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetailMixin.js +0 -30
  48. package/src/components/JfbBaseOpenVipDetail/Mock.js +0 -13
  49. package/src/components/JfbBasePersonalData/Api.js +0 -26
  50. package/src/components/JfbBasePersonalData/Attr.js +0 -12
  51. package/src/components/JfbBasePersonalData/JfbBasePersonalData.vue +0 -198
  52. package/src/components/JfbBasePersonalData/JfbBasePersonalDataLess.less +0 -79
  53. package/src/components/JfbBasePersonalData/JfbBasePersonalDataMixin.js +0 -30
  54. package/src/components/JfbBasePersonalData/Mock.js +0 -13
  55. package/src/components/JfbBasePointsCard/Api.js +0 -18
  56. package/src/components/JfbBasePointsCard/Attr.js +0 -187
  57. package/src/components/JfbBasePointsCard/JfbBasePointsCard.vue +0 -208
  58. package/src/components/JfbBasePointsCard/JfbBasePointsCardLess.less +0 -79
  59. package/src/components/JfbBasePointsCard/JfbBasePointsCardMixin.js +0 -30
  60. package/src/components/JfbBasePointsCard/Mock.js +0 -5
  61. package/src/components/JfbBasePointsDetail/Api.js +0 -48
  62. package/src/components/JfbBasePointsDetail/Attr.js +0 -304
  63. package/src/components/JfbBasePointsDetail/JfbBasePointsDetail.vue +0 -267
  64. package/src/components/JfbBasePointsDetail/JfbBasePointsDetailLess.less +0 -79
  65. package/src/components/JfbBasePointsDetail/JfbBasePointsDetailMixin.js +0 -30
  66. package/src/components/JfbBasePointsDetail/Mock.js +0 -6
  67. package/src/components/JfbBasePosterGroup/Api.js +0 -58
  68. package/src/components/JfbBasePosterGroup/Attr.js +0 -48
  69. package/src/components/JfbBasePosterGroup/JfbBasePosterGroup.vue +0 -111
  70. package/src/components/JfbBasePosterGroup/JfbBasePosterGroupLess.less +0 -79
  71. package/src/components/JfbBasePosterGroup/JfbBasePosterGroupMixin.js +0 -30
  72. package/src/components/JfbBasePosterGroup/Mock.js +0 -13
  73. package/src/components/JfbBaseSavingDetail/Api.js +0 -41
  74. package/src/components/JfbBaseSavingDetail/Attr.js +0 -70
  75. package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetail.vue +0 -679
  76. package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetailLess.less +0 -79
  77. package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetailMixin.js +0 -30
  78. package/src/components/JfbBaseSavingDetail/Mock.js +0 -10
  79. package/src/components/JfbBaseSavingDetail/components/echarts.min.js +0 -26
  80. package/src/components/JfbBaseSavingDetail/components/echarts.vue +0 -254
  81. package/src/components/JfbBaseSavingDetail/components/wx-canvas.js +0 -105
  82. package/src/components/JfbBaseShare/Api.js +0 -20
  83. package/src/components/JfbBaseShare/Attr.js +0 -14
  84. package/src/components/JfbBaseShare/JfbBaseShare.vue +0 -261
  85. package/src/components/JfbBaseShare/JfbBaseShareLess.less +0 -79
  86. package/src/components/JfbBaseShare/JfbBaseShareMixin.js +0 -30
  87. package/src/components/JfbBaseShare/Mock.js +0 -16
  88. package/src/components/JfbBaseWithDrawAgain/Api.js +0 -41
  89. package/src/components/JfbBaseWithDrawAgain/Attr.js +0 -92
  90. package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgain.vue +0 -334
  91. package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgainLess.less +0 -79
  92. package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgainMixin.js +0 -30
  93. package/src/components/JfbBaseWithDrawAgain/Mock.js +0 -10
  94. package/src/components/JfbBaseWithDrawRecord/Api.js +0 -19
  95. package/src/components/JfbBaseWithDrawRecord/Attr.js +0 -79
  96. package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecord.vue +0 -233
  97. package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecordLess.less +0 -79
  98. package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecordMixin.js +0 -30
  99. package/src/components/JfbBaseWithDrawRecord/Mock.js +0 -7
  100. package/src/components/JfbBaseWithdraw/Api.js +0 -48
  101. package/src/components/JfbBaseWithdraw/Attr.js +0 -328
  102. package/src/components/JfbBaseWithdraw/JfbBaseWithdraw.vue +0 -245
  103. package/src/components/JfbBaseWithdraw/JfbBaseWithdrawLess.less +0 -79
  104. package/src/components/JfbBaseWithdraw/JfbBaseWithdrawMixin.js +0 -30
  105. package/src/components/JfbBaseWithdraw/Mock.js +0 -7
@@ -1,79 +0,0 @@
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**/
@@ -1,30 +0,0 @@
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
- }
@@ -1,22 +0,0 @@
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
- }
@@ -1,39 +0,0 @@
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
- ];
@@ -1,270 +0,0 @@
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
- };