|
@@ -1,19 +1,15 @@
|
|
|
<template>
|
|
<template>
|
|
|
<view class="content">
|
|
<view class="content">
|
|
|
- <uni-notice-bar single="true" text="实际到账70%,剩余30%转化为响亮积分"></uni-notice-bar>
|
|
|
|
|
|
|
+ <!-- <uni-notice-bar single="true" text="实际到账98%"></uni-notice-bar> -->
|
|
|
<view class="content-money">
|
|
<view class="content-money">
|
|
|
<view class="flex " style="width: 750rpx;justify-content: space-around;margin-left: 0;">
|
|
<view class="flex " style="width: 750rpx;justify-content: space-around;margin-left: 0;">
|
|
|
<view class="buttom">
|
|
<view class="buttom">
|
|
|
<view class="icon">{{ money | getMoneyStyle }}</view>
|
|
<view class="icon">{{ money | getMoneyStyle }}</view>
|
|
|
- <text class="text">可提现佣金</text>
|
|
|
|
|
|
|
+ <text class="text">可提现现金</text>
|
|
|
</view>
|
|
</view>
|
|
|
- <!-- <view class="interval"></view>
|
|
|
|
|
- <view class="buttom">
|
|
|
|
|
- <view class=" icon">{{ freeze | getMoneyStyle }}</view>
|
|
|
|
|
- <text class="text">待审核提现佣金</text>
|
|
|
|
|
- </view> -->
|
|
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+
|
|
|
<view class="row-box">
|
|
<view class="row-box">
|
|
|
<view class="title">提现金额</view>
|
|
<view class="title">提现金额</view>
|
|
|
<view class="row">
|
|
<view class="row">
|
|
@@ -22,6 +18,9 @@
|
|
|
<view class="buttom" @click="withdrawal = money">全部提现</view>
|
|
<view class="buttom" @click="withdrawal = money">全部提现</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ <view class="tip">
|
|
|
|
|
+ 实际到账 {{ real }}元
|
|
|
|
|
+ </view>
|
|
|
<!-- #ifndef MP-WEIXIN -->
|
|
<!-- #ifndef MP-WEIXIN -->
|
|
|
<view class="list" >
|
|
<view class="list" >
|
|
|
<radio-group @change="tabRadio">
|
|
<radio-group @change="tabRadio">
|
|
@@ -95,6 +94,7 @@
|
|
|
<script>
|
|
<script>
|
|
|
import { getMoneyStyle } from '@/utils/rocessor.js';
|
|
import { getMoneyStyle } from '@/utils/rocessor.js';
|
|
|
import { extractCash, extractBank, aliInfo, bankInfo } from '@/api/wallet.js';
|
|
import { extractCash, extractBank, aliInfo, bankInfo } from '@/api/wallet.js';
|
|
|
|
|
+import { mapState, mapMutations } from 'vuex';
|
|
|
import uniNoticeBar from '@/components/uni-notice-bar/uni-notice-bar.vue';
|
|
import uniNoticeBar from '@/components/uni-notice-bar/uni-notice-bar.vue';
|
|
|
export default {
|
|
export default {
|
|
|
filters: {
|
|
filters: {
|
|
@@ -103,6 +103,12 @@ export default {
|
|
|
components: {
|
|
components: {
|
|
|
uniNoticeBar
|
|
uniNoticeBar
|
|
|
},
|
|
},
|
|
|
|
|
+ computed: {
|
|
|
|
|
+ ...mapState('user', ['userInfo', 'orderInfo', 'hasLogin']),
|
|
|
|
|
+ real() {
|
|
|
|
|
+ return (this.withdrawal * 0.98).toFixed(2) * 1;
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
type: 'alipay', //提现方式
|
|
type: 'alipay', //提现方式
|
|
@@ -133,29 +139,12 @@ export default {
|
|
|
// this.loadBank();
|
|
// this.loadBank();
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
- // 更新数据
|
|
|
|
|
- // dataUp() {
|
|
|
|
|
- // this.loadAli();
|
|
|
|
|
- // this.loadBank();
|
|
|
|
|
- // },
|
|
|
|
|
- // //加载数据
|
|
|
|
|
- // async loadAli(source) {
|
|
|
|
|
- // aliInfo({}).then(e => {
|
|
|
|
|
- // this.aliData = e.data;
|
|
|
|
|
- // });
|
|
|
|
|
- // },
|
|
|
|
|
- // // 加载银行卡信息
|
|
|
|
|
- // async loadBank() {
|
|
|
|
|
- // bankInfo({}).then(e => {
|
|
|
|
|
- // this.bankData = e.data;
|
|
|
|
|
- // });
|
|
|
|
|
- // },
|
|
|
|
|
|
|
+ ...mapMutations('user', ['setUserInfo', 'setOrderInfo']),
|
|
|
// 加载余额信息
|
|
// 加载余额信息
|
|
|
async loadData() {
|
|
async loadData() {
|
|
|
|
|
+ this.money = this.userInfo.cash
|
|
|
extractBank({}).then(({ data }) => {
|
|
extractBank({}).then(({ data }) => {
|
|
|
- this.money = data.commissionCount;
|
|
|
|
|
this.minPrice = data.minPrice;
|
|
this.minPrice = data.minPrice;
|
|
|
- this.freeze = data.incommissionCount;
|
|
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
// 跳转
|
|
// 跳转
|
|
@@ -185,17 +174,6 @@ export default {
|
|
|
});
|
|
});
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- // if (this.type == 'alipay') {
|
|
|
|
|
- // console.log('alipay');
|
|
|
|
|
- // data.name = this.aliData.fullname;
|
|
|
|
|
- // data.alipay_code = this.aliData.alino;
|
|
|
|
|
- // }
|
|
|
|
|
- // if (this.type == 'bank') {
|
|
|
|
|
- // console.log(bank);
|
|
|
|
|
- // data.name = this.bankData.fullname;
|
|
|
|
|
- // data.bankname = this.bankData.bank;
|
|
|
|
|
- // data.cardnum = this.bankData.bankno;
|
|
|
|
|
- // }
|
|
|
|
|
if (this.type == 'alipay') {
|
|
if (this.type == 'alipay') {
|
|
|
console.log('alipay');
|
|
console.log('alipay');
|
|
|
data.name = this.alipay_name;
|
|
data.name = this.alipay_name;
|
|
@@ -380,4 +358,8 @@ page {
|
|
|
color: $font-color-light;
|
|
color: $font-color-light;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+.tip {
|
|
|
|
|
+ padding: 20rpx;
|
|
|
|
|
+ color: #FD3B39;
|
|
|
|
|
+}
|
|
|
</style>
|
|
</style>
|