bztang-admin/addons/yun_shop/static/app/js/chunk-5f680eec.915f668d.js

1 line
12 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-5f680eec"],{"201e":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{attrs:{id:"bonusPoolsIndex"}},[i("c-title",{attrs:{hide:!1,text:"奖金池奖励"}}),i("div",{staticClass:"headTop"},[i("div",{staticClass:"userBox"},[i("div",{staticClass:"image"},[i("img",{attrs:{src:t.info.avatar,alt:""}})]),i("div",{staticClass:"nameGrade"},[i("span",{staticClass:"name"},[t._v(t._s(t.info.nickname))]),t.info.level_name?i("div",{staticClass:"grade"},[t._v(t._s(t.info.level_name))]):t._e()])]),i("div",{staticClass:"tips"},[t._v("提示:所有奖励不包含特殊商品营业额")])]),i("div",{staticClass:"grandTotal"},[i("div",{staticClass:"grand"},[i("span",[t._v("累计奖励")]),i("span",[t._v(t._s(t.$i18n.t("money"))+t._s(t.info.all_amount))])]),i("div",{staticClass:"grandList"},[i("div",{staticClass:"gramdlis"},[i("span",{staticClass:"price"},[i("span",{staticClass:"smallp"},[t._v(t._s(t.$i18n.t("money")))]),t._v(t._s(t.info.ad_amount))]),i("span",{staticClass:"txt"},[t._v("广告屏收益")])]),i("div",{staticClass:"gramdlis"},[i("span",{staticClass:"price"},[i("span",{staticClass:"smallp"},[t._v(t._s(t.$i18n.t("money")))]),t._v(t._s(t.info.bonus_amount))]),i("span",{staticClass:"txt"},[t._v(t._s(t.love)+"奖励")])]),i("div",{staticClass:"gramdlis"},[i("span",{staticClass:"price"},[i("span",{staticClass:"smallp"},[t._v(t._s(t.$i18n.t("money")))]),t._v(t._s(t.info.team_amount))]),i("span",{staticClass:"txt"},[t._v("团队业绩奖励")])])])]),i("div",{staticClass:"line"}),i("div",{staticClass:"tramTotal",on:{click:t.toTeam}},[i("span",{staticClass:"txt"},[t._v("团队累计业绩值")]),i("span",{staticClass:"price"},[i("span",[t._v(t._s(t.$i18n.t("money"))+t._s(t.info.team))]),i("van-icon",{attrs:{name:"arrow",color:"#000",size:"1rem"}})],1)]),i("div",{staticClass:"line"}),i("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"}},[i("van-tab",{attrs:{title:"全部"}}),i("van-tab",{attrs:{title:"广告屏收益"}}),i("van-tab",{attrs:{title:t.love+"奖励"}}),i("van-tab",{attrs:{title:"团队业绩奖励"}})],1),i("div",{staticClass:"list"},[i("div",{staticClass:"statusBox"},[i("div",{staticClass:"dNone",class:{sele:0==t.tapSelect},on:{click:function(e){return t.tapSelectInd(0)}}},[t._v("全部")]),i("div",{staticClass:"dNone",class:{sele:1==t.tapSelect},on:{click:function(e){return t.tapSelectInd(1)}}},[t._v("已结算")]),i("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 i("div",{key:e.id,staticClass:"lis"},[i("div",{staticClass:"toplis"},[i("div",{staticClass:"idClis"},[i("div",[t._v("ID"+t._s(e.id))]),i("div",{staticClass:"title"},[t._v(t._s(e.type_name))])]),i("div",{staticClass:"price"},[t._v("+"+t._s(e.award_amounts))])]),i("div",{staticClass:"bottomlis"},[i("div",{staticClass:"time"},[t._v("时间:"+t._s(e.created_at))]),i("div",{staticClass:"txt"},[t._v(t._s(e.status_name))])])])}))],2)],1)},s=[],o=(i("99af"),i("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 i=e.data.list.data;t.list=t.list.concat(i)}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,d=(i("585c"),i("2877")),r=Object(d["a"])(l,a,s,!1,null,"d6587748",null);e["default"]=r.exports},"2b10":function(t,e,i){var a=i("3be2");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var s=i("499e").default;s("5e1faf74",a,!0,{sourceMap:!1,shadowMode:!1})},"3be2":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,"#bonusPoolsIndex[data-v-d6587748]{min-height:100vh;background:#fff}#bonusPoolsIndex .list[data-v-d6587748]{border-top:.06rem solid #ebebeb}#bonusPoolsIndex .list .statusBox[data-v-d6587748]{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-d6587748]{padding:.52rem;margin-right:.9rem}#bonusPoolsIndex .list .statusBox .sele[data-v-d6587748]{background:#ef4136;border-radius:.35rem;color:#fff}#bonusPoolsIndex .list .lis[data-v-d6587748]{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-d6587748],#bonusPoolsIndex .list .lis .bottomlis[data-v-d6587748]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#bonusPoolsIndex .list .lis .bottomlis[data-v-d6587748]{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-d6587748]{text-align:left}#bonusPoolsIndex .list .lis .bottomlis .txt[data-v-d6587748]{text-align:right}#bonusPoolsIndex .list .lis .toplis[data-v-d6587748]{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-d6587748]{-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-d6587748]{margin-top:.25rem;font-size:13px}#bonusPoolsIndex .list .lis .toplis .price[data-v-d6587748]{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-d6587748]{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-d6587748]{font-size:.88rem}#bonusPoolsIndex .tramTotal .price[data-v-d6587748]{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-d6587748]{margin-top:.0938rem}#bonusPoolsIndex .line[data-v-d6587748]{width:100%;height:.63rem;background:#f6f6f6}#bonusPoolsIndex .grandTotal .grandList[data-v-d6587748]{padding:1.59rem 0;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-align:center}#bonusPoolsIndex .grandTotal .grandList[data-v-d6587748],#bonusPoolsIndex .grandTotal .grandList .gramdlis[data-v-d6587748]{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-d6587748]{-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-d6587748]{font-size:.69rem;color:#2b2b2b}#bonusPoolsIndex .grandTotal .grandList .gramdlis .price[data-v-d6587748]{font-size:.81rem;color:#f15353}#bonusPoolsIndex .grandTotal .grandList .gramdlis .price .smallp[data-v-d6587748]{font-size:.63rem;color:#f15353}#bonusPoolsIndex .grandTotal .grand[data-v-d6587748]{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-d6587748]{width:23.41rem;background-color:#ee2e2b;overflow:hidden;padding-bottom:2rem}#bonusPoolsIndex .headTop .tips[data-v-d6587748]{margin-top:.75rem;text-align:left;font-size:.75rem;margin-left:.97rem;color:#fff}#bonusPoolsIndex .headTop .userBox[data-v-d6587748]{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-d6587748]{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-d6587748]{background:#f36b69;font-size:.75rem;color:#fff;padding:.25rem .53rem;border-radius:.63rem}#bonusPoolsIndex .headTop .userBox .nameGrade .name[data-v-d6587748]{margin-bottom:.35rem;font-size:1rem;color:#fff}#bonusPoolsIndex .headTop .userBox .image[data-v-d6587748]{width:2.88rem;height:2.88rem;background-color:#000;border-radius:100%;margin-right:.69rem}#bonusPoolsIndex .headTop .userBox .image img[data-v-d6587748]{width:100%;height:100%;border-radius:100%}",""]),t.exports=e},"585c":function(t,e,i){"use strict";i("2b10")},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var a=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 a&&a.scrollTop?t=a.scrollTop:s&&(t=s.scrollTop),t},getClientHeight:function(){var t=0;return t=s.clientHeight&&a.clientHeight?Math.min(s.clientHeight,a.clientHeight):Math.max(s.clientHeight,a.clientHeight),t},getScrollHeight:function(){return Math.max(s.scrollHeight,a.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(){}}}}}]);