"use strict";const e=require("../../../common/vendor.js"),r=require("../../../sheep/index.js"),s=require("../../../sheep/hooks/useGoods.js");if(require("../../../sheep/request/index.js"),require("../../../sheep/url/index.js"),require("../../../sheep/store/index.js"),require("../../../sheep/store/app.js"),require("../../../sheep/api/promotion/diy.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/index.js"),require("../../../sheep/config/zIndex.js"),require("../../../sheep/util/index.js"),!Array){(e.resolveComponent("uni-list-item")+e.resolveComponent("uni-list")+e.resolveComponent("su-popup")+e.resolveComponent("s-layout"))()}const o=()=>"../../../sheep/ui/su-popup/su-popup.js",t=()=>"../../../sheep/components/s-layout/s-layout.js";Math||((()=>"../../../uni_modules/uni-list/components/uni-list-item/uni-list-item.js")+(()=>"../../../uni_modules/uni-list/components/uni-list/uni-list.js")+e.unref(i)+o+t)();const i=()=>"../../public/richtext2.js",p={__name:"score",setup(o){const t=e.computed((()=>r.sheep.$store("user").userWallet));r.sheep.$platform.device.statusBarHeight,e.computed((()=>r.sheep.$store("user").userInfo)),r.sheep.$platform.navbar;const i=e.reactive({currentTab:0,pagination:{list:[],total:0,pageSize:10,pageNo:1},loadStatus:"",showModel:!1});function p(){i.showModel=!1}const u=e.computed((()=>{const e=parseFloat(s.points2point(t.value.integralDO.currentQuota)),r=parseFloat(s.points2point(t.value.integralDO.highQuota));if(e>r)return 100;{const s=e/r*100;return Math.min(s,100)}})),a=e.computed((()=>u.value>=90?"#fe0000":u.value>=75?"#d8b800":"#0c912f")),n=e.computed((()=>({background:a.value})));return(o,u)=>({a:e.s(n.value),b:e.t(e.unref(s.points2point)(t.value.integralDO.currentQuota)),c:a.value,d:e.o((s=>e.unref(r.sheep).$router.go("/pages/goods/list",{categoryId:98}))),e:e.t(e.unref(s.points2point)(t.value.integralDO.currentQuota)),f:e.t(e.unref(s.points2point)(t.value.integralDO.highQuota)),g:e.o((s=>e.unref(r.sheep).$router.go("/pages/user/wallet/maxScoreLog"))),h:e.p({clickable:!0,title:"当前可获得峰值",showArrow:!0,border:!1}),i:e.t(e.unref(s.points2point)(t.value.integralDO.freezeQuota)),j:e.o((s=>e.unref(r.sheep).$router.go("/pages/user/wallet/ScoreLog",{isFreeze:!0}))),k:e.p({clickable:!0,title:"待确权",showArrow:!0,border:!1}),l:e.o((s=>e.unref(r.sheep).$router.go("/pages/user/wallet/ScoreLog",{isFreeze:!1}))),m:e.p({clickable:!0,title:"积分来源记录",showArrow:!0,border:!1}),n:e.o((e=>i.showModel=!0)),o:e.p({clickable:!0,title:"积分计算规则",border:!1}),p:e.p({border:!1}),q:e.n(0==i.navIndex?"activite":""),r:e.o((e=>o.checkIndex(0))),s:e.p({title:"积分计算规则",type:"tab"}),t:e.o(p),v:e.p({show:i.showModel,type:"center",round:"10",isMaskClick:!1,showClose:!0}),w:e.p({bgStyle:{backgroundColor:"#ffffff"},title:"我的积分",navbar:"normal"})})}},u=e._export_sfc(p,[["__scopeId","data-v-106019bc"]]);wx.createPage(u);
