giftProceeds.vue
5.8 KB
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
37
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
<template>
<view>
<view class="walletBalWrap">
<view class="checkName" v-if="pgType == 'gift' && userInfo.id_no == ''" @click="href('../checkName')">
<view class="checkLeft" @click="href('../checkName')">
<image src="../../../static/image/wallet/icon-wenjianxitong-1@2x.png" mode=""></image>
您暂未实名认证,请立即实名认证
</view>
<image src="../../../static/image/right_icon.png" mode=""></image>
</view>
<view class="priceTxt">
{{pgType == 'gift' ? '礼物' : '预约'}}收益余额
</view>
<view class="priceWrap">
<text>{{pgType == 'gift' ? wallet.gift_money : wallet.make_money}}</text>
<!-- <view class="priceBtn">
提现
</view> -->
</view>
<view class="incomeWrap">
<view class="incomeItem">
<view class="incomeTxt">
今日收入
</view>
<view class="incomeNum">
{{pgType == 'gift' ? wallet.gift_today : wallet.make_today}}
</view>
</view>
<view class="incomeItem">
<view class="incomeTxt">
累计收入
</view>
<view class="incomeNum">
{{pgType == 'gift' ? wallet.gift_total : wallet.make_total}}
</view>
</view>
</view>
<view class="handleWrap">
<!-- <view class="handleItem" v-if="pgType == 'gift'" @click="href('accountDetail')">
<text style="color: #4a8b94;font-size: 28rpx;">账户明细</text>
<view class="handleRight">
<image src="../../../static/image/right.png" mode=""></image>
</view>
</view> -->
<view class="handleItem" @click="href(pgType == 'appoint' ? 'accountDetail' : 'giftDetail')">
<text style="color: #4a8b94;font-size: 28rpx;">礼物明细</text>
<view class="handleRight">
<image src="../../../static/image/right.png" mode=""></image>
</view>
</view>
<view class="handleItem" v-if="pgType == 'gift'" @click="href('../checkName')">
<text style="color: #4a8b94;font-size: 28rpx;">实名认证</text>
<view class="handleRight">
{{userInfo.id_no != '' ? '已认证' : '未认证'}}
<image src="../../../static/image/right.png" mode=""></image>
</view>
</view>
<view class="handleItem" @click="href('problems')">
<text style="color: #4a8b94;font-size: 28rpx;">常见问题</text>
<view class="handleRight">
<image src="../../../static/image/right.png" mode=""></image>
</view>
</view>
</view>
</view>
<!-- <view class="bottomCheckBox">
<image v-if="!agreeStatus" @click="agreeStatus = !agreeStatus" src="../../../static/image/wallet/Rectangle_2319@2x.png" mode=""></image>
<image v-if="agreeStatus" @click="agreeStatus = !agreeStatus" src="../../../static/image/wallet/Group_582@2x.png" mode=""></image>
同意<text>《找地主钱包用户协议》</text>
</view> -->
</view>
</template>
<script>
export default{
data(){
return{
userInfo:{},
wallet:{},
agreeStatus:false,
pgType:''
}
},
onShow() {
this.getData()
},
methods:{
getData(){
let url = ''
if(this.pgType == 'gift'){
url = '/wallet/gift'
}else{
url = '/wallet/make'
}
this.$request(url).then((res)=>{
console.log('收益页面',res)
this.wallet = res.data
})
//获取用户信息
this.$request('/user/info').then((res)=>{
this.userInfo = res.data
})
},
href(url){
this.$href(url)
},
onLoad(e){
//gift:礼物收益,appoint:预约收益
this.pgType = e.pgType
},
onReady(){
if(this.pgType == 'gift'){
uni.setNavigationBarTitle({
title:'礼物收益'
})
}else{
uni.setNavigationBarTitle({
title:'预约收益'
})
}
}
}
}
</script>
<style lang="scss" scoped>
.walletBalWrap{
background: url(../../../static/image/my/Frame_150@2x.png) no-repeat;
background-size: 100% 334rpx;
height: 334rpx;
position: relative;
padding: 0 32rpx;
.checkName{
font-size: 24rpx;
height: 66rpx;
background: rgba(255,255,255,0.90);
border-radius: 174rpx;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 16rpx;
image{width: 32rpx;height: 32rpx;}
.checkLeft{
display: flex;
align-items: center;
image{width: 32rpx;height: 32rpx;margin-right: 4rpx;}
}
}
.priceTxt{
font-size: 28rpx;
color: rgba(255,255,255,0.80);
padding-top: 8rpx;
}
.priceWrap{
height: 124rpx;
display: flex;
justify-content: space-between;
align-items: center;
text{font-size: 88rpx;color: #fff;}
.priceBtn{
width: 168rpx;
height: 64rpx;
background: linear-gradient(135deg,#ffffff, rgba(255,255,255,0.70));
border: 1rpx solid #ffffff;
border-radius: 103rpx;
text-align: center;
line-height: 64rpx;
font-size: 24rpx;
color: #588989;
}
}
.incomeWrap{
margin-top: 58rpx;
background: #ffffff;
border-radius: 16rpx;
box-shadow: 0rpx 20rpx 40rpx 0rpx rgba(12,98,98,0.07);
display: flex;
padding: 32rpx;
.incomeItem{
flex: 1;
.incomeTxt{
color: #9897a3;
font-size: 24rpx;
}
.incomeNum{
padding-top: 8rpx;
color: #4a8b94;
font-size: 48rpx;
}
}
}
.handleWrap{
margin-top: 32rpx;
background: #ffffff;
border-radius: 16rpx;
box-shadow: 0rpx 20rpx 40rpx 0rpx rgba(12,98,98,0.07);
padding: 0 24rpx;
.handleItem{
height: 88rpx;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 2rpx solid #f1f1f3;
.handleRight{
display: flex;
align-items: center;
image{width: 36rpx;height: 36rpx;}
color: #4a8b94;
font-size: 28rpx;
}
}
.handleItem:nth-of-type(4){border-bottom: none;}
}
}
.bottomCheckBox{
position: fixed;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
font-size: 28rpx;
image{width: 28rpx;height: 28rpx;margin-right: 10rpx;}
text{color: #4a8b94;}
bottom: 38rpx;
}
</style>