(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["myScore"],{2344:function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"my-score"},[e("div",{staticClass:"my-score-top"},[e("div",{staticClass:"my-score-top__title"},[t._v(" 可用积分 "),e("div",{staticClass:"my-score-top__num"},[t._v(" "+t._s(t.all_point)+" ")])])]),e("div",{staticClass:"my-score-sign"},[e("div",{staticStyle:{"font-size":"18px",color:"#333333","font-weight":"500",padding:"15px"}},[t._v("做任务赚取积分")]),t._l(t.menuList,(function(n,o){return e("div",{key:o,staticClass:"my-score-item"},[e("div",[e("div",{staticStyle:{"font-size":"15px",color:"#303133"}},[t._v(t._s(n.name))]),e("div",{staticStyle:{"font-size":"15px",color:"#303133"}},[t._v(t._s(n.point)+"积分")])]),e("div",[2==n.type?e("van-button",{staticStyle:{padding:"0px 20px","font-size":"15px"},attrs:{size:"small",round:"",type:"primary",color:"linear-gradient(142deg, #FFAB26 0%, #FF8418 100%)"},on:{click:t.onTask}},[t._v("去签到")]):t._e()],1)])}))],2)])},s=[],i=(n("66b9"),n("b650")),a=(n("4056"),n("44bf")),c=(n("68ef"),n("a71a"),n("9d70"),n("3743"),n("4d75"),n("872c"),n("c31d")),r=n("2b0e"),l=n("2638"),u=n.n(l),d=n("d282"),p=n("ba31"),f=n("6605"),m=n("e41f"),g=Object(d["a"])("notify"),v=g[0],b=g[1];function y(t,e,n,o){var s={color:e.color,background:e.background};return t(m["a"],u()([{attrs:{value:e.value,position:"top",overlay:!1,duration:.2,lockScroll:!1},style:s,class:[b([e.type]),e.className]},Object(p["b"])(o,!0)]),[(null==n.default?void 0:n.default())||e.message])}y.props=Object(c["a"])({},f["b"],{color:String,message:[Number,String],duration:[Number,String],className:null,background:String,getContainer:[String,Function],type:{type:String,default:"danger"}});var _,O,h=v(y),C=n("a142");function k(t){return Object(C["e"])(t)?t:{message:t}}function w(t){if(!C["g"])return O||(O=Object(p["c"])(h,{on:{click:function(t){O.onClick&&O.onClick(t)},close:function(){O.onClose&&O.onClose()},opened:function(){O.onOpened&&O.onOpened()}}})),t=Object(c["a"])({},w.currentOptions,k(t)),Object(c["a"])(O,t),clearTimeout(_),t.duration&&t.duration>0&&(_=setTimeout(w.clear,t.duration)),O}function x(){return{type:"danger",value:!0,message:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:null,onClick:null,onOpened:null}}w.clear=function(){O&&(O.value=!1)},w.currentOptions=x(),w.setDefaultOptions=function(t){Object(c["a"])(w.currentOptions,t)},w.resetDefaultOptions=function(){w.currentOptions=x()},w.install=function(){r["a"].use(h)},w.Component=h,r["a"].prototype.$notify=w;var S=w,j=n("9ab4"),P=n("60a3");let z=class extends P["d"]{constructor(){super(...arguments),this.menuList=[],this.all_point=0}created(){this.getAllPoint(),this.getMenuList()}getAllPoint(){this.$request("/wttCms/wxPoint/headInfo",{}).then(t=>{this.all_point=t.data.all_point})}getMenuList(){this.$request("/wttCms/wxPoint/ruleList",{page:1,size:999}).then(t=>{this.menuList=t.data.list})}onTask(){this.$request("/wttCms/wxPoint/sign",{}).then(t=>{S({type:"success",message:"已签到",duration:2e3})}).catch(t=>{S({type:"warning",message:t.message,duration:2e3})}),this.getAllPoint()}};z=Object(j["a"])([Object(P["a"])({components:{[a["a"].name]:a["a"],[i["a"].name]:i["a"]}})],z);var L=z,F=L,N=(n("8e05"),n("2877")),A=Object(N["a"])(F,o,s,!1,null,"52a979f1",null);e["default"]=A.exports},"872c":function(t,e,n){},"8e05":function(t,e,n){"use strict";n("98f2")},"98f2":function(t,e,n){}}]);
//# sourceMappingURL=myScore.a30262cf.js.map