jufubao-base 1.0.119-beta2 → 1.0.119-beta20

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 (92) hide show
  1. package/package.json +4 -3
  2. package/src/components/JfbBaseCard/JfbBaseCard.vue +9 -6
  3. package/src/components/JfbBaseCardBind/JfbBaseCardBind.vue +8 -4
  4. package/src/components/JfbBaseCardBindV2/JfbBaseCardBindV2.vue +8 -8
  5. package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +9 -4
  6. package/src/components/JfbBaseCardInfo/JfbBaseCardInfo.vue +24 -32
  7. package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntry.vue +46 -50
  8. package/src/components/JfbBaseCardSweepInfo/JfbBaseCardSweepInfo.vue +13 -5
  9. package/src/components/JfbBaseCardV2/JfbBaseCardV2.vue +8 -2
  10. package/src/components/JfbBaseCardV3/JfbBaseCardV3.vue +8 -4
  11. package/src/components/JfbBaseConDialog/JfbBaseConDialog.vue +3 -0
  12. package/src/components/JfbBaseConPhone/JfbBaseConPhone.vue +146 -89
  13. package/src/components/JfbBasePay/JfbBasePay.vue +8 -3
  14. package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +1 -1
  15. package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +233 -223
  16. package/src/components/{JfbBaseConFlashHome → JfbBaseWallet}/Api.js +1 -1
  17. package/src/components/JfbBaseWallet/Attr.js +101 -0
  18. package/src/components/JfbBaseWallet/JfbBaseWallet.vue +306 -0
  19. package/src/components/{JfbBaseSaasHome/JfbBaseSaasHomeLess.less → JfbBaseWallet/JfbBaseWalletLess.less} +2 -2
  20. package/src/components/{JfbBaseSaasHome/JfbBaseSaasHomeMixin.js → JfbBaseWallet/JfbBaseWalletMixin.js} +1 -1
  21. package/src/components/{JfbBaseConFlashHome → JfbBaseWallet}/Mock.js +1 -0
  22. package/src/components/{JfbBaseSaasNewsList → JfbBaseWalletDetail}/Api.js +5 -5
  23. package/src/components/{JfbBaseSaasNewsDetail → JfbBaseWalletDetail}/Attr.js +3 -1
  24. package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetail.vue +175 -0
  25. package/src/components/{JfbBaseConFlashList/JfbBaseConFlashListLess.less → JfbBaseWalletDetail/JfbBaseWalletDetailLess.less} +2 -2
  26. package/src/components/{JfbBaseConFlashHome/JfbBaseConFlashHomeMixin.js → JfbBaseWalletDetail/JfbBaseWalletDetailMixin.js} +1 -1
  27. package/src/components/JfbBaseWalletDetail/Mock.js +6 -0
  28. package/src/components/{JfbBaseSaasNewsDetail → JfbBaseWalletEffective}/Api.js +7 -7
  29. package/src/components/JfbBaseWalletEffective/Attr.js +15 -0
  30. package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffective.vue +176 -0
  31. package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffectiveLess.less +80 -0
  32. package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffectiveMixin.js +30 -0
  33. package/src/components/JfbBaseWalletEffective/Mock.js +21 -0
  34. package/src/components/JfbBaseWalletIndex/Api.js +48 -0
  35. package/src/components/JfbBaseWalletIndex/Attr.js +33 -0
  36. package/src/components/JfbBaseWalletIndex/JfbBaseWalletIndex.vue +821 -0
  37. package/src/components/{JfbBaseConFlashHome/JfbBaseConFlashHomeLess.less → JfbBaseWalletIndex/JfbBaseWalletIndexLess.less} +2 -2
  38. package/src/components/{JfbBaseConFlashList/JfbBaseConFlashListMixin.js → JfbBaseWalletIndex/JfbBaseWalletIndexMixin.js} +1 -1
  39. package/src/components/JfbBaseWalletIndex/Mock.js +7 -0
  40. package/src/components/JfbBaseWalletItem/Api.js +37 -0
  41. package/src/components/JfbBaseWalletItem/Attr.js +33 -0
  42. package/src/components/JfbBaseWalletItem/JfbBaseWalletItem.vue +501 -0
  43. package/src/components/{JfbBaseSaasLogin/JfbBaseSaasLoginLess.less → JfbBaseWalletItem/JfbBaseWalletItemLess.less} +2 -2
  44. package/src/components/{JfbBaseSaasLogin/JfbBaseSaasLoginMixin.js → JfbBaseWalletItem/JfbBaseWalletItemMixin.js} +1 -1
  45. package/src/components/JfbBaseWalletItem/Mock.js +7 -0
  46. package/src/components/JfbBaseConFlashHome/Attr.js +0 -129
  47. package/src/components/JfbBaseConFlashHome/JfbBaseConFlashHome.vue +0 -388
  48. package/src/components/JfbBaseConFlashList/Api.js +0 -60
  49. package/src/components/JfbBaseConFlashList/Attr.js +0 -117
  50. package/src/components/JfbBaseConFlashList/JfbBaseConFlashList.vue +0 -656
  51. package/src/components/JfbBaseConFlashList/Mock.js +0 -5
  52. package/src/components/JfbBaseSaasBlessDetail/Api.js +0 -59
  53. package/src/components/JfbBaseSaasBlessDetail/Attr.js +0 -24
  54. package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetail.vue +0 -315
  55. package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetailLess.less +0 -80
  56. package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetailMixin.js +0 -30
  57. package/src/components/JfbBaseSaasBlessDetail/Mock.js +0 -5
  58. package/src/components/JfbBaseSaasBlessDialog/Api.js +0 -25
  59. package/src/components/JfbBaseSaasBlessDialog/Attr.js +0 -50
  60. package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialog.vue +0 -274
  61. package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialogLess.less +0 -80
  62. package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialogMixin.js +0 -30
  63. package/src/components/JfbBaseSaasBlessDialog/Mock.js +0 -5
  64. package/src/components/JfbBaseSaasBlessReceive/Api.js +0 -25
  65. package/src/components/JfbBaseSaasBlessReceive/Attr.js +0 -24
  66. package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceive.vue +0 -183
  67. package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceiveLess.less +0 -80
  68. package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceiveMixin.js +0 -30
  69. package/src/components/JfbBaseSaasBlessReceive/Mock.js +0 -5
  70. package/src/components/JfbBaseSaasHome/Api.js +0 -48
  71. package/src/components/JfbBaseSaasHome/Attr.js +0 -35
  72. package/src/components/JfbBaseSaasHome/JfbBaseSaasHome.vue +0 -356
  73. package/src/components/JfbBaseSaasHome/Mock.js +0 -5
  74. package/src/components/JfbBaseSaasLogin/Api.js +0 -39
  75. package/src/components/JfbBaseSaasLogin/Attr.js +0 -37
  76. package/src/components/JfbBaseSaasLogin/JfbBaseSaasLogin.vue +0 -410
  77. package/src/components/JfbBaseSaasLogin/Mock.js +0 -5
  78. package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetail.vue +0 -144
  79. package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetailLess.less +0 -80
  80. package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetailMixin.js +0 -30
  81. package/src/components/JfbBaseSaasNewsDetail/Mock.js +0 -5
  82. package/src/components/JfbBaseSaasNewsList/Attr.js +0 -24
  83. package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsList.vue +0 -181
  84. package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsListLess.less +0 -80
  85. package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsListMixin.js +0 -30
  86. package/src/components/JfbBaseSaasNewsList/Mock.js +0 -5
  87. package/src/components/JfbBaseSassPhoneCollect/Api.js +0 -39
  88. package/src/components/JfbBaseSassPhoneCollect/Attr.js +0 -438
  89. package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollect.vue +0 -266
  90. package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollectLess.less +0 -80
  91. package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollectMixin.js +0 -30
  92. package/src/components/JfbBaseSassPhoneCollect/Mock.js +0 -5
