12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c761207a"],{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 m}));var r=n("c199"),o=n("7a23"),c=n("fe7e"),a=n("f691"),i=n("4a89"),u=n("f465"),d=n("4eda"),s=n("80f6"),l=n("543e");const[b,f,j]=Object(c["a"])("list"),p={error:Boolean,offset:Object(a["c"])(300),loading:Boolean,finished:Boolean,errorText:String,direction:Object(a["e"])("down"),loadingText:String,finishedText:String,immediateCheck:a["g"]};var O=Object(o["defineComponent"])({name:b,props:p,emits:["load","update:error","update:loading"],setup(e,{emit:t,slots:n}){const r=Object(o["ref"])(!1),c=Object(o["ref"])(),a=Object(o["ref"])(),b=Object(s["b"])(),p=Object(u["m"])(c),O=()=>{Object(o["nextTick"])(()=>{if(r.value||e.finished||e.error||!1===(null==b?void 0:b.value))return;const{offset:n,direction:o}=e,d=Object(u["l"])(p);if(!d.height||Object(i["d"])(c))return;let s=!1;const l=Object(u["l"])(a);s="up"===o?d.top-l.top<=n:l.bottom-d.bottom<=n,s&&(r.value=!0,t("update:loading",!0),t("load"))})},g=()=>{if(e.finished){const t=n.finished?n.finished():e.finishedText;if(t)return Object(o["createVNode"])("div",{class:f("finished-text")},[t])}},m=()=>{t("update:error",!1),O()},v=()=>{if(e.error){const t=n.error?n.error():e.errorText;if(t)return Object(o["createVNode"])("div",{role:"button",class:f("error-text"),tabindex:0,onClick:m},[t])}},h=()=>{if(r.value&&!e.finished)return Object(o["createVNode"])("div",{class:f("loading")},[n.loading?n.loading():Object(o["createVNode"])(l["a"],{class:f("loading-icon")},{default:()=>[e.loadingText||j("loading")]})])};return Object(o["watch"])(()=>[e.loading,e.finished,e.error],O),b&&Object(o["watch"])(b,e=>{e&&O()}),Object(o["onUpdated"])(()=>{r.value=e.loading}),Object(o["onMounted"])(()=>{e.immediateCheck&&O()}),Object(d["a"])({check:O}),Object(u["i"])("scroll",O,{target:p}),()=>{var t;const i=null==(t=n.default)?void 0:t.call(n),u=Object(o["createVNode"])("div",{ref:a,class:f("placeholder")},null);return Object(o["createVNode"])("div",{ref:c,role:"feed",class:f(),"aria-busy":r.value},["down"===e.direction?i:u,h(),g(),v(),"up"===e.direction?i:u])}}});const g=Object(r["a"])(O);var m=g},"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";n.r(t);var r=n("7a23"),o=function(e){return Object(r["pushScopeId"])("data-v-183e7a56"),e=e(),Object(r["popScopeId"])(),e},c={class:"energy-top clearfix"},a={class:"top-item fl"},i=o((function(){return Object(r["createElementVNode"])("p",null,"我的节能",-1)})),u=o((function(){return Object(r["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"};function j(e,t,n,o,j,p){var O=Object(r["resolveComponent"])("van-icon"),g=Object(r["resolveComponent"])("van-list");return Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],null,[Object(r["createElementVNode"])("div",c,[Object(r["createElementVNode"])("div",a,[i,Object(r["createElementVNode"])("p",null,Object(r["toDisplayString"])(e.totalPoints?e.totalPoints:"--"),1)]),Object(r["createElementVNode"])("div",{class:"top-item pt fr",onClick:t[0]||(t[0]=function(){return e.goIntegralDesc&&e.goIntegralDesc.apply(e,arguments)})},[u,Object(r["createVNode"])(O,{class:"question",name:"question-o"})])]),Object(r["createElementVNode"])("div",d,[Object(r["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(r["withCtx"])((function(){return[(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(e.dataMap,(function(e,t){return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{class:"detail-box",key:t},[Object(r["createElementVNode"])("div",s,Object(r["toDisplayString"])(t),1),(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(e,(function(e,n){return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{class:"detail-item clearfix",key:t+n},[Object(r["createElementVNode"])("div",l,[Object(r["createElementVNode"])("span",null,Object(r["toDisplayString"])(e.showDate),1),Object(r["createElementVNode"])("span",null,Object(r["toDisplayString"])(e.showTime),1)]),Object(r["createElementVNode"])("div",b,[Object(r["createElementVNode"])("span",null,Object(r["toDisplayString"])(e.integralDetails?e.integralDetails:"-"),1),Object(r["createElementVNode"])("span",null,Object(r["toDisplayString"])(e.spaceName?e.spaceName:"-"),1)]),Object(r["createElementVNode"])("div",f," +"+Object(r["toDisplayString"])(e.integral),1)])})),128))])})),128))]})),_:1},8,["loading","finished","onLoad"])])],64)}n("4160"),n("159b");var p=n("5530"),O=n("6c02"),g=n("2bdd"),m=(n("2994"),n("9151")),v=n("0613"),h=n("d257"),y=Object(r["defineComponent"])({components:{VanList:g["a"]},setup:function(){var e=[],t=Object(O["d"])(),n=Object(r["reactive"])({loading:!1,finished:!1,nowDate:"",type:"history",totalPage:0,dataMap:{},page:1,pageCount:12,user:v["a"].state.user,totalPoints:0,list:e,queryAllIntegral:function(e){Object(m["c"])(e).then((function(e){var t,r=e,o=null!==(t=null===r||void 0===r?void 0:r.content)&&void 0!==t?t:[];n.loading=!1,o.forEach((function(e){var t=Object(h["c"])(e.updateTime)[0];e.showDate=Object(h["c"])(e.updateTime)[1],e.showTime=Object(h["c"])(e.updateTime)[2],n.dataMap[t]?n.dataMap[t].push(e):n.dataMap[t]=[e]})),o&&0===o.length?n.finished=!0:n.page++}))},queryHistoryIntegral:function(){var e={criteria:{type:2,projectId:n.user.projectId,userId:n.user.userId},orders:[{column:"updateTime",asc:!1}],page:n.page,size:n.pageCount};n.queryAllIntegral(e)},queryTodayIntegral:function(){var e=Object(h["a"])(""),t={criteria:{date:e,integral:{$ne:0},projectId:n.user.projectId,userId:n.user.userId},orders:[{column:"updateTime",asc:!1}]};n.queryAllIntegral(t)},onLoad:function(){"today"===n.type?n.queryTodayIntegral():n.queryHistoryIntegral()},goIntegralDesc:function(){t.push({path:"/integral-desc"})}});return Object(r["onMounted"])((function(){var e=Object(O["c"])();n.totalPoints=e.query.totalPoints,n.type=e.query.type})),Object(p["a"])({},Object(r["toRefs"])(n))}}),T=(n("9edd"),n("6b0d")),q=n.n(T);const E=q()(y,[["render",j],["__scopeId","data-v-183e7a56"]]);t["default"]=E},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)}},"9edd":function(e,t,n){"use strict";n("faa7")},c0c2:function(e,t,n){},faa7:function(e,t,n){}}]);
- //# sourceMappingURL=chunk-c761207a.aa4786c0.js.map
|