1 |
- import{a1 as e,a2 as t,a3 as a,j as s,k as r,b as l,c as i,w as n,A as u,n as c,i as p,e as o,a4 as d,y as f,z as x,l as m,D as v,d as _,p as h,q as y,r as g,s as w,t as b,x as k,bf as C,al as D,bg as I,f as j,W as S,X as z,C as $,bh as T,bi as N,I as L,bj as F,b0 as O,R,Q as P,E as B,F as A}from"./index-83368bfa.js";import{_ as q}from"./u-icon.592effc8.js";import{a as E,_ as G}from"./u-avatar.7dfc7af2.js";import{_ as H}from"./_plugin-vue_export-helper.1b428a4d.js";import{_ as M}from"./loading-page.vue_vue_type_script_setup_true_lang.5539c892.js";import"./u-loading-page.2d519650.js";import"./u-loading-icon.aeb554a3.js";import"./u-transition.ac24b0f0.js";const Q=H({name:"u-steps-item",mixins:[t,a,{props:{title:{type:[String,Number],default:e.stepsItem.title},desc:{type:[String,Number],default:e.stepsItem.desc},iconSize:{type:[String,Number],default:e.stepsItem.iconSize},error:{type:Boolean,default:e.stepsItem.error}}}],data:()=>({index:0,childLength:0,showLine:!1,size:{height:0,width:0},parentData:{direction:"row",current:0,activeColor:"",inactiveColor:"",activeIcon:"",inactiveIcon:"",dot:!1}}),watch:{parentData(e,t){}},created(){this.init()},computed:{lineStyle(){var e,t;const a={};return"row"===this.parentData.direction?(a.width=this.size.width+"px",a.left=this.size.width/2+"px"):a.height=this.size.height+"px",a.backgroundColor=(null==(t=null==(e=this.parent.children)?void 0:e[this.index+1])?void 0:t.error)?uni.$u.color.error:this.index<this.parentData.current?this.parentData.activeColor:this.parentData.inactiveColor,a},statusClass(){const{index:e,error:t}=this,{current:a}=this.parentData;return a==e?!0===t?"error":"process":t?"error":a>e?"finish":"wait"},statusColor(){let e="";switch(this.statusClass){case"finish":e=this.parentData.activeColor;break;case"error":e=uni.$u.color.error;break;case"process":e=this.parentData.dot?this.parentData.activeColor:"transparent";break;default:e=this.parentData.inactiveColor}return e},contentStyle(){const e={};return"column"===this.parentData.direction?(e.marginLeft=this.parentData.dot?"2px":"6px",e.marginTop=this.parentData.dot?"0px":"6px"):(e.marginTop=this.parentData.dot?"2px":"6px",e.marginLeft=this.parentData.dot?"2px":"6px"),e}},mounted(){this.parent&&this.parent.updateFromChild(),uni.$u.sleep().then((()=>{this.getStepsItemRect()}))},methods:{init(){if(this.updateParentData(),!this.parent)return uni.$u.error("u-steps-item必须要搭配u-steps组件使用");this.index=this.parent.children.indexOf(this),this.childLength=this.parent.children.length},updateParentData(){this.getParentData("u-steps")},updateFromParent(){this.init()},getStepsItemRect(){this.$uGetRect(".u-steps-item").then((e=>{this.size=e}))}}},[["render",function(e,t,a,_,h,y){const g=m,w=s(r("u-icon"),q),b=v,k=s(r("u--text"),E);return l(),i(g,{class:u(["u-steps-item",[`u-steps-item--${h.parentData.direction}`]]),ref:"u-steps-item"},{default:n((()=>[h.index+1<h.childLength?(l(),i(g,{key:0,class:u(["u-steps-item__line",[`u-steps-item__line--${h.parentData.direction}`]]),style:c([y.lineStyle])},null,8,["class","style"])):p("v-if",!0),o(g,{class:u(["u-steps-item__wrapper",[`u-steps-item__wrapper--${h.parentData.direction}`,h.parentData.dot&&`u-steps-item__wrapper--${h.parentData.direction}--dot`]])},{default:n((()=>[d(e.$slots,"icon",{},(()=>[h.parentData.dot?(l(),i(g,{key:0,class:"u-steps-item__wrapper__dot",style:c({backgroundColor:y.statusColor})},null,8,["style"])):h.parentData.activeIcon||h.parentData.inactiveIcon?(l(),i(g,{key:1,class:"u-steps-item__wrapper__icon"},{default:n((()=>[o(w,{name:h.index<=h.parentData.current?h.parentData.activeIcon:h.parentData.inactiveIcon,size:e.iconSize,color:h.index<=h.parentData.current?h.parentData.activeColor:h.parentData.inactiveColor},null,8,["name","size","color"])])),_:1})):(l(),i(g,{key:2,style:c({backgroundColor:"process"===y.statusClass?h.parentData.activeColor:"transparent",borderColor:y.statusColor}),class:"u-steps-item__wrapper__circle"},{default:n((()=>["process"===y.statusClass||"wait"===y.statusClass?(l(),i(b,{key:0,class:"u-steps-item__wrapper__circle__text",style:c({color:h.index==h.parentData.current?"#ffffff":h.parentData.inactiveColor})},{default:n((()=>[f(x(h.index+1),1)])),_:1},8,["style"])):(l(),i(w,{key:1,color:"error"===y.statusClass?"error":h.parentData.activeColor,size:"12",name:"error"===y.statusClass?"close":"checkmark"},null,8,["color","name"]))])),_:1},8,["style"]))]),!0)])),_:3},8,["class"]),o(g,{class:u(["u-steps-item__content",[`u-steps-item__content--${h.parentData.direction}`]]),style:c([y.contentStyle])},{default:n((()=>[o(k,{text:e.title,type:h.parentData.current==h.index?"main":"content",lineHeight:"20px",size:h.parentData.current==h.index?14:13},null,8,["text","type","size"]),d(e.$slots,"desc",{},(()=>[o(k,{text:e.desc,type:"tips",size:"12"},null,8,["text"])]),!0)])),_:3},8,["class","style"]),p(' <view\n\t\t class="u-steps-item__line"\n\t\t v-if="showLine && parentData.direction === \'column\'"\n\t\t\t:class="[`u-steps-item__line--${parentData.direction}`]"\n\t\t :style="[lineStyle]"\n\t\t></view> ')])),_:3},8,["class"])}],["__scopeId","data-v-45a927e1"]]);const V=H({name:"u-steps",mixins:[t,a,{props:{direction:{type:String,default:e.steps.direction},current:{type:[String,Number],default:e.steps.current},activeColor:{type:String,default:e.steps.activeColor},inactiveColor:{type:String,default:e.steps.inactiveColor},activeIcon:{type:String,default:e.steps.activeIcon},inactiveIcon:{type:String,default:e.steps.inactiveIcon},dot:{type:Boolean,default:e.steps.dot}}}],data:()=>({}),watch:{children(){this.updateChildData()},parentData(){this.updateChildData()}},computed:{parentData(){return[this.current,this.direction,this.activeColor,this.inactiveColor,this.activeIcon,this.inactiveIcon,this.dot]}},methods:{updateChildData(){this.children.map((e=>{uni.$u.test.func((e||{}).updateFromParent())&&e.updateFromParent()}))},updateFromChild(){this.updateChildData()}},created(){this.children=[]}},[["render",function(e,t,a,s,r,c){const p=m;return l(),i(p,{class:u(["u-steps",[`u-steps--${e.direction}`]])},{default:n((()=>[d(e.$slots,"default",{},void 0,!0)])),_:3},8,["class"])}],["__scopeId","data-v-9d7fe081"]]),W=H(_({__name:"cash_out_detail",setup(e){h()&&y.init();const t=g({}),a=g(0),d=g(!0),_=g(!1),q=g(!1);let E=null,H=uni.getStorageSync("openid")||"";w((e=>{let t=e.id||"";if(t)W(t);else if(b()){k({url:"/app/pages/member/cash_out",title:"提现详情不存在",mode:"reLaunch"})}}));const W=e=>{d.value=!0,C(e).then((e=>{t.value=e.data,"wechatpay"==t.value.transfer_type&&(1==t.value.status?a.value=0:2==t.value.status||4==t.value.status?a.value=1:3==t.value.status&&(a.value=2)),d.value=!1,_.value=!1})).catch((()=>{d.value=!1,_.value=!1}))},X=()=>{if(!H)return $({title:"请到微信公众号或小程序中进行提现",icon:"none"}),!1;if(q.value)return!1;q.value=!0;let e={id:t.value.id,open_id:H};T(e).then((e=>{let a={mchId:e.data.extra.mch_id,appId:e.data.extra.appid,package:e.data.package_info};y.transfer(a,(e=>{q.value=!1,d.value=!0,_.value=!0,E=setTimeout((()=>{W(t.value.id),clearTimeout(E)}),6e3)}))}))},J=()=>{if(!H)return $({title:"请到微信公众号或小程序中进行提现",icon:"none"}),!1;if(q.value)return!1;q.value=!0;let e={mchId:t.value.transfer.extra.mch_id,appId:t.value.transfer.extra.appid,package:t.value.transfer.package_info};y.transfer(e,(e=>{q.value=!1,E=setTimeout((()=>{W(t.value.id),clearTimeout(E)}),6e3)}))},K=()=>{N({title:"提示",content:"您确定取消提现吗?",confirmColor:L().themeColor["--primary-color"],success:e=>{e.confirm&&F({id:t.value.id}).then((()=>{E=setTimeout((()=>{W(t.value.id),clearTimeout(E)}))}))}})};return D((()=>{try{I()}catch(e){}})),(e,d)=>{const h=v,y=m,g=s(r("u-steps-item"),Q),w=s(r("u-steps"),V),b=s(r("u-avatar"),G),k=P,C=B,D=s(r("loading-page"),M);return l(),i(y,{class:"min-h-[100vh] bg-[var(--page-bg-color)] overflow-hidden",style:c(e.themeColor())},{default:n((()=>[o(y,{class:"sidebar-margin card-template mt-[20rpx] !pt-[60rpx] !pb-[40rpx]"},{default:n((()=>[p(' <view class="flex flex-col justify-center items-center mb-[44rpx]" v-if="cashOutInfo.status == 4 && cashOutInfo.transfer_type == \'wechatpay\'">\r\n <image class="h-[70rpx] w-[70rpx] mb-[24rpx]" :src="img(\'static/resource/images/member/apply_withdrawal/transfer.png\')" mode="widthFix" />\r\n <view class="text-[28rpx] text-[#333]">处理中,预计2小时内到账</view>\r\n </view> '),o(y,{class:"flex items-center flex-col mb-[80rpx]"},{default:n((()=>[o(h,{class:"text-[60rpx] font-bold price-font mb-[16rpx]"},{default:n((()=>[f(x(t.value.apply_money),1)])),_:1}),o(h,{class:u(["text-[28rpx] text-[#333]",{"text-primary":1==t.value.status,"text-[#999]":4==t.value.status}])},{default:n((()=>[f(x(t.value.status_name),1)])),_:1},8,["class"])])),_:1}),p(" 状态1.待审核2.待转账 3.已转账 4.转账中 -1拒绝' "),o(y,null,{default:n((()=>[o(y,{class:"flex justify-between text-[28rpx] mt-[34rpx] leading-[32rpx]"},{default:n((()=>[o(h,{class:"text-[#333] w-[200rpx]"},{default:n((()=>[f(x(j(A)("cashOutNo")),1)])),_:1}),o(h,{class:"text-[#333]"},{default:n((()=>[f(x(t.value.cash_out_no),1)])),_:1})])),_:1}),Number(t.value.service_money)?(l(),i(y,{key:0,class:"flex justify-between text-[28rpx] mt-[34rpx] leading-[32rpx]"},{default:n((()=>[o(h,{class:"text-[#333] w-[200rpx]"},{default:n((()=>[f(x(j(A)("serviceMoney")),1)])),_:1}),o(h,{class:"text-[#333]"},{default:n((()=>[f("¥"+x(t.value.service_money),1)])),_:1})])),_:1})):p("v-if",!0),o(y,{class:"flex justify-between text-[28rpx] mt-[34rpx] leading-[32rpx]"},{default:n((()=>[o(h,{class:"text-[#333] w-[200rpx]"},{default:n((()=>[f(x(j(A)("createTime")),1)])),_:1}),o(h,{class:"text-[#333]"},{default:n((()=>[f(x(t.value.create_time),1)])),_:1})])),_:1}),t.value.status&&t.value.audit_time?(l(),i(y,{key:1,class:"flex justify-between text-[28rpx] mt-[34rpx] leading-[32rpx]"},{default:n((()=>[o(h,{class:"text-[#333] w-[200rpx]"},{default:n((()=>[f(x(j(A)("auditTime")),1)])),_:1}),o(h,{class:"text-[#333]"},{default:n((()=>[f(x(t.value.audit_time),1)])),_:1})])),_:1})):p("v-if",!0),-1==t.value.status&&t.value.refuse_reason?(l(),i(y,{key:2,class:"flex justify-between text-[28rpx] mt-[34rpx] leading-[32rpx]"},{default:n((()=>[o(h,{class:"text-[#333] w-[200rpx] flex-shrink-0"},{default:n((()=>[f(x(j(A)("refuseReason")),1)])),_:1}),o(h,{class:"text-[#333] ml-[20rpx] text-right"},{default:n((()=>[f(x(t.value.refuse_reason),1)])),_:1})])),_:1})):p("v-if",!0),3==t.value.status?(l(),i(y,{key:3,class:"flex justify-between text-[28rpx] mt-[34rpx] leading-[32rpx]"},{default:n((()=>[o(h,{class:"text-[#333] w-[200rpx]"},{default:n((()=>[f(x(j(A)("transferTypeName")),1)])),_:1}),o(h,{class:"text-[#333] truncate"},{default:n((()=>[f(x(t.value.transfer_type_name),1)])),_:1})])),_:1})):p("v-if",!0)])),_:1})])),_:1}),"wechatpay"!=t.value.transfer_type||2!=t.value.status&&3!=t.value.status&&4!=t.value.status?p("v-if",!0):(l(),i(y,{key:0,class:"sidebar-margin card-template mt-[20rpx]"},{default:n((()=>[o(w,{current:a.value,direction:"column",activeColor:"var(--primary-color)",activeIcon:"checkmark-circle-fill",inactiveIcon:"checkmark-circle-fill"},{default:n((()=>[o(g,{title:"提现申请",desc:t.value.create_time},null,8,["desc"]),o(g,{title:"处理中",desc:t.value.audit_time?t.value.audit_time:""},null,8,["desc"]),o(g,{title:"提现成功",desc:t.value.transfer_time?t.value.transfer_time:""},null,8,["desc"])])),_:1},8,["current"])])),_:1})),o(y,{class:"sidebar-margin card-template mt-[20rpx]"},{default:n((()=>[o(y,{class:"title"},{default:n((()=>[f(x(j(A)("proceedsInfo")),1)])),_:1}),o(y,{class:"flex justify-between text-[28rpx] mt-[34rpx] leading-[32rpx]"},{default:n((()=>[o(h,{class:"text-[#333] w-[200rpx]"},{default:n((()=>[f(x(j(A)("transferAccount")),1)])),_:1}),o(h,{class:"text-[#333] truncate"},{default:n((()=>[f(x("wechatpay"==t.value.transfer_type?"微信零钱":t.value.transfer_account),1)])),_:1})])),_:1}),"wechatpay"==t.value.transfer_type?(l(),S(z,{key:0},[o(y,{class:"flex justify-between text-[28rpx] mt-[34rpx] leading-[32rpx]"},{default:n((()=>[o(h,{class:"text-[#333] w-[200rpx]"},{default:n((()=>[f(x(j(A)("transferNickname")),1)])),_:1}),o(h,{class:"text-[#333]"},{default:n((()=>[f(x(t.value.nickname),1)])),_:1})])),_:1}),o(y,{class:"flex justify-between text-[28rpx] mt-[34rpx] leading-[32rpx]"},{default:n((()=>[o(h,{class:"text-[#333] w-[200rpx]"},{default:n((()=>[f(x(j(A)("transferImg")),1)])),_:1}),o(b,{src:j(R)(t.value.headimg),size:"30",leftIcon:"none","default-url":j(R)("static/resource/images/default_headimg.png")},null,8,["src","default-url"])])),_:1})],64)):p("v-if",!0),"wechatpay"!==t.value.transfer_type?(l(),S(z,{key:1},[o(y,{class:"flex justify-between text-[28rpx] mt-[34rpx] leading-[32rpx]"},{default:n((()=>[o(h,{class:"text-[#333] w-[200rpx]"},{default:n((()=>[f(x("bank"==t.value.transfer_type?j(A)("bankRealname"):j(A)("realname")),1)])),_:1}),o(h,{class:"text-[#333]"},{default:n((()=>[f(x(t.value.transfer_realname),1)])),_:1})])),_:1}),t.value.transfer_bank?(l(),i(y,{key:0,class:"flex justify-between text-[28rpx] mt-[34rpx] leading-[32rpx]"},{default:n((()=>[o(h,{class:"text-[#333] w-[200rpx]"},{default:n((()=>[f(x(j(A)("transferBank")),1)])),_:1}),o(h,{class:"text-[#333] truncate"},{default:n((()=>[f(x(t.value.transfer_bank),1)])),_:1})])),_:1})):p("v-if",!0),"wechat_code"==t.value.transfer_type||"alipay"==t.value.transfer_type?(l(),i(y,{key:1,class:"flex justify-between text-[28rpx] mt-[34rpx] leading-[32rpx]"},{default:n((()=>[o(h,{class:"text-[#333] w-[200rpx]"},{default:n((()=>[f(x(j(A)("transferCode")),1)])),_:1}),o(y,{class:"flex items-center",onClick:d[0]||(d[0]=e=>{O({urls:[R(t.value.transfer_payment_code)],indicator:"number",loop:!0})})},{default:n((()=>[o(k,{src:j(R)(t.value.transfer_payment_code),class:"w-[140rpx] h-[140rpx] rounded-[var(--rounded-small)]"},null,8,["src"])])),_:1})])),_:1})):p("v-if",!0)],64)):p("v-if",!0)])),_:1}),3==t.value.status?(l(),i(y,{key:1,class:"sidebar-margin card-template my-[20rpx]"},{default:n((()=>[o(y,{class:"title"},{default:n((()=>[f(x(j(A)("transferInfo")),1)])),_:1}),t.value.transfer_time?(l(),i(y,{key:0,class:"flex justify-between text-[28rpx] leading-[32rpx]"},{default:n((()=>[o(h,{class:"text-[#333] w-[200rpx]"},{default:n((()=>[f(x(j(A)("transferTime")),1)])),_:1}),o(h,{class:"text-[#333] truncate"},{default:n((()=>[f(x(t.value.transfer_time),1)])),_:1})])),_:1})):p("v-if",!0),t.value.transfer_no?(l(),i(y,{key:1,class:"flex justify-between text-[28rpx] mt-[34rpx] leading-[32rpx]"},{default:n((()=>[o(h,{class:"text-[#333] w-[200rpx]"},{default:n((()=>[f(x(j(A)("transferNo")),1)])),_:1}),o(h,{class:"text-[#333] truncate"},{default:n((()=>[f(x(t.value.transfer.transfer_no),1)])),_:1})])),_:1})):p("v-if",!0),t.value.transfer&&t.value.transfer.transfer_remark?(l(),i(y,{key:2,class:"flex justify-between text-[28rpx] mt-[34rpx] leading-[32rpx]"},{default:n((()=>[o(h,{class:"text-[#333] w-[200rpx] flex-shrink-0"},{default:n((()=>[f(x(j(A)("transferRemark")),1)])),_:1}),o(h,{class:"text-[#333] ml-[20rpx]"},{default:n((()=>[f(x(t.value.transfer.transfer_remark),1)])),_:1})])),_:1})):p("v-if",!0),t.value.transfer&&t.value.transfer.transfer_voucher?(l(),i(y,{key:3,class:"flex justify-between text-[28rpx] mt-[34rpx] leading-[32rpx]"},{default:n((()=>[o(h,{class:"text-[#333] w-[200rpx]"},{default:n((()=>[f(x(j(A)("transferVoucher")),1)])),_:1}),o(y,{class:"flex items-center",onClick:d[1]||(d[1]=e=>{O({urls:[R(t.value.transfer.transfer_voucher)],indicator:"number",loop:!0})})},{default:n((()=>[o(k,{src:j(R)(t.value.transfer.transfer_voucher),class:"w-[140rpx] h-[140rpx] rounded-[var(--rounded-small)]"},null,8,["src"])])),_:1})])),_:1})):p("v-if",!0)])),_:1})):p("v-if",!0),1==t.value.status||2==t.value.status||4==t.value.status?(l(),i(y,{key:2,class:"tab-bar-placeholder"})):p("v-if",!0),1==t.value.status||2==t.value.status||4==t.value.status?(l(),i(y,{key:3,class:"fixed bottom-[0] tab-bar left-0 right-0 px-[var(--sidebar-m)] bg-[#fff] flex items-center justify-end min-h-[100rpx]"},{default:n((()=>[1==t.value.status||2==t.value.status||4==t.value.status?(l(),i(C,{key:0,class:"min-w-[180rpx] box-border text-[26rpx] h-[70rpx] flex-center border-[2rpx] border-solid border-[#999] rounded-full !text-[var(--text-color-light6)] mr-0",onClick:K},{default:n((()=>[f(x(j(A)("cashOutCancel")),1)])),_:1})):p("v-if",!0),"wechatpay"==t.value.transfer_type&&2==t.value.status?(l(),i(C,{key:1,class:"min-w-[180rpx] h-[70rpx] !text-[#fff] leading-[70rpx] primary-btn-bg rounded-[50rpx] text-[26rpx] ml-[20rpx] mr-0",loading:q.value,onClick:X},{default:n((()=>[f(x(j(A)("cashOutNow")),1)])),_:1},8,["loading"])):"wechatpay"==t.value.transfer_type&&4==t.value.status?(l(),i(C,{key:2,class:"min-w-[180rpx] h-[70rpx] !text-[#fff] leading-[70rpx] primary-btn-bg rounded-[50rpx] text-[26rpx] ml-[20rpx] mr-0",loading:q.value,onClick:J},{default:n((()=>[f(x(j(A)("cashOutNow")),1)])),_:1},8,["loading"])):p("v-if",!0)])),_:1})):p("v-if",!0),o(D,{loading:_.value,bgColor:"rgba(0,0,0,0.2)"},null,8,["loading"])])),_:1},8,["style"])}}}),[["__scopeId","data-v-e2502782"]]);export{W as default};
|