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