commission-log.js 2.7 KB

1
  1. "use strict";const e=require("../../../common/vendor.js"),r=require("../../../sheep/index.js"),i=require("../../../sheep/api/trade/brokerage.js"),s=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"),require("../../../sheep/util/index.js"),!Array){e.resolveComponent("uni-load-more")()}Math;const a={__name:"commission-log",setup(a){const t=e.reactive({loadStatus:"",pagination:{list:[],total:0,pageNo:1,pageSize:1}});async function o(){t.loadStatus="loading";const{code:r,data:s}=await i.BrokerageApi.getBrokerageRecordPage({pageNo:t.pagination.pageNo,pageSize:t.pagination.pageSize});0===r&&(t.pagination.list=e._.concat(t.pagination.list,s.list),t.pagination.total=s.total,t.loadStatus=t.pagination.list.length<t.pagination.total?"more":"noMore")}function p(){"noMore"!==t.loadStatus&&(t.pagination.pageNo++,o())}return o(),(i,a)=>e.e({a:e.unref(r.sheep).$url.static("/static/images/title2.png"),b:t.pagination.list},t.pagination.list?{c:e.f(t.pagination.list,((r,i,a)=>({a:e.t(r.title),b:e.t(e.unref(s.fen2yuan)(r.price)),c:e.t(e.unref(e.dayjs)(r.createTime).fromNow()),d:r.id}))),d:e.unref(r.sheep).$url.static("/static/images/notice.png")}:{},{e:t.pagination.total>0},t.pagination.total>0?{f:e.o(p),g:e.p({status:t.loadStatus,color:"#333333"})}:{},{h:e.o(p)})}},t=e._export_sfc(a,[["__scopeId","data-v-0299324e"]]);wx.createComponent(t);