bztang-admin/addons/yun_shop/static/app/js/chunk-322a324f.cf2ccf35.js

1 line
10 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-322a324f"],{"0064":function(t,e,a){"use strict";a("53d31")},"53d31":function(t,e,a){var i=a("7fb2");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=a("499e").default;o("81bc1096",i,!0,{sourceMap:!1,shadowMode:!1})},"7fb2":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".nav[data-v-a31f63e8]{width:100%;height:7.19rem;background-color:#ee2e2b;-ms-flex-align:start;padding-left:1.53rem;padding-top:1.69rem}.nav[data-v-a31f63e8],.nav .user[data-v-a31f63e8]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:start;-webkit-align-items:flex-start;align-items:flex-start}.nav .user[data-v-a31f63e8]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:2.88rem;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:start;overflow:hidden}.nav .user .leave[data-v-a31f63e8]{font-size:.75rem;color:#fff;background:#f36b69;border-radius:.63rem;padding:.11rem .5rem}.nav .user .isname[data-v-a31f63e8]{font-size:1rem;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;text-align:left}.nav .img[data-v-a31f63e8]{width:2.88rem;height:2.88rem;background-color:#000;border-radius:100%;margin-right:.69rem}.nav .img img[data-v-a31f63e8]{width:100%;height:100%;border-radius:100%}.listbox[data-v-a31f63e8]{background:#fff;width:100%}.listbox .list[data-v-a31f63e8]{margin:0 .97rem 0 .91rem;height:3.41rem;border-bottom:1px solid #ebebeb;-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}.listbox .list[data-v-a31f63e8],.listbox .list .list_left[data-v-a31f63e8]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;overflow:hidden}.listbox .list .list_left[data-v-a31f63e8]{-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;font-size:.75rem;height:100%;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around}.listbox .list .list_left .order[data-v-a31f63e8]{text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.listbox .list .list_left .date[data-v-a31f63e8]{text-align:left;font-size:.69rem;color:#666}.listbox .list .list_right[data-v-a31f63e8]{-webkit-box-flex:.6;-webkit-flex:.6;-ms-flex:.6;flex:.6;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;height:100%;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around;overflow:hidden}.listbox .list .list_right .recode[data-v-a31f63e8]{text-align:right;font-size:.81rem;color:#f15353;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.listbox .list .list_right .txt[data-v-a31f63e8]{text-align:right;font-size:.69rem;color:#666}.linebox[data-v-a31f63e8]{height:2.66rem;width:100%;background:#fff;padding:0 .97rem;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;margin-bottom:.63rem}.linebox .linebox_txt[data-v-a31f63e8]{font-size:.88rem}.linebox .iconfont[data-v-a31f63e8]{font-size:20px}.centenbox[data-v-a31f63e8]{margin:0 .63rem;margin-top:-1.31rem}.centenbox .Totalawards[data-v-a31f63e8]{width:100%;height:7.19rem;background-color:#fff;border-radius:.31rem;padding:0 .91rem;margin-bottom:.63rem}.centenbox .Totalawards .Totalawards_bottom[data-v-a31f63e8]{width:100%;height:4.5rem;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center}.centenbox .Totalawards .Totalawards_bottom[data-v-a31f63e8],.centenbox .Totalawards .Totalawards_bottom .Totalawards_bottom_box[data-v-a31f63e8]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.centenbox .Totalawards .Totalawards_bottom .Totalawards_bottom_box[data-v-a31f63e8]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:100%;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;overflow:hidden}.centenbox .Totalawards .Totalawards_bottom .Totalawards_bottom_box .Totalawards_bottom_box_top[data-v-a31f63e8]{font-size:.81rem;color:#f15353;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.centenbox .Totalawards .Totalawards_bottom .Totalawards_bottom_box .Totalawards_bottom_box_bottom[data-v-a31f63e8]{font-size:.69rem;color:#666;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.centenbox .Totalawards .Totalawards_top[data-v-a31f63e8]{height:2.66rem;width:100%;border-bottom:1px solid #ebebeb;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;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.centenbox .Totalawards .Totalawards_top .Totalawards_top_left[data-v-a31f63e8]{font-size:.81rem;color:#393939}.centenbox .Totalawards .Totalawards_top .Totalawards_top_right[data-v-a31f63e8]{font-size:.81rem;color:#f15353}",""]),t.exports=e},a104: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:"allowanceIndex"}},[a("c-title",{staticClass:"circle_title",attrs:{hide:!1,text:"代理商奖励"}}),a("div",{staticClass:"nav"},[a("div",{staticClass:"img"},[a("img",{attrs:{src:t.avatarInfo.avatar,alt:""}})]),a("div",{staticClass:"user"},[a("div",{staticClass:"isname"},[t._v(t._s(t.avatarInfo.nickname))]),a("div",{staticClass:"leave"},[t._v(t._s(t.avatarInfo.level_name))])])]),a("div",{staticClass:"centenbox"},[a("div",{staticClass:"Totalawards"},[a("div",{staticClass:"Totalawards_top"},[a("div",{staticClass:"Totalawards_top_left"},[t._v("奖励总额")]),a("div",{staticClass:"Totalawards_top_right"},[t._v("¥"+t._s(t.avatarInfo.total))])]),a("div",{staticClass:"Totalawards_bottom"},[a("div",{staticClass:"Totalawards_bottom_box",on:{click:function(e){return t.toUrl(0)}}},[a("div",{staticClass:"Totalawards_bottom_box_top"},[t._v(t._s(t.avatarInfo.order_award))]),a("div",{staticClass:"Totalawards_bottom_box_bottom"},[t._v("极差奖励")])]),a("div",{staticClass:"Totalawards_bottom_box",on:{click:function(e){return t.toUrl(1)}}},[a("div",{staticClass:"Totalawards_bottom_box_top"},[t._v(t._s(t.avatarInfo.level_award))]),a("div",{staticClass:"Totalawards_bottom_box_bottom"},[t._v("层级奖励")])]),a("div",{staticClass:"Totalawards_bottom_box",on:{click:function(e){return t.toUrl(2)}}},[a("div",{staticClass:"Totalawards_bottom_box_top"},[t._v(t._s(t.avatarInfo.subsidy_award))]),a("div",{staticClass:"Totalawards_bottom_box_bottom"},[t._v("补贴奖励")])]),a("div",{staticClass:"Totalawards_bottom_box",on:{click:function(e){return t.toUrl(3)}}},[a("div",{staticClass:"Totalawards_bottom_box_top"},[t._v(t._s(t.avatarInfo.performance_award))]),a("div",{staticClass:"Totalawards_bottom_box_bottom"},[t._v("业绩奖励")])])])])]),a("div",{staticClass:"linebox",on:{click:t.goteam}},[a("div",{staticClass:"linebox_txt"},[t._v("团队业绩")]),a("i",{staticClass:"iconfont icon-advertise-next"})]),a("div",{staticClass:"listbox"},[a("van-tabs",{model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[a("van-tab",{attrs:{title:"奖励记录"}})],1),t._l(t.list,(function(e,i){return a("div",{key:i,staticClass:"list"},[a("div",{staticClass:"list_left"},[a("div",{staticClass:"order"},[t._v("订单号:"+t._s(e.order_sn))]),a("div",{staticClass:"date"},[t._v(t._s(e.created_at))])]),a("div",{staticClass:"list_right"},[a("div",{staticClass:"recode"},[t._v("+"+t._s(e.award_amounts))]),a("div",{staticClass:"txt"},[t._v(t._s(e.type_name))])])])}))],2)],1)},o=[],s=(a("e7e5"),a("d399")),l=(a("99af"),a("ac0d")),n={mixins:[l["a"]],data:function(){return{active:0,avatarInfo:{},list:[],isLoadMore:!0,page:1,total_page:0}},activated:function(){this.getData()},methods:{goteam:function(){this.$router.push(this.fun.getUrl("allowanceAchievement",{}))},toUrl:function(t){var e=t;this.$router.push(this.fun.getUrl("allowanceReward",{ind:e}))},getData:function(){var t=this;$http.post("plugin.agency-subsidy.frontend.controllers.center.index",{page:this.page},"加载中...").then((function(e){1==e.result?(t.avatarInfo=e.data.info,t.list=e.data.list.data,t.isLoadMore=!0,t.total_page=e.data.list.last_page,t.total_page||(t.total_page=0)):Object(s["a"])(e.msg)}))},getMoreData:function(){var t=this;if(t.isLoadMore=!1,!(this.page>=this.total_page)){this.page=this.page+1;var e={page:this.page};$http.get("plugin.agency-subsidy.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){}))}}}},r=n,d=(a("0064"),a("2877")),c=Object(d["a"])(r,i,o,!1,null,"a31f63e8",null);e["default"]=c.exports},ac0d:function(t,e,a){"use strict";a.d(e,"a",(function(){return s}));var i=document.documentElement,o=document.body,s={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:o&&(t=o.scrollTop),t},getClientHeight:function(){var t=0;return t=o.clientHeight&&i.clientHeight?Math.min(o.clientHeight,i.clientHeight):Math.max(o.clientHeight,i.clientHeight),t},getScrollHeight:function(){return Math.max(o.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(){}}}}}]);