1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-3b59defb"],{2994:function(e,t,n){"use strict";n("68ef"),n("e3b3"),n("c0c2")},"2bdd":function(e,t,n){"use strict";n.d(t,"a",(function(){return j}));t=n("c199");var r=n("7a23"),o=n("fe7e"),c=n("f691"),a=n("4a89"),i=n("f465"),u=n("4eda"),d=n("80f6"),s=n("543e");const[l,b,f]=Object(o.a)("list");n={error:Boolean,offset:Object(c.c)(300),loading:Boolean,finished:Boolean,errorText:String,direction:Object(c.e)("down"),loadingText:String,finishedText:String,immediateCheck:c.g},o=Object(r.defineComponent)({name:l,props:n,emits:["load","update:error","update:loading"],setup(e,{emit:t,slots:n}){const o=Object(r.ref)(!1),c=Object(r.ref)(),l=Object(r.ref)(),j=Object(d.b)(),p=Object(i.m)(c),O=()=>{Object(r.nextTick)(()=>{if(!(o.value||e.finished||e.error||!1===(null==j?void 0:j.value))){var{offset:n,direction:r}=e,u=Object(i.l)(p);if(u.height&&!Object(a.d)(c)){let e=!1;var d=Object(i.l)(l);(e="up"===r?u.top-d.top<=n:d.bottom-u.bottom<=n)&&(o.value=!0,t("update:loading",!0),t("load"))}}})},g=()=>{t("update:error",!1),O()};return Object(r.watch)(()=>[e.loading,e.finished,e.error],O),j&&Object(r.watch)(j,e=>{e&&O()}),Object(r.onUpdated)(()=>{o.value=e.loading}),Object(r.onMounted)(()=>{e.immediateCheck&&O()}),Object(u.a)({check:O}),Object(i.i)("scroll",O,{target:p}),()=>{var t=null==(t=n.default)?void 0:t.call(n),a=Object(r.createVNode)("div",{ref:l,class:b("placeholder")},null);return Object(r.createVNode)("div",{ref:c,role:"feed",class:b(),"aria-busy":o.value},["down"===e.direction?t:a,(()=>{if(o.value&&!e.finished)return Object(r.createVNode)("div",{class:b("loading")},[n.loading?n.loading():Object(r.createVNode)(s.a,{class:b("loading-icon")},{default:()=>[e.loadingText||f("loading")]})])})(),(()=>{if(e.finished){var t=n.finished?n.finished():e.finishedText;if(t)return Object(r.createVNode)("div",{class:b("finished-text")},[t])}})(),(()=>{if(e.error){var t=n.error?n.error():e.errorText;if(t)return Object(r.createVNode)("div",{role:"button",class:b("error-text"),tabindex:0,onClick:g},[t])}})(),"up"===e.direction?t:a])}}});var j=Object(t.a)(o)},"2de2":function(e,t,n){"use strict";n.d(t,"d",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return c})),n.d(t,"e",(function(){return a})),n.d(t,"a",(function(){return i}));var r="/duoduo-service/setup-service/",o="/duoduo-service/object-service/",c="/duoduo-service/duoduoenv-service/",a="/duoduo-service/",i="/duoduo-service/custom-service/"},"44dd":function(e,t,n){"use strict";function r(e){return Object(o.pushScopeId)("data-v-4bc7757d"),e=e(),Object(o.popScopeId)(),e}n.r(t);var o=n("7a23"),c={class:"energy-top clearfix"},a={class:"top-item fl"},i=r((function(){return Object(o.createElementVNode)("p",null,"我的节能",-1)})),u=r((function(){return Object(o.createElementVNode)("span",{class:"temp-span"},"积分说明",-1)})),d={class:"page-box detail-content"},s={class:"time"},l={class:"item-date fl"},b={class:"item-text fl"},f={class:"num fr"};n("4160"),n("159b");var j=n("5530"),p=n("6c02"),O=n("2bdd"),g=(n("2994"),n("9151")),m=n("0613"),v=n("d257"),h=(O=Object(o.defineComponent)({components:{VanList:O.a},setup:function(){var e=Object(p.d)(),t=Object(o.reactive)({loading:!1,finished:!1,nowDate:"",type:"history",totalPage:0,dataMap:{},page:1,pageCount:12,user:m.a.state.user,totalPoints:0,list:[],queryAllIntegral:function(e){Object(g.c)(e).then((function(e){e=null!=(e=null==e?void 0:e.content)?e:[],t.loading=!1,e.forEach((function(e){var n=Object(v.d)(e.updateTime)[0];e.showDate=Object(v.d)(e.updateTime)[1],e.showTime=Object(v.d)(e.updateTime)[2],t.dataMap[n]?t.dataMap[n].push(e):t.dataMap[n]=[e]})),e&&0===e.length?t.finished=!0:t.page++}))},queryHistoryIntegral:function(){var e={criteria:{type:2,projectId:t.user.projectId,userId:t.user.userId},orders:[{column:"updateTime",asc:!1}],page:t.page,size:t.pageCount};t.queryAllIntegral(e)},queryTodayIntegral:function(){var e={criteria:{date:Object(v.b)(""),integral:{$ne:0},projectId:t.user.projectId,userId:t.user.userId},orders:[{column:"updateTime",asc:!1}]};t.queryAllIntegral(e)},onLoad:function(){"today"===t.type?t.queryTodayIntegral():t.queryHistoryIntegral()},goIntegralDesc:function(){e.push({path:"/integral-desc"})}});return Object(o.onMounted)((function(){var e=Object(p.c)();t.totalPoints=e.query.totalPoints,t.type=e.query.type})),Object(j.a)({},Object(o.toRefs)(t))}}),n("ba36"),n("6b0d"));n=n.n(h);t.default=n()(O,[["render",function(e,t,n,r,j,p){var O=Object(o.resolveComponent)("van-icon"),g=Object(o.resolveComponent)("van-list");return Object(o.openBlock)(),Object(o.createElementBlock)(o.Fragment,null,[Object(o.createElementVNode)("div",c,[Object(o.createElementVNode)("div",a,[i,Object(o.createElementVNode)("p",null,Object(o.toDisplayString)(e.totalPoints||"--"),1)]),Object(o.createElementVNode)("div",{class:"top-item pt fr",onClick:t[0]||(t[0]=function(){return e.goIntegralDesc&&e.goIntegralDesc.apply(e,arguments)})},[u,Object(o.createVNode)(O,{class:"question",name:"question-o"})])]),Object(o.createElementVNode)("div",d,[Object(o.createVNode)(g,{loading:e.loading,"onUpdate:loading":t[1]||(t[1]=function(t){return e.loading=t}),finished:e.finished,"finished-text":"没有更多了",onLoad:e.onLoad},{default:Object(o.withCtx)((function(){return[(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(e.dataMap,(function(e,t){return Object(o.openBlock)(),Object(o.createElementBlock)("div",{class:"detail-box",key:t},[Object(o.createElementVNode)("div",s,Object(o.toDisplayString)(t),1),(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(e,(function(e,n){return Object(o.openBlock)(),Object(o.createElementBlock)("div",{class:"detail-item clearfix",key:t+n},[Object(o.createElementVNode)("div",l,[Object(o.createElementVNode)("span",null,Object(o.toDisplayString)(e.showDate),1),Object(o.createElementVNode)("span",null,Object(o.toDisplayString)(e.showTime),1)]),Object(o.createElementVNode)("div",b,[Object(o.createElementVNode)("span",null,Object(o.toDisplayString)(e.integralDetails||"-"),1),Object(o.createElementVNode)("span",null,Object(o.toDisplayString)(e.spaceName||"-"),1)]),Object(o.createElementVNode)("div",f," +"+Object(o.toDisplayString)(e.integral),1)])})),128))])})),128))]})),_:1},8,["loading","finished","onLoad"])])],64)}],["__scopeId","data-v-4bc7757d"]])},"67f4":function(e,t,n){},9151:function(e,t,n){"use strict";n.d(t,"h",(function(){return a})),n.d(t,"g",(function(){return i})),n.d(t,"i",(function(){return u})),n.d(t,"f",(function(){return d})),n.d(t,"a",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"c",(function(){return b})),n.d(t,"b",(function(){return f})),n.d(t,"j",(function(){return j})),n.d(t,"e",(function(){return p})),n("99af");var r=n("59b9"),o=n("ba72"),c=n("2de2"),a=function(e){return Object(r.b)().request("".concat(c.b,"userIntegral/queryUserMessage?").concat(e),o.b.GET,void 0,o.a.json)},i=function(){return Object(r.b)().request("".concat(c.b,"userPortrait/portraitTemp/queryPortraitTempUserTotal"),o.b.GET,void 0,o.a.json)},u=function(){return Object(r.b)().request("".concat(c.b,"userPortrait/portraitLight/queryTotalPortraitLight"),o.b.GET,void 0,o.a.json)},d=function(e){return Object(r.b)().request("".concat(c.b,"userPortrait/portraitTemp/queryPortraitTempUserDetail"),o.b.POST,e,o.a.json)},s=function(e){return Object(r.b)().request("".concat(c.b,"custom/getSeasonBySeasonDate?").concat(e),o.b.GET,void 0,o.a.json)},l=function(e){return Object(r.b)().request("".concat(c.b,"userPortrait/portraitLight/queryPortraitLightUser"),o.b.POST,e,o.a.json)},b=function(e){return Object(r.b)().request("".concat(c.b,"userIntegral/query"),o.b.POST,e,o.a.json)},f=function(e){return Object(r.b)().request("".concat(c.b,"custom/feedback/light/query"),o.b.POST,e,o.a.json)},j=function(e){return Object(r.b)().request("".concat(c.b,"custom/feedbackQuery"),o.b.POST,e,o.a.json)},p=function(){return Object(r.b)().request("".concat(c.b,"userPortrait/queryPortraitModuleList"),o.b.GET,void 0,o.a.json)}},ba36:function(e,t,n){"use strict";n("67f4")},c0c2:function(e,t,n){}}]);
|