jufubao-base 1.0.239-beta2 → 1.0.240

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/JfbBaseFastLink/Attr.js +1 -12
  3. package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +0 -66
  4. package/src/components/JfbBaseHeader/Attr.js +0 -82
  5. package/src/components/JfbBaseHeader/JfbBaseHeader.vue +1 -47
  6. package/src/components/JfbBaseHeaderColumn/Attr.js +0 -82
  7. package/src/components/JfbBaseHeaderColumn/JfbBaseHeaderColumn.vue +2 -48
  8. package/src/components/JfbBaseLogin/JfbBaseLogin.vue +16 -15
  9. package/src/components/JfbBaseNoticeDialog/Api.js +1 -1
  10. package/src/components/JfbBaseNoticeDialog/Attr.js +0 -26
  11. package/src/components/JfbBaseNoticeDialog/JfbBaseNoticeDialog.vue +9 -28
  12. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +18 -174
  13. package/src/components/JfbBasePay/Attr.js +0 -52
  14. package/src/components/JfbBasePay/JfbBasePay.vue +6 -30
  15. package/src/components/JfbBasePay/Mock.js +9 -0
  16. package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +2 -1
  17. package/src/components/JfbBasePhoneLogin/JfbBasePhoneLogin.vue +19 -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 +2 -7
  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 -334
  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,268 +0,0 @@