@@ -0,0 +1,306 @@
1
+ <template>
2
+ <view
3
+ class="jfb-base-wallet"
4
+ @click="handleEditxSelect"
5
+ :class="{ editx: isEditx && active }"
6
+ >
7
+ <!--#ifdef H5-->
8
+ <view
9
+ class="jfb-base-wallet__edit"
10
+ :class="{ editx: isEditx && active }"
11
+ v-if="isEditx && active"
12
+ >
13
+ <view class="jfb-base-wallet__edit-icon" @click="delEdit">删除</view>
14
+ </view>
15
+ <!-- #endif -->
16
+ <view class="jfb-base-wallet__body">
17
+ <view class="jfb-base-wallet__body-title">我的账户</view>
18
+ <view class="jfb-base-wallet__body-type">
19
+ <view
20
+ :style="{
21
+ marginRight: index === showType.length - 1 ? '0' : '36rpx',
22
+ }"
23
+ v-for="(item, index) in showType"
24
+ @click="handleJumpTo(item)"
25
+ :key="index"
26
+ class="jfb-base-wallet__body-type-item"
27
+ >
28
+ <XdFontIcon :icon="item.icon"></XdFontIcon>
29
+ <view>{{ item.label }}</view>
30
+ </view>
31
+ </view>
32
+ </view>
33
+ </view>
34
+ </template>
35
+
36
+ <script>
37
+ import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
38
+ import { jfbRootExec } from "@/utils/xd.event";
39
+ import JfbBaseWalletMixin from "./JfbBaseWalletMixin";
40
+ import { getContainerPropsValue } from "@/utils/xd.base";
41
+ import componentsMixins from "@/mixins/componentsMixins";
42
+ import extsMixins from "@/mixins/extsMixins";
43
+ export default {
44
+ name: "JfbBaseWallet",
45
+ components: {
46
+ XdFontIcon,
47
+ },
48
+ mixins: [componentsMixins, extsMixins, JfbBaseWalletMixin],
49
+ data() {
50
+ return {
51
+ typeList: [
52
+ {
53
+ icon: "iconpiao",
54
+ label: "票券",
55
+ value: "card",
56
+ },
57
+ {
58
+ icon: "iconyuanbao",
59
+ label: "元宝",
60
+ value: "wallet",
61
+ },
62
+ {
63
+ icon: "iconjifenjilu",
64
+ label: "积分",
65
+ value: "score",
66
+ },
67
+ ],
68
+ newLabel: [],
69
+ isPreview: false,
70
+ isCard: "Y",
71
+ isYuanbao: "Y",
72
+ isIntegral: "Y",
73
+ cardPath: "",
74
+ yuanbaoPath: "",
75
+ integralPath: "",
76
+ };
77
+ },
78
+ watch: {
79
+ container(value) {
80
+ this.init(value);
81
+ },
82
+ newLabel: {
83
+ deep: true,
84
+ handler(n, o) {
85
+ if (this.isPreview) {
86
+ // 遍历tabs,找到newLabel中value与item1.value相同的项,将其赋值给item1.label
87
+ this.typeList.forEach((item1, index) => {
88
+ const item2 = this.newLabel.find(
89
+ (item) => item.value === item1.value
90
+ );
91
+
92
+ if (item2) {
93
+ item1.label = item2.newLabel || item1.label;
94
+ item1.sort = item2.sort;
95
+ }
96
+ });
97
+ this.tabs.sort((a, b) => a.sort - b.sort);
98
+ }
99
+ },
100
+ },
101
+ isCard(n, o) {
102
+ if (n === "Y") {
103
+ let flag = this.showType.find((item) => item.value === "card");
104
+ if (!flag) {
105
+ this.showType.push({
106
+ icon: "iconpiao",
107
+ label: "票券",
108
+ value: "card",
109
+ });
110
+ }
111
+ } else {
112
+ let flagIndex = this.showType.findIndex(
113
+ (item) => item.value === "card"
114
+ );
115
+ if (flagIndex !== -1) {
116
+ this.showType.splice(flagIndex, 1);
117
+ }
118
+ }
119
+ },
120
+ isYuanbao(n, o) {
121
+ if (n === "Y") {
122
+ let flag = this.showType.find((item) => item.value === "wallet");
123
+ if (!flag) {
124
+ this.showType.push({
125
+ icon: "iconyuanbao_mian",
126
+ label: "元宝",
127
+ value: "wallet",
128
+ });
129
+ }
130
+ } else {
131
+ let flagIndex = this.showType.findIndex(
132
+ (item) => item.value === "wallet"
133
+ );
134
+ if (flagIndex !== -1) {
135
+ this.showType.splice(flagIndex, 1);
136
+ }
137
+ }
138
+ },
139
+ isIntegral(n, o) {
140
+ if (n === "Y") {
141
+ let flag = this.showType.find((item) => item.value === "score");
142
+ if (!flag) {
143
+ this.showType.push({
144
+ icon: "iconyiwancheng1",
145
+ label: "积分",
146
+ value: "score",
147
+ });
148
+ }
149
+ } else {
150
+ let flagIndex = this.showType.findIndex(
151
+ (item) => item.value === "score"
152
+ );
153
+ if (flagIndex !== -1) {
154
+ this.showType.splice(flagIndex, 1);
155
+ }
156
+ }
157
+ },
158
+ },
159
+ computed: {
160
+ showType() {
161
+ this.typeList.forEach((item1, index) => {
162
+ const item2 = this.newLabel.find((item) => item.value === item1.value);
163
+
164
+ if (item2) {
165
+ item1.label = item2.newLabel || item1.label;
166
+ item1.sort = item2.sort;
167
+ }
168
+ });
169
+ this.typeList.sort((a, b) => a.sort - b.sort);
170
+ return this.typeList;
171
+ },
172
+ },
173
+ created() {
174
+ this.init(this.container);
175
+ this.isPreview = this.$configProject.isPreview;
176
+
177
+ //todo
178
+ },
179
+ methods: {
180
+ onJfbLoad(options) {
181
+ // jfbRootExec('baiduUserLogin', {
182
+ // vm: this,// data: {
183
+ // account: 'gaoshiyong',// password: '123456789',// type: 3,// ...options
184
+ // }
185
+ // }).then().catch()
186
+ },
187
+ /**
188
+ * @description 监听事件变化
189
+ * @param container {object} 业务组件对象自己
190
+ */
191
+ init(container) {
192
+ this.newLabel = getContainerPropsValue(container, "content.newLabel", []);
193
+ this.isCard = getContainerPropsValue(container, "content.isCard", "Y");
194
+ this.isYuanbao = getContainerPropsValue(
195
+ container,
196
+ "content.isYuanbao",
197
+ "Y"
198
+ );
199
+ this.isIntegral = getContainerPropsValue(
200
+ container,
201
+ "content.isIntegral",
202
+ "Y"
203
+ );
204
+ this.cardPath = getContainerPropsValue(container, "content.cardPath", {
205
+ value: "",
206
+ }).value;
207
+
208
+ this.yuanbaoPath = getContainerPropsValue(
209
+ container,
210
+ "content.yuanbaoPath",
211
+ { value: "" }
212
+ ).value;
213
+
214
+ this.integralPath = getContainerPropsValue(
215
+ container,
216
+ "content.integralPath",
217
+ { value: "" }
218
+ ).value;
219
+ },
220
+ handleJumpTo(item) {
221
+ console.log(item, "ppppp");
222
+ switch (item.value) {
223
+ case "card":
224
+ this.$xdUniHelper.navigateTo({
225
+ url: this.cardPath,
226
+ });
227
+ break;
228
+
229
+ case "wallet":
230
+ this.$xdUniHelper.navigateTo({
231
+ url:`${this.yuanbaoPath}?type=wallet`,
232
+ });
233
+ break;
234
+
235
+ case "score":
236
+ this.$xdUniHelper.navigateTo({
237
+ url: `${this.integralPath}?type=score`,
238
+ });
239
+ break;
240
+
241
+ default:
242
+ break;
243
+ }
244
+ },
245
+ onJfbScroll(options) {
246
+ console.log("event.onJfbScroll", options);
247
+ },
248
+ onJfbReachBottom(options) {
249
+ console.log("event.onJfbReachBottom", options);
250
+ },
251
+ onJfbShow(options) {
252
+ console.log("event.onJfbShow", options);
253
+ },
254
+ onJfbHide(options) {
255
+ console.log("event.onJfbHide", options);
256
+ },
257
+ onJfbBack(options) {
258
+ console.log("event.onJfbBack", options);
259
+ },
260
+ onJfbUpdate(...data) {
261
+ console.log("event.onJfbUpdate", data);
262
+ },
263
+ onJfbCustomEvent(options) {
264
+ console.log("event.onJfbReachBottom", options);
265
+ },
266
+ },
267
+ };
268
+ </script>
269
+
270
+ <style scoped lang="less">
271
+ @import "./JfbBaseWalletLess.less";
272
+
273
+ .jfb-base-wallet {
274
+ &__body {
275
+ &-title {
276
+ padding: 20rpx;
277
+ }
278
+ &-type {
279
+ display: flex;
280
+ border-radius: 20rpx;
281
+ background: rgba(255, 255, 255, 1);
282
+ border: 1rpx solid rgba(238, 238, 238, 1);
283
+ padding: 32rpx 48rpx 32rpx 48rpx;
284
+ margin: 0 20rpx 0;
285
+
286
+ &-item {
287
+ color: #999999;
288
+ flex: 1;
289
+ display: flex;
290
+ flex-direction: column;
291
+ align-items: center;
292
+ justify-content: center;
293
+ font-size: 24rpx;
294
+ border: 2rpx solid #eeeeee;
295
+ border-radius: 16rpx;
296
+ background: #ffffff;
297
+ padding: 16rpx 0;
298
+ margin-right: 36rpx;
299
+ & > view:nth-child(2) {
300
+ margin-top: 12rpx;
301
+ }
302
+ }
303
+ }
304
+ }
305
+ }
306
+ </style>
@@ -12,7 +12,7 @@
12
12
  }
13
13
 
14
14
  //start
15
- .jfb-base-saas-home {
15
+ .jfb-base-wallet {
16
16
  border: 1px dashed rgba(0, 0, 0, 0);
17
17
  box-sizing: border-box;
18
18
  min-height: unit(50, rpx);
@@ -71,7 +71,7 @@
71
71
 
72
72
 
73
73
  /**notPreview**/
74
- .jfb-base-saas-home {
74
+ .jfb-base-wallet {
75
75
  &:before {
76
76
  content: " ";
77
77
  display: table;
@@ -16,7 +16,7 @@ export default {
16
16
  //@EndAttrData
17
17
 
18
18
  // #endif
19
- cssRoot: 'jfb-base-saas-home'
19
+ cssRoot: 'jfb-base-wallet'
20
20
  }
21
21
  },
22
22
  created() {
@@ -3,3 +3,4 @@
3
3
  module.exports = {
4
4
  aaaa: {}
5
5
  }
6
+
@@ -12,15 +12,15 @@
12
12
  */
13
13
  module.exports = [
14
14
  {
15
- mapFnName: 'getNewsList',
16
- title: '获取新闻列表',
17
- path: '/saas/v1/content_ad_news/items',
15
+ mapFnName: 'getRecordDetail', //自定义方法名字(必选)
16
+ title: '获取明细详情',
17
+ path: '/pay/v1/wallet/trade-record-detail',
18
18
  isRule: false,
19
19
  params: {
20
- position_id: ['位置ID', 'String', '必选'],
21
- scene: ['场景ad,news', 'String', '必选']
20
+ trade_id: ['记录ID', 'String', '必选'],
22
21
  },
23
22
  isConsole: true,
24
23
  disabled: true,
25
24
  },
26
25
  ];
26
+
@@ -10,5 +10,7 @@ export default {
10
10
 
11
11
  ].filter(i=>i)
12
12
  },
13
- advanced: [],
13
+ advanced: [
14
+ ],
14
15
  };
16
+
@@ -0,0 +1,175 @@
1
+ <template>
2
+ <view
3
+ class="jfb-base-wallet-detail"
4
+ @click="handleEditxSelect"
5
+ :class="{ editx: isEditx && active }"
6
+ >
7
+ <!--#ifdef H5-->
8
+ <view
9
+ class="jfb-base-wallet-detail__edit"
10
+ :class="{ editx: isEditx && active }"
11
+ v-if="isEditx && active"
12
+ >
13
+ <view class="jfb-base-wallet-detail__edit-icon" @click="delEdit"
14
+ >删除</view
15
+ >
16
+ </view>
17
+ <!-- #endif -->
18
+ <view class="jfb-base-wallet-detail__body">
19
+ <view v-if="status" class="jfb-base-wallet-detail__body-wrap">
20
+ <view class="jfb-base-wallet-detail__body-price">
21
+ <XdFontIcon size="56" :icon="operate_type === 'A'?'iconshouru':'iconzhichu'"></XdFontIcon>
22
+ <view class="jfb-base-wallet-detail__body-price-type"
23
+ >{{trade_type_name}}</view
24
+ >
25
+ <view
26
+ >{{ operate_type === "A" ? "+" : "-"
27
+ }}{{ dividePrice(amount) }}</view
28
+ >
29
+ </view>
30
+ <view class="jfb-base-wallet-detail__body-info">
31
+ <view
32
+ v-for="(item, index) in list"
33
+ :key="index"
34
+ class="jfb-base-wallet-detail__body-info-item"
35
+ >
36
+ <view class="jfb-base-wallet-detail__body-info-item-label">
37
+ {{ item.label }}
38
+ </view>
39
+ <view class="jfb-base-wallet-detail__body-info-item-value">
40
+ {{ item.value }}
41
+ </view>
42
+ </view>
43
+ </view>
44
+ </view>
45
+ </view>
46
+ </view>
47
+ </template>
48
+
49
+ <script>
50
+ import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
51
+ import { jfbRootExec } from "@/utils/xd.event";
52
+ import JfbBaseWalletDetailMixin from "./JfbBaseWalletDetailMixin";
53
+ import { getContainerPropsValue } from "@/utils/xd.base";
54
+ import componentsMixins from "@/mixins/componentsMixins";
55
+ import extsMixins from "@/mixins/extsMixins";
56
+ export default {
57
+ name: "JfbBaseWalletDetail",
58
+ components: {
59
+ XdFontIcon,
60
+ },
61
+ mixins: [componentsMixins, extsMixins, JfbBaseWalletDetailMixin],
62
+ data() {
63
+ return {
64
+ trade_type_name: "",
65
+ operate_type: "",
66
+ list: [],
67
+ amount: "",
68
+ status: false,
69
+ };
70
+ },
71
+ watch: {
72
+ container(value) {
73
+ this.init(value);
74
+ },
75
+ },
76
+ created() {
77
+ this.init(this.container);
78
+
79
+ //todo
80
+ },
81
+ methods: {
82
+ onJfbLoad(options) {
83
+ jfbRootExec("getRecordDetail", {
84
+ vm: this,
85
+ data: {
86
+ trade_id: options.trade_id,
87
+ },
88
+ })
89
+ .then((res) => {
90
+ this.list = res.list;
91
+ this.amount = res.amount;
92
+ this.trade_type_name = res.trade_type_name;
93
+ this.operate_type = res.operate_type;
94
+ this.status = true;
95
+ })
96
+ .catch(this.$xdLog.catch);
97
+ },
98
+ /**
99
+ * @description 监听事件变化
100
+ * @param container {object} 业务组件对象自己
101
+ */
102
+ init(container) {
103
+ //this.bgcolor = getContainerPropsValue(container, 'content.bgcolor', '#fff');
104
+ //this.height = getContainerPropsValue(container, 'content.height', 10);
105
+ },
106
+ dividePrice(num) {
107
+ return this.$xdUniHelper.divisionFloatNumber(num, 100);
108
+ },
109
+ onJfbScroll(options) {
110
+ console.log("event.onJfbScroll", options);
111
+ },
112
+ onJfbReachBottom(options) {
113
+ console.log("event.onJfbReachBottom", options);
114
+ },
115
+ onJfbShow(options) {
116
+ console.log("event.onJfbShow", options);
117
+ },
118
+ onJfbHide(options) {
119
+ console.log("event.onJfbHide", options);
120
+ },
121
+ onJfbBack(options) {
122
+ console.log("event.onJfbBack", options);
123
+ },
124
+ onJfbUpdate(...data) {
125
+ console.log("event.onJfbUpdate", data);
126
+ },
127
+ onJfbCustomEvent(options) {
128
+ console.log("event.onJfbReachBottom", options);
129
+ },
130
+ },
131
+ };
132
+ </script>
133
+
134
+ <style scoped lang="less">
135
+ @import "./JfbBaseWalletDetailLess.less";
136
+
137
+ .jfb-base-wallet-detail {
138
+ &__body {
139
+ &-wrap {
140
+ border-radius: 20rpx;
141
+ background: #ffffff;
142
+ border: 1rpx solid #eeeeee;
143
+ margin: 20rpx 20rpx 0 20rpx;
144
+ }
145
+ &-price {
146
+ display: flex;
147
+ flex-direction: column;
148
+ justify-content: center;
149
+ align-items: center;
150
+ padding: 52rpx 0 36rpx 0;
151
+ margin: 0 60rpx;
152
+ border-bottom: 1rpx solid #eee;
153
+ &-type {
154
+ font-size: 28rpx;
155
+ color: #666;
156
+ margin: 20rpx 0 30rpx 0;
157
+ }
158
+ & > view:last-child {
159
+ font-size: 64rpx;
160
+ color: #333;
161
+ }
162
+ }
163
+ &-info {
164
+ margin-top: 36rpx;
165
+ &-item {
166
+ font-size: 24rpx;
167
+ color: #999;
168
+ display: flex;
169
+ justify-content: space-between;
170
+ padding: 0 60rpx 36rpx 60rpx;
171
+ }
172
+ }
173
+ }
174
+ }
175
+ </style>
@@ -12,7 +12,7 @@
12
12
  }
13
13
 
14
14
  //start
15
- .jfb-base-con-flash-list {
15
+ .jfb-base-wallet-detail {
16
16
  border: 1px dashed rgba(0, 0, 0, 0);
17
17
  box-sizing: border-box;
18
18
  min-height: unit(50, rpx);
@@ -71,7 +71,7 @@
71
71
 
72
72
 
73
73
  /**notPreview**/
74
- .jfb-base-con-flash-list {
74
+ .jfb-base-wallet-detail {
75
75
  &:before {
76
76
  content: " ";
77
77
  display: table;
@@ -16,7 +16,7 @@ export default {
16
16
  //@EndAttrData
17
17
 
18
18
  // #endif
19
- cssRoot: 'jfb-base-con-flash-home'
19
+ cssRoot: 'jfb-base-wallet-detail'
20
20
  }
21
21
  },
22
22
  created() {
@@ -0,0 +1,6 @@
1
+ 'use strict';
2
+
3
+ module.exports = {
4
+ getRecordDetail: {"trade_id":"8ICccHHNMFVyGvnetIkJU","trade_type":"recharge","trade_type_name":"充值","operate_type":"A","operate_type_name":"收入","amount":100000,"list":[{"label":"收入账户","value":"综合元宝"},{"label":"收入账号","value":"1000000000000245"},{"label":"收入时间","value":"-"}],"request_id":"0d909e7ad44f21de"}
5
+ }
6
+
@@ -12,16 +12,16 @@
12
12
  */
13
13
  module.exports = [
14
14
  {
15
- mapFnName: 'getNewsDetail',
16
- title: '获取新闻详情',
17
- path: '/saas/v1/content_ad_news/item',
15
+ mapFnName: 'getEffectiveList', //自定义方法名字(必选)
16
+ title: '获取有效期列表',
17
+ path: '/pay/v1/wallet/list-period',
18
18
  isRule: false,
19
19
  params: {
20
- id: ['id', 'String', true],
21
- position_id: ['位置ID', 'String', '必选'],
22
- scene: ['场景ad,news', 'String', '必选']
20
+ wallet_type: ['wallet_type', 'Number', '必选'],
21
+ page_size: ['page_size', 'Number', '必选'],
23
22
  },
24
23
  isConsole: true,
25
24
  disabled: true,
26
- },
25
+ }
27
26
  ];
27
+
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * @description 当表单组件中有联动操作时候,使用方法进行返回
5
+ */
6
+ export default {
7
+ style: [],
8
+ content: (data) => {
9
+ return [
10
+ ].filter(i=>i)
11
+ },
12
+ advanced: [
13
+ ],
14
+ };
15
+