源文件
This commit is contained in:
@@ -0,0 +1,195 @@
|
||||
<template>
|
||||
<JPopup ref="popup">
|
||||
<JMainCard pd="0" wrapPd="30rpx">
|
||||
<ScreenTitle bgColor="#7737FE" :list="timeList" bdR="20rpx 20rpx 0 0" :index="timeIndex.i" @search="search" />
|
||||
<view class="screen-wrapper">
|
||||
<view class="src-main bgF">
|
||||
<view class="title">提现状态</view>
|
||||
<view class="order-wrapper">
|
||||
<block v-for="(v, i) in stateList" :key="i">
|
||||
<view
|
||||
class="order-item"
|
||||
:class="{ 'selected-state': stateIndex.includes(i), 'selected-none': !v }"
|
||||
@tap="stateChange(i)"
|
||||
>{{ v }}</view
|
||||
>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</JMainCard>
|
||||
<view class="scr-footer">
|
||||
<view @tap="reset">重置</view>
|
||||
<view class="confirm" @tap="confirm">确认筛选</view>
|
||||
</view>
|
||||
</JPopup>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { onMounted, reactive, ref } from "vue"
|
||||
import JPopup from "@/components/newComponents/JPopup/JPopup"
|
||||
import ScreenTitle from "@/components/newComponents/ScreenTitle/ScreenTitle"
|
||||
import JMainCard from "@/components/newComponents/JMainCard/JMainCard"
|
||||
|
||||
const emits = defineEmits(["confirm"])
|
||||
const timeList = reactive([
|
||||
{ value: "", text: "全部" },
|
||||
{ value: "today", text: "今天" },
|
||||
{ value: "yesterday", text: "昨天" },
|
||||
{ value: "near2now_7", text: "近七天" },
|
||||
{ value: "near2now_30", text: "近30天" },
|
||||
{ value: "customer", text: "自定义" },
|
||||
])
|
||||
|
||||
const stateList = reactive(["审核中", "审核失败", "结算中", "结算成功", "结算失败", ""])
|
||||
// 获取组件身上的方法
|
||||
const popup = ref(null)
|
||||
const stateIndex = ref([])
|
||||
const timeIndex = ref({ val: { text: "全部", value: "" }, i: 0 })
|
||||
const open = () => {
|
||||
stateIndex.value = stateIndex.value.length == 0 ? [0, 1, 2, 3, 4] : stateIndex.value
|
||||
popup.value.open()
|
||||
}
|
||||
const search = (val) => {
|
||||
console.log("val", val)
|
||||
if (val.val.text == "自定义" && val.val.time) {
|
||||
val.val.value = val.val.time
|
||||
}
|
||||
timeIndex.value = val
|
||||
}
|
||||
const stateChange = (i) => {
|
||||
if (i == 5) return
|
||||
if (stateIndex.value.includes(i)) {
|
||||
if (stateIndex.value.length == 1) return uni.showToast({ title: "最少保留一个筛选条件", icon: "none" })
|
||||
stateIndex.value.splice(
|
||||
stateIndex.value.findIndex((v) => v == i),
|
||||
1
|
||||
)
|
||||
} else {
|
||||
stateIndex.value.push(i)
|
||||
}
|
||||
}
|
||||
const confirm = () => {
|
||||
const stateType = stateIndex.value.map((v) => (v = v + 1)).join(",")
|
||||
emits("confirm", { time: timeIndex.value.val.value, stateType })
|
||||
popup.value.close()
|
||||
}
|
||||
const reset = () => {
|
||||
timeIndex.value = { val: { text: "全部", value: "" }, i: 0 }
|
||||
stateIndex.value = [0, 1, 2, 3, 4]
|
||||
}
|
||||
defineExpose({ open })
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.screen-wrapper {
|
||||
min-height: 500rpx;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
.selected {
|
||||
padding: 20rpx;
|
||||
border-radius: 7rpx;
|
||||
color: $primaryColor;
|
||||
background-color: #fff;
|
||||
}
|
||||
.src-main {
|
||||
padding: 30rpx;
|
||||
.select-wrapper {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 30rpx;
|
||||
.select-mch {
|
||||
margin: 20rpx;
|
||||
image {
|
||||
vertical-align: bottom;
|
||||
}
|
||||
}
|
||||
.mch-info {
|
||||
display: flex;
|
||||
image {
|
||||
width: 93rpx;
|
||||
height: 93rpx;
|
||||
margin-right: 10rpx;
|
||||
}
|
||||
view {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
font-size: 33rpx;
|
||||
font-weight: 700;
|
||||
text {
|
||||
margin-top: 15rpx;
|
||||
color: #8c8c8c;
|
||||
font-size: 25rpx;
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
}
|
||||
image {
|
||||
width: 40rpx;
|
||||
height: 40rpx;
|
||||
}
|
||||
.img-wrapper {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
overflow: hidden;
|
||||
width: 93rpx;
|
||||
height: 93rpx;
|
||||
margin-right: 20rpx;
|
||||
image {
|
||||
width: 60rpx;
|
||||
height: 66rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
.select-agent {
|
||||
margin-top: 30rpx;
|
||||
}
|
||||
.title {
|
||||
margin: 35rpx 0 20rpx 0;
|
||||
font-size: 30rpx;
|
||||
font-weight: 700;
|
||||
}
|
||||
.order-wrapper {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
flex-wrap: wrap;
|
||||
view {
|
||||
flex: 0 0 32%;
|
||||
padding: 20rpx 0;
|
||||
margin-bottom: 15rpx;
|
||||
box-sizing: border-box;
|
||||
background-color: #f2f2f2;
|
||||
border-radius: 10rpx;
|
||||
text-align: center;
|
||||
font-size: 28rpx;
|
||||
color: #666;
|
||||
}
|
||||
.selected-state {
|
||||
border: 2rpx solid $primaryColor;
|
||||
color: $primaryColor;
|
||||
}
|
||||
.selected-none {
|
||||
background-color: transparent;
|
||||
}
|
||||
}
|
||||
}
|
||||
.scr-footer {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 0 30rpx 75rpx 30rpx;
|
||||
font-size: 33rpx;
|
||||
view {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
padding: 31rpx;
|
||||
background-color: rgba(255, 255, 255, 0.8);
|
||||
border-radius: 20rpx;
|
||||
}
|
||||
.confirm {
|
||||
margin-left: 20rpx;
|
||||
color: $primaryColor;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,61 @@
|
||||
<template>
|
||||
<view class="card-wrapper" @tap="emits('toDetails', rid)">
|
||||
<view class="c-left">
|
||||
<view class="c-price"><text>¥</text>{{ (applyAmount / 100).toFixed(2) }}</view>
|
||||
<view class="c-time">{{ createdAt.split("-").join("/") }}</view>
|
||||
</view>
|
||||
<view class="c-right"><image :src="stateList[state]?.img" mode="scaleToFill" /> {{ stateList[state]?.text }}</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { reactive, ref } from "vue"
|
||||
const props = defineProps({
|
||||
state: { type: Number }, //提现状态
|
||||
createdAt: { type: String }, //创建时间
|
||||
applyAmount: { type: Number }, //申请金额
|
||||
rid: { type: String }, //申请金额
|
||||
})
|
||||
const emits = defineEmits(["toDetails"])
|
||||
const stateList = reactive([
|
||||
{}, //站位 状态码 1 - 5
|
||||
{ text: "审核中", img: "/static/iconImg/icon-apply-examine.svg" },
|
||||
{ text: "审核失败", img: "/static/iconImg/icon-apply-error.svg" },
|
||||
{ text: "结算中", img: "/static/iconImg/icon-apply-examine.svg" },
|
||||
{ text: "提现成功", img: "/static/iconImg/icon-success-wh.svg" },
|
||||
{ text: "结算失败", img: "/static/iconImg/icon-apply-error.svg" },
|
||||
])
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.card-wrapper {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 30rpx;
|
||||
background-color: #fff;
|
||||
.c-left {
|
||||
.c-price {
|
||||
font-size: 33rpx;
|
||||
font-weight: 900;
|
||||
text {
|
||||
font-size: 23rpx;
|
||||
}
|
||||
}
|
||||
.c-time {
|
||||
margin-top: 15rpx;
|
||||
font-size: 25rpx;
|
||||
color: #8c8c8c;
|
||||
}
|
||||
}
|
||||
.c-right {
|
||||
color: #666666;
|
||||
font-size: 30rpx;
|
||||
image {
|
||||
width: 40rpx;
|
||||
height: 40rpx;
|
||||
margin-right: 10rpx;
|
||||
vertical-align: top;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,249 @@
|
||||
<template>
|
||||
<view class="page-wrapper">
|
||||
<JHeaderTitle title="提现记录详情" :bgColor="headerBgColor" color="#fff" imgUrl="/static/iconImg/left-white.svg" />
|
||||
<image src="/static/iconImg/wh-bg-img.svg" class="bg-image" mode="scaleToFill" />
|
||||
<view class="expand-header">
|
||||
<image src="/static/iconImg/icon-wh.svg" mode="scaleToFill" />
|
||||
<view class="expand-title">¥{{ (withInfo.applyAmount / 100).toFixed(2) }}</view>
|
||||
<view class="expand-phone">{{ withInfo.createdAt?.split("-").join("/") }}</view>
|
||||
<view class="expand-edit bgF bdR10" v-if="withInfo.state == 2 || withInfo.state == 5" @tap="toTake">
|
||||
<image src="/static/iconImg/icon-wh-file.svg" mode="scaleToFill" />
|
||||
重新提交
|
||||
</view>
|
||||
</view>
|
||||
<JMainCard pd="0" bgColor="rgba(0,0,0,0.1)">
|
||||
<view class="with-error" v-if="withInfo.state == 2 || withInfo.state == 5"
|
||||
>失败原因:{{ withInfo.auditRemark }}</view
|
||||
>
|
||||
<JInput name="提现状态" textColor="rgba(255,255,255,0.6)" pd="40rpx" :isBorder="true">
|
||||
<view
|
||||
class="with-state"
|
||||
:class="{
|
||||
'with-state-error': withInfo.state == 2 || withInfo.state == 5,
|
||||
'with-state-success': withInfo.state == 4,
|
||||
'with-state-wait': withInfo.state == 1 || withInfo.state == 3,
|
||||
}"
|
||||
><image :src="stateList[withInfo.state]?.img" mode="scaleToFill" />
|
||||
{{ stateList[withInfo.state]?.text }}</view
|
||||
></JInput
|
||||
>
|
||||
<JInput name="提现单号" pd="0 40rpx" textColor="rgba(255,255,255,0.6)" :isBorder="true">
|
||||
<text class="right-color">{{ withInfo.rid }}</text></JInput
|
||||
>
|
||||
<JInput name="联系人姓名" pd="40rpx" textColor="rgba(255,255,255,0.6)" :isBorder="true">
|
||||
<text class="right-color">{{ withInfo.settAccountName }}</text></JInput
|
||||
>
|
||||
<JInput name="联系人手机号" pd="0 40rpx" textColor="rgba(255,255,255,0.6)" :isBorder="true">
|
||||
<text class="right-color">{{ withInfo.settAccountTelphone }}</text></JInput
|
||||
>
|
||||
<JInput name="提现账户" pd="40rpx" textColor="rgba(255,255,255,0.6)" :isBorder="true">
|
||||
<text class="right-color">{{ withInfo.settAccountNo }}</text></JInput
|
||||
>
|
||||
<JInput name="提现账户类型" pd="0 40rpx" textColor="rgba(255,255,255,0.6)" :isBorder="true">
|
||||
<text class="right-color">{{ settAccountType[withInfo.settAccountType] }}</text></JInput
|
||||
>
|
||||
<JInput name="提现时间" pd="40rpx" textColor="rgba(255,255,255,0.6)" :isBorder="true">
|
||||
<text class="right-color">{{ withInfo.createdAt?.split("-").join("/") }}</text></JInput
|
||||
>
|
||||
</JMainCard>
|
||||
<JMainCard pd="0" bgColor="rgba(0,0,0,0.1)" wrapPd="0 50rpx">
|
||||
<JInput name="提现金额" pd="40rpx" textColor="rgba(255,255,255,0.6)" :isBorder="true">
|
||||
<text class="right-color">{{ (withInfo.applyAmount / 100).toFixed(2) }}</text></JInput
|
||||
>
|
||||
<JInput name="到账金额" pd="0 40rpx" textColor="rgba(255,255,255,0.6)" :isBorder="true">
|
||||
<text class="right-color">{{ (withInfo.settAmount / 100).toFixed(2) }}</text></JInput
|
||||
>
|
||||
<JInput name="手续费" pd="40rpx" textColor="rgba(255,255,255,0.6)" :isBorder="true">
|
||||
<text class="right-color">{{ (withInfo.settFeeAmount / 100).toFixed(2) }}</text></JInput
|
||||
>
|
||||
</JMainCard>
|
||||
<JMainCard pd="0" bgColor="rgba(0,0,0,0.1)">
|
||||
<JInput name="备注" pd="40rpx" textColor="rgba(255,255,255,0.6)" :isBorder="true">
|
||||
<text class="right-color">{{ withInfo.applyRemark }}</text></JInput
|
||||
>
|
||||
<JUpLoad
|
||||
name="申请资料"
|
||||
pd="0 40rpx 40rpx"
|
||||
pdLeft="0"
|
||||
:imgUrl="withInfo.settCertImg || imgUrl"
|
||||
borderNone
|
||||
textColor="rgba(255,255,255,0.6)"
|
||||
/>
|
||||
<JUpLoad v-if="withInfo.state == 4"
|
||||
name="打款凭证"
|
||||
pd="0 40rpx 40rpx"
|
||||
pdLeft="0"
|
||||
:imgUrl="withInfo.transferCertImg || imgUrl"
|
||||
borderNone
|
||||
textColor="rgba(255,255,255,0.6)"
|
||||
/>
|
||||
</JMainCard>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref, reactive } from "vue"
|
||||
import { onLoad, onShow, onPageScroll } from "@dcloudio/uni-app"
|
||||
import { $getCashoutDetail } from "@/http/apiManager.js"
|
||||
import JHeaderTitle from "@/components/newComponents/JHeaderTitle/JHeaderTitle"
|
||||
import JMainCard from "@/components/newComponents/JMainCard/JMainCard"
|
||||
import JInput from "@/components/newComponents/JInput/JInput"
|
||||
import JButton from "@/components/newComponents/JButton/JButton"
|
||||
import JUpLoad from "@/components/newComponents/JUpLoad/JUpLoad"
|
||||
onLoad((option) => {
|
||||
params.value.rid = option.rid
|
||||
getWithInfo()
|
||||
})
|
||||
const stateList = reactive([
|
||||
{}, //站位 状态码 1 - 5
|
||||
{ text: "审核中", img: "/static/iconImg/icon-apply-examine.svg" },
|
||||
{ text: "审核失败", img: "/static/iconImg/icon-apply-error.svg" },
|
||||
{ text: "结算中", img: "/static/iconImg/icon-apply-examine.svg" },
|
||||
{ text: "提现成功", img: "/static/iconImg/icon-success-wh.svg" },
|
||||
{ text: "结算失败", img: "/static/iconImg/icon-apply-error.svg" },
|
||||
])
|
||||
const settAccountType = reactive({
|
||||
BANK_PRIVATE: "对私账户",
|
||||
BANK_PUBLIC: "对公账户",
|
||||
WX_CASH: "个人微信",
|
||||
ALIPAY_CASH: "个人支付宝",
|
||||
})
|
||||
const imgUrl = ref("/static/iconImg/defaultImg.svg")
|
||||
const withInfo = ref({})
|
||||
const params = ref({
|
||||
rid: "",
|
||||
})
|
||||
const getWithInfo = () => {
|
||||
$getCashoutDetail(params.value.rid).then(({ bizData }) => {
|
||||
withInfo.value = bizData
|
||||
})
|
||||
}
|
||||
const headerBgColor = ref("transparent")
|
||||
const toTake = () => {
|
||||
uni.navigateTo({
|
||||
url: "/pageAccount/takeMoney/takeMoney?rid=" + params.value.rid,
|
||||
})
|
||||
}
|
||||
onPageScroll((data) => {
|
||||
if (data.scrollTop > 20) {
|
||||
headerBgColor.value = "$primaryColor"
|
||||
} else {
|
||||
headerBgColor.value = "transparent"
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.page-wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
min-height: 100%;
|
||||
background-color: $primaryColor;
|
||||
text {
|
||||
color: #fff;
|
||||
}
|
||||
.bg-image {
|
||||
position: absolute;
|
||||
top: -40rpx;
|
||||
left: 73rpx;
|
||||
width: 650rpx;
|
||||
height: 650rpx;
|
||||
}
|
||||
.expand-header {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
margin-top: 50rpx;
|
||||
image {
|
||||
width: 93rpx;
|
||||
height: 93rpx;
|
||||
}
|
||||
.expand-title {
|
||||
margin-top: 20rpx;
|
||||
font-size: 33rpx;
|
||||
font-weight: 700;
|
||||
color: #fff;
|
||||
}
|
||||
.expand-phone {
|
||||
margin: 30rpx 0;
|
||||
color: rgba(255, 255, 255, 0.6);
|
||||
font-size: 25rpx;
|
||||
}
|
||||
.expand-edit {
|
||||
position: relative;
|
||||
z-index: 30;
|
||||
padding: 20rpx 41rpx;
|
||||
font-size: 28rpx;
|
||||
color: $primaryColor;
|
||||
image {
|
||||
width: 26.25rpx;
|
||||
height: 26.25rpx;
|
||||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
}
|
||||
.right-color {
|
||||
color: #fff;
|
||||
font-size: 30rpx;
|
||||
}
|
||||
.page-title {
|
||||
margin: 50rpx 0 30rpx 0;
|
||||
text-align: center;
|
||||
font-size: 33rpx;
|
||||
color: #fff;
|
||||
}
|
||||
.mch-info {
|
||||
border-top: 1rpx solid rgba(0, 0, 0, 0.1);
|
||||
padding: 60rpx;
|
||||
view {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
text {
|
||||
margin-bottom: 20rpx;
|
||||
color: rgba(255, 255, 255, 0.6);
|
||||
font-size: 25rpx;
|
||||
font-weight: 500;
|
||||
}
|
||||
.mch-many {
|
||||
color: #fff;
|
||||
font-size: 56rpx;
|
||||
font-weight: 700;
|
||||
}
|
||||
.mch-footer {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
margin-top: 50rpx;
|
||||
view {
|
||||
flex: 1;
|
||||
font-size: 33rpx;
|
||||
font-weight: 700;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.with-error {
|
||||
padding: 30rpx 40rpx;
|
||||
background-color: #ff6680;
|
||||
font-size: 30rpx;
|
||||
color: #fff;
|
||||
}
|
||||
.with-state {
|
||||
font-size: 30rpx;
|
||||
image {
|
||||
width: 40rpx;
|
||||
height: 40rpx;
|
||||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
.with-state-error {
|
||||
color: #ff6680;
|
||||
}
|
||||
.with-state-success {
|
||||
color: #78ffa0;
|
||||
}
|
||||
.with-state-wait {
|
||||
color: #ffbb78;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,68 @@
|
||||
<template>
|
||||
<view class="page-wrapper global-wrapper bgF2">
|
||||
<view class="mch-header">
|
||||
<JHeaderTitle title="提现记录" bgColor="#f2f2f2" />
|
||||
<JSearchInput
|
||||
place="搜索提现单号"
|
||||
@search="searchList"
|
||||
@resetSearch="searchList"
|
||||
@screen="scr.open()"
|
||||
:screen="true"
|
||||
/>
|
||||
</view>
|
||||
<block v-for="v in useDataResult.dataList" :key="v.rid">
|
||||
<withdrawalCard v-bind="v" @toDetails="toDetail" />
|
||||
</block>
|
||||
<jeepayListNull :isShow="true" :list="useDataResult.dataList.length" />
|
||||
</view>
|
||||
<Screening ref="scr" @confirm="confirm" />
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { onMounted, ref } from "vue"
|
||||
import { $getCashout } from "@/http/apiManager.js"
|
||||
import JHeaderTitle from "@/components/newComponents/JHeaderTitle/JHeaderTitle.vue" //自定义导航栏
|
||||
import JSearchInput from "@/components/newComponents/JSearchInput/JSearchInput.vue" //自定义搜索框
|
||||
import jeepayListNull from "@/components/jeepayListNull/jeepayListNull"
|
||||
import withdrawalCard from "./components/withdrawalCard.vue"
|
||||
import Screening from "./components/Screening.vue"
|
||||
import useGetList from "@/hooks/useList.js"
|
||||
const { useDataResult, getList } = useGetList({
|
||||
onshow: false,
|
||||
requestFun: $getCashout,
|
||||
})
|
||||
|
||||
const params = {
|
||||
rid: "", //订单号
|
||||
unionOrderState: "", //状态码
|
||||
}
|
||||
const scr = ref(null)
|
||||
// 搜索回调
|
||||
const searchList = (data) => {
|
||||
if (data === "reset") data = ""
|
||||
params.rid = data
|
||||
getList(params)
|
||||
}
|
||||
// 筛选回调
|
||||
const confirm = (val) => {
|
||||
params.queryDateRange = val.time
|
||||
params.unionOrderState = val.stateType
|
||||
getList(params)
|
||||
}
|
||||
|
||||
const toDetail = (val) => {
|
||||
console.log("val", val)
|
||||
uni.navigateTo({ url: "/pageAccount/withdrawalDetails/withdrawalDetails?rid=" + val })
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.page-wrapper {
|
||||
.mch-header {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 40;
|
||||
background-color: #f2f2f2;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user