1
- <template>
2
- <view class="jfb-base-poster-group" @click="handleEditxSelect" :class="{ editx : isEditx && active }">
3
- <!--#ifdef H5-->
4
- <view class="jfb-base-poster-group__edit" :class="{ editx : isEditx && active }" v-if="isEditx && active">
5
- <view class="jfb-base-poster-group__edit-icon" @click="delEdit">删除</view>
6
- </view>
7
- <!-- #endif -->
8
- <view class="jfb-base-poster-group__body" :style="[bodyStyleComp]">
9
- <view class="jfb-base-poster-group__body-header">
10
- <view class="jfb-base-poster-group__body-header-title">
11
- <XdContentXss :html="title"></XdContentXss>
12
- <view @click="handleToMore" v-if="is_show_more==='Y'" class="jfb-base-poster-group__body-header-title-more">
13
- 更多
14
- <XdFontIcon size="20" icon="iconxiangyou_xian"></XdFontIcon>
15
- </view>
16
- </view>
17
- <view class="jfb-base-poster-group__body-header-subtitle">
18
- {{subtitle}}
19
- </view>
20
- </view>
21
- <view class="jfb-base-poster-group__body-content">
22
- <view class="jfb-base-poster-group__body-content-tabs">
23
- <view @click="handleChangeTab(item)" :style="[tab===item.random?activeStyleComp:normalStyleComp]"
24
- class="jfb-base-poster-group__body-content-tabs-item" v-for="(item, index) in posterGroup.group"
25
- :key="index">
26
- {{item.title}}
27
- </view>
28
- </view>
29
- <view v-if="imageGroup&&imageGroup.length>0" class="jfb-base-poster-group__body-content-images">
30
- <image :style="{width: imageWidth,height:imageWidth}" @click="handleClick(item)"
31
- v-for="(item,index) in imageGroup" :key="index" :src="item.image_url">
32
- </image>
33
- </view>
34
- </view>
35
- </view>
36
- </view>
37
- </template>
38
-
39
- <script>
40
- import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
41
- import XdContentXss from '@/components/XdContentXss/XdContentXss';
42
- import { jfbRootExec } from "@/utils/xd.event";
43
- import JfbBasePosterGroupMixin from "./JfbBasePosterGroupMixin";
44
- import { getContainerPropsValue } from "@/utils/xd.base";
45
- import getServiceUrl from "@/common/getServiceUrl";
46
- import componentsMixins from "@/mixins/componentsMixins";
47
- import posterMixins from "@/mixins/posterMixins";
48
- import extsMixins from "@/mixins/extsMixins";
49
- export default {
50
- name: "JfbBasePosterGroup",
51
- components: {
52
- XdFontIcon,
53
- XdContentXss
54
- },
55
- mixins: [
56
- componentsMixins, extsMixins, JfbBasePosterGroupMixin, posterMixins
57
- ],
58
- data() {
59
- return {
60
- posterGroup: {},
61
- morePath: '',
62
- is_show_more: 'Y',
63
- backgroundImage: '',
64
- title: '',
65
- subtitle: '',
66
- imageGroup: [],
67
- tab: '',
68
- radius: 0,
69
- margin: {},
70
- padding: {},
71
- bgColor: ''
72
- }
73
- },
74
- watch: {
75
- container(value, oldValue) {
76
- if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
77
- if (this.$configProject['isPreview']) this.init(value)
78
- },
79
- },
80
- computed: {
81
- bodyStyleComp() {
82
- return {
83
- backgroundColor: this.bgColor,
84
- backgroundImage: `url(${this.backgroundImage})`,
85
- backgroundSize: '100% 100%',
86
- backgroundPosition: 'center',
87
- backgroundRepeat: 'no-repeat',
88
- borderRadius: `${this.radius}rpx`,
89
- margin: this.getMarginAndPadding(this.margin, 20),
90
- padding: this.getMarginAndPadding(this.padding, 20),
91
- }
92
- },
93
- activeStyleComp() {
94
- return {
95
- color: '#6D4604',
96
- background: '#FDDC83',
97
- border: '1px solid #FDDC83',
98
- borderRadius: '40rpx'
99
- }
100
- },
101
- normalStyleComp() {
102
- return {
103
- color: '#F5DC9E',
104
- border: '1px solid #F5DC9E',
105
- borderRadius: '40rpx'
106
- }
107
- },
108
- imageWidth() {
109
- let width = 750
110
- let paddingLeft = this.checkValue(this.padding.left,20)
111
- let paddingRight = this.checkValue(this.padding.right,20)
112
- let marginLeft = this.checkValue(this.margin.left,20)
113
- let marginRight = this.checkValue(this.margin.right,20)
114
- width = width - paddingLeft - paddingRight - marginLeft - marginRight
115
- width = width - 60 //减去右边距
116
- return `${width / 4}rpx`
117
- }
118
- },
119
- created() {
120
- this.init(this.container);
121
- },
122
- methods: {
123
- onJfbLoad(options) {
124
- this.getPosterGroup(this.posterGroup.group[0])
125
- },
126
- getPosterGroup(item) {
127
- this.tab = item.random;
128
- jfbRootExec('getListPosterGroupContent', {
129
- vm: this,
130
- data: {
131
- page_id: this.pageAttr["page_id"], //页面ID
132
- container_id: this.containerId + item.random, //组件ID
133
- page_size: 200
134
- }
135
- }).then(res => {
136
- this.imageGroup = res.list.map(item => {
137
- return {
138
- ...item,
139
- image_url: getServiceUrl(item.image_url)
140
- }
141
- })
142
- }).catch()
143
- },
144
- /**
145
- * @description 监听事件变化
146
- * @param container {object} 业务组件对象自己
147
- */
148
- init(container) {
149
- this.posterGroup = getContainerPropsValue(container, 'content.posterGroup', {});
150
- this.morePath = getContainerPropsValue(container, 'content.morePath', { value: "" }).value;
151
- this.is_show_more = getContainerPropsValue(container, 'content.is_show_more', 'Y');
152
- this.backgroundImage = getServiceUrl(getContainerPropsValue(container, 'content.backgroundImage', { url: "" }).url);
153
- this.bgColor = getContainerPropsValue(container, "content.bgColor", "#FFFFFF");
154
- this.title = getContainerPropsValue(container, 'content.title', '<p style="font-weight:bold;font-size:16px"><span style="color: #FFF">全球大牌,会员低至</span><span style="color: #F2D894">8折</span></p>');
155
- this.subtitle = getContainerPropsValue(container, 'content.subtitle', '超300+品牌商品');
156
- this.radius = getContainerPropsValue(container, 'content.radius', 20);
157
- this.margin = getContainerPropsValue(container, 'content.bodyMargin', {});
158
- this.padding = getContainerPropsValue(container, 'content.bodyPadding', {});
159
- },
160
- checkValue(value, dValue = 0) {
161
- if (value === undefined || value === '' || value === null) return dValue;
162
- return Number(value || 0);
163
- },
164
- handleClick(item) {
165
- if (this.isPreview) return;
166
- this.handlePosterClick(item)
167
- },
168
- handleToMore() {
169
- this.$xdUniHelper.navigateTo({
170
- url: this.morePath,
171
- });
172
- },
173
- handleChangeTab(item) {
174
- this.getPosterGroup(item)
175
- },
176
- onJfbScroll(options) {
177
- console.log('event.onJfbScroll', options)
178
- },
179
- onJfbReachBottom(options) {
180
- console.log('event.onJfbReachBottom', options)
181
- },
182
- onJfbShow(options) {
183
- console.log('event.onJfbShow', options)
184
- },
185
- onJfbHide(options) {
186
- console.log('event.onJfbHide', options)
187
- },
188
- onJfbBack(options) {
189
- console.log('event.onJfbBack', options)
190
- },
191
- onJfbUpdate(...data) {
192
- console.log('event.onJfbUpdate', data)
193
- },
194
- onJfbCustomEvent(options) {
195
- console.log('event.onJfbReachBottom', options)
196
- },
197
- }
198
- }
199
-
200
- </script>
201
-
202
- <style scoped lang="less">
203
- @import "./JfbBasePosterGroupLess.less";
204
-
205
- .jfb-base-poster-group {
206
- &__body {
207
- padding: 24rpx;
208
- margin: 20rpx;
209
- border-radius: 30rpx;
210
-
211
- &-header {
212
- &-title {
213
- display: flex;
214
- align-items: center;
215
- justify-content: space-between;
216
- margin-bottom: 10rpx;
217
-
218
- &-more {
219
- display: flex;
220
- align-items: center;
221
- color: #FFFFFF;
222
- font-size: 24rpx;
223
- }
224
- }
225
-
226
- &-subtitle {
227
- color: #FFFFFF;
228
- font-size: 24rpx;
229
- }
230
- }
231
-
232
- &-content {
233
- &-tabs {
234
- display: flex;
235
- flex-wrap: wrap;
236
-
237
- &-item {
238
- margin-top: 20rpx;
239
- margin-right: 20rpx;
240
- padding: 11rpx 25rpx;
241
- font-size: 25rpx;
242
- }
243
- }
244
-
245
- &-images {
246
- display: flex;
247
- flex-wrap: wrap;
248
- align-content: flex-start;
249
-
250
- &>image {
251
- display: flex;
252
- justify-content: center;
253
- align-items: center;
254
- margin-top: 20rpx;
255
- margin-right: 20rpx;
256
- width: 145rpx;
257
- height: 145rpx;
258
- border-radius: 14rpx;
259
- }
260
-
261
- &>image:nth-child(4n) {
262
- margin-right: 0;
263
- }
264
- }
265
- }
266
- }
267
- }
268
- </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-poster-group {
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-poster-group {
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-poster-group'
20
- }
21
- },
22
- created() {
23
-
24
- //@AttrDataCreated
25
- this.Attr = this.$xdUniHelper.customClone(Attr);
26
- //@EndAttrDataCreated
27
-
28
-
29
- },
30
- }
@@ -1,13 +0,0 @@
1
- 'use strict';
2
-
3
- module.exports = {
4
-
5
- getPosterByIdFilmSquate:{},
6
-
7
- updatePosterFilmPaiqiDate:{},
8
-
9
- removePosterFilmAddress:{},
10
-
11
- addPosterFilmcart:{},
12
-
13
- }
@@ -1,41 +0,0 @@
1
- 'use strict';
2
- /**
3
- * @description 接口配置,
4
- * 在设置方法名字当时候,别忘记加上【模块名字】:Saving
5
- * @type {*[]}
6
- */
7
- module.exports = [
8
- {
9
- mapFnName: 'getMonthSavingDetail',
10
- title: '省钱明细-月度',
11
- path: '/member/v1/money-saving-record/month',
12
- isRule: false,
13
- params: {
14
- year: ['年', 'Number', true],
15
- month: ['月', 'Number', true],
16
- },
17
- isConsole: true,
18
- disabled: true,
19
- },
20
- {
21
- mapFnName: 'getTotalSavingDetail',
22
- title: '省钱明细-累计',
23
- path: '/member/v1/money-saving-record/total',
24
- isRule: false,
25
- params: {
26
- },
27
- isConsole: true,
28
- disabled: true,
29
- },
30
- {
31
- mapFnName: 'getYearSavingDetail',
32
- title: '省钱明细-年度',
33
- path: '/member/v1/money-saving-record/year',
34
- isRule: false,
35
- params: {
36
- year: ['年', 'Number', true],
37
- },
38
- isConsole: true,
39
- disabled: true,
40
- },
41
- ];
@@ -1,70 +0,0 @@
1
- 'use strict';
2
-
3
- /**
4
- * @description 当表单组件中有联动操作时候,使用方法进行返回
5
- */
6
- export default {
7
- style: [],
8
- content: (data) => {
9
- return [
10
- {
11
- ele: 'title',
12
- label: '切换标签设置',
13
- size: 'small',
14
- groupKey: 'style',
15
- },
16
- {
17
- label: '背景颜色:',
18
- ele: 'xd-color',
19
- valueKey: 'titleBgc',
20
- groupKey: 'style',
21
- value: data['titleBgc'] || '',
22
- placeholder: '请选择背景颜色',
23
- classNmae: 'input80',
24
- },
25
- {
26
- label: '外填充:',
27
- ele: 'xd-margin-padding',
28
- valueKey: 'tabPadding',
29
- groupKey: 'style',
30
- value: data['tabPadding'] || null,
31
- setting: {
32
- type: 'padding',
33
- },
34
- placeholder: '请设置外填充',
35
- inline: false,
36
- notice: '设置填充值,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">上下20,左右0</span>像素',
37
- },
38
- {
39
- label: '切换标签与内容之间间距:',
40
- ele: 'el-input',
41
- type: 'text',
42
- groupKey: 'style',
43
- valueKey: 'titlePadding',
44
- value: data['titlePadding'] || '',
45
- className: 'input60',
46
- inline: false,
47
- notice:'设置切换标签与内容之间间距,默认值:<span style="color:red">0</span>像素'
48
- },
49
- {
50
- label: '未选中文字颜色:',
51
- ele: 'xd-color',
52
- valueKey: 'titleColor',
53
- value: data['titleColor'] || '',
54
- groupKey: 'style',
55
- placeholder: '请选择未选中文字颜色',
56
- classNmae: 'input80',
57
- },
58
- {
59
- label: '选中文字颜色:',
60
- ele: 'xd-color',
61
- valueKey: 'titleActColor',
62
- value: data['titleActColor'] || '',
63
- groupKey: 'style',
64
- placeholder: '请选择选中文字颜色',
65
- classNmae: 'input80',
66
- },
67
- ].filter(i=>i)
68
- },
69
- advanced: [],
70
- };