|
|
@@ -1,16 +1,16 @@
|
|
|
<template>
|
|
|
<view class="content">
|
|
|
- <uni-notice-bar single="true" text="每月25号到月底可提现上月结算余额"></uni-notice-bar>
|
|
|
+ <!-- <uni-notice-bar single="true" text="每月25号到月底可提现上月结算余额"></uni-notice-bar> -->
|
|
|
<view class="content-money">
|
|
|
<view class="flex ">
|
|
|
<view class="buttom">
|
|
|
<view class="icon">{{ money | getMoneyStyle }}</view>
|
|
|
- <text class="text">可提现佣金</text>
|
|
|
+ <text class="text">可提现金额</text>
|
|
|
</view>
|
|
|
<view class="interval"></view>
|
|
|
<view class="buttom">
|
|
|
<view class=" icon">{{ freeze | getMoneyStyle }}</view>
|
|
|
- <text class="text">待审核提现佣金</text>
|
|
|
+ <text class="text">待审核提现金额</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -25,7 +25,7 @@
|
|
|
<!-- #ifndef MP-WEIXIN -->
|
|
|
<view class="list" v-if="!weichatBsrowser">
|
|
|
<radio-group @change="tabRadio">
|
|
|
- <label>
|
|
|
+ <!-- <label>
|
|
|
<view class="box">
|
|
|
<view class="icon iconfont iconweixin1"></view>
|
|
|
<view class="title-box">
|
|
|
@@ -33,17 +33,17 @@
|
|
|
</view>
|
|
|
<view class="right"><radio value="weixin" color="#5dbc7c" :checked="type == 'weixin'" /></view>
|
|
|
</view>
|
|
|
- </label>
|
|
|
+ </label> -->
|
|
|
<label>
|
|
|
<view class="box">
|
|
|
<view class="icon iconfont iconzhifubao"></view>
|
|
|
<view class="title-box">
|
|
|
<view class="title">
|
|
|
- <text v-if="aliData.fullname">提现至支付宝</text>
|
|
|
+ <text v-if="aliData.name">提现至支付宝</text>
|
|
|
<text v-else>请创建支付宝账号</text>
|
|
|
</view>
|
|
|
<view class="node">
|
|
|
- <text v-if="aliData.fullname">真实姓名({{ aliData.fullname }})</text>
|
|
|
+ <text v-if="aliData.name">真实姓名({{ aliData.name }})</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="right"><radio value="alipay" color="#5dbc7c" :checked="type == 'alipay'" /></view>
|
|
|
@@ -54,11 +54,11 @@
|
|
|
<view class="icon iconfont"><image class="icon-img" src="/static/icon/i8.png" mode="aspectFit"></image></view>
|
|
|
<view class="title-box">
|
|
|
<view class="title">
|
|
|
- <text v-if="bankData.bankno">{{ bankData.bank + ' ' + bankData.bankno }}</text>
|
|
|
+ <text v-if="bankData.payment">{{ bankData.bank + ' ' + bankData.payment }}</text>
|
|
|
<text v-else>请创建银行账号</text>
|
|
|
</view>
|
|
|
<view class="node">
|
|
|
- <text v-if="bankData.fullname">真实姓名({{ bankData.fullname }})</text>
|
|
|
+ <text v-if="bankData.name">真实姓名({{ bankData.name }})</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="right"><radio value="bank" color="#5dbc7c" :checked="type == 'bank'" /></view>
|
|
|
@@ -68,13 +68,13 @@
|
|
|
</view>
|
|
|
<!-- #endif -->
|
|
|
<button class="add-btn up" @click="confirm">提交申请</button>
|
|
|
- <button class="add-btn modified" v-if="!weichatBsrowser" @click="navTo('/pages/money/account')">账号管理</button>
|
|
|
+ <button class="add-btn modified" @click="navTo('/pages/collection/collection')">账号管理</button>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import { getMoneyStyle } from '@/utils/rocessor.js';
|
|
|
-import { extractCash, extractBank, aliInfo, bankInfo } from '@/api/wallet.js';
|
|
|
+import { extractCash, extractBank, pay_list } from '@/api/wallet.js';
|
|
|
import uniNoticeBar from '@/components/uni-notice-bar/uni-notice-bar.vue';
|
|
|
export default {
|
|
|
filters: {
|
|
|
@@ -85,7 +85,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- type: 'weixin', //提现方式
|
|
|
+ type: 'ali', //提现方式
|
|
|
money: '0.00', //可提现金额
|
|
|
freeze: '0.0', //冻结金额
|
|
|
withdrawal: '', //提现金额
|
|
|
@@ -104,33 +104,23 @@ export default {
|
|
|
//加载提现信息
|
|
|
this.loadData();
|
|
|
// 加载提款账号信息
|
|
|
- this.loadAli();
|
|
|
- this.loadBank();
|
|
|
+ this.loadinfo();
|
|
|
},
|
|
|
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;
|
|
|
+ async loadinfo(source) {
|
|
|
+ pay_list().then(({ data }) => {
|
|
|
+ this.aliData = data.zfb;
|
|
|
+ this.bankData = data.bank;
|
|
|
+ console.log(data);
|
|
|
});
|
|
|
},
|
|
|
// 加载余额信息
|
|
|
async loadData() {
|
|
|
extractBank({}).then(({ data }) => {
|
|
|
- this.money = data.commissionCount;
|
|
|
- this.minPrice = data.minPrice;
|
|
|
- this.freeze = data.incommissionCount;
|
|
|
+ this.money = data.moneyCount; //可提现余额
|
|
|
+ this.minPrice = data.minPrice; //最小提现
|
|
|
+ this.freeze = data.inmoneyCount; //提现中的余额
|
|
|
});
|
|
|
},
|
|
|
// 跳转
|
|
|
@@ -148,18 +138,8 @@ export default {
|
|
|
let data = {
|
|
|
extract_type: this.type, //bank -银行卡 alipay-支付宝 weixin-微信
|
|
|
money: this.withdrawal, //金额
|
|
|
- money_type: 0 //0佣金1余额
|
|
|
+ money_type: 1 //0佣金1余额
|
|
|
};
|
|
|
-
|
|
|
- if (this.withdrawal < this.minPrice) {
|
|
|
- uni.showToast({
|
|
|
- title: '提现金额不可少于'+this.minPrice,
|
|
|
- duration: 2000,
|
|
|
- mask: false,
|
|
|
- icon: 'none',
|
|
|
- })
|
|
|
- return;
|
|
|
- }
|
|
|
if (this.type == 'alipay') {
|
|
|
data.name = this.aliData.fullname;
|
|
|
data.alipay_code = this.aliData.alino;
|
|
|
@@ -201,6 +181,7 @@ page {
|
|
|
border-radius: $border-radius-sm;
|
|
|
.buttom {
|
|
|
font-size: $font-lg;
|
|
|
+ color: $font-color-dark;
|
|
|
width: 50%;
|
|
|
}
|
|
|
.interval {
|
|
|
@@ -251,18 +232,18 @@ page {
|
|
|
}
|
|
|
|
|
|
.buttom {
|
|
|
- color: $font-color-spec;
|
|
|
+ color: #dc262b;
|
|
|
font-size: $font-base;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
.add-btn {
|
|
|
&.modified {
|
|
|
- color: $base-color;
|
|
|
+ color: #303030;
|
|
|
}
|
|
|
&.up {
|
|
|
- background-color: $base-color;
|
|
|
- color: #fff;
|
|
|
+ background: #303030;
|
|
|
+ color: #F8DABA;
|
|
|
}
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
@@ -273,7 +254,6 @@ page {
|
|
|
margin-top: 30rpx;
|
|
|
font-size: $font-lg;
|
|
|
border-radius: 10rpx;
|
|
|
- // box-shadow: 1px 2px 5px rgba(219, 63, 96, 0.4);
|
|
|
}
|
|
|
|
|
|
.list {
|