bb09ac81
wangming
DEV初始化
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
<template>
<view class="whole">
<image src="../../static/beijing.png" class="background" mode=""></image>
<!-- wyPromotion 我的推广 -->
<!-- 球形进度条 -->
<view class="progressBall">
<vus-sphere-progress :percent="balance" :width="282" :text="false">
<view slot="text">
<view class="withdrawableCash">可提取</view>
<view class="x">{{balance}}<text class="withdrawableCash">元</text></view>
</view>
</vus-sphere-progress>
<!-- 自定义颜色,分别为:['背景','底部','顶部'] -->
<!-- <vus-sphere-progress :percent="percent" :color="['#333','#2a4','#c00']"></vus-sphere-progress> -->
<!-- 关闭水泡 -->
<!-- <vus-sphere-progress :percent="percent" :sphere="{bubble:false}"></vus-sphere-progress> -->
<!-- 设置图标 -->
<!-- <vus-sphere-progress :percent="percent" :sphere="{icon:['vi-bolt','font-szie:18px;color:#fff;']}"></vus-sphere-progress> -->
</view>
<view class="applicationEmbodiment" @click="destoonMoney">
申请提现
</view>
<view class="withdrawalDetails">
提现明细
</view>
<view class="end-title">
<view class="a" style="border-left: 0;">时间</view>
<view class="a">金额(元)</view>
<view class="a">状态</view>
</view>
<!-- 明细 -->
<!-- <view class="detailed"> -->
<ul class="ul">
|
38329136
wangming
修改样式
|
37
|
<li class="li" v-for="(item,index) in modellist" :key="index">
|
bb09ac81
wangming
DEV初始化
|
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
<view class="time textcolor">
{{item.add_time}}
</view>
<view class="amountOfMoney time textcolor">
¥{{item.money/100}}
</view>
<view class="state time textcolor-x">
{{item.status==0?'成功':'失败'}}
</view>
</li>
</ul>
<!-- </view> -->
</view>
</template>
<script>
// 球形进度条
import vusSphereProgress from '@/components/vus-sphere-progress/vus-sphere-progress.vue';
import utils from '../../service/utils.js'
export default {
data() {
return {
// 分单位
balance: 0,
moneymodel: {
"status": 0,
"KeyWord": "",
"TotalCount": 0,
"PageIndex": 1,
"PageSize": 20,
"Sort": [{
"Field": "",
"Type": 0
}]
},
|
38329136
wangming
修改样式
|
74
|
modellist: []
|
bb09ac81
wangming
DEV初始化
|
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
}
},
onLoad(item) {
this.ShowMoneyList()
let data = JSON.parse(decodeURIComponent(item.usermodel))
console.log('接收参数对象', data)
this.balance = data.balance / 100
},
methods: {
// 申请提现
destoonMoney() {
uni.navigateTo({
url: '../PayMoney/PayMoney?balance=' + encodeURIComponent(JSON.stringify(this.balance))
})
},
// 显示提现数据
ShowMoneyList() {
this.API.GetMoneyList(this.moneymodel).then(res => {
console.log('提现数据', res)
|
38329136
wangming
修改样式
|
94
95
|
res.data.data.rows.forEach((item, index) => {
item.add_time = utils.formatTime(item.add_time, "yyyy-MM-dd HH:mm:ss")
|
bb09ac81
wangming
DEV初始化
|
96
|
})
|
38329136
wangming
修改样式
|
97
|
this.modellist = res.data.data.rows
|
bb09ac81
wangming
DEV初始化
|
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
|
})
}
},
components: {
vusSphereProgress
}
}
</script>
<style>
/* 背景图片 */
.background {
width: 100%;
height: 100%;
position: fixed;
/* border-radius:50% 50% 0 0 ; */
background-size: 100% 100%;
z-index: -1;
}
|
bb09ac81
wangming
DEV初始化
|
117
118
119
120
121
122
123
124
|
/* 根属性 */
.whole {
display: flex;
flex-direction: column;
align-items: flex-start;
/* background-color: #008000; */
/* justify-content: center; */
}
|
bb09ac81
wangming
DEV初始化
|
125
126
127
128
129
|
.withdrawableCash {
color: #FFA36E;
font-size: 21rpx !important;
/* background-color: #007AFF; */
}
|
bb09ac81
wangming
DEV初始化
|
130
131
132
133
|
.x {
font-size: 60rpx;
color: #FFA36E;
}
|
bb09ac81
wangming
DEV初始化
|
134
135
136
137
138
139
|
/* 进度球 */
.progressBall {
margin: 50rpx auto;
/* width: 276rpx; */
/* height: 276rpx; */
}
|
bb09ac81
wangming
DEV初始化
|
140
141
142
143
144
145
146
|
/* .uni-view{
background-color: #007AFF !important;
} */
/* 申请体现 */
.applicationEmbodiment {
width: 214rpx;
height: 60rpx;
|
38329136
wangming
修改样式
|
147
|
background-color: #f5eab3;
|
bb09ac81
wangming
DEV初始化
|
148
149
|
text-align: center;
line-height: 60rpx;
|
38329136
wangming
修改样式
|
150
|
color: #000;
|
bb09ac81
wangming
DEV初始化
|
151
152
|
margin: 0 auto;
border-radius: 30rpx;
|
38329136
wangming
修改样式
|
153
154
155
|
font-size: 16px;
box-shadow: 0 0 3px #f5eab3;
border: 2px solid #f5eab3;
|
bb09ac81
wangming
DEV初始化
|
156
|
}
|
bb09ac81
wangming
DEV初始化
|
157
158
159
160
161
162
163
|
/* 体现明细 */
.withdrawalDetails {
width: 100%;
height: 84rpx;
background-color: #1f1f1f;
text-align: center;
line-height: 84rpx;
|
38329136
wangming
修改样式
|
164
|
margin-top: 20px;
|
bb09ac81
wangming
DEV初始化
|
165
|
color: #FFFFFF;
|
38329136
wangming
修改样式
|
166
|
font-size: 22px;
|
bb09ac81
wangming
DEV初始化
|
167
|
}
|
bb09ac81
wangming
DEV初始化
|
168
169
170
171
172
173
174
175
|
/* 时间/金额/状态 */
.end-title {
display: flex;
/* flex-direction: row; */
justify-content: space-around;
align-items: center;
background-color: #1f1f1f;
color: #a59e7a;
|
38329136
wangming
修改样式
|
176
|
font-size: 14px;
|
bb09ac81
wangming
DEV初始化
|
177
178
|
width: 100%;
height: 84rpx;
|
38329136
wangming
修改样式
|
179
|
line-height: 84rpx;
|
bb09ac81
wangming
DEV初始化
|
180
|
}
|
bb09ac81
wangming
DEV初始化
|
181
182
183
184
185
186
187
188
189
190
191
192
|
/* .end-title view{
flex-grow: 1;
text-align: center;
} */
.a {
display: flex;
background-color: #292929;
justify-content: center;
align-items: center;
border-left: #f5eab3 2rpx solid;
/* text-align: center; */
flex: 1;
|
38329136
wangming
修改样式
|
193
194
|
height: 30px;
line-height: 30px;
|
bb09ac81
wangming
DEV初始化
|
195
196
|
color: #FFFFFF;
}
|
bb09ac81
wangming
DEV初始化
|
197
198
199
200
201
202
203
204
205
206
|
/* 状态明细 */
/* .detailed{
width: 100%;
height: 50rpx;
background-color: #007AFF;
} */
.ul {
margin: 0;
padding: 0;
width: 100%;
|
38329136
wangming
修改样式
|
207
208
|
height: 28px;
line-height: 28px;
|
bb09ac81
wangming
DEV初始化
|
209
210
211
212
213
214
|
/* background-color: #007AFF; */
/* flex-direction: column; */
/* align-items: center; */
list-style: none;
justify-content: center;
}
|
bb09ac81
wangming
DEV初始化
|
215
216
217
218
219
220
|
.li {
/* background-color: #007AFF; */
display: flex;
justify-content: space-around;
align-items: center;
font-size: 22rpx;
|
38329136
wangming
修改样式
|
221
222
|
line-height: 28px;
border-bottom: 1px solid #808080;
|
bb09ac81
wangming
DEV初始化
|
223
224
225
226
|
/* padding-top: 5px; */
/* text-align: center; */
/* margin: 0 auto; */
}
|
bb09ac81
wangming
DEV初始化
|
227
228
229
230
231
|
.time {
flex: 1;
background-color: #1F1F1F;
text-align: center;
}
|
bb09ac81
wangming
DEV初始化
|
232
233
234
|
.textcolor {
color: #FFFFFF;
}
|
bb09ac81
wangming
DEV初始化
|
235
236
237
238
|
.textcolor-x {
color: #FDC56A;
}
</style>
|