|
|
@ -4,8 +4,8 @@ |
|
|
<view class="withdraw-input-box"> |
|
|
<view class="withdraw-input-box"> |
|
|
<view class="withdraw-title">提现金额</view> |
|
|
<view class="withdraw-title">提现金额</view> |
|
|
<view class="input-box"> |
|
|
<view class="input-box"> |
|
|
¥ <input type="text" placeholder="输入金额" placeholder-class="pch" |
|
|
¥ <input type="text" placeholder="输入金额" placeholder-class="pch" class="input-value" |
|
|
class="input-value" @blur="checkAmt()" value="" v-model="amt"/> |
|
|
@blur="checkAmt()" value="" v-model="amt" /> |
|
|
</view> |
|
|
</view> |
|
|
<view class="withdraw-amount"> |
|
|
<view class="withdraw-amount"> |
|
|
<span>当前余额为¥{{userInfo.amt}}</span> |
|
|
<span>当前余额为¥{{userInfo.amt}}</span> |
|
|
@ -24,13 +24,16 @@ |
|
|
<view class="withdrawBox"> |
|
|
<view class="withdrawBox"> |
|
|
<view class="withdrawBox-title"> |
|
|
<view class="withdrawBox-title"> |
|
|
<view class="account-icon" v-if="item.type == '0'"> |
|
|
<view class="account-icon" v-if="item.type == '0'"> |
|
|
<uni-icons custom-prefix="iconfont" :type="payType[0].icon" size="20" :color="payType[0].color" ></uni-icons> |
|
|
<uni-icons custom-prefix="iconfont" :type="payType[0].icon" size="20" |
|
|
|
|
|
:color="payType[0].color"></uni-icons> |
|
|
</view> |
|
|
</view> |
|
|
<view class="account-icon" v-if="item.type == '1'"> |
|
|
<view class="account-icon" v-if="item.type == '1'"> |
|
|
<uni-icons custom-prefix="iconfont" :type="payType[1].icon" size="20" :color="payType[1].color" ></uni-icons> |
|
|
<uni-icons custom-prefix="iconfont" :type="payType[1].icon" size="20" |
|
|
|
|
|
:color="payType[1].color"></uni-icons> |
|
|
</view> |
|
|
</view> |
|
|
<view class="account-icon" v-if="item.type == '2'"> |
|
|
<view class="account-icon" v-if="item.type == '2'"> |
|
|
<uni-icons custom-prefix="iconfont" :type="payType[2].icon" size="20" :color="payType[2].color" ></uni-icons> |
|
|
<uni-icons custom-prefix="iconfont" :type="payType[2].icon" size="20" |
|
|
|
|
|
:color="payType[2].color"></uni-icons> |
|
|
</view><!-- 0->微信 1->银行卡 2->支付宝 --> |
|
|
</view><!-- 0->微信 1->银行卡 2->支付宝 --> |
|
|
<view class="account-title" v-if="item.type == '0'"> |
|
|
<view class="account-title" v-if="item.type == '0'"> |
|
|
{{payType[0].title}} {{item.accountNo}} |
|
|
{{payType[0].title}} {{item.accountNo}} |
|
|
@ -43,7 +46,8 @@ |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view> |
|
|
<view> |
|
|
<radio :value="JSON.stringify(item)" color="#0b6375" :checked="item.isUse === '1'" class="radioStyle"/> |
|
|
<radio :value="JSON.stringify(item)" color="#0b6375" :checked="item.isUse === '1'" |
|
|
|
|
|
class="radioStyle" /> |
|
|
<!-- <uni-data-checkbox v-model="item" :localdata="range" @change="change"></uni-data-checkbox> --> |
|
|
<!-- <uni-data-checkbox v-model="item" :localdata="range" @change="change"></uni-data-checkbox> --> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
@ -60,8 +64,10 @@ |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import { |
|
|
import { |
|
|
getWithdrawList,getCreatorAccount, |
|
|
getWithdrawList, |
|
|
checkWithdraw,withdraw, |
|
|
getCreatorAccount, |
|
|
|
|
|
checkWithdraw, |
|
|
|
|
|
withdraw, |
|
|
getCreatorInfo |
|
|
getCreatorInfo |
|
|
} from '@/api/userInfo.js' |
|
|
} from '@/api/userInfo.js' |
|
|
export default { |
|
|
export default { |
|
|
@ -76,8 +82,7 @@ |
|
|
accountRealNo: '', //真实已加密账户账号 |
|
|
accountRealNo: '', //真实已加密账户账号 |
|
|
type: '', |
|
|
type: '', |
|
|
current: 0, |
|
|
current: 0, |
|
|
payType: [ |
|
|
payType: [{ |
|
|
{ |
|
|
|
|
|
icon: 'icon-weixin', |
|
|
icon: 'icon-weixin', |
|
|
title: '微信', |
|
|
title: '微信', |
|
|
color: '#15ba11' |
|
|
color: '#15ba11' |
|
|
@ -95,7 +100,7 @@ |
|
|
], |
|
|
], |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
onShow() { |
|
|
const userInfo = uni.getStorageSync('userInfo') |
|
|
const userInfo = uni.getStorageSync('userInfo') |
|
|
if (!userInfo) { |
|
|
if (!userInfo) { |
|
|
console.log('havent userInfo') |
|
|
console.log('havent userInfo') |
|
|
@ -121,8 +126,23 @@ |
|
|
async getCreatorAccount() { |
|
|
async getCreatorAccount() { |
|
|
let that = this; |
|
|
let that = this; |
|
|
const res = await getCreatorAccount(that.userInfo.id) |
|
|
const res = await getCreatorAccount(that.userInfo.id) |
|
|
console.log('res', res) |
|
|
|
|
|
if (res.data.code === 200) { |
|
|
if (res.data.code === 200) { |
|
|
|
|
|
if (!res.data.data.length) { |
|
|
|
|
|
return uni.showModal({ |
|
|
|
|
|
title: '提示', |
|
|
|
|
|
content: '当前暂无银行卡,请点确认绑定', |
|
|
|
|
|
success: ({ |
|
|
|
|
|
confirm, |
|
|
|
|
|
cancel |
|
|
|
|
|
}) => { |
|
|
|
|
|
confirm && uni.navigateTo({ |
|
|
|
|
|
url: '/pages-userInfo/creatorAccount/createAccount' |
|
|
|
|
|
}) |
|
|
|
|
|
cancel && uni.navigateBack() |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
that.creatorAccountList.push(...res.data.data) |
|
|
that.creatorAccountList.push(...res.data.data) |
|
|
for (let param of res.data.data) { |
|
|
for (let param of res.data.data) { |
|
|
if (param.isUse === '1') { |
|
|
if (param.isUse === '1') { |
|
|
@ -307,17 +327,20 @@ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.withdraw-input-box { |
|
|
.withdraw-input-box { |
|
|
width: 590rpx; |
|
|
width: 590rpx; |
|
|
padding: 40rpx; |
|
|
padding: 40rpx; |
|
|
background: $uni-bg-base-color; |
|
|
background: $uni-bg-base-color; |
|
|
border-radius: 10rpx; |
|
|
border-radius: 10rpx; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.withdraw-title { |
|
|
.withdraw-title { |
|
|
font-size: 28rpx; |
|
|
font-size: 28rpx; |
|
|
font-weight: 400; |
|
|
font-weight: 400; |
|
|
color: $uni-white; |
|
|
color: $uni-white; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.withdraw-amount { |
|
|
.withdraw-amount { |
|
|
font-size: 28rpx; |
|
|
font-size: 28rpx; |
|
|
font-weight: 400; |
|
|
font-weight: 400; |
|
|
@ -330,6 +353,7 @@ |
|
|
color: $uni-primary; |
|
|
color: $uni-primary; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.withdraw-amount-tip { |
|
|
.withdraw-amount-tip { |
|
|
font-size: 28rpx; |
|
|
font-size: 28rpx; |
|
|
font-weight: 400; |
|
|
font-weight: 400; |
|
|
@ -347,8 +371,10 @@ |
|
|
font-weight: bold; |
|
|
font-weight: bold; |
|
|
color: $uni-white; |
|
|
color: $uni-white; |
|
|
opacity: 1; |
|
|
opacity: 1; |
|
|
border-bottom: 2rpx solid $uni-secondary-color;; |
|
|
border-bottom: 2rpx solid $uni-secondary-color; |
|
|
|
|
|
; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.input-box .input-value { |
|
|
.input-box .input-value { |
|
|
flex: 1 auto; |
|
|
flex: 1 auto; |
|
|
margin-left: 10rpx; |
|
|
margin-left: 10rpx; |
|
|
@ -362,12 +388,14 @@ |
|
|
flex-wrap: wrap; |
|
|
flex-wrap: wrap; |
|
|
text-align: center; |
|
|
text-align: center; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.withdraw-account-list { |
|
|
.withdraw-account-list { |
|
|
width: 590rpx; |
|
|
width: 590rpx; |
|
|
padding: 40rpx; |
|
|
padding: 40rpx; |
|
|
background: $uni-bg-base-color; |
|
|
background: $uni-bg-base-color; |
|
|
border-radius: 10rpx; |
|
|
border-radius: 10rpx; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.tl-title-margin { |
|
|
.tl-title-margin { |
|
|
margin: 20rpx 0; |
|
|
margin: 20rpx 0; |
|
|
} |
|
|
} |
|
|
@ -382,10 +410,14 @@ |
|
|
|
|
|
|
|
|
.tl-text { |
|
|
.tl-text { |
|
|
width: 450rpx; |
|
|
width: 450rpx; |
|
|
display: -webkit-box; /*弹性伸缩盒子模型显示*/ |
|
|
display: -webkit-box; |
|
|
-webkit-box-orient: vertical; /*排列方式*/ |
|
|
/*弹性伸缩盒子模型显示*/ |
|
|
-webkit-line-clamp: 1; /*显示文本行数(这里控制多少行隐藏)*/ |
|
|
-webkit-box-orient: vertical; |
|
|
overflow: hidden; /*溢出隐藏*/ |
|
|
/*排列方式*/ |
|
|
|
|
|
-webkit-line-clamp: 1; |
|
|
|
|
|
/*显示文本行数(这里控制多少行隐藏)*/ |
|
|
|
|
|
overflow: hidden; |
|
|
|
|
|
/*溢出隐藏*/ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.withdrawBox { |
|
|
.withdrawBox { |
|
|
@ -421,5 +453,4 @@ |
|
|
.withdraw-btn { |
|
|
.withdraw-btn { |
|
|
color: $uni-btn-text-color; |
|
|
color: $uni-btn-text-color; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
</style> |
|
|
</style> |
|
|
|