|
|
@ -40,10 +40,39 @@ |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="tab-box"> |
|
|
|
<view class="tab-box1" v-if="agentFlow.records.length>0 && agentFlow.total>0"> |
|
|
|
<!-- <view class="tab-box1" v-if="agentFlow.records.length>0 && agentFlow.total>0"> |
|
|
|
<uv-cell center border :title="item.title" v-for="(item, index) in agentFlow.records" :key="item.id" |
|
|
|
:value="x[item.type] + item.money" :label="item.createTime" /> |
|
|
|
</view> --> |
|
|
|
|
|
|
|
<view class="tab-box1" v-if="agentFlow.records.length>0 && agentFlow.total>0"> |
|
|
|
|
|
|
|
<uv-cell center border |
|
|
|
:key="item.id" |
|
|
|
:title="item.title" v-for="(item, index) in agentFlow.records" |
|
|
|
:label="item.createTime"> |
|
|
|
|
|
|
|
<template #value> |
|
|
|
<view class="info"> |
|
|
|
<view class="price"> |
|
|
|
{{ x[item.type] + (item.money) }} |
|
|
|
</view> |
|
|
|
<view class="uni-color-btn" |
|
|
|
@click="requestMerchantTransfer(item)" |
|
|
|
v-if="item.type == 2 && item.status == 1" |
|
|
|
> |
|
|
|
领取 <text v-if="item.money">¥{{ item.money }}</text> |
|
|
|
</view> |
|
|
|
<view class="status" |
|
|
|
v-else-if="item.state_dictText"> |
|
|
|
{{ item.state_dictText }}<text v-if="item.money">,到账 ¥{{ item.money }}</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
|
|
|
|
</uv-cell> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view style="padding: 100rpx 0;" v-else> |
|
|
|
<uv-empty mode="history" textSize="28rpx" iconSize="100rpx" /> |
|
|
|
</view> |
|
|
@ -74,7 +103,7 @@ |
|
|
|
year: '', |
|
|
|
month: '' |
|
|
|
}, |
|
|
|
title: ['余额记录', '提现记录', '积分记录'], |
|
|
|
title: ['收入记录', '支出记录'], |
|
|
|
agentFlow: { |
|
|
|
total: 1, |
|
|
|
records: [] |
|
|
@ -175,7 +204,34 @@ |
|
|
|
this.queryParams.month = ''; |
|
|
|
this.queryParams.pageNo = 1; |
|
|
|
this.getAgentFlow(); |
|
|
|
} |
|
|
|
}, |
|
|
|
requestMerchantTransfer(item) { |
|
|
|
if (!wx.canIUse('requestMerchantTransfer')) { |
|
|
|
wx.showModal({ |
|
|
|
content: '你的微信版本过低,请更新至最新版本。', |
|
|
|
showCancel: false, |
|
|
|
}); |
|
|
|
return |
|
|
|
} |
|
|
|
wx.requestMerchantTransfer({ |
|
|
|
mchId: '1673516176',//万能墙商户号 |
|
|
|
appId: wx.getAccountInfoSync().miniProgram.appId, |
|
|
|
package: item.packageInfo, |
|
|
|
success: (res) => { |
|
|
|
// res.err_msg将在页面展示成功后返回应用时返回ok,并不代表提款成功 |
|
|
|
console.log('success:', res); |
|
|
|
this.getAgentFlow() |
|
|
|
|
|
|
|
this.$api('requestMerchantTransfer', { |
|
|
|
id : item.id, |
|
|
|
}) |
|
|
|
}, |
|
|
|
fail: (res) => { |
|
|
|
console.log('fail:', res); |
|
|
|
this.getAgentFlow() |
|
|
|
}, |
|
|
|
}); |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
@ -287,5 +343,14 @@ |
|
|
|
border-radius: 20rpx; |
|
|
|
overflow: hidden; |
|
|
|
} |
|
|
|
.uni-color-btn{ |
|
|
|
background: $uni-color; |
|
|
|
color: #fff; |
|
|
|
text-align: center; |
|
|
|
margin: 0; |
|
|
|
border-radius: 10rpx; |
|
|
|
padding: 6px; |
|
|
|
font-size: 22rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
</style> |