bztang-admin/addons/yun_shop/static/app/js/chunk-07b50b38.d78d87ec.js

1 line
6.9 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-07b50b38"],{"0811":function(e,t,n){"use strict";n("d77f0")},"3af1b":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"energy"},[n("van-cell-group",[n("van-cell",{attrs:{title:"能量值",value:e.infoEnergy.energy}}),n("van-cell",{attrs:{title:"奖池分红总额",value:e.infoEnergy.amounts}}),n("van-cell",{attrs:{title:"荣誉等级",value:e.infoEnergy.pool}}),n("van-cell",{attrs:{title:e.infoEnergy.love_name,value:e.infoEnergy.love,"is-link":""},on:{click:e.loveOn}})],1),n("div",{staticClass:"energy-tab"},[n("van-tabs",{attrs:{"title-inactive-color":"#3B3B4A","title-active-color":"#F15353"},on:{change:e.energyTab},model:{value:e.active,callback:function(t){e.active=t},expression:"active"}},[n("van-tab",{attrs:{title:"能量值记录"}},[e.energyList.length>0?n("div",{staticClass:"energy-list"},e._l(e.energyList,(function(t,i){return n("block",{key:i},[n("div",{staticClass:"energy-item"},[n("div",{staticClass:"energy-id flex-a-c flex-j-sb"},[n("p",[e._v(e._s(t.change_name))]),Number(t.amounts)>0?n("p",[e._v("+"+e._s(t.amounts))]):n("p",{staticClass:"minus"},[e._v(e._s(t.amounts))])]),n("div",{staticClass:"energy-time flex-a-c flex-j-sb"},[n("p",[e._v(e._s(t.created_at))])])])])})),1):n("van-empty",{attrs:{description:"暂无数据"}})],1),n("van-tab",{attrs:{title:"奖池分红记录"}},[e.energyList.length>0?n("div",{staticClass:"energy-list"},e._l(e.energyList,(function(t,i){return n("block",{key:i},[n("div",{staticClass:"energy-item"},[n("div",{staticClass:"energy-id flex-a-c flex-j-sb"},[n("p",[e._v("ID"+e._s(t.id))]),Number(t.rewards)>0?n("p",[e._v("+"+e._s(t.rewards))]):n("p",{staticClass:"minus"},[e._v(e._s(t.rewards))])]),n("div",{staticClass:"energy-time flex-a-c flex-j-sb"},[n("p",[e._v("奖池:"+e._s(t.name))]),n("p",[e._v(e._s(t.created_at))])])])])})),1):n("van-empty",{attrs:{description:"暂无数据"}})],1)],1)],1),n("div",{class:[e.fun.isIphoneX()?"iphoneXStyle":""]})],1)},a=[],o=n("2909"),r=(n("14d9"),n("b0c0"),n("99af"),n("ac0d")),l={name:"",components:{},mixins:[r["a"]],data:function(){return{active:0,isLoadMore:!0,page:1,total_page:0,infoEnergy:{},energyList:[],bonusList:[]}},computed:{},watch:{},methods:{loveOn:function(){this.$router.push(this.fun.getUrl("contribution",{},{}))},energyTab:function(e){this.page=1,this.active=e,this.energyList=[],0===this.active?this.api="plugin.energy-pool.frontend.controllers.center.energy":this.api="plugin.energy-pool.frontend.controllers.center.pool",this.energyData()},energyData:function(){var e=this;$http.get(this.api,{page:this.page,basic_info:1},"加载中..").then((function(t){if(1==t.result){var n,i,a=t.basic_info,o=t.data;e.energyList=null===(n=o.list)||void 0===n?void 0:n.data,e.infoEnergy=o.info,e.isLoadMore=!0,e.total_page=null===(i=o.list)||void 0===i?void 0:i.last_page,e.total_page||(e.page=0),e.$nextTick((function(){var t,n;e.fun.wxShare("",{mid:e.fun.getKeyByMid()},{url:window.location.href,title:null===a||void 0===a||null===(t=a.home.mailInfo)||void 0===t?void 0:t.name,imgUrl:null===a||void 0===a||null===(n=a.home.mailInfo)||void 0===n?void 0:n.logo_url,description:""})}),50)}else e.page=e.page-1,e.isLoadMore=!1,e.$dialog.alert({message:t.msg})}))},getMoreData:function(){var e=this;this.isLoadMore=!1,this.page>=this.total_page||(this.page=this.page+1,0===this.active?this.api="plugin.energy-pool.frontend.controllers.center.energy":this.api="plugin.energy-pool.frontend.controllers.center.pool",$http.post(this.api,{page:this.page},"加载中").then((function(t){if(e.isLoadMore=!0,1===t.result){var n,i=null===(n=t.data.list)||void 0===n?void 0:n.data;e.energyList=[].concat(Object(o["a"])(e.energyList),Object(o["a"])(i))}else e.page=e.page-1,e.isLoadMore=!1}),(function(e){})))}},created:function(){},mounted:function(){},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){0===this.active?this.api="plugin.energy-pool.frontend.controllers.center.energy":this.api="plugin.energy-pool.frontend.controllers.center.pool",this.energyData()}},s=l,c=s,d=(n("0811"),n("67fc"),n("2877")),g=Object(d["a"])(c,i,a,!1,null,"1eadb9db",null);t["default"]=g.exports},6366:function(e,t,n){var i=n("24fb");t=i(!1),t.push([e.i,".energy-tab[data-v-1eadb9db]{margin:8px 0 0 0}.energy-tab .energy-list[data-v-1eadb9db]{background-color:#fff}.energy-tab .energy-list .energy-item[data-v-1eadb9db]{padding:12px 0;margin:0 12px;border-bottom:1px solid #e7e7e7}.energy-tab .energy-list .energy-item .energy-id[data-v-1eadb9db]{padding:0 0 8px 0}.energy-tab .energy-list .energy-item .energy-id p[data-v-1eadb9db]:first-child{font-size:14px;font-weight:700;color:#3b3b4a}.energy-tab .energy-list .energy-item .energy-id p[data-v-1eadb9db]:last-child{font-size:14px;font-weight:700;line-height:20px;color:#f15353}.energy-tab .energy-list .energy-item .energy-id .minus[data-v-1eadb9db]{color:#3b3b4a!important}.energy-tab .energy-list .energy-item .energy-time[data-v-1eadb9db]{font-size:12px;color:#999}.energy-tab .energy-list :last-child .energy-item[data-v-1eadb9db]{border-bottom:none}.iphoneXStyle[data-v-1eadb9db]{-webkit-box-sizing:content-box;box-sizing:content-box;padding-bottom:24px}",""]),e.exports=t},"67fc":function(e,t,n){"use strict";n("72cd")},"72cd":function(e,t,n){var i=n("6366");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var a=n("499e").default;a("0e67f19b",i,!0,{sourceMap:!1,shadowMode:!1})},ac0d:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=document.documentElement,a=document.body,o={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var e=0;return i&&i.scrollTop?e=i.scrollTop:a&&(e=a.scrollTop),e},getClientHeight:function(){var e=0;return e=a.clientHeight&&i.clientHeight?Math.min(a.clientHeight,i.clientHeight):Math.max(a.clientHeight,i.clientHeight),e},getScrollHeight:function(){return Math.max(a.scrollHeight,i.scrollHeight)},handleScroll:function(){this.otherScroll();var e=document.documentElement.scrollTop||document.body.scrollTop;this.btnFlag=e>60,this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()?(this.isLoadMore&&this.getMoreData(),this.isBottom=!0):this.isBottom=!1},otherScroll:function(){}}}},bd54:function(e,t,n){var i=n("24fb");t=i(!1),t.push([e.i,".energy[data-v-1eadb9db] .van-cell__title{text-align:left;font-size:16px;color:#3b3b4a}.energy[data-v-1eadb9db] .van-cell__value{font-size:14px;color:#999}.energy[data-v-1eadb9db] .van-tab__text--ellipsis{font-size:16px}",""]),e.exports=t},d77f0:function(e,t,n){var i=n("bd54");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var a=n("499e").default;a("7cc8e42b",i,!0,{sourceMap:!1,shadowMode:!1})}}]);