12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-dcd3755c"],{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"),s=n("f465"),u=n("4eda"),d=n("80f6"),l=n("543e");const[b,f,p]=Object(c["a"])("list"),j={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:j,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(d["b"])(),j=Object(s["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,u=Object(s["l"])(j);if(!u.height||Object(i["d"])(c))return;let d=!1;const l=Object(s["l"])(a);d="up"===o?u.top-l.top<=n:l.bottom-u.bottom<=n,d&&(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||p("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(u["a"])({check:O}),Object(s["i"])("scroll",O,{target:j}),()=>{var t;const i=null==(t=n.default)?void 0:t.call(n),s=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:s,h(),g(),v(),"up"===e.direction?i:s])}}});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/"},5899:function(e,t){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},"58a5":function(e,t,n){"use strict";n("80d1")},"58a8":function(e,t,n){var r=n("1d80"),o=n("5899"),c="["+o+"]",a=RegExp("^"+c+c+"*"),i=RegExp(c+c+"*$"),s=function(e){return function(t){var n=String(r(t));return 1&e&&(n=n.replace(a,"")),2&e&&(n=n.replace(i,"")),n}};e.exports={start:s(1),end:s(2),trim:s(3)}},"80d1":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 s})),n.d(t,"f",(function(){return u})),n.d(t,"a",(function(){return d})),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 p})),n.d(t,"e",(function(){return j}));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)},s=function(){return Object(r["b"])().request("".concat(c["b"],"userPortrait/portraitLight/queryTotalPortraitLight"),o["b"].GET,void 0,o["a"].json)},u=function(e){return Object(r["b"])().request("".concat(c["b"],"userPortrait/portraitTemp/queryPortraitTempUserDetail"),o["b"].POST,e,o["a"].json)},d=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)},p=function(e){return Object(r["b"])().request("".concat(c["b"],"custom/feedbackQuery"),o["b"].POST,e,o["a"].json)},j=function(){return Object(r["b"])().request("".concat(c["b"],"userPortrait/queryPortraitModuleList"),o["b"].GET,void 0,o["a"].json)}},a9e3:function(e,t,n){"use strict";var r=n("83ab"),o=n("da84"),c=n("94ca"),a=n("6eeb"),i=n("5135"),s=n("c6b6"),u=n("7156"),d=n("c04e"),l=n("d039"),b=n("7c73"),f=n("241c").f,p=n("06cf").f,j=n("9bf2").f,O=n("58a8").trim,g="Number",m=o[g],v=m.prototype,h=s(b(v))==g,N=function(e){var t,n,r,o,c,a,i,s,u=d(e,!1);if("string"==typeof u&&u.length>2)if(u=O(u),t=u.charCodeAt(0),43===t||45===t){if(n=u.charCodeAt(2),88===n||120===n)return NaN}else if(48===t){switch(u.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+u}for(c=u.slice(2),a=c.length,i=0;i<a;i++)if(s=c.charCodeAt(i),s<48||s>o)return NaN;return parseInt(c,r)}return+u};if(c(g,!m(" 0o1")||!m("0b1")||m("+0x1"))){for(var y,E=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof E&&(h?l((function(){v.valueOf.call(n)})):s(n)!=g)?u(new m(N(t)),n,E):N(t)},T=r?f(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),I=0;T.length>I;I++)i(m,y=T[I])&&!i(E,y)&&j(E,y,p(m,y));E.prototype=v,v.constructor=E,a(o,g,E)}},c0c2:function(e,t,n){},c676:function(e,t,n){"use strict";n.r(t);var r=n("7a23"),o=function(e){return Object(r["pushScopeId"])("data-v-361efd17"),e=e(),Object(r["popScopeId"])(),e},c={key:0,class:"energy-top clearfix"},a={class:"top-item fl"},i=o((function(){return Object(r["createElementVNode"])("p",null,"我的节能",-1)})),s=o((function(){return Object(r["createElementVNode"])("span",{class:"temp-span"},"积分说明",-1)})),u={key:1,class:"page-box detail-content"},d={class:"time"},l=Object(r["createTextVNode"])("查看全部 "),b={class:"item-date fl"},f={class:"item-text fl"},p={class:"num fr"},j={class:"nodata"},O={class:"nodataImg"},g=["src"],m=o((function(){return Object(r["createElementVNode"])("div",{class:"firstTitle"},"您还没有节能积分",-1)})),v={class:"secondTitle"},h=Object(r["createTextVNode"])("快去查看"),N=Object(r["createTextVNode"])("来增加您的节能分吧 ");function y(e,t,n,o,y,E){var T=Object(r["resolveComponent"])("van-icon"),I=Object(r["resolveComponent"])("van-list");return Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],null,[e.showNodata?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",c,[Object(r["createElementVNode"])("div",a,[i,Object(r["createElementVNode"])("p",null,Object(r["toDisplayString"])(e.todayPoints?e.todayPoints:"--"),1)]),Object(r["createElementVNode"])("div",{class:"top-item pt fr",onClick:t[0]||(t[0]=function(){return e.goIntegralDesc&&e.goIntegralDesc.apply(e,arguments)})},[s,Object(r["createVNode"])(T,{class:"question",name:"question-o"})])])),e.showNodata?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",u,[Object(r["createVNode"])(I,{loading:e.loading,"onUpdate:loading":t[2]||(t[2]=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(n,o){return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{class:"detail-box",key:o},[Object(r["createElementVNode"])("div",d,[Object(r["createElementVNode"])("span",null,Object(r["toDisplayString"])(o),1),Object(r["createElementVNode"])("span",{onClick:t[1]||(t[1]=function(){return e.showHistory&&e.showHistory.apply(e,arguments)})},[l,Object(r["createVNode"])(T,{class:"arrow",name:"arrow"})])]),(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(n,(function(e,t){return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{class:"detail-item clearfix",key:o+t},[Object(r["createElementVNode"])("div",b,[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",f,[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",p," +"+Object(r["toDisplayString"])(e.integral),1)])})),128))])})),128))]})),_:1},8,["loading","finished","onLoad"])])),Object(r["withDirectives"])(Object(r["createElementVNode"])("div",j,[Object(r["createElementVNode"])("div",O,[Object(r["createElementVNode"])("img",{src:e.parseImgUrl("page-portrait","nodata.png"),alt:""},null,8,g)]),m,Object(r["createElementVNode"])("div",v,[h,Object(r["createElementVNode"])("span",{class:"showExplain",onClick:t[3]||(t[3]=function(){return e.goIntegralDesc&&e.goIntegralDesc.apply(e,arguments)})},"积分说明"),N])],512),[[r["vShow"],e.showNodata]])],64)}n("4160"),n("a9e3"),n("159b");var E=n("5530"),T=n("6c02"),I=n("2bdd"),V=(n("2994"),n("9151")),k=n("0613"),w=n("d257"),P=Object(r["defineComponent"])({components:{VanList:I["a"]},setup:function(){var e=[],t=Object(T["d"])(),n=Object(r["reactive"])({parseImgUrl:w["x"],loading:!1,finished:!1,nowDate:Object(w["a"])("YYYY年MM月DD日"),type:"history",totalPage:0,dataMap:{},page:1,pageCount:12,user:k["a"].state.user,totalPoints:0,todayPoints:0,showNodata:!1,list:e,queryAllIntegral:function(e){Object(V["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=n.nowDate;e.showDate=Object(w["c"])(e.updateTime)[1],e.showTime=Object(w["c"])(e.updateTime)[2],n.todayPoints=n.todayPoints+Number(e.integral),n.dataMap[t]?n.dataMap[t].push(e):n.dataMap[t]=[e]})),o&&0===o.length?n.finished=!0:n.page++,n.todayPoints<=0?n.showNodata=!0:n.showNodata=!1}))},queryTodayIntegral:function(){var e=Object(w["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(){n.queryTodayIntegral()},goIntegralDesc:function(){t.push({path:"/integral-desc"})},showHistory:function(){t.push({path:"/energy-detail",query:{totalPoints:n.totalPoints,type:"history"}})}});return Object(r["onMounted"])((function(){var e=Object(T["c"])();n.totalPoints=e.query.totalPoints,n.type=e.query.type})),Object(E["a"])({},Object(r["toRefs"])(n))}}),q=(n("58a5"),n("6b0d")),x=n.n(q);const S=x()(P,[["render",y],["__scopeId","data-v-361efd17"]]);t["default"]=S}}]);
- //# sourceMappingURL=chunk-dcd3755c.0153469a.js.map
|