You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

392 lines
8.6 KiB

<template>
<!-- 提现申请 -->
<view class="cashApplication">
<far-bottom></far-bottom>
<!-- 提现信息 -->
<view class="cashInfoTitle">
<view class="cashInfoTitlePackage">
<view>
<image :src="imgfixUrls+ 'merchant/qd.png'" />
<span>待提现金额</span>
</view>
<view>
<span>
¥
<span>{{ creditCashPage.nowmoney }}</span>
</span>
</view>
<view>
<span>
已提现
<span>
¥
<span>{{ creditCashPage.alcredit }}</span>
</span>
</span>
<view @click="goCash"><span>提现</span></view>
</view>
</view>
</view>
<!-- 提现信息 -->
<!-- 导航栏 -->
<view class="nav">
<view @click="checkStatus(0)">
<view :class="status == 0 ? 'check' : ''"><span>全部</span></view>
</view>
<view @click="checkStatus(1)">
<view :class="status == 1 ? 'check' : ''"><span>处理中</span></view>
</view>
<view @click="checkStatus(2)">
<view :class="status == 2 ? 'check' : ''"><span>已完成</span></view>
</view>
<view @click="checkStatus(3)">
<view :class="status == 3 ? 'check' : ''"><span>驳回</span></view>
</view>
</view>
<!-- 导航栏 -->
<!-- 提现列表 -->
<scroll-view :style="{ height: scrollHeight }">
<!-- 列表循环模板 -->
<view class="txMb" v-for="(item, index) in list" v-if="type.indexOf(item.status) !== -1 || status == 0">
<view class="txMbPackage">
<view class="txMbLeft">
<view class="txMbImg">
<image :src="imgfixUrls+ 'merchant/payPal.svg'" v-if="item.payment_type == 1" />
<image :src="imgfixUrls+ 'merchant/wechatPay.svg'" v-if="item.payment_type == 2" />
</view>
<view class="txMbInfoTips">
<view v-if="item.payment_type == 1"><span>提现到{{examineing==0?'支付宝':'渠道1'}}</span></view>
<view v-if="item.payment_type == 2"><span>提现到微信</span></view>
<view v-if="item.payment_type == 3"><span>提现到{{examineing==0?'银行卡':'渠道2'}}</span></view>
<view>
<span>服务费:¥{{ item.sapplymoney }}</span>
</view>
<view>
<span>{{ item.applytime }}</span>
</view>
</view>
</view>
<view class="txMbRight">
<view class="txMbInfoNr">
<view>
<span>¥{{ item.sapplymoney }}</span>
</view>
<view><span>预计到账</span></view>
<view v-if="item.status == 5"><span style="color:#DEA85F">提现成功</span></view>
<view v-if="item.status == 1 || item.status == 2 || item.status == 3"><span style="color:#00C800">审核中...</span></view>
<view v-if="item.status == -1 || item.status == -2"><span style="color:#FE504F">提现失败</span></view>
</view>
</view>
</view>
<view class="line"></view>
</view>
<!-- 列表循环模板 -->
</scroll-view>
<!-- 提现列表 -->
</view>
</template>
<script>
import App from '@/common/js/app.js';
import util from '@/common/js/util.js';
// #ifdef H5
import wxApi from '@/common/js/wxApi.js';
// #endif
export default {
data() {
return {
type: [],
scrollHeight: null,
status: 0,
page: 1,
list: [],
pagetotal: null,
creditCashPage: {},
img:'',
examineing:1
};
},
mounted() {
let _this = this;
_this.img = _this.imgfixUrl;
uni.getSystemInfo({
success(res) {
_this.phoneHight = res.windowHeight;
}
});
uni.createSelectorQuery()
.select('.cashInfoTitle')
.boundingClientRect(data => {
_this.scrollHeight = _this.phoneHight - 15 - data.height;
})
.exec();
uni.createSelectorQuery()
.select('.nav')
.boundingClientRect(data => {
_this.scrollHeight = _this.scrollHeight - data.height + 'px';
console.info(_this.scrollHeight);
})
.exec();
},
onLoad: function() {
this.init();
let TextSubstitution = uni.getStorageSync('TextSubstitution');
this.examineing = TextSubstitution.examineing || 0;
},
methods: {
init() {
let _this = this;
_this.creditCashRecord();
_this.creditCashPageInfo();
},
// 余额提现页面
creditCashPageInfo() {
let _this = this;
let data = {};
App._post_form('&p=member&do=creditCashPage', data, res => {
_this.creditCashPage = res.data;
});
},
// 余额提现记录
creditCashRecord() {
let _this = this;
let data = {
page: _this.page,
status: _this.status
};
App._post_form('&p=member&do=creditCashRecord', data, res => {
for (let i = 0; i < res.data.list.length; i++) {
res.data.list[i].applytime = util.formatTime(res.data.list[i].applytime, 'info', '-');
res.data.list[i].status = Number(res.data.list[i].status);
}
_this.list = res.data.list;
_this.pagetotal = res.data.pagetotal;
});
},
// 跳转提现
goCash() {
App.navigationTo({
url: 'pages/subPages/balance/cash/cash'
});
},
checkStatus(status) {
let _this = this;
_this.type = [];
_this.status = status;
if (status == 0) {
_this.type.push(0);
}
if (status == 1) {
_this.type.push(1);
_this.type.push(2);
_this.type.push(3);
}
if (status == 2) {
_this.type.push(5);
}
if (status == 3) {
_this.type.push(-1);
_this.type.push(-2);
}
console.info(_this.type);
}
}
};
</script>
<style lang="scss" scoped>
.line{
margin: auto;
width:688upx;
height:2upx;
background:rgba(238,238,238,1);
}
.txMbLeft{
>view{
display: inline-block;
vertical-align: top;
}
}
.cashApplication {
font-size: 0;
border: 1upx solid rgba(0, 0, 0, 0);
overflow-x:hidden;
}
page {
background: #ffffff;
}
.cashInfoTitle {
margin: 20upx auto 0 auto;
width: 688upx;
background: linear-gradient(119deg, rgba(255, 68, 68, 1) 0%, rgba(253, 113, 55, 1) 100%);
box-shadow: 0px 12upx 19upx 5upx rgba(196, 23, 45, 0.35);
border-radius: 20upx 20upx 0px 0px;
}
.cashInfoTitlePackage {
padding: 30upx;
> view:nth-child(1) {
> image {
vertical-align: middle;
width: 30upx;
height: 33upx;
}
> span {
margin-left: 10upx;
vertical-align: middle;
font-size: 24upx;
color: rgba(255, 255, 255, 1);
}
}
> view:nth-child(2) {
margin: 10upx 0 0 0;
> span {
font-size: 24upx;
font-weight: 800;
color: rgba(255, 255, 255, 1);
> span {
font-size: 48upx;
}
}
}
> view:nth-child(3) {
display: flex;
justify-content: space-between;
margin: 50upx 0 0 0;
> span {
line-height: 64upx;
font-size: 24upx;
color: rgba(255, 255, 255, 1);
> span {
font-size: 24upx;
font-weight: bold;
color: rgba(255, 255, 255, 1);
> span {
font-size: 32upx;
}
}
}
> view {
display: inline-block;
width: 140upx;
height: 64upx;
border: 1upx solid rgba(255, 255, 255, 1);
border-radius: 32upx;
text-align: center;
> span {
line-height: 64upx;
font-size: 28upx;
font-weight: bold;
color: rgba(255, 255, 255, 1);
}
}
}
}
.nav {
width: 750upx;
height: 75upx;
background: #ffffff;
display: flex;
justify-content: space-between;
overflow: hidden;
> view {
display: inline-block;
width: 25%;
> view {
margin: auto;
width: 85upx;
height: 69upx;
text-align: center;
border-bottom:6upx solid rgba(0,0,0,0);
> span {
line-height: 75upx;
font-size: 28upx;
color: rgba(51, 51, 51, 1);
}
}
}
}
.check{
border-bottom:6upx solid #FF4444 !important;
>span{
color:rgba(255,68,68,1) !important;
}
}
.txMb{
}
.txMbPackage{
padding: 30upx;
display:flex;
justify-content:space-between;
>view{
display: inline-block;
vertical-align: top;
}
}
.txMbImg{
width:50upx;
height:40upx;
>image{
width:50upx;
}
}
.txMbInfoTips{
margin-left:30upx;
>view:nth-child(1){
>span{
font-size:28upx;
color:rgba(51,51,51,1);
}
}
>view:nth-child(2){
margin:10upx 0 0 0;
>span{
font-size:24upx;
color:rgba(153,153,153,1);
}
}
>view:nth-child(3){
margin:10upx 0 0 0;
>span{
font-size:24upx;
color:rgba(153,153,153,1);
}
}
}
.txMbInfoNr{
text-align:right;
>view:nth-child(1){
>span{
font-size:28upx;
color:rgba(51,51,51,1);
}
}
>view:nth-child(2){
margin:10upx 0 0 0;
>span{
font-size:24upx;
color:rgba(153,153,153,1);
}
}
>view:nth-child(3){
margin:10upx 0 0 0;
>span{
font-size:24upx;
}
}
} </style>