1 line
12 KiB
JavaScript
1 line
12 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-314557ee"],{"08d1":function(t,e,a){var i=a("2573");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("401a40e8",i,!0,{sourceMap:!1,shadowMode:!1})},1471:function(t,e,a){"use strict";a("08d1")},"201e":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"bonusPoolsIndex"}},[a("c-title",{attrs:{hide:!1,text:"奖金池奖励"}}),a("div",{staticClass:"headTop"},[a("div",{staticClass:"userBox"},[a("div",{staticClass:"image"},[a("img",{attrs:{src:t.info.avatar,alt:""}})]),a("div",{staticClass:"nameGrade"},[a("span",{staticClass:"name"},[t._v(t._s(t.info.nickname))]),t.info.level_name?a("div",{staticClass:"grade"},[t._v(t._s(t.info.level_name))]):t._e()])]),a("div",{staticClass:"tips"},[t._v("提示:所有奖励不包含特殊商品营业额")])]),a("div",{staticClass:"grandTotal"},[a("div",{staticClass:"grand"},[a("span",[t._v("累计奖励")]),a("span",[t._v(t._s(t.$i18n.t("money"))+t._s(t.info.all_amount))])]),a("div",{staticClass:"grandList"},[a("div",{staticClass:"gramdlis"},[a("span",{staticClass:"price"},[a("span",{staticClass:"smallp"},[t._v(t._s(t.$i18n.t("money")))]),t._v(t._s(t.info.ad_amount))]),a("span",{staticClass:"txt"},[t._v("广告屏收益")])]),a("div",{staticClass:"gramdlis"},[a("span",{staticClass:"price"},[a("span",{staticClass:"smallp"},[t._v(t._s(t.$i18n.t("money")))]),t._v(t._s(t.info.bonus_amount))]),a("span",{staticClass:"txt"},[t._v(t._s(t.love)+"奖励")])]),a("div",{staticClass:"gramdlis"},[a("span",{staticClass:"price"},[a("span",{staticClass:"smallp"},[t._v(t._s(t.$i18n.t("money")))]),t._v(t._s(t.info.team_amount))]),a("span",{staticClass:"txt"},[t._v("团队业绩奖励")])])])]),a("div",{staticClass:"line"}),a("div",{staticClass:"tramTotal",on:{click:t.toTeam}},[a("span",{staticClass:"txt"},[t._v("团队累计业绩值")]),a("span",{staticClass:"price"},[a("span",[t._v(t._s(t.$i18n.t("money"))+t._s(t.info.team))]),a("van-icon",{attrs:{name:"arrow",color:"#000",size:"1rem"}})],1)]),a("div",{staticClass:"line"}),a("van-tabs",{attrs:{"title-active-color":"#ee2e2b","swipe-threshold":"3"},on:{change:t.bindChange},model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[a("van-tab",{attrs:{title:"全部"}}),a("van-tab",{attrs:{title:"广告屏收益"}}),a("van-tab",{attrs:{title:t.love+"奖励"}}),a("van-tab",{attrs:{title:"团队业绩奖励"}})],1),a("div",{staticClass:"list"},[a("div",{staticClass:"statusBox"},[a("div",{staticClass:"dNone",class:{sele:0==t.tapSelect},on:{click:function(e){return t.tapSelectInd(0)}}},[t._v("全部")]),a("div",{staticClass:"dNone",class:{sele:1==t.tapSelect},on:{click:function(e){return t.tapSelectInd(1)}}},[t._v("已结算")]),a("div",{staticClass:"dNone",class:{sele:2==t.tapSelect},on:{click:function(e){return t.tapSelectInd(2)}}},[t._v("未结算")])]),t._l(t.list,(function(e){return a("div",{key:e.id,staticClass:"lis"},[a("div",{staticClass:"toplis"},[a("div",{staticClass:"idClis"},[a("div",[t._v("ID:"+t._s(e.id))]),a("div",{staticClass:"title"},[t._v(t._s(e.type_name))])]),a("div",{staticClass:"price"},[t._v("+"+t._s(e.award_amounts))])]),a("div",{staticClass:"bottomlis"},[a("div",{staticClass:"time"},[t._v("时间:"+t._s(e.created_at))]),a("div",{staticClass:"txt"},[t._v(t._s(e.status_name))])])])}))],2)],1)},s=[],o=(a("b64b"),a("99af"),a("14d9"),a("ac0d")),n={mixins:[o["a"]],data:function(){return{active:0,tapSelect:0,info:{},list:[],love:"",isLoadMore:!0,page:1,total_page:0}},activated:function(){this.getData()},mounted:function(){this.love=localStorage.getItem("yz_basic_info")?JSON.parse(localStorage.getItem("yz_basic_info")).love:"爱心值"},methods:{getData:function(){var t=this,e={page:this.page,award_type:this.active,award_status:2==this.tapSelect?"-1":0==this.tapSelect?"0":"1"};$http.post("plugin.xzhh-bonus-pool.frontend.controllers.center.index",e,"加载中...").then((function(e){1==e.result?(t.info=e.data.info,t.isLoadMore=!0,t.total_page=e.data.list.last_page,t.list=e.data.list.data,t.total_page||(t.total_page=0)):t.$toast(e.msg)}))},getMoreData:function(){var t=this;if(this.isLoadMore=!1,!(this.page>=this.total_page)){this.page=this.page+1;var e={page:this.page,award_type:this.active,award_status:2==this.tapSelect?"-1":0==this.tapSelect?"0":"1"};$http.get("plugin.xzhh-bonus-pool.frontend.controllers.center.index",e,"加载中").then((function(e){if(t.isLoadMore=!0,1===e.result){var a=e.data.list.data;t.list=t.list.concat(a)}else t.page=t.page-1,t.isLoadMore=!1}),(function(t){}))}},toTeam:function(){this.$router.push(this.fun.getUrl("bonusPoolsTeam",{}))},tapSelectInd:function(t){this.tapSelect=t,this.page=1,this.total_page=1,this.getData()},bindChange:function(){this.tapSelect,this.page=1,this.total_page=1,this.getData()}}},l=n,c=(a("1471"),a("2877")),r=Object(c["a"])(l,i,s,!1,null,"7f8c2cac",null);e["default"]=r.exports},2573:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,"#bonusPoolsIndex[data-v-7f8c2cac]{min-height:100vh;background:#fff}#bonusPoolsIndex .list[data-v-7f8c2cac]{border-top:.06rem solid #ebebeb}#bonusPoolsIndex .list .statusBox[data-v-7f8c2cac]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin:.625rem .97rem}#bonusPoolsIndex .list .statusBox .dNone[data-v-7f8c2cac]{padding:.52rem;margin-right:.9rem}#bonusPoolsIndex .list .statusBox .sele[data-v-7f8c2cac]{background:#ef4136;border-radius:.35rem;color:#fff}#bonusPoolsIndex .list .lis[data-v-7f8c2cac]{padding:1.09rem 0;margin:0 .97rem;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;border-bottom:.06rem solid #ebebeb;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}#bonusPoolsIndex .list .lis[data-v-7f8c2cac],#bonusPoolsIndex .list .lis .bottomlis[data-v-7f8c2cac]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#bonusPoolsIndex .list .lis .bottomlis[data-v-7f8c2cac]{width:100%;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;font-size:.75rem;color:#666;margin-top:.6rem}#bonusPoolsIndex .list .lis .bottomlis .time[data-v-7f8c2cac]{text-align:left}#bonusPoolsIndex .list .lis .bottomlis .txt[data-v-7f8c2cac]{text-align:right}#bonusPoolsIndex .list .lis .toplis[data-v-7f8c2cac]{width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;font-size:.94rem}#bonusPoolsIndex .list .lis .toplis .idClis[data-v-7f8c2cac]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#bonusPoolsIndex .list .lis .toplis .idClis .title[data-v-7f8c2cac]{margin-top:.25rem;font-size:13px}#bonusPoolsIndex .list .lis .toplis .price[data-v-7f8c2cac]{text-align:right;-webkit-box-flex:.4;-webkit-flex:.4;-ms-flex:.4;flex:.4;color:#f15353;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#bonusPoolsIndex .tramTotal[data-v-7f8c2cac]{padding:.94rem;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#bonusPoolsIndex .tramTotal .txt[data-v-7f8c2cac]{font-size:.88rem}#bonusPoolsIndex .tramTotal .price[data-v-7f8c2cac]{font-size:.81rem;color:#f15353;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#bonusPoolsIndex .tramTotal .price .van-icon[data-v-7f8c2cac]{margin-top:.0938rem}#bonusPoolsIndex .line[data-v-7f8c2cac]{width:100%;height:.63rem;background:#f6f6f6}#bonusPoolsIndex .grandTotal .grandList[data-v-7f8c2cac]{padding:1.59rem 0;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-align:center}#bonusPoolsIndex .grandTotal .grandList[data-v-7f8c2cac],#bonusPoolsIndex .grandTotal .grandList .gramdlis[data-v-7f8c2cac]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}#bonusPoolsIndex .grandTotal .grandList .gramdlis[data-v-7f8c2cac]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center}#bonusPoolsIndex .grandTotal .grandList .gramdlis .txt[data-v-7f8c2cac]{font-size:.69rem;color:#2b2b2b}#bonusPoolsIndex .grandTotal .grandList .gramdlis .price[data-v-7f8c2cac]{font-size:.81rem;color:#f15353}#bonusPoolsIndex .grandTotal .grandList .gramdlis .price .smallp[data-v-7f8c2cac]{font-size:.63rem;color:#f15353}#bonusPoolsIndex .grandTotal .grand[data-v-7f8c2cac]{padding:.91rem .88rem;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;border-bottom:.0313rem solid #ebebeb}#bonusPoolsIndex .headTop[data-v-7f8c2cac]{width:23.41rem;background-color:#ee2e2b;overflow:hidden;padding-bottom:2rem}#bonusPoolsIndex .headTop .tips[data-v-7f8c2cac]{margin-top:.75rem;text-align:left;font-size:.75rem;margin-left:.97rem;color:#fff}#bonusPoolsIndex .headTop .userBox[data-v-7f8c2cac]{margin-top:1.69rem;margin-left:1.53rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#bonusPoolsIndex .headTop .userBox .nameGrade[data-v-7f8c2cac]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}#bonusPoolsIndex .headTop .userBox .nameGrade .grade[data-v-7f8c2cac]{background:#f36b69;font-size:.75rem;color:#fff;padding:.25rem .53rem;border-radius:.63rem}#bonusPoolsIndex .headTop .userBox .nameGrade .name[data-v-7f8c2cac]{margin-bottom:.35rem;font-size:1rem;color:#fff}#bonusPoolsIndex .headTop .userBox .image[data-v-7f8c2cac]{width:2.88rem;height:2.88rem;background-color:#000;border-radius:100%;margin-right:.69rem}#bonusPoolsIndex .headTop .userBox .image img[data-v-7f8c2cac]{width:100%;height:100%;border-radius:100%}",""]),t.exports=e},ac0d:function(t,e,a){"use strict";a.d(e,"a",(function(){return o}));var i=document.documentElement,s=document.body,o={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return i&&i.scrollTop?t=i.scrollTop:s&&(t=s.scrollTop),t},getClientHeight:function(){var t=0;return t=s.clientHeight&&i.clientHeight?Math.min(s.clientHeight,i.clientHeight):Math.max(s.clientHeight,i.clientHeight),t},getScrollHeight:function(){return Math.max(s.scrollHeight,i.scrollHeight)},handleScroll:function(){this.otherScroll();var t=document.documentElement.scrollTop||document.body.scrollTop;this.btnFlag=t>60,this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()?(this.isLoadMore&&this.getMoreData(),this.isBottom=!0):this.isBottom=!1},otherScroll:function(){}}}}}]); |