1 |
- "use strict";const e=require("../../common/vendor.js"),r=require("../../sheep/index.js"),s=require("../../sheep/util/index.js"),t=require("../../sheep/api/trade/brokerage.js"),o=require("../../sheep/hooks/useGoods.js");if(require("../../sheep/url/index.js"),require("../../sheep/store/index.js"),require("../../sheep/store/app.js"),require("../../sheep/api/promotion/diy.js"),require("../../sheep/request/index.js"),require("../../sheep/config/index.js"),require("../../sheep/platform/index.js"),require("../../sheep/platform/provider/wechat/index.js"),require("../../sheep/platform/provider/wechat/miniProgram.js"),require("../../sheep/api/member/auth.js"),require("../../sheep/api/member/social.js"),require("../../sheep/api/member/user.js"),require("../../sheep/platform/provider/apple/index.js"),require("../../sheep/platform/share.js"),require("../../sheep/router/index.js"),require("../../sheep/hooks/useModal.js"),require("../../sheep/helper/index.js"),require("../../sheep/helper/test.js"),require("../../sheep/helper/digit.js"),require("../../sheep/api/member/signin.js"),require("../../sheep/helper/throttle.js"),require("../../sheep/platform/pay.js"),require("../../sheep/api/pay/order.js"),require("../../sheep/store/user.js"),require("../../sheep/store/cart.js"),require("../../sheep/api/trade/cart.js"),require("../../sheep/api/pay/wallet.js"),require("../../sheep/api/trade/order.js"),require("../../sheep/api/promotion/coupon.js"),require("../../sheep/store/sys.js"),require("../../sheep/store/modal.js"),require("../../sheep/config/zIndex.js"),!Array){(e.resolveComponent("su-tabs")+e.resolveComponent("su-sticky")+e.resolveComponent("s-empty")+e.resolveComponent("uni-load-more")+e.resolveComponent("s-layout"))()}Math||((()=>"../../sheep/ui/su-tabs/su-tabs.js")+(()=>"../../sheep/ui/su-sticky/su-sticky.js")+(()=>"../../sheep/components/s-empty/s-empty.js")+(()=>"../../uni_modules/uni-load-more/components/uni-load-more/uni-load-more.js")+(()=>"../../sheep/components/s-layout/s-layout.js"))();const a={__name:"order",setup(a){e.useCssVars((r=>({"1a5d6679":e.unref(p)})));const i=2*r.sheep.$platform.device.statusBarHeight,p=r.sheep.$url.css("/static/img/shop/user/withdraw_bg.png");e.onPageScroll((e=>{n.scrollTop=e.scrollTop<=100}));const n=e.reactive({totals:0,scrollTop:!1,currentTab:0,loadStatus:"",pagination:{list:[],total:0,pageNo:1,pageSize:1}}),u=[{name:"全部",value:"all"},{name:"待结算",value:"0"},{name:"已结算",value:"1"}];function l(e){s.resetPagination(n.pagination),n.currentTab=e.index,h()}async function h(){n.loadStatus="loading";let{code:r,data:s}=await t.BrokerageApi.getBrokerageRecordPage({pageSize:n.pagination.pageSize,pageNo:n.pagination.pageSize,bizType:1,status:n.currentTab>0?n.currentTab:void 0});0===r&&(n.pagination.list=e._.concat(n.pagination.list,s.list),n.pagination.total=s.total,n.loadStatus=n.pagination.list.length<n.pagination.total?"more":"noMore",0===n.currentTab&&(n.totals=s.total))}function c(){"noMore"!==n.loadStatus&&(n.pagination.pageNo++,h())}return e.onLoad((()=>{h()})),e.onReachBottom((()=>{c()})),(s,t)=>e.e({a:e.t(n.totals),b:e.s({marginTop:"-"+Number(i+88)+"rpx",paddingTop:Number(i+108)+"rpx"}),c:e.o(l),d:e.p({list:u,scrollable:!1,current:n.currentTab}),e:e.p({bgColor:"#fff"}),f:e.f(n.pagination.list,((s,t,a)=>({a:e.t(s.bizId),b:e.t(0===s.status?"待结算":1===s.status?"已结算":"已取消"),c:e.t(e.unref(o.fen2yuan)(s.price)),d:e.t(s.title),e:e.t(e.unref(r.sheep).$helper.timeFormat(s.createTime,"yyyy-mm-dd hh:MM:ss")),f:s}))),g:0===n.pagination.total},0===n.pagination.total?{h:e.p({icon:"/static/order-empty.png",text:"暂无订单"})}:{},{i:n.pagination.total>0},n.pagination.total>0?{j:e.o(c),k:e.p({status:n.loadStatus,"content-text":{contentdown:"上拉加载更多"}})}:{},{l:e.n(n.scrollTop?"order-warp":""),m:e.s(s.__cssVars()),n:e.p({title:"分销订单",navbar:"inner"})})}},i=e._export_sfc(a,[["__scopeId","data-v-24113c32"]]);a.__runtimeHooks=1,wx.createPage(i);
|