jufubao-base 1.0.242-beta1 → 1.0.242

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 (129) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbBaseCard/JfbBaseCard.vue +1 -1
  3. package/src/components/JfbBaseFastLink/Attr.js +1 -12
  4. package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +0 -66
  5. package/src/components/JfbBaseHeader/Attr.js +0 -82
  6. package/src/components/JfbBaseHeader/JfbBaseHeader.vue +1 -47
  7. package/src/components/JfbBaseHeaderColumn/Attr.js +0 -82
  8. package/src/components/JfbBaseHeaderColumn/JfbBaseHeaderColumn.vue +2 -48
  9. package/src/components/JfbBaseLogin/JfbBaseLogin.vue +0 -11
  10. package/src/components/JfbBaseNoticeDialog/Api.js +1 -1
  11. package/src/components/JfbBaseNoticeDialog/Attr.js +0 -26
  12. package/src/components/JfbBaseNoticeDialog/JfbBaseNoticeDialog.vue +9 -28
  13. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +18 -176
  14. package/src/components/JfbBasePay/Attr.js +0 -52
  15. package/src/components/JfbBasePay/JfbBasePay.vue +6 -30
  16. package/src/components/JfbBasePay/Mock.js +9 -0
  17. package/src/components/JfbBasePhoneLogin/JfbBasePhoneLogin.vue +1 -11
  18. package/src/components/JfbBasePoster/Attr.js +1 -1
  19. package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +2 -2
  20. package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +3 -8
  21. package/src/components/JfbBaseTfkSearch/ContentProduct.vue +22 -12
  22. package/src/components/JfbBaseTfkSearch/JfbBaseTfkSearch.vue +1 -12
  23. package/src/components/JfbBaseTfkSearch/Mock.js +3 -51
  24. package/src/components/JfbBaseTfkSearch/listMixins.js +1 -2
  25. package/src/components/JfbBaseUserInfo/Attr.js +11 -175
  26. package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +115 -337
  27. package/src/components/JfbBaseUserOrder/Attr.js +0 -16
  28. package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +2 -11
  29. package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorize.vue +0 -10
  30. package/src/components/JfbBaseBalance/Api.js +0 -46
  31. package/src/components/JfbBaseBalance/Attr.js +0 -316
  32. package/src/components/JfbBaseBalance/JfbBaseBalance.vue +0 -336
  33. package/src/components/JfbBaseBalance/JfbBaseBalanceLess.less +0 -79
  34. package/src/components/JfbBaseBalance/JfbBaseBalanceMixin.js +0 -30
  35. package/src/components/JfbBaseBalance/Mock.js +0 -9
  36. package/src/components/JfbBaseCodeOpenVip/Api.js +0 -35
  37. package/src/components/JfbBaseCodeOpenVip/Attr.js +0 -281
  38. package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVip.vue +0 -251
  39. package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVipLess.less +0 -79
  40. package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVipMixin.js +0 -30
  41. package/src/components/JfbBaseCodeOpenVip/Mock.js +0 -13
  42. package/src/components/JfbBaseConsumpCode/Api.js +0 -133
  43. package/src/components/JfbBaseConsumpCode/Attr.js +0 -61
  44. package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCode.vue +0 -1048
  45. package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCodeLess.less +0 -79
  46. package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCodeMixin.js +0 -30
  47. package/src/components/JfbBaseConsumpCode/Mock.js +0 -22
  48. package/src/components/JfbBaseNoticeGroup/Api.js +0 -23
  49. package/src/components/JfbBaseNoticeGroup/Attr.js +0 -237
  50. package/src/components/JfbBaseNoticeGroup/JfbBaseNoticeGroup.vue +0 -174
  51. package/src/components/JfbBaseNoticeGroup/JfbBaseNoticeGroupLess.less +0 -79
  52. package/src/components/JfbBaseNoticeGroup/JfbBaseNoticeGroupMixin.js +0 -30
  53. package/src/components/JfbBaseNoticeGroup/Mock.js +0 -13
  54. package/src/components/JfbBaseOpenVip/Api.js +0 -39
  55. package/src/components/JfbBaseOpenVip/Attr.js +0 -331
  56. package/src/components/JfbBaseOpenVip/JfbBaseOpenVip.vue +0 -457
  57. package/src/components/JfbBaseOpenVip/JfbBaseOpenVipLess.less +0 -79
  58. package/src/components/JfbBaseOpenVip/JfbBaseOpenVipMixin.js +0 -30
  59. package/src/components/JfbBaseOpenVip/Mock.js +0 -7
  60. package/src/components/JfbBaseOpenVip/XdVipList.vue +0 -131
  61. package/src/components/JfbBaseOpenVipCard/Api.js +0 -58
  62. package/src/components/JfbBaseOpenVipCard/Attr.js +0 -48
  63. package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCard.vue +0 -111
  64. package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCardLess.less +0 -79
  65. package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCardMixin.js +0 -30
  66. package/src/components/JfbBaseOpenVipCard/Mock.js +0 -13
  67. package/src/components/JfbBaseOpenVipDetail/Api.js +0 -35
  68. package/src/components/JfbBaseOpenVipDetail/Attr.js +0 -37
  69. package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetail.vue +0 -234
  70. package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetailLess.less +0 -79
  71. package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetailMixin.js +0 -30
  72. package/src/components/JfbBaseOpenVipDetail/Mock.js +0 -15
  73. package/src/components/JfbBasePersonalData/Api.js +0 -26
  74. package/src/components/JfbBasePersonalData/Attr.js +0 -13
  75. package/src/components/JfbBasePersonalData/JfbBasePersonalData.vue +0 -200
  76. package/src/components/JfbBasePersonalData/JfbBasePersonalDataLess.less +0 -79
  77. package/src/components/JfbBasePersonalData/JfbBasePersonalDataMixin.js +0 -30
  78. package/src/components/JfbBasePersonalData/Mock.js +0 -13
  79. package/src/components/JfbBasePointsCard/Api.js +0 -18
  80. package/src/components/JfbBasePointsCard/Attr.js +0 -187
  81. package/src/components/JfbBasePointsCard/JfbBasePointsCard.vue +0 -212
  82. package/src/components/JfbBasePointsCard/JfbBasePointsCardLess.less +0 -79
  83. package/src/components/JfbBasePointsCard/JfbBasePointsCardMixin.js +0 -30
  84. package/src/components/JfbBasePointsCard/Mock.js +0 -5
  85. package/src/components/JfbBasePointsDetail/Api.js +0 -48
  86. package/src/components/JfbBasePointsDetail/Attr.js +0 -305
  87. package/src/components/JfbBasePointsDetail/JfbBasePointsDetail.vue +0 -267
  88. package/src/components/JfbBasePointsDetail/JfbBasePointsDetailLess.less +0 -79
  89. package/src/components/JfbBasePointsDetail/JfbBasePointsDetailMixin.js +0 -30
  90. package/src/components/JfbBasePointsDetail/Mock.js +0 -6
  91. package/src/components/JfbBasePosterGroup/Api.js +0 -22
  92. package/src/components/JfbBasePosterGroup/Attr.js +0 -156
  93. package/src/components/JfbBasePosterGroup/JfbBasePosterGroup.vue +0 -268
  94. package/src/components/JfbBasePosterGroup/JfbBasePosterGroupLess.less +0 -79
  95. package/src/components/JfbBasePosterGroup/JfbBasePosterGroupMixin.js +0 -30
  96. package/src/components/JfbBasePosterGroup/Mock.js +0 -13
  97. package/src/components/JfbBaseSavingDetail/Api.js +0 -41
  98. package/src/components/JfbBaseSavingDetail/Attr.js +0 -70
  99. package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetail.vue +0 -710
  100. package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetailLess.less +0 -79
  101. package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetailMixin.js +0 -30
  102. package/src/components/JfbBaseSavingDetail/Mock.js +0 -10
  103. package/src/components/JfbBaseSavingDetail/components/echarts.min.js +0 -26
  104. package/src/components/JfbBaseSavingDetail/components/echarts.vue +0 -254
  105. package/src/components/JfbBaseSavingDetail/components/wx-canvas.js +0 -105
  106. package/src/components/JfbBaseShare/Api.js +0 -20
  107. package/src/components/JfbBaseShare/Attr.js +0 -59
  108. package/src/components/JfbBaseShare/JfbBaseShare.vue +0 -276
  109. package/src/components/JfbBaseShare/JfbBaseShareLess.less +0 -79
  110. package/src/components/JfbBaseShare/JfbBaseShareMixin.js +0 -30
  111. package/src/components/JfbBaseShare/Mock.js +0 -16
  112. package/src/components/JfbBaseWithDrawAgain/Api.js +0 -41
  113. package/src/components/JfbBaseWithDrawAgain/Attr.js +0 -92
  114. package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgain.vue +0 -354
  115. package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgainLess.less +0 -79
  116. package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgainMixin.js +0 -30
  117. package/src/components/JfbBaseWithDrawAgain/Mock.js +0 -10
  118. package/src/components/JfbBaseWithDrawRecord/Api.js +0 -19
  119. package/src/components/JfbBaseWithDrawRecord/Attr.js +0 -79
  120. package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecord.vue +0 -233
  121. package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecordLess.less +0 -79
  122. package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecordMixin.js +0 -30
  123. package/src/components/JfbBaseWithDrawRecord/Mock.js +0 -7
  124. package/src/components/JfbBaseWithdraw/Api.js +0 -48
  125. package/src/components/JfbBaseWithdraw/Attr.js +0 -328
  126. package/src/components/JfbBaseWithdraw/JfbBaseWithdraw.vue +0 -272
  127. package/src/components/JfbBaseWithdraw/JfbBaseWithdrawLess.less +0 -79
  128. package/src/components/JfbBaseWithdraw/JfbBaseWithdrawMixin.js +0 -30
  129. package/src/components/JfbBaseWithdraw/Mock.js +0 -7
