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.
yanzong/public/assets/pages-dealer-withdraw-list....

1 lines
4.0 KiB

import{_ as e}from"./u-tabs.f280784d.js";import{p as t,q as a,o as s,c as l,w as o,n as u,i,a as n,b as p,d as r,F as c,f as d,t as m,x as _,k as f,j as h,e as v}from"./index-ae8bbb19.js";import{r as y}from"./uni-app.es.ee1d5b08.js";import{M as T,_ as g}from"./mescroll-mixins.7cda1bf3.js";import{_ as S}from"./u-modal.b5d074c6.js";import{A as x,l as b}from"./ApplyStatus.0b84b76d.js";import{S as j}from"./Setting.5e5ad8a5.js";import{_ as R}from"./_plugin-vue_export-helper.1b428a4d.js";import"./u-loading.01f91c7b.js";import"./u-popup.d74d5514.js";import"./u-icon.b463ad8a.js";const A={},w={[x.WAIT.value]:"col-8",[x.PASSED.value]:"col-green",[x.REJECT.value]:"col-m",[x.PAYMENT.value]:"col-green"};const E=R({mixins:[T],data:()=>({ApplyStatusEnum:x,ApplyStatusColor:w,ApplyStatusText:A,tabList:[],curTab:0,list:t(),upOption:{auto:!0,page:{size:15},noMoreSize:12,empty:{tip:"亲,暂无相关数据"}},showRejectReason:!1,rejectReason:""}),onLoad(e){this.getSetting()},methods:{getSetting(){const e=this;j.data().then((t=>{const a=t.words.withdraw_list;e.setPageTitle(a.title),e.setTabList(a.words),e.setStatusText(a.words)}))},setPageTitle(e){uni.setNavigationBarTitle({title:e.value})},setTabList(e){this.tabList=[{value:-1,name:e.all.value},{value:x.WAIT.value,name:e.apply_10.value},{value:x.PASSED.value,name:e.apply_20.value},{value:x.REJECT.value,name:e.apply_30.value},{value:x.PAYMENT.value,name:e.apply_40.value}]},setStatusText(e){this.ApplyStatusText={[x.WAIT.value]:e.apply_10.value,[x.PASSED.value]:e.apply_20.value,[x.REJECT.value]:e.apply_30.value,[x.PAYMENT.value]:e.apply_40.value}},upCallback(e){const t=this;t.getList(e.num).then((e=>{const a=e.data.length,s=e.data.total;t.mescroll.endBySize(a,s)})).catch((()=>t.mescroll.endErr()))},getList(e=1){const t=this;return new Promise(((s,l)=>{b({applyStatus:t.getTabValue(),page:e}).then((l=>{const o=l.data.list;t.list.data=a(o,t.list,e),s(o)}))}))},getTabValue(){const e=this;return e.tabList.length?e.tabList[e.curTab].value:-1},onChangeTab(e){this.curTab=e,this.onRefreshList()},onRefreshList(){this.list=t(),setTimeout((()=>{this.mescroll.resetUpScroll()}),120)},handleShowRejectReason(e){this.showRejectReason=!0,this.rejectReason=e.reject_reason}}},[["render",function(t,a,T,x,b,j){const R=y(_("u-tabs"),e),A=i,w=f,E=y(_("mescroll-body"),g),C=y(_("u-modal"),S);return s(),l(A,{class:"container",style:u(t.appThemeStyle)},{default:o((()=>[n(E,{ref:"mescrollRef",sticky:!0,onInit:t.mescrollInit,down:{use:!1},up:b.upOption,onUp:j.upCallback},{default:o((()=>[n(R,{list:b.tabList,"is-scroll":!1,current:b.curTab,"active-color":"#786cff",duration:.2,onChange:j.onChangeTab},null,8,["list","current","duration","onChange"]),n(A,{class:"widget-list"},{default:o((()=>[(s(!0),p(c,null,r(b.list.data,((e,t)=>(s(),l(A,{class:"widget__detail dis-flex flex-x-between",key:t},{default:o((()=>[n(A,{class:"detail__left dis-flex flex-dir-column flex-x-around"},{default:o((()=>[n(A,{class:"detail__money f-30"},{default:o((()=>[d("提现 "+m(e.money)+"元",1)])),_:2},1024),n(A,{class:"detail__time col-9 f-24"},{default:o((()=>[d(m(e.create_time),1)])),_:2},1024)])),_:2},1024),n(A,{class:"detail__right dis-flex flex-dir-column flex-x-center flex-y-center"},{default:o((()=>[n(A,{class:h(["detail__status",[b.ApplyStatusColor[e.apply_status]]])},{default:o((()=>[n(w,null,{default:o((()=>[d(m(b.ApplyStatusText[e.apply_status]),1)])),_:2},1024)])),_:2},1032,["class"]),e.apply_status==b.ApplyStatusEnum.REJECT.value?(s(),l(A,{key:0,class:"detail__reason",onClick:t=>j.handleShowRejectReason(e)},{default:o((()=>[d("驳回原因 ")])),_:2},1032,["onClick"])):v("",!0)])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1},8,["onInit","up","onUp"]),n(C,{modelValue:b.showRejectReason,"onUpdate:modelValue":a[0]||(a[0]=e=>b.showRejectReason=e),title:"驳回原因"},{default:o((()=>[n(A,{class:"pops-content"},{default:o((()=>[n(w,null,{default:o((()=>[d(m(b.rejectReason),1)])),_:1})])),_:1})])),_:1},8,["modelValue"])])),_:1},8,["style"])}],["__scopeId","data-v-952e979a"]]);export{E as default};