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.
1 lines
4.0 KiB
1 lines
4.0 KiB
import{_ as e}from"./u-tabs.ea263673.js";import{q as t,u as a,o as s,c as l,w as o,n as u,i,a as n,b as r,d as p,F as c,f as d,t as m,y as _,l as f,k as h,e as v}from"./index-4ddb689d.js";import{r as y}from"./uni-app.es.24af5d4f.js";import{M as T,_ as g}from"./mescroll-mixins.a7931123.js";import{_ as S}from"./u-modal.9219359e.js";import{A as b,l as x}from"./ApplyStatus.dc746862.js";import{S as R}from"./Setting.15a9e6ae.js";import{_ as j}from"./_plugin-vue_export-helper.1b428a4d.js";import"./u-loading.7bd69747.js";import"./u-popup.37b3343e.js";import"./u-icon.e981d1c2.js";const A={},w={[b.WAIT.value]:"col-8",[b.PASSED.value]:"col-green",[b.REJECT.value]:"col-m",[b.PAYMENT.value]:"col-green"};const E=j({mixins:[T],data:()=>({ApplyStatusEnum:b,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;R.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:b.WAIT.value,name:e.apply_10.value},{value:b.PASSED.value,name:e.apply_20.value},{value:b.REJECT.value,name:e.apply_30.value},{value:b.PAYMENT.value,name:e.apply_40.value}]},setStatusText(e){this.ApplyStatusText={[b.WAIT.value]:e.apply_10.value,[b.PASSED.value]:e.apply_20.value,[b.REJECT.value]:e.apply_30.value,[b.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)=>{x({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,b,x,R){const j=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:x.upOption,onUp:R.upCallback},{default:o((()=>[n(j,{list:x.tabList,"is-scroll":!1,current:x.curTab,"active-color":"#786cff",duration:.2,onChange:R.onChangeTab},null,8,["list","current","duration","onChange"]),n(A,{class:"widget-list"},{default:o((()=>[(s(!0),r(c,null,p(x.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",[x.ApplyStatusColor[e.apply_status]]])},{default:o((()=>[n(w,null,{default:o((()=>[d(m(x.ApplyStatusText[e.apply_status]),1)])),_:2},1024)])),_:2},1032,["class"]),e.apply_status==x.ApplyStatusEnum.REJECT.value?(s(),l(A,{key:0,class:"detail__reason",onClick:t=>R.handleShowRejectReason(e)},{default:o((()=>[d("驳回原因 ")])),_:2},1032,["onClick"])):v("",!0)])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1},8,["onInit","up","onUp"]),n(C,{modelValue:x.showRejectReason,"onUpdate:modelValue":a[0]||(a[0]=e=>x.showRejectReason=e),title:"驳回原因"},{default:o((()=>[n(A,{class:"pops-content"},{default:o((()=>[n(w,null,{default:o((()=>[d(m(x.rejectReason),1)])),_:1})])),_:1})])),_:1},8,["modelValue"])])),_:1},8,["style"])}],["__scopeId","data-v-952e979a"]]);export{E as default};
|
|
|