chunk-012aa412.c3022f85.js 8.5 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-012aa412"],{"2de2":function(e,t,o){o.d(t,"e",(function(){return a})),o.d(t,"d",(function(){return r})),o.d(t,"b",(function(){return n})),o.d(t,"c",(function(){return c})),o.d(t,"f",(function(){return i})),o.d(t,"a",(function(){return s}));let a="/duoduo-service/setup-service/",r="/duoduo-service/object-service/",n="/duoduo-service/duoduoenv-service/",c="/duoduo-service",i="/duoduo-service/",s="/duoduo-service/custom-service/"},9151:function(e,t,o){o.d(t,"h",(function(){return c})),o.d(t,"g",(function(){return i})),o.d(t,"i",(function(){return s})),o.d(t,"f",(function(){return d})),o.d(t,"a",(function(){return l})),o.d(t,"d",(function(){return u})),o.d(t,"c",(function(){return b})),o.d(t,"b",(function(){return j})),o.d(t,"j",(function(){return O})),o.d(t,"e",(function(){return p}));var a=o("59b9"),r=o("ba72"),n=o("2de2");let c=e=>Object(a.b)().request(n.b+"userIntegral/queryUserMessage?"+e,r.b.GET,void 0,r.a.json),i=()=>Object(a.b)().request(n.b+"userPortrait/portraitTemp/queryPortraitTempUserTotal",r.b.GET,void 0,r.a.json),s=()=>Object(a.b)().request(n.b+"userPortrait/portraitLight/queryTotalPortraitLight",r.b.GET,void 0,r.a.json),d=e=>Object(a.b)().request(n.b+"userPortrait/portraitTemp/queryPortraitTempUserDetail",r.b.POST,e,r.a.json),l=e=>Object(a.b)().request(n.b+"custom/getSeasonBySeasonDate?"+e,r.b.GET,void 0,r.a.json),u=e=>Object(a.b)().request(n.b+"userPortrait/portraitLight/queryPortraitLightUser",r.b.POST,e,r.a.json),b=e=>Object(a.b)().request(n.b+"userIntegral/query",r.b.POST,e,r.a.json),j=e=>Object(a.b)().request(n.b+"custom/feedback/light/query",r.b.POST,e,r.a.json),O=e=>Object(a.b)().request(n.b+"custom/feedbackQuery",r.b.POST,e,r.a.json),p=()=>Object(a.b)().request(n.b+"userPortrait/queryPortraitModuleList",r.b.GET,void 0,r.a.json)},af58:function(e,t,o){o.d(t,"a",(function(){return O}));t=o("23f9");var a=o("7a23"),r=o("1fba"),n=o("e5f6"),c=o("8db7"),i=o("450f"),s=o("efd9"),d=o("be32"),l=o("5913");let[u,b,j]=Object(r.a)("list");o={error:Boolean,offset:Object(n.c)(300),loading:Boolean,finished:Boolean,errorText:String,direction:Object(n.e)("down"),loadingText:String,finishedText:String,immediateCheck:n.g},r=Object(a.defineComponent)({name:u,props:o,emits:["load","update:error","update:loading"],setup(e,{emit:t,slots:o}){let r=Object(a.ref)(e.loading),n=Object(a.ref)(),u=Object(a.ref)(),O=Object(d.b)(),p=Object(i.useScrollParent)(n),f=()=>{Object(a.nextTick)(()=>{if(!(r.value||e.finished||e.error||!1===(null==O?void 0:O.value))){var{offset:o,direction:a}=e,s=Object(i.useRect)(p);if(s.height&&!Object(c.d)(n)){let e=!1;var d=Object(i.useRect)(u);(e="up"===a?s.top-d.top<=o:d.bottom-s.bottom<=o)&&(r.value=!0,t("update:loading",!0),t("load"))}}})},g=()=>{t("update:error",!1),f()};return Object(a.watch)(()=>[e.loading,e.finished,e.error],f),O&&Object(a.watch)(O,e=>{e&&f()}),Object(a.onUpdated)(()=>{r.value=e.loading}),Object(a.onMounted)(()=>{e.immediateCheck&&f()}),Object(s.a)({check:f}),Object(i.useEventListener)("scroll",f,{target:p,passive:!0}),()=>{var t=null==(t=o.default)?void 0:t.call(o),c=Object(a.createVNode)("div",{ref:u,class:b("placeholder")},null);return Object(a.createVNode)("div",{ref:n,role:"feed",class:b(),"aria-busy":r.value},["down"===e.direction?t:c,(()=>{if(r.value&&!e.finished)return Object(a.createVNode)("div",{class:b("loading")},[o.loading?o.loading():Object(a.createVNode)(l.a,{class:b("loading-icon")},{default:()=>[e.loadingText||j("loading")]})])})(),(()=>{if(e.finished){var t=o.finished?o.finished():e.finishedText;if(t)return Object(a.createVNode)("div",{class:b("finished-text")},[t])}})(),(()=>{if(e.error){var t=o.error?o.error():e.errorText;if(t)return Object(a.createVNode)("div",{role:"button",class:b("error-text"),tabindex:0,onClick:g},[t])}})(),"up"===e.direction?t:c])}}});let O=Object(t.a)(r)},c5ae:function(e,t,o){o("cbe9")},c676:function(e,t,o){o.r(t);var a=o("7a23");let r={key:0,class:"energy-top clearfix"},n={class:"top-item fl"},c={key:1,class:"page-box detail-content"},i={class:"time"},s={class:"item-date fl"},d={class:"item-text fl"},l={class:"num fr"},u={class:"nodata"},b={class:"nodataImg"},j=["src"],O={class:"secondTitle"};o("14d9"),o("0643"),o("4e3e");var p=o("6c02"),f=o("af58"),g=o("9151"),m=o("0613"),v=o("d257"),h=(f=Object(a.defineComponent)({components:{VanList:f.a},setup(){let e=Object(p.d)(),t=Object(a.reactive)({parseImgUrl:v.z,loading:!1,finished:!1,nowDate:Object(v.c)("YYYY年MM月DD日"),type:"history",totalPage:0,dataMap:{},page:1,pageCount:12,user:m.a.state.user,totalPoints:0,todayPoints:0,showNodata:!1,list:[],queryAllIntegral(e){Object(g.c)(e).then(e=>{e=null!=(e=null==e?void 0:e.content)?e:[],t.loading=!1,e.forEach((function(e){var o=t.nowDate;e.showDate=Object(v.e)(e.updateTime)[1],e.showTime=Object(v.e)(e.updateTime)[2],t.todayPoints=t.todayPoints+Number(e.integral),t.dataMap[o]?t.dataMap[o].push(e):t.dataMap[o]=[e]})),e&&0===e.length?t.finished=!0:t.page++,t.todayPoints<=0?t.showNodata=!0:t.showNodata=!1})},queryTodayIntegral(){var e={criteria:{date:Object(v.c)(""),integral:{$ne:0},projectId:t.user.projectId,userId:t.user.userId},orders:[{column:"updateTime",asc:!1}]};t.queryAllIntegral(e)},onLoad(){t.queryTodayIntegral()},goIntegralDesc(){e.push({path:"/integral-desc"})},showHistory(){e.push({path:"/energy-detail",query:{totalPoints:t.totalPoints,type:"history"}})}});return Object(a.onMounted)(()=>{var e=Object(p.c)();t.totalPoints=e.query.totalPoints,t.type=e.query.type}),{...Object(a.toRefs)(t)}}}),o("c5ae"),o("6b0d"));o=o.n(h);t.default=o()(f,[["render",function(e,t,o,p,f,g){let m=Object(a.resolveComponent)("van-icon");var v=Object(a.resolveComponent)("van-list");return Object(a.openBlock)(),Object(a.createElementBlock)(a.Fragment,null,[e.showNodata?Object(a.createCommentVNode)("",!0):(Object(a.openBlock)(),Object(a.createElementBlock)("div",r,[Object(a.createElementVNode)("div",n,[t[4]||(t[4]=Object(a.createElementVNode)("p",null,"我的节能",-1)),Object(a.createElementVNode)("p",null,Object(a.toDisplayString)(e.todayPoints||"--"),1)]),Object(a.createElementVNode)("div",{class:"top-item pt fr",onClick:t[0]||(t[0]=(...t)=>e.goIntegralDesc&&e.goIntegralDesc(...t))},[t[5]||(t[5]=Object(a.createElementVNode)("span",{class:"temp-span"},"积分说明",-1)),Object(a.createVNode)(m,{class:"question",name:"question-o"})])])),e.showNodata?Object(a.createCommentVNode)("",!0):(Object(a.openBlock)(),Object(a.createElementBlock)("div",c,[Object(a.createVNode)(v,{loading:e.loading,"onUpdate:loading":t[2]||(t[2]=t=>e.loading=t),finished:e.finished,"finished-text":"没有更多了",onLoad:e.onLoad},{default:Object(a.withCtx)(()=>[(Object(a.openBlock)(!0),Object(a.createElementBlock)(a.Fragment,null,Object(a.renderList)(e.dataMap,(o,r)=>(Object(a.openBlock)(),Object(a.createElementBlock)("div",{class:"detail-box",key:r},[Object(a.createElementVNode)("div",i,[Object(a.createElementVNode)("span",null,Object(a.toDisplayString)(r),1),Object(a.createElementVNode)("span",{onClick:t[1]||(t[1]=(...t)=>e.showHistory&&e.showHistory(...t))},[t[6]||(t[6]=Object(a.createTextVNode)("查看全部 ")),Object(a.createVNode)(m,{class:"arrow",name:"arrow"})])]),(Object(a.openBlock)(!0),Object(a.createElementBlock)(a.Fragment,null,Object(a.renderList)(o,(e,t)=>(Object(a.openBlock)(),Object(a.createElementBlock)("div",{class:"detail-item clearfix",key:r+t},[Object(a.createElementVNode)("div",s,[Object(a.createElementVNode)("span",null,Object(a.toDisplayString)(e.showDate),1),Object(a.createElementVNode)("span",null,Object(a.toDisplayString)(e.showTime),1)]),Object(a.createElementVNode)("div",d,[Object(a.createElementVNode)("span",null,Object(a.toDisplayString)(e.integralDetails||"-"),1),Object(a.createElementVNode)("span",null,Object(a.toDisplayString)(e.spaceName||"-"),1)]),Object(a.createElementVNode)("div",l," +"+Object(a.toDisplayString)(e.integral),1)]))),128))]))),128))]),_:1},8,["loading","finished","onLoad"])])),Object(a.withDirectives)(Object(a.createElementVNode)("div",u,[Object(a.createElementVNode)("div",b,[Object(a.createElementVNode)("img",{src:e.parseImgUrl("page-portrait","nodata.png"),alt:""},null,8,j)]),t[9]||(t[9]=Object(a.createElementVNode)("div",{class:"firstTitle"},"您还没有节能积分",-1)),Object(a.createElementVNode)("div",O,[t[7]||(t[7]=Object(a.createTextVNode)("快去查看")),Object(a.createElementVNode)("span",{class:"showExplain",onClick:t[3]||(t[3]=(...t)=>e.goIntegralDesc&&e.goIntegralDesc(...t))},"积分说明"),t[8]||(t[8]=Object(a.createTextVNode)("来增加您的节能分吧 "))])],512),[[a.vShow,e.showNodata]])],64)}],["__scopeId","data-v-2e484ec9"]])},cbe9:function(e,t,o){}}]);