feat:提现
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
<template>
|
||||
<view class="content">
|
||||
<TopSafe bgColor="rgba(0,0,0,0)"></TopSafe>
|
||||
<Header bgColor="rgba(0,0,0,0)" />
|
||||
<Header bgColor="rgba(0,0,0,0)" />
|
||||
<view class="setting-view">
|
||||
<u-icon size="54" name="checkmark-circle-fill" style="margin-top:84rpx" color="#7934F6" ></u-icon>
|
||||
<text class="text-zu text-32 mt-24">提现成功 ¥{{money || 0}}</text>
|
||||
<u-icon size="54" name="checkmark-circle-fill" style="margin-top:84rpx" color="#7934F6"></u-icon>
|
||||
<text class="text-zu text-32 mt-24">提现成功 ¥{{ money || 0 }}</text>
|
||||
<text class="text-fu1 text-28 mt-24" style="text-align: center;">由于第三方结算原因,提现成功后可能存在一定延迟请关注提现账户变动情况~</text>
|
||||
</view>
|
||||
<view class="bottom-btn">
|
||||
@@ -15,47 +15,45 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { bindWithdraw } from '@/api/common.js';
|
||||
import Header from '@/components/common/header.vue';
|
||||
import { clear } from '@/utils/auth.js';
|
||||
import TopSafe from '@/components/common/top-safe.nvue'
|
||||
import MyBtn from '@/components/common/my-btn.vue'
|
||||
import func from '@/utils/func.js';
|
||||
import AccountItem from './components/account-item.vue'
|
||||
|
||||
export default {
|
||||
components: { Header, TopSafe,MyBtn,AccountItem },
|
||||
components: { Header, TopSafe, MyBtn, AccountItem },
|
||||
data() {
|
||||
return {
|
||||
money:''
|
||||
money: ''
|
||||
};
|
||||
},
|
||||
onLoad(option) {
|
||||
if(option && option.money){
|
||||
if (option && option.money) {
|
||||
this.money = Number(option.money);
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
onAdd(){
|
||||
onAdd() {
|
||||
uni.navigateBack()
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.bottom-btn{
|
||||
.bottom-btn {
|
||||
width: 100%;
|
||||
margin-bottom:92rpx;
|
||||
margin-bottom: 92rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
padding: 0 32rpx;
|
||||
box-sizing: border-box;
|
||||
position: relative;
|
||||
|
||||
|
||||
}
|
||||
|
||||
.setting-view {
|
||||
width: 100%;
|
||||
height: calc(100% - 88rpx - 92rpx - 88rpx - var(--status-bar-height));
|
||||
@@ -66,8 +64,9 @@ export default {
|
||||
padding: 0 32rpx;
|
||||
box-sizing: border-box;
|
||||
position: relative;
|
||||
.mid-view{
|
||||
width:100%;
|
||||
|
||||
.mid-view {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow-y: auto;
|
||||
@@ -75,20 +74,21 @@ export default {
|
||||
background-color: #fff;
|
||||
border-radius: 16rpx;
|
||||
padding: 48rpx 32rpx;
|
||||
margin-top:24rpx;
|
||||
.input-view{
|
||||
width:100%;
|
||||
height:100rpx;
|
||||
margin-top: 24rpx;
|
||||
|
||||
.input-view {
|
||||
width: 100%;
|
||||
height: 100rpx;
|
||||
background-color: #f5f5f5;
|
||||
border-radius: 20rpx;
|
||||
margin-top:32rpx;
|
||||
margin-top: 32rpx;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -465,6 +465,28 @@ export default {
|
||||
|
||||
} else {
|
||||
console.log('开始提现', res, this.curSelect)
|
||||
// #ifdef APP-PLUS
|
||||
requestMerchantTransfer({
|
||||
// uni.requestMerchantTransfer({
|
||||
"mchId": "1725999656",
|
||||
"appId": "wx7a5902cd556d9396",
|
||||
"package": res.data.wxResponse.packageInfo,
|
||||
success: (res) => {
|
||||
this.qing();
|
||||
uni.navigateTo({
|
||||
url: '/pages/rwa_package/account/success?money=' + params.amount
|
||||
})
|
||||
|
||||
},
|
||||
fail: (res) => {
|
||||
_this.$refs.uToastRef.show({
|
||||
type: 'error',
|
||||
message: '提现失败',
|
||||
});
|
||||
},
|
||||
|
||||
})
|
||||
// #endif
|
||||
// #ifdef MP-WEIXIN
|
||||
wx.requestMerchantTransfer({
|
||||
"mchId": "1725999656",
|
||||
|
||||
Reference in New Issue
Block a user