shop-applet/pages/withdrawal/progress.vue

232 lines
5.7 KiB
Vue
Raw Normal View History

2024-03-29 17:09:20 +08:00
<!-- 银行卡审核进度 -->
<template>
<view class="shop_type">
<view class="shop_type-head">
<view style="height: var(--status-bar-height);"></view>
<view class="shop-type-navbar">
<u-icon name="arrow-left" size="18" color="#fff" @click="handleBack" />
2024-03-30 11:05:34 +08:00
<text class="shop-type-navbar-title">审核</text>
2024-03-29 17:09:20 +08:00
<text></text>
</view>
</view>
2024-03-30 11:05:34 +08:00
<view class="wrap" v-if="bankList.length > 0">
<!-- 进度详情 -->
<view class="shop-type-con-progress" v-for="(item,indx) in bankList" :key="indx">
<view class="shop-type-con-detail">{{item.is_own === 0?'法人账户':'对公账户'}}进度详情</view>
<view class="shop-type-con-progress-card">
<view class="shop-type-con-progress-left">
<view class="shop-type-con-progress-left-item">
2024-04-07 17:16:49 +08:00
<u-icon name="checkmark-circle-fill" size="18" color="#40AE36"></u-icon>
2024-03-29 17:09:20 +08:00
</view>
2024-03-30 11:05:34 +08:00
<view class="dot"></view>
<view class="dot"></view>
2024-04-01 11:36:40 +08:00
<!-- #ifndef H5 -->
2024-03-30 11:05:34 +08:00
<view class="dot"></view>
2024-04-01 11:36:40 +08:00
<!-- #endif -->
2024-03-30 11:05:34 +08:00
<view class="dot"></view>
<view class="dot"></view>
<view class="shop-type-con-progress-left-item">
<u-icon name="checkmark-circle-fill" size="18" color="#999" v-if="item.is_check == 0" />
<u-icon name="checkmark-circle-fill" size="18" color="#40AE36" v-if="item.is_check == 1" />
2024-04-07 17:16:49 +08:00
<u-icon name="close-circle-fill" size="18" color="#F55726" v-if="item.is_check == 2" />
2024-03-29 17:09:20 +08:00
</view>
</view>
2024-03-30 11:05:34 +08:00
<view class="shop-type-con-progress-right">
2024-04-01 11:36:40 +08:00
<view class="apply">
2024-03-30 11:05:34 +08:00
<view class="shop-type-con-progress-right-name">申请已提交</view>
<view class="shop-type-con-progress-right-time">{{item.create_time}}</view>
2024-03-29 17:09:20 +08:00
</view>
2024-03-30 11:05:34 +08:00
<view
style="display: flex;justify-content: space-between;align-items: center;margin-bottom:10rpx;">
<view class="shop-type-con-progress-right-name">
{{item.is_check == 0?'待审核人员审核':item.is_check==1?'审核通过':'审核未通过'}}
</view>
<view class="shop-type-con-progress-right-time"
v-if="item.is_check == 1 || item.is_check == 2">
{{item.update_time}}
</view>
</view>
<view class="audit-info" v-if="item.is_check != 0">
<view style="margin-bottom: 10rpx;">
审批人{{item.adminInfo.real_name?item.adminInfo.real_name:item.adminInfo.account?item.adminInfo.account:''}}
</view>
<view class="audit-info-txt" v-if="item.is_check == 2">审核不通过{{item.fail_msg}}</view>
<view style="text-align: right;color:#46B03A;font-weight: bold;" v-if="item.is_check == 2"
2024-04-10 17:05:24 +08:00
@click="handleToUpdate(item)">
2024-03-30 11:05:34 +08:00
去修改
</view>
2024-03-29 17:09:20 +08:00
</view>
</view>
</view>
</view>
</view>
2024-03-30 11:05:34 +08:00
<u-empty v-else mode="data" text="暂无审批信息~" icon="http://cdn.uviewui.com/uview/empty/data.png">
</u-empty>
2024-03-29 17:09:20 +08:00
</view>
</template>
<script>
import {
progressBankList
} from "@/api/user.js";
export default {
data() {
return {
form: {
status: 2,
check_name: '',
fail_msg: '',
create_time: ''
},
mer_id: '',
data0: undefined, //法人账户
data1: undefined, //对共账户
bankList: []
}
},
onLoad(opt) {
this.mer_id = opt.mer_id;
progressBankList(this.mer_id).then(res => {
this.bankList = res.data.list;
2024-03-30 11:05:34 +08:00
});
2024-03-29 17:09:20 +08:00
},
methods: {
2024-03-30 11:05:34 +08:00
// 修改
2024-04-10 17:05:24 +08:00
handleToUpdate(item) {
//如果绑定银行卡用户为个体户 则不能添加对公账户,只能添加法人账户 is_company =0 个体户
const isCompany = JSON.parse(this.$Cache.get("USER_INFO")).mer_info.is_company;
if (isCompany != 1 && item.is_own === 0) return;
let strUrl = "?mer_id=" + this.mer_id;
strUrl += "&id=" + item.id
2024-03-30 11:05:34 +08:00
uni.redirectTo({
2024-04-10 17:05:24 +08:00
url: "/pages/withdrawal/add" + strUrl
2024-03-30 11:05:34 +08:00
})
},
2024-03-29 17:09:20 +08:00
handleBack() {
uni.navigateBack()
}
}
}
</script>
<style lang="scss">
page {
background-color: #F8F9FA;
}
.shop_type {
padding-bottom: 184rpx;
.shop_type-head {
background-color: #40AE36;
margin-bottom: 30rpx;
.shop-type-navbar {
display: flex;
align-items: center;
justify-content: space-between;
padding: 30rpx;
height: 88rpx;
.shop-type-navbar-title {
font-size: 32rpx;
color: #FFFFFF;
}
}
}
}
.shop-type-con-progress {
margin: 0 30rpx 30rpx;
.shop-type-con-detail {
margin-bottom: 20rpx;
margin-left: 20rpx;
font-weight: 600;
font-size: 30rpx;
color: #333333;
}
.shop-type-con-progress-card {
display: flex;
width: 100%;
padding: 30rpx;
background: #FFFFFF;
box-shadow: 0rpx 4rpx 6rpx 2rpx rgba(0, 0, 0, 0.16);
border-radius: 20rpx 20rpx 20rpx 20rpx;
.shop-type-con-progress-left {
width: 12%;
display: flex;
flex-direction: column;
align-items: center;
.dot {
2024-04-01 11:36:40 +08:00
width: 6rpx;
height: 6rpx;
2024-03-29 17:09:20 +08:00
border-radius: 50%;
background-color: #ccc;
margin-bottom: 4rpx;
}
.shop-type-con-progress-left-item {
width: 36rpx;
height: 36rpx;
border-radius: 50%;
}
}
.shop-type-con-progress-right {
flex: 1;
margin-bottom: 40rpx;
&:nth-last-child(1) {
margin-bottom: 0;
}
2024-04-01 11:36:40 +08:00
// #ifndef H5
.apply {
display: flex;
margin-bottom: 38rpx;
justify-content: space-between;
align-items: center;
}
// #endif
// #ifdef H5
.apply {
display: flex;
margin-bottom: 36rpx;
justify-content: space-between;
align-items: center;
}
// #endif
2024-03-29 17:09:20 +08:00
.shop-type-con-progress-right-name {
font-weight: 400;
font-size: 28rpx;
color: #333333;
}
.shop-type-con-progress-right-time {
font-size: 26rpx;
color: #666666;
}
}
.audit-info {
font-size: 22rpx;
color: #666666;
}
}
}
</style>