"use strict";const e=require("../../../common/vendor.js"),r=require("../../../sheep/index.js"),a=require("../../../sheep/api/member/point.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("s-layout")()}Math;const s={__name:"scoreToMoney",setup(s){r.sheep.$platform.device.statusBarHeight,e.computed((()=>r.sheep.$store("user").userInfo)),r.sheep.$platform.navbar;const t=e.reactive({currentTab:0,pagination:{list:0,total:0,pageSize:6,pageNo:1},loadStatus:"",date:[],today:"",showModel:!1,showQueModel:!1}),i=[{name:"全部",value:"all"},{name:"收入",value:"true"},{name:"支出",value:"false"}];async function o(){t.loadStatus="loading";let{code:e,data:r}=await a.PointApi.getPointRecordPage({pageNo:t.pagination.pageNo,pageSize:t.pagination.pageSize,addStatus:t.currentTab>0?i[t.currentTab].value:void 0,"createTime[0]":t.date[0]+" 00:00:00","createTime[1]":t.date[1]+" 23:59:59"});0===e&&(t.pagination.list=r.list,t.pagination.total=r.total,t.loadStatus=t.pagination.list.length<t.pagination.total?"more":"noMore")}return e.computed((()=>t.date[0]===t.date[1]?t.date[0]:t.date.join("~"))),e.onLoad((()=>{t.today=e.dayjs().format("YYYY-MM-DD"),t.date=[t.today,t.today],o()})),e.onReachBottom((()=>{"noMore"!==t.loadStatus&&(t.pagination.pageNo++,o())})),(a,s)=>({a:e.o((a=>e.unref(r.sheep).$router.back("/pages/user/wallet/score"))),b:e.p({bgStyle:{backgroundColor:"#ffffff"},title:"积分兑换",navbar:"normal"})})}},t=e._export_sfc(s,[["__scopeId","data-v-5c6a1314"]]);wx.createPage(t);