@@ -1,212 +0,0 @@
1
- <template>
2
- <view class="jfb-base-points-card" @click="handleEditxSelect" :class="{ editx : isEditx && active }">
3
- <!--#ifdef H5-->
4
- <view class="jfb-base-points-card__edit" :class="{ editx : isEditx && active }" v-if="isEditx && active">
5
- <view class="jfb-base-points-card__edit-icon" @click="delEdit">删除</view>
6
- </view>
7
- <!-- #endif -->
8
- <view class="jfb-base-points-card__body">
9
- <view :style="[bodyStyleComp]" class="jfb-base-points-card__body-list">
10
- <view :style="[itemStyleComp]" @click="handleTo(item)" v-for="(item,index) in typeList" :key="index"
11
- class="jfb-base-points-card__body-list-item">
12
- <view class="jfb-base-points-card__body-list-item-label">
13
- {{item.name}}
14
- </view>
15
- <view v-if="item.method!=='coupon'" class="jfb-base-points-card__body-list-item-value">{{getAmout(item.amount)}}</view>
16
- <view v-else class="jfb-base-points-card__body-list-item-value">{{item.coupon_count}}</view>
17
- </view>
18
- </view>
19
- </view>
20
- </view>
21
- </template>
22
-
23
- <script>
24
- import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
25
- import { jfbRootExec } from "@/utils/xd.event";
26
- import JfbBasePointsCardMixin from "./JfbBasePointsCardMixin";
27
- import { getContainerPropsValue } from "@/utils/xd.base";
28
- import componentsMixins from "@/mixins/componentsMixins";
29
- import extsMixins from "@/mixins/extsMixins";
30
- export default {
31
- name: "JfbBasePointsCard",
32
- components: {
33
- XdFontIcon
34
- },
35
- mixins: [
36
- componentsMixins, extsMixins, JfbBasePointsCardMixin
37
- ],
38
- computed: {
39
- bodyStyleComp() {
40
- return {
41
- background: this.is_vip === 'Y' ? this.plusBodyBgColor : this.normalBodyBgColor,
42
- borderRadius: `${this.radius}rpx`,
43
- margin: this.getMarginAndPadding(this.margin, 20),
44
- padding: this.getMarginAndPadding(this.padding, 32),
45
- }
46
- },
47
- itemStyleComp() {
48
- return {
49
- background: this.is_vip === 'Y' ? this.plusItemBgColor : this.normalItemBgColor,
50
- borderRadius: `${this.itemRadius}rpx`,
51
- }
52
- }
53
- },
54
- data() {
55
- return {
56
- typeList: [],
57
- plusBodyBgColor: '',
58
- plusItemBgColor: '',
59
- normalBodyBgColor: '',
60
- normalItemBgColor: '',
61
- is_plus_preview: 'N',
62
- radius: 0,
63
- itemRadius: 0,
64
- margin: {},
65
- padding: {},
66
- is_vip: 'N',
67
- pointsPath: '',
68
- withdrawPath: '',
69
- couponPath: '',
70
- }
71
- },
72
- watch: {
73
- container(value, oldValue) {
74
- if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
75
- if (this.$configProject['isPreview']) this.init(value)
76
- },
77
- is_plus_preview() {
78
- if (this.$configProject['isPreview']) {
79
- this.is_vip = this.is_plus_preview
80
- }
81
- }
82
- },
83
- created() {
84
- console.log(this.getTokenForKey('user_level'), 'user_leveluser_level');
85
- this.is_vip = this.getTokenForKey('user_level') && this.getTokenForKey('user_level') === 'VIP' ? 'Y' : 'N'
86
- this.init(this.container);
87
- },
88
- methods: {
89
- onJfbLoad(options) {
90
- this.getList()
91
- },
92
- /**
93
- * @description 监听事件变化
94
- * @param container {object} 业务组件对象自己
95
- */
96
- init(container) {
97
- this.plusBodyBgColor = getContainerPropsValue(container, 'content.plusBodyBgColor', 'linear-gradient(180deg, #FFFCF8 0%, #FFF3E2 100%)');
98
- this.plusItemBgColor = getContainerPropsValue(container, 'content.plusItemBgColor', 'linear-gradient(136.55deg, #FFECD1 0%, #F6D6AB 100%)');
99
- this.normalBodyBgColor = getContainerPropsValue(container, 'content.normalBodyBgColor', '#fff');
100
- this.normalItemBgColor = getContainerPropsValue(container, 'content.normalItemBgColor', '#F7F7F7');
101
- this.is_plus_preview = getContainerPropsValue(container, 'content.is_plus_preview', 'N');
102
- this.radius = getContainerPropsValue(container, 'content.radius', '20');
103
- this.itemRadius = getContainerPropsValue(container, 'content.itemRadius', '16');
104
- this.margin = getContainerPropsValue(container, 'content.bodyMargin', {});
105
- this.padding = getContainerPropsValue(container, 'content.bodyPadding', {});
106
- this.pointsPath = getContainerPropsValue(container, 'content.pointsPath', { value: "" }).value;
107
- this.withdrawPath = getContainerPropsValue(container, 'content.withdrawPath', { value: "" }).value;
108
- this.couponPath = getContainerPropsValue(container, 'content.couponPath', { value: "" }).value;
109
- },
110
- getList(){
111
- jfbRootExec("getPointsPropertyList", {
112
- vm: this,
113
- data: {},
114
- }).then(res => {
115
- this.typeList = res.list
116
- }).catch(err => {
117
- console.log(err, "err");
118
- })
119
- },
120
- getAmout(amount) {
121
- return this.$xdUniHelper.divisionFloatNumber(amount, 100)
122
- },
123
- handleTo(item) {
124
- if (item.method === 'score') {
125
- this.$xdUniHelper.navigateTo({ url: `${this.pointsPath}?method=score` })
126
- }
127
- if (item.method === 'wallet') {
128
- this.$xdUniHelper.navigateTo({ url: `${this.withdrawPath}?method=wallet` })
129
- }
130
- if (item.method === 'coupon') {
131
- this.$xdUniHelper.navigateTo({ url: this.couponPath })
132
- }
133
- },
134
- onJfbScroll(options) {
135
- console.log('event.onJfbScroll', options)
136
- },
137
- onJfbReachBottom(options) {
138
- console.log('event.onJfbReachBottom', options)
139
- },
140
- onJfbShow(options) {
141
- console.log('event.onJfbShow', options)
142
- this.getList()
143
- },
144
- onJfbHide(options) {
145
- console.log('event.onJfbHide', options)
146
- },
147
- onJfbBack(options) {
148
- console.log('event.onJfbBack', options)
149
- },
150
- onJfbUpdate(...data) {
151
- console.log('event.onJfbUpdate', data)
152
- },
153
- onJfbCustomEvent(options) {
154
- console.log('event.onJfbReachBottom', options)
155
- },
156
- }
157
- }
158
-
159
- </script>
160
-
161
- <style scoped lang="less">
162
- @import "./JfbBasePointsCardLess.less";
163
-
164
- .jfb-base-points-card {
165
- &__body {
166
- &-list {
167
- display: flex;
168
- justify-content: center;
169
- align-items: center;
170
- background: linear-gradient(180deg, #FFFCF8 0%, #FFF3E2 100%);
171
-
172
- &-item:last-child {
173
- margin-right: 0;
174
- }
175
-
176
- &-item {
177
- flex: 1;
178
- display: flex;
179
- flex-direction: column;
180
- justify-content: center;
181
- align-items: center;
182
- padding: 20rpx 0;
183
- margin-right: 32rpx;
184
- background: linear-gradient(136.55deg, #FFECD1 0%, #F6D6AB 100%);
185
- border-radius: 16rpx;
186
- font-size: 24rpx;
187
-
188
- &-label {
189
- display: flex;
190
- margin-bottom: 8rpx;
191
- }
192
-
193
- &-operate {
194
- background: linear-gradient(90deg, #333231 0%, #6C5A46 100%);
195
- border-radius: 24rpx;
196
- padding: 4rpx 8rpx;
197
- color: #F8DCB4;
198
- font-size: 20rpx;
199
- margin-left: 8rpx;
200
- text-align: center;
201
- vertical-align: middle;
202
- }
203
-
204
- &-value {
205
- color: #333332;
206
- font-weight: 700;
207
- }
208
- }
209
- }
210
- }
211
- }
212
- </style>
@@ -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-points-card {
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-points-card {
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-points-card'
20
- }
21
- },
22
- created() {
23
-
24
- //@AttrDataCreated
25
- this.Attr = this.$xdUniHelper.customClone(Attr);
26
- //@EndAttrDataCreated
27
-
28
-
29
- },
30
- }
@@ -1,5 +0,0 @@
1
- 'use strict';
2
-
3
- module.exports = {
4
- getPointsPropertyList:{"list":[{"method":"wallet","coupon_count":0,"amount":20000,"name":"余额"},{"method":"score","coupon_count":0,"amount":10000,"name":"积分"},{"method":"coupon","coupon_count":0,"amount":0,"name":"优惠券"}],"request_id":"2b0ac6cb23abdbbb"},
5
- }
@@ -1,48 +0,0 @@
1
- 'use strict';
2
- /**
3
- * @description 接口配置,
4
- * 在设置方法名字当时候,别忘记加上【模块名字】:Points
5
- * @type {*[]}
6
- */
7
- module.exports = [
8
- {
9
- mapFnName: 'getListBaseNewsContent', //自定义方法名字(必选)
10
- title: '获取内容',
11
- path: '/cms/v1/news-content',
12
- isRule: false,
13
- params: {
14
- scene: ['使用场景', 'String', '选填'],
15
- container_id: ['插件ID', 'String', '必填'],
16
- page_id: ['页面ID', 'String', '必填'],
17
- page_size: ['记录条数', 'Number', '必填', 1],
18
- code: ['业务线id', 'String', '选填'],
19
- },
20
- isConsole: true,
21
- disabled: true,
22
- },
23
- {
24
- //设置方法名字当别忘记加上【模块名字】:Points
25
- mapFnName: 'getPointsWalletDetail',
26
- title: '用户资产 - 获取钱包(或积分)余额详情',
27
- path: '/pay/v1/property/wallet-detail',
28
- isRule: false,
29
- params: {
30
- method: ['wallet 余额; score 积分;', 'Number', '非必选'],
31
- },
32
- isConsole: true,
33
- disabled: true,
34
- },
35
- {
36
- //设置方法名字当别忘记加上【模块名字】:Points
37
- mapFnName: 'getPointsWalletTradeList',
38
- title: '用户资产 - 获取钱包(或积分)交易记录列表',
39
- path: '/pay/v1/property/wallet-trade/list',
40
- isRule: false,
41
- params: {
42
- wallet_type: ['钱包类型', 'Number', '必选'],
43
- page_size: ['每页条数', 'Number', '必选'],
44
- },
45
- isConsole: true,
46
- disabled: true,
47
- },
48
- ];
@@ -1,305 +0,0 @@
1
- 'use strict';
2
-
3
- /**
4
- * @description 当表单组件中有联动操作时候,使用方法进行返回
5
- */
6
- export default {
7
- style: [],
8
- content: (data) => {
9
- log('content', data);
10
- return [
11
- {
12
- label: '外边距:',
13
- ele: 'xd-margin-padding',
14
- valueKey: 'bodyMargin',
15
- groupKey: 'style',
16
- value: data['bodyMargin'] || null,
17
- setting: {
18
- type: 'margin',
19
- },
20
- placeholder: '请设置外边距',
21
- inline: false,
22
- notice: '设置外边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">0</span>像素',
23
- },
24
- {
25
- label: '外填充:',
26
- ele: 'xd-margin-padding',
27
- valueKey: 'bodyPadding',
28
- groupKey: 'style',
29
- value: data['bodyPadding'] || null,
30
- setting: {
31
- type: 'padding',
32
- },
33
- placeholder: '请设置外填充',
34
- inline: false,
35
- notice: '设置填充值,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
36
- },
37
- {
38
- label: '圆角设置:',
39
- ele: 'xd-site-select-list',
40
- valueKey: 'radius',
41
- value: data['radius'] || '20',
42
- labelInline: true,
43
- groupKey: 'style',
44
- placeholder: '请选择圆角设置',
45
- multiple: false,
46
- className: 'input60',
47
- handleCustom({ action, data }) {
48
- XdBus.getParentApi('getOptionsSettingList')({
49
- setting_id: 'edtix_style_radius',
50
- key: Date.now()
51
- })
52
- .then(res => {
53
- data.cb(res.list)
54
- })
55
- .catch(error => {
56
- console.error(error);
57
- });
58
- },
59
- },
60
- {
61
- label: "边框设置:",
62
- ele: "xd-border",
63
- valueKey: "bodyBorder",
64
- value: data['bodyBorder'] || { type: 'Y', value: { color: '#eee', style: "solid", width: '1' } },
65
- className: 'input80',
66
- groupKey: 'style',
67
- },
68
- {
69
- label: '背景颜色:',
70
- ele: 'xd-color',
71
- valueKey: 'bgColor',
72
- groupKey: 'style',
73
- value: data['bgColor'] || null,
74
- placeholder: '请选择背景颜色',
75
- labelInline: true,
76
- classNmae: 'input80',
77
- },
78
- {
79
- label: '公告内容:',
80
- ele: 'xd-site-news',
81
- valueKey: 'notice',
82
- groupKey: 'content',
83
- value: data.notice || null,
84
- className: 'input70',
85
- setting: {
86
- config: {
87
- sort: true,
88
- maxlen: 100,
89
- action: 'aliyun',
90
- size: 5,
91
- tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
92
- uploadType: 'aliyun',
93
- type: ['jpg', 'png', 'jpeg']
94
- },
95
- },
96
- handleCustom({ action, data }) {
97
- if (data && data.params) {
98
- //当一个插件中出现使用内容分类时候需要设置code值,在页面引用时候容器id + code进行拼接
99
- //data.params = Object.assign({}, data.params, {code: 'g_test_id'});
100
- }
101
-
102
- //获取返回参数(场景类型名称为必填)
103
- //获取返回参数(场景类型名称为必填)
104
- let loading = { close() { } }
105
-
106
- //获取显示内容
107
- if (action === 'screen') {
108
- XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_bucket_content_tip' })
109
- .then(res => {
110
- loading.close();
111
- data.cb(res['list'])
112
- })
113
- .catch(error => {
114
- console.error(error);
115
- loading.close();
116
- });
117
-
118
- }
119
-
120
- //获取返回参数(广告位高度必选项)
121
- if (action === 'getNewsInfo') {
122
- XdBus.getParentApi('cmsGetPublishEditxContent')(data.params)
123
- .then(res => {
124
- loading.close()
125
- data.cb({ list: res.list, selectId: res.selected })
126
- })
127
- .catch(error => {
128
- loading.close()
129
- console.error(error);
130
- });
131
- }
132
-
133
- //获取产品业务线列表
134
- if (action === 'namespace') {
135
- XdBus.getParentApi('getOptionsNamespaces')({})
136
- .then(res => {
137
- loading.close()
138
- data.cb(res['list'])
139
- })
140
- .catch(error => {
141
- loading.close()
142
- console.error(error);
143
- });
144
- }
145
-
146
- //使用内容分类
147
- if (action === 'cmsPublishEditxContent') {
148
- loading = XdBus.getParentApi('loading')({});
149
- XdBus.getParentApi('cmsPublishEditxContent')(data.params)
150
- .then(res => {
151
- console.log('cmsPublishEditxContent', res)
152
- loading.close();
153
- data.cb(res)
154
- })
155
- .catch(error => {
156
- loading.close();
157
- console.error(error);
158
- });
159
- }
160
-
161
- //位置列表
162
- if (action === 'getListPostion') {
163
- loading = XdBus.getParentApi('loading')({});
164
- XdBus.getParentApi('getListNewsPosition')(data.params)
165
- .then(res => {
166
- loading.close();
167
- data.cb(res)
168
- })
169
- .catch(error => {
170
- loading.close();
171
- console.error(error);
172
- });
173
- }
174
-
175
- //位置创建
176
- if (action === 'addPostion') {
177
- loading = XdBus.getParentApi('loading')({});
178
- XdBus.getParentApi('addNewsPosition')(data.params)
179
- .then(res => {
180
- loading.close();
181
- data.cb(true)
182
- })
183
- .catch(error => {
184
- console.error(error);
185
- loading.close();
186
- data.cb(false)
187
- });
188
- }
189
-
190
- //位置编辑
191
- if (action === 'editPostion') {
192
- loading = XdBus.getParentApi('loading')({});
193
- XdBus.getParentApi('updateNewsPosition')(data.params)
194
- .then(res => {
195
- loading.close();
196
- data.cb(true)
197
- })
198
- .catch(error => {
199
- console.error(error);
200
- loading.close();
201
- data.cb(false)
202
- });
203
- }
204
-
205
- //位置删除
206
- if (action === 'deleltePostion') {
207
- loading = XdBus.getParentApi('loading')({});
208
- XdBus.getParentApi('deleteNewsPosition')(data.params)
209
- .then(res => {
210
- loading.close();
211
- data.cb(true)
212
- })
213
- .catch(error => {
214
- console.error(error);
215
- loading.close();
216
- data.cb(false)
217
- });
218
- }
219
-
220
- //获取广告位内容列表
221
- if (action === 'getListContent') {
222
- loading = XdBus.getParentApi('loading')({});
223
- XdBus.getParentApi('getListNewsContent')(data.params)
224
- .then(res => {
225
- loading.close();
226
- data.cb(res)
227
- })
228
- .catch(error => {
229
- loading.close();
230
- console.error(error);
231
- });
232
- }
233
-
234
- //广告内容创建
235
- if (action === 'addContent') {
236
- loading = XdBus.getParentApi('loading')({});
237
- XdBus.getParentApi('addNewsContent')(data.params)
238
- .then(res => {
239
- loading.close();
240
- data.cb(true)
241
- })
242
- .catch(error => {
243
- console.error(error);
244
- loading.close();
245
- data.cb(false)
246
- });
247
- }
248
-
249
- //广告内容编辑
250
- if (action === 'editContent') {
251
- loading = XdBus.getParentApi('loading')({});
252
- XdBus.getParentApi('updateNewsContent')(data.params)
253
- .then(res => {
254
- loading.close();
255
- data.cb(true)
256
- })
257
- .catch(error => {
258
- console.error(error);
259
- loading.close();
260
- data.cb(false)
261
- });
262
- }
263
-
264
- //广告内容删除
265
- if (action === 'deleteContent') {
266
- loading = XdBus.getParentApi('loading')({});
267
- XdBus.getParentApi('deleteNewsContent')(data.params)
268
- .then(res => {
269
- loading.close();
270
- data.cb(true)
271
- })
272
- .catch(error => {
273
- console.error(error);
274
- loading.close();
275
- data.cb(false)
276
- });
277
- }
278
-
279
- //内容发布
280
- if (action === 'publish') {
281
- loading = XdBus.getParentApi('loading')({});
282
- console.log('publish', data.params)
283
- XdBus.getParentApi('cmsPublishContent')(data.params)
284
- .then(res => {
285
- loading.close();
286
- data.cb(res)
287
- })
288
- .catch(error => {
289
- loading.close();
290
- console.error(error);
291
- });
292
- }
293
-
294
- //通知页面进行刷新
295
- if (action === 'update') {
296
- loading = XdBus.getParentApi('loading')({});
297
- XdBus.getParentApi('getXdBusUpdateView')('onUpdateView', {});
298
- loading.close()
299
- }
300
- },
301
- },
302
- ].filter(i => i)
303
- },
304
- advanced: [],
305
- };