|
|
@ -19,20 +19,24 @@ |
|
|
|
:title="item.title" v-for="(item, index) in list" |
|
|
|
:label="item.createTime"> |
|
|
|
|
|
|
|
<!-- <text |
|
|
|
style="font-size: 22rpx;" |
|
|
|
v-if="item.getPrice">到账{{ item.getPrice }}</text> --> |
|
|
|
|
|
|
|
<template #value> |
|
|
|
<view class="info"> |
|
|
|
<view class="price"> |
|
|
|
{{ x[item.type] + item.price }} |
|
|
|
{{ x[item.type] + (item.price || item.intger) }} |
|
|
|
</view> |
|
|
|
<view class="uni-color-btn" |
|
|
|
@click="requestMerchantTransfer(item)" |
|
|
|
v-if="item.type == 0 && item.state == 1" |
|
|
|
> |
|
|
|
领取 |
|
|
|
领取 <text v-if="item.getPrice">¥{{ item.getPrice }}</text> |
|
|
|
</view> |
|
|
|
<view class="status" |
|
|
|
v-else> |
|
|
|
{{ item.state_dictText }} |
|
|
|
v-else-if="item.state_dictText"> |
|
|
|
{{ item.state_dictText }}<text v-if="item.getPrice">,到账 ¥{{ item.getPrice }}</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</template> |
|
|
@ -113,9 +117,13 @@ |
|
|
|
appId: wx.getAccountInfoSync().miniProgram.appId, |
|
|
|
package: item.packageInfo, |
|
|
|
success: (res) => { |
|
|
|
// res.err_msg将在页面展示成功后返回应用时返回ok,并不代表付款成功 |
|
|
|
// res.err_msg将在页面展示成功后返回应用时返回ok,并不代表提款成功 |
|
|
|
console.log('success:', res); |
|
|
|
this.getData() |
|
|
|
|
|
|
|
this.$api('requestMerchantTransfer', { |
|
|
|
id : item.id, |
|
|
|
}) |
|
|
|
}, |
|
|
|
fail: (res) => { |
|
|
|
console.log('fail:', res); |
|
|
@ -133,11 +141,23 @@ |
|
|
|
background: #F5F5F5; |
|
|
|
margin: 0 auto; |
|
|
|
min-height: 100vh; |
|
|
|
.info{ |
|
|
|
text-align: right; |
|
|
|
.status{ |
|
|
|
font-size: 22rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
.tab-box{ |
|
|
|
margin: 20rpx; |
|
|
|
background-color: #fff; |
|
|
|
border-radius: 20rpx; |
|
|
|
overflow: hidden; |
|
|
|
} |
|
|
|
.uni-color-btn{ |
|
|
|
margin: 0; |
|
|
|
border-radius: 10rpx; |
|
|
|
padding: 6px; |
|
|
|
font-size: 22rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
</style> |