jufubao-base 1.0.119-beta13 → 1.0.119-beta15
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.
- package/package.json +1 -1
- package/src/components/JfbBaseCard/JfbBaseCard.vue +9 -6
- package/src/components/JfbBaseCardBind/JfbBaseCardBind.vue +8 -4
- package/src/components/JfbBaseCardBindV2/JfbBaseCardBindV2.vue +8 -8
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +9 -4
- package/src/components/JfbBaseCardInfo/JfbBaseCardInfo.vue +24 -32
- package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntry.vue +46 -50
- package/src/components/JfbBaseCardSweepInfo/JfbBaseCardSweepInfo.vue +13 -5
- package/src/components/JfbBaseCardV2/JfbBaseCardV2.vue +8 -2
- package/src/components/JfbBaseCardV3/JfbBaseCardV3.vue +8 -4
- package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +1 -1
- package/src/components/JfbBaseWallet/Api.js +1 -1
- package/src/components/JfbBaseWallet/Attr.js +74 -79
- package/src/components/JfbBaseWallet/JfbBaseWallet.vue +266 -70
- package/src/components/JfbBaseWallet/Mock.js +1 -0
- package/src/components/JfbBaseWalletDetail/Api.js +5 -39
- package/src/components/JfbBaseWalletDetail/Attr.js +2 -92
- package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetail.vue +145 -80
- package/src/components/JfbBaseWalletDetail/Mock.js +2 -1
- package/src/components/JfbBaseWalletEffective/Api.js +7 -40
- package/src/components/JfbBaseWalletEffective/Attr.js +1 -92
- package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffective.vue +146 -80
- package/src/components/JfbBaseWalletEffective/Mock.js +17 -1
- package/src/components/JfbBaseWalletIndex/Api.js +14 -26
- package/src/components/JfbBaseWalletIndex/Attr.js +14 -87
- package/src/components/JfbBaseWalletIndex/JfbBaseWalletIndex.vue +762 -74
- package/src/components/JfbBaseWalletIndex/Mock.js +4 -2
- package/src/components/JfbBaseWalletItem/Api.js +10 -33
- package/src/components/JfbBaseWalletItem/Attr.js +15 -88
- package/src/components/JfbBaseWalletItem/JfbBaseWalletItem.vue +461 -80
- package/src/components/JfbBaseWalletItem/Mock.js +3 -1
|
@@ -2,109 +2,175 @@
|
|
|
2
2
|
<view
|
|
3
3
|
class="jfb-base-wallet-effective"
|
|
4
4
|
@click="handleEditxSelect"
|
|
5
|
-
:class="{ editx
|
|
5
|
+
:class="{ editx: isEditx && active }"
|
|
6
6
|
>
|
|
7
7
|
<!--#ifdef H5-->
|
|
8
8
|
<view
|
|
9
9
|
class="jfb-base-wallet-effective__edit"
|
|
10
|
-
:class="{ editx
|
|
10
|
+
:class="{ editx: isEditx && active }"
|
|
11
11
|
v-if="isEditx && active"
|
|
12
12
|
>
|
|
13
|
-
<view class="jfb-base-wallet-effective__edit-icon" @click="delEdit"
|
|
13
|
+
<view class="jfb-base-wallet-effective__edit-icon" @click="delEdit"
|
|
14
|
+
>删除</view
|
|
15
|
+
>
|
|
14
16
|
</view>
|
|
15
17
|
<!-- #endif -->
|
|
16
|
-
<view class="jfb-base-wallet-effective__body">
|
|
17
|
-
<view
|
|
18
|
+
<view class="jfb-base-wallet-effective__body" v-if="status">
|
|
19
|
+
<view v-if="list.length" class="jfb-base-wallet-effective__body-wrap">
|
|
20
|
+
<view class="jfb-base-wallet-effective__body-title">
|
|
21
|
+
<view>剩余元宝</view>
|
|
22
|
+
<view>过期时间</view>
|
|
23
|
+
</view>
|
|
24
|
+
<view class="jfb-base-wallet-effective__body-list">
|
|
25
|
+
<view
|
|
26
|
+
v-for="(item, index) in list"
|
|
27
|
+
:key="index"
|
|
28
|
+
class="jfb-base-wallet-effective__body-list-item"
|
|
29
|
+
>
|
|
30
|
+
<view>
|
|
31
|
+
<XdFontIcon
|
|
32
|
+
size="28"
|
|
33
|
+
:color="mainColor"
|
|
34
|
+
:icon="type === 'wallet' ? 'iconyuanbao' : 'iconjifenjilu'"
|
|
35
|
+
></XdFontIcon>
|
|
36
|
+
<text>{{ dividePrice(item.amount) }}</text>
|
|
37
|
+
</view>
|
|
38
|
+
<view>{{ item.show_end_time }}</view>
|
|
39
|
+
</view>
|
|
40
|
+
</view>
|
|
41
|
+
</view>
|
|
42
|
+
<XdNoData v-else></XdNoData>
|
|
18
43
|
</view>
|
|
19
44
|
</view>
|
|
20
45
|
</template>
|
|
21
46
|
|
|
22
47
|
<script>
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
48
|
+
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
49
|
+
import { jfbRootExec } from "@/utils/xd.event";
|
|
50
|
+
import XdNoData from "@/components/XdNoData/XdNoData";
|
|
51
|
+
import JfbBaseWalletEffectiveMixin from "./JfbBaseWalletEffectiveMixin";
|
|
52
|
+
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
53
|
+
import componentsMixins from "@/mixins/componentsMixins";
|
|
54
|
+
import extsMixins from "@/mixins/extsMixins";
|
|
55
|
+
export default {
|
|
56
|
+
name: "JfbBaseWalletEffective",
|
|
57
|
+
components: {
|
|
58
|
+
XdFontIcon,
|
|
59
|
+
},
|
|
60
|
+
mixins: [componentsMixins, extsMixins, JfbBaseWalletEffectiveMixin],
|
|
61
|
+
data() {
|
|
62
|
+
return {
|
|
63
|
+
list: [],
|
|
64
|
+
hasNext: true,
|
|
65
|
+
next_page_token: "",
|
|
66
|
+
page_size: 20,
|
|
67
|
+
page_token: 1,
|
|
68
|
+
type: "",
|
|
69
|
+
wallet_type: "",
|
|
70
|
+
status: false,
|
|
71
|
+
};
|
|
72
|
+
},
|
|
73
|
+
watch: {
|
|
74
|
+
container(value) {
|
|
75
|
+
this.init(value);
|
|
33
76
|
},
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
data() {
|
|
38
|
-
return {
|
|
77
|
+
},
|
|
78
|
+
created() {
|
|
79
|
+
this.init(this.container);
|
|
39
80
|
|
|
40
|
-
|
|
41
|
-
|
|
81
|
+
//todo
|
|
82
|
+
},
|
|
83
|
+
methods: {
|
|
84
|
+
async onJfbLoad(options) {
|
|
85
|
+
this.wallet_type = options.wallet_type;
|
|
86
|
+
this.type = options.type;
|
|
87
|
+
await this.getList();
|
|
88
|
+
this.status = true;
|
|
89
|
+
},
|
|
90
|
+
/**
|
|
91
|
+
* @description 监听事件变化
|
|
92
|
+
* @param container {object} 业务组件对象自己
|
|
93
|
+
*/
|
|
94
|
+
init(container) {},
|
|
95
|
+
dividePrice(num) {
|
|
96
|
+
return this.$xdUniHelper.divisionFloatNumber(num, 100);
|
|
97
|
+
},
|
|
98
|
+
getList() {
|
|
99
|
+
//todo
|
|
100
|
+
jfbRootExec("getEffectiveList", {
|
|
101
|
+
vm: this,
|
|
102
|
+
data: {
|
|
103
|
+
wallet_type: this.wallet_type,
|
|
104
|
+
page_size: this.page_size,
|
|
105
|
+
page_token: this.page_token,
|
|
106
|
+
},
|
|
107
|
+
})
|
|
108
|
+
.then((res) => {
|
|
109
|
+
if (this.page_token === 1) {
|
|
110
|
+
this.list = res.list;
|
|
111
|
+
} else {
|
|
112
|
+
this.list = this.list.concat(res.list);
|
|
113
|
+
}
|
|
114
|
+
this.hasNext = res.next_page_token !== "";
|
|
115
|
+
this.next_page_token = res.next_page_token;
|
|
116
|
+
})
|
|
117
|
+
.catch(this.$xdLog.catch);
|
|
42
118
|
},
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
119
|
+
onJfbScroll(options) {
|
|
120
|
+
console.log("event.onJfbScroll", options);
|
|
121
|
+
},
|
|
122
|
+
onJfbReachBottom(options) {
|
|
123
|
+
console.log("1111");
|
|
124
|
+
if (this.hasNext) {
|
|
125
|
+
this.page_token = this.next_page_token;
|
|
126
|
+
this.getList();
|
|
46
127
|
}
|
|
47
128
|
},
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
//todo
|
|
129
|
+
onJfbBack(options) {
|
|
130
|
+
console.log("event.onJfbBack", options);
|
|
52
131
|
},
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
// jfbRootExec('baiduUserLogin', {
|
|
57
|
-
|
|
58
|
-
// vm: this,// data: {
|
|
59
|
-
|
|
60
|
-
// account: 'gaoshiyong',// password: '123456789',// type: 3,// ...options
|
|
61
|
-
|
|
62
|
-
// }
|
|
63
|
-
|
|
64
|
-
// }).then().catch()
|
|
65
|
-
},
|
|
66
|
-
/**
|
|
67
|
-
* @description 监听事件变化
|
|
68
|
-
* @param container {object} 业务组件对象自己
|
|
69
|
-
*/
|
|
70
|
-
init(container) {
|
|
71
|
-
|
|
72
|
-
//this.bgcolor = getContainerPropsValue(container, 'content.bgcolor', '#fff');
|
|
73
|
-
|
|
74
|
-
//this.height = getContainerPropsValue(container, 'content.height', 10);
|
|
75
|
-
},
|
|
76
|
-
onJfbScroll(options) {
|
|
77
|
-
console.log('event.onJfbScroll', options)
|
|
78
|
-
},
|
|
79
|
-
onJfbReachBottom(options) {
|
|
80
|
-
console.log('event.onJfbReachBottom', options)
|
|
81
|
-
},
|
|
82
|
-
onJfbShow(options) {
|
|
83
|
-
console.log('event.onJfbShow', options)
|
|
84
|
-
},
|
|
85
|
-
onJfbHide(options) {
|
|
86
|
-
console.log('event.onJfbHide', options)
|
|
87
|
-
},
|
|
88
|
-
onJfbBack(options) {
|
|
89
|
-
console.log('event.onJfbBack', options)
|
|
90
|
-
},
|
|
91
|
-
onJfbUpdate(...data) {
|
|
92
|
-
console.log('event.onJfbUpdate', data)
|
|
93
|
-
},
|
|
94
|
-
onJfbCustomEvent(options) {
|
|
95
|
-
console.log('event.onJfbReachBottom', options)
|
|
96
|
-
},
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
132
|
+
},
|
|
133
|
+
};
|
|
100
134
|
</script>
|
|
101
135
|
|
|
102
136
|
<style scoped lang="less">
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
.jfb-base-wallet-effective {
|
|
106
|
-
&__body{
|
|
137
|
+
@import "./JfbBaseWalletEffectiveLess.less";
|
|
107
138
|
|
|
139
|
+
.jfb-base-wallet-effective {
|
|
140
|
+
&__body {
|
|
141
|
+
&-wrap {
|
|
142
|
+
border-radius: 20rpx;
|
|
143
|
+
background: #ffffff;
|
|
144
|
+
border: 1rpx solid #eeeeee;
|
|
145
|
+
margin: 20rpx 20rpx 0 20rpx;
|
|
146
|
+
}
|
|
147
|
+
&-title {
|
|
148
|
+
display: flex;
|
|
149
|
+
justify-content: space-between;
|
|
150
|
+
padding: 40rpx 60rpx 50rpx 60rpx;
|
|
151
|
+
color: #666;
|
|
152
|
+
font-size: 24rpx;
|
|
153
|
+
}
|
|
154
|
+
&-list {
|
|
155
|
+
&-item {
|
|
156
|
+
display: flex;
|
|
157
|
+
justify-content: space-between;
|
|
158
|
+
padding: 0 50rpx 50rpx 50rpx;
|
|
159
|
+
& > view:first-child {
|
|
160
|
+
display: flex;
|
|
161
|
+
align-items: center;
|
|
162
|
+
& > text {
|
|
163
|
+
margin-left: 20rpx;
|
|
164
|
+
font-size: 26rpx;
|
|
165
|
+
color: #333;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
& > view:nth-child(2) {
|
|
169
|
+
color: #999;
|
|
170
|
+
font-size: 26rpx;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
108
173
|
}
|
|
109
174
|
}
|
|
175
|
+
}
|
|
110
176
|
</style>
|
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
|
-
|
|
4
|
+
getEffectiveList: {
|
|
5
|
+
"next_page_token": "0",
|
|
6
|
+
"total_size": 0,
|
|
7
|
+
"list": [
|
|
8
|
+
{
|
|
9
|
+
"period_id": "string",
|
|
10
|
+
"partner_id": 0,
|
|
11
|
+
"site_id": "string",
|
|
12
|
+
"amount": 100000,
|
|
13
|
+
"show_end_time": "2024-03-26 10:10:10",
|
|
14
|
+
"end_time": 0,
|
|
15
|
+
"show_name": "string",
|
|
16
|
+
"comment": "string",
|
|
17
|
+
"created_time": 0
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
}
|
|
5
21
|
}
|
|
@@ -12,47 +12,35 @@
|
|
|
12
12
|
*/
|
|
13
13
|
module.exports = [
|
|
14
14
|
{
|
|
15
|
-
mapFnName: '
|
|
16
|
-
title: '
|
|
17
|
-
path: '/
|
|
15
|
+
mapFnName: 'getWalletList', //自定义方法名字(必选)
|
|
16
|
+
title: '获取元宝列表',
|
|
17
|
+
path: '/pay/v1/wallet/list',
|
|
18
18
|
isRule: false,
|
|
19
19
|
params: {
|
|
20
|
-
|
|
21
|
-
page_size: ['每页数量', 'Number', '必选'],
|
|
20
|
+
support_method: ['元宝:wallet 积分: score', 'String', '必选'],
|
|
22
21
|
},
|
|
23
22
|
isConsole: true,
|
|
24
23
|
disabled: true,
|
|
25
24
|
},
|
|
26
25
|
{
|
|
27
|
-
mapFnName: '
|
|
28
|
-
title: '
|
|
29
|
-
path: '/
|
|
26
|
+
mapFnName: 'getWalletRecordList', //自定义方法名字(必选)
|
|
27
|
+
title: '获取收支明细',
|
|
28
|
+
path: '/pay/v1/wallet/list-trade-record',
|
|
30
29
|
isRule: false,
|
|
31
30
|
params: {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
},
|
|
35
|
-
isConsole: true,
|
|
36
|
-
disabled: true,
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
mapFnName: 'removeFilmAddress', //自定义方法名字(必选)
|
|
40
|
-
title: '删除我的配送地址',
|
|
41
|
-
path: '/api/account/film/paiqi-date',
|
|
42
|
-
isRule: false,
|
|
43
|
-
params: {
|
|
44
|
-
film_id: ['电影id', 'Number', '必选'],
|
|
45
|
-
},
|
|
31
|
+
support_method: ['元宝:wallet 积分: score', 'String', '必选'],
|
|
32
|
+
page_size: ['每页条数', 'String', '必选'],
|
|
33
|
+
},
|
|
46
34
|
isConsole: true,
|
|
47
35
|
disabled: true,
|
|
48
36
|
},
|
|
49
37
|
{
|
|
50
|
-
mapFnName: '
|
|
51
|
-
title: '
|
|
52
|
-
path: '/
|
|
38
|
+
mapFnName: 'getWalletQrcode', //自定义方法名字(必选)
|
|
39
|
+
title: '动态二维码获取',
|
|
40
|
+
path: '/pay/v1/wallet/qrcode',
|
|
53
41
|
isRule: false,
|
|
54
42
|
params: {
|
|
55
|
-
|
|
43
|
+
wallet_type: ['钱包类型', 'String', '必选'],
|
|
56
44
|
},
|
|
57
45
|
isConsole: true,
|
|
58
46
|
disabled: true,
|
|
@@ -8,99 +8,26 @@ export default {
|
|
|
8
8
|
content: (data) => {
|
|
9
9
|
return [
|
|
10
10
|
{
|
|
11
|
-
label: '
|
|
12
|
-
ele: 'xd-
|
|
13
|
-
valueKey: '
|
|
14
|
-
value: data
|
|
15
|
-
placeholder: '请输入占位框背景颜色',
|
|
16
|
-
classNmae: 'input80', //样式名称 //input100,input80,input70,input60,input50,input40,input30,input20,
|
|
17
|
-
rules: [
|
|
18
|
-
{
|
|
19
|
-
required: true,
|
|
20
|
-
message: '请输入占位框背景颜色',
|
|
21
|
-
trigger: 'blur'
|
|
22
|
-
},
|
|
23
|
-
]
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
label: '选中路径:', //label
|
|
27
|
-
ele: 'xd-select-pages-path', //package 名称
|
|
28
|
-
valueKey: 'select-pages-path', //form[valueKey]
|
|
29
|
-
value: data['select-pages-path'] || {},
|
|
11
|
+
label: '钱包详情跳转路径:',
|
|
12
|
+
ele: 'xd-select-pages-path',
|
|
13
|
+
valueKey: 'walletDetailPath',
|
|
14
|
+
value: data['walletDetailPath'] || {},
|
|
30
15
|
setting: {
|
|
31
16
|
router: XdBus.getParentApi('getPagesTree')
|
|
32
17
|
},
|
|
33
18
|
inline: false,
|
|
34
|
-
},
|
|
35
|
-
data.bgcolor && {
|
|
36
|
-
label: '高度:', //label
|
|
37
|
-
ele: 'el-input', //package 名称
|
|
38
|
-
type: 'number',
|
|
39
|
-
valueKey: 'height', //form[valueKey]
|
|
40
|
-
value: data.height || 100, //v-model
|
|
41
|
-
placeholder: '请输入占位框高度,单位像素,默认:10px',
|
|
42
|
-
className: 'input80', //样式名称 //input100,input80,input70,input60,input50,input40,input30,input20,
|
|
43
|
-
rules: [
|
|
44
|
-
{
|
|
45
|
-
required: true,
|
|
46
|
-
message: '请输入占位框高度',
|
|
47
|
-
trigger: 'blur'
|
|
48
|
-
},
|
|
49
|
-
]
|
|
50
|
-
},
|
|
19
|
+
},
|
|
51
20
|
{
|
|
52
|
-
label: '',
|
|
53
|
-
ele: '
|
|
54
|
-
|
|
21
|
+
label: '账单详情跳转路径:',
|
|
22
|
+
ele: 'xd-select-pages-path',
|
|
23
|
+
valueKey: 'billDetailPath',
|
|
24
|
+
value: data['billDetailPath'] || {},
|
|
25
|
+
setting: {
|
|
26
|
+
router: XdBus.getParentApi('getPagesTree')
|
|
27
|
+
},
|
|
28
|
+
inline: false,
|
|
55
29
|
},
|
|
56
30
|
].filter(i=>i)
|
|
57
31
|
},
|
|
58
|
-
advanced: [
|
|
59
|
-
{
|
|
60
|
-
label: '背景颜色:', //label
|
|
61
|
-
ele: 'xd-color', //package 名称
|
|
62
|
-
valueKey: 'bgcolor', //form[valueKey]
|
|
63
|
-
value: '', //v-model
|
|
64
|
-
placeholder: '请输入占位框背景颜色',
|
|
65
|
-
classNmae: 'input80', //样式名称 //input100,input80,input70,input60,input50,input40,input30,input20,
|
|
66
|
-
rules: [
|
|
67
|
-
{
|
|
68
|
-
required: true,
|
|
69
|
-
message: '请输入占位框背景颜色',
|
|
70
|
-
trigger: 'blur'
|
|
71
|
-
},
|
|
72
|
-
]
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
label: '选中路径:', //label
|
|
76
|
-
ele: 'xd-select-pages-path', //package 名称
|
|
77
|
-
valueKey: 'select-pages-path', //form[valueKey]
|
|
78
|
-
value: null,
|
|
79
|
-
setting: {
|
|
80
|
-
router: XdBus.getParentApi('getPagesTree')
|
|
81
|
-
},
|
|
82
|
-
inline: false,
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
label: '高度:', //label
|
|
86
|
-
ele: 'el-input', //package 名称
|
|
87
|
-
type: 'number',
|
|
88
|
-
valueKey: 'height', //form[valueKey]
|
|
89
|
-
value: null, //v-model
|
|
90
|
-
placeholder: '请输入占位框高度,单位像素,默认:10px',
|
|
91
|
-
classNmae: 'input80', //样式名称 //input100,input80,input70,input60,input50,input40,input30,input20,
|
|
92
|
-
rules: [
|
|
93
|
-
{
|
|
94
|
-
required: true,
|
|
95
|
-
message: '请输入占位框高度',
|
|
96
|
-
trigger: 'blur'
|
|
97
|
-
},
|
|
98
|
-
]
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
label: '', //label
|
|
102
|
-
ele: 'slot', //package 名称
|
|
103
|
-
slot: 'is_reference',
|
|
104
|
-
},
|
|
105
|
-
],
|
|
32
|
+
advanced: [],
|
|
106
33
|
};
|