1 |
- import{s as t,e as a,z as s,o as e,A as o,f as l,g as r,w as n,E as i,bT as u,_ as c,m as d,k as p,u as m,v as f,B as g,l as _,r as b,F as y,i as x,H as h,j as w,n as T,x as j,I as v}from"./index-a116b7fa.js";import{_ as k}from"./su-tabs.cd675673.js";import{_ as S}from"./su-sticky.41b75182.js";import{_ as z}from"./s-empty.4d7f5239.js";import{_ as N}from"./uni-load-more.2682655d.js";import{_ as M}from"./s-layout.4ae51839.js";import{r as B,f as C}from"./useGoods.6b315a78.js";import{_ as H}from"./_plugin-vue_export-helper.1b428a4d.js";import"./uni-badge.9d757a16.js";/* empty css */import"./phone-international-input.b9f6c8e6.js";const I=H({__name:"order",setup(H){h((t=>({"1a5d6679":j($)})));const I=2*t.$platform.device.statusBarHeight,$=t.$url.css("/static/img/shop/user/withdraw_bg.png");a((t=>{F.scrollTop=t.scrollTop<=100}));const F=s({totals:0,scrollTop:!1,currentTab:0,loadStatus:"",pagination:{list:[],total:0,pageNo:1,pageSize:1}}),G=[{name:"全部",value:"all"},{name:"待结算",value:"0"},{name:"已结算",value:"1"}];function A(t){B(F.pagination),F.currentTab=t.index,E()}async function E(){F.loadStatus="loading";let{code:t,data:a}=await u.getBrokerageRecordPage({pageSize:F.pagination.pageSize,pageNo:F.pagination.pageSize,bizType:1,status:F.currentTab>0?F.currentTab:void 0});0===t&&(F.pagination.list=c.concat(F.pagination.list,a.list),F.pagination.total=a.total,F.loadStatus=F.pagination.list.length<F.pagination.total?"more":"noMore",0===F.currentTab&&(F.totals=a.total))}function P(){"noMore"!==F.loadStatus&&(F.pagination.pageNo++,E())}return e((()=>{E()})),o((()=>{P()})),(a,s)=>{const e=w,o=d(T("su-tabs"),k),u=d(T("su-sticky"),S),c=v,h=d(T("s-empty"),z),B=d(T("uni-load-more"),N),H=d(T("s-layout"),M);return l(),r(H,{title:"分销订单",class:i(F.scrollTop?"order-warp":""),navbar:"inner"},{default:n((()=>[p(e,{class:"header-box",style:g([{marginTop:"-"+Number(I+88)+"rpx",paddingTop:Number(I+108)+"rpx"}])},{default:n((()=>[p(e,{class:"team-data-box ss-flex ss-col-center ss-row-between",style:{width:"100%"}},{default:n((()=>[p(e,{class:"data-card",style:{width:"100%"}},{default:n((()=>[p(e,{class:"total-item",style:{width:"100%"}},{default:n((()=>[p(e,{class:"item-title",style:{"text-align":"center"}},{default:n((()=>[m("累计推广订单(单)")])),_:1}),p(e,{class:"total-num",style:{"text-align":"center"}},{default:n((()=>[m(f(F.totals),1)])),_:1})])),_:1})])),_:1})])),_:1})])),_:1},8,["style"]),p(u,{bgColor:"#fff"},{default:n((()=>[p(o,{list:G,scrollable:!1,current:F.currentTab,onChange:A},null,8,["current"])])),_:1}),p(e,{class:"order-box"},{default:n((()=>[(l(!0),_(y,null,b(F.pagination.list,(a=>(l(),r(e,{class:"order-item",key:a},{default:n((()=>[p(e,{class:"order-header"},{default:n((()=>[p(e,{class:"no-box ss-flex ss-col-center ss-row-between"},{default:n((()=>[p(c,{class:"order-code"},{default:n((()=>[m("订单编号:"+f(a.bizId),1)])),_:2},1024),p(c,{class:"order-state"},{default:n((()=>[m(f(0===a.status?"待结算":1===a.status?"已结算":"已取消")+" ( 佣金 "+f(j(C)(a.price))+" 元 ) ",1)])),_:2},1024)])),_:2},1024),p(e,{class:"order-from ss-flex ss-col-center ss-row-between"},{default:n((()=>[p(e,{class:"from-user ss-flex ss-col-center"},{default:n((()=>[p(c,null,{default:n((()=>[m(f(a.title),1)])),_:2},1024)])),_:2},1024),p(e,{class:"order-time"},{default:n((()=>[m(f(j(t).$helper.timeFormat(a.createTime,"yyyy-mm-dd hh:MM:ss")),1)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1024)))),128)),0===F.pagination.total?(l(),r(h,{key:0,icon:"/static/order-empty.png",text:"暂无订单"})):x("",!0),F.pagination.total>0?(l(),r(B,{key:1,status:F.loadStatus,"content-text":{contentdown:"上拉加载更多"},onClick:P},null,8,["status"])):x("",!0)])),_:1})])),_:1},8,["class"])}}},[["__scopeId","data-v-24113c32"]]);export{I as default};
|