1 line
9.0 KiB
JavaScript
1 line
9.0 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3d576291"],{"25cf":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".dealer-team-reward .fff[data-v-f33ead02]{background:#fff!important}.dealer-team-reward .pt21[data-v-f33ead02]{padding-top:.6563rem!important}.dealer-team-reward .gross-amount[data-v-f33ead02]{text-align:left;background:#fff;padding:.75rem .9375rem;font-size:.8125rem;color:#333;margin-bottom:.75rem}.dealer-team-reward .unsettled[data-v-f33ead02]{color:#fb6b68!important}.dealer-team-reward .record-list[data-v-f33ead02]{background:#fff;padding:0 .75rem}.dealer-team-reward .record-list-line[data-v-f33ead02]{width:100%;height:1px;background:#e7e7e7;margin-bottom:.75rem}.dealer-team-reward .record-list-center[data-v-f33ead02]{font-size:.75rem;color:#999;margin-top:.5rem;margin-bottom:.75rem}.dealer-team-reward .record-list-center[data-v-f33ead02],.dealer-team-reward .record-list-head[data-v-f33ead02]{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}.dealer-team-reward .record-list-head[data-v-f33ead02]{font-size:.8125rem;font-weight:700}.dealer-team-reward .status[data-v-f33ead02]{font-size:.75rem;color:#999}.dealer-team-reward .current_status[data-v-f33ead02]{background:#fb6b68!important;color:#fff!important}.dealer-team-reward .status-list[data-v-f33ead02]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding-top:.75rem;padding-left:.75rem;padding-bottom:1.5rem;background:#fff}.dealer-team-reward .status-list span[data-v-f33ead02]{font-size:.75rem;background:#f5f5f5;color:#999;padding:.3125rem .75rem;border-radius:100px;margin-right:1.25rem}.dealer-team-reward .mt10[data-v-f33ead02]{margin-top:.3125rem}.dealer-team-reward .money[data-v-f33ead02]{font-size:.875rem;font-weight:700}.dealer-team-reward .line[data-v-f33ead02]{position:absolute;left:50%;top:50%;height:calc(100% - 1.5rem);background:#e7e7e7;width:1px;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.dealer-team-reward .box[data-v-f33ead02]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;background:#fff;padding:.75rem 0;margin-bottom:.75rem}.dealer-team-reward .box-left[data-v-f33ead02],.dealer-team-reward .box-right[data-v-f33ead02]{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-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.dealer-team-reward .dealer[data-v-f33ead02]{background:hsla(0,0%,100%,.39);font-size:.6875rem;border-radius:100px;padding:.1875rem .75rem}.dealer-team-reward .nickname[data-v-f33ead02]{font-size:1rem;font-weight:700;text-align:left;margin-bottom:.5625rem}.dealer-team-reward .head[data-v-f33ead02]{background:#fb6b68;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:1.5rem .9375rem;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.dealer-team-reward .user[data-v-f33ead02]{color:#fff;text-align:left;margin-left:.375rem}.dealer-team-reward .img[data-v-f33ead02]{width:3.4375rem;height:3.4375rem;border-radius:50%;overflow:hidden}",""]),t.exports=e},"495a":function(t,e,a){var i=a("25cf");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=a("499e").default;r("394162bc",i,!0,{sourceMap:!1,shadowMode:!1})},"7f78b":function(t,e,a){"use strict";a("495a")},ac0d:function(t,e,a){"use strict";a.d(e,"a",(function(){return s}));var i=document.documentElement,r=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:r&&(t=r.scrollTop),t},getClientHeight:function(){var t=0;return t=r.clientHeight&&i.clientHeight?Math.min(r.clientHeight,i.clientHeight):Math.max(r.clientHeight,i.clientHeight),t},getScrollHeight:function(){return Math.max(r.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(){}}}},c2a8: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",{staticClass:"dealer-team-reward"},[a("c-title",{attrs:{text:t.info.plugin_name||"经销商团队奖励"}}),a("div",{staticClass:"head"},[a("div",{staticClass:"img"},[a("img",{staticStyle:{width:"100%",height:"100%"},attrs:{src:t.info.avatar,alt:""}})]),a("div",{staticClass:"user"},[a("p",{staticClass:"nickname"},[t._v(t._s(t.info.nickname))]),t.info.level_name?a("p",{staticClass:"dealer"},[t._v(t._s(t.info.level_name))]):t._e()])]),0==t.active?a("div",{staticClass:"box"},[a("div",{staticClass:"box-left"},[a("span",{staticClass:"money"},[t._v(t._s(t.$i18n.t("money"))+t._s(t.info.wait))]),a("span",{staticClass:"status mt10"},[t._v("未结算")])]),a("div",{staticClass:"box-right"},[a("span",{staticClass:"money"},[t._v(t._s(t.$i18n.t("money"))+t._s(t.info.already))]),a("span",{staticClass:"status mt10"},[t._v("已结算")])]),a("div",{staticClass:"line"})]):a("div",{staticClass:"gross-amount"},[a("span",[t._v("剩余额度:")]),a("span",[t._v(t._s(t.info.amounts))])]),a("van-tabs",{on:{click:t.onClick},model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[a("van-tab",{attrs:{title:"奖励记录"}},[a("div",{staticClass:"status-list"},t._l(t.status_list,(function(e,i){return a("span",{key:e,class:{current_status:t.current_index==i},on:{click:function(e){return t.toggle(i)}}},[t._v(t._s(e))])})),0),a("div",{staticClass:"record-list"},t._l(t.list,(function(e,i){return a("div",{key:e.id},[a("div",{staticClass:"record-list-head"},[a("span",[t._v(t._s(e.order_sn))]),a("span",[t._v(t._s(t.$i18n.t("money"))+t._s(e.rewards_amounts))])]),a("div",{staticClass:"record-list-center"},[a("span",[t._v(t._s(e.created_at))]),a("span",{class:{unsettled:0==e.status}},[t._v(t._s(e.status_name))])]),a("div",{staticClass:"record-list-line",class:{fff:i+1==t.list.length}})])})),0)]),a("van-tab",{attrs:{title:"额度记录"}},[a("div",{staticClass:"record-list pt21"},t._l(t.amounts_list,(function(e,i){return a("div",{key:e.id},[a("div",{staticClass:"record-list-head"},[a("span",[t._v(t._s(e.type_name))]),a("span",{class:{unsettled:e.amounts>0}},[t._v(t._s(e.amounts>0?"+":"")+t._s(e.amounts))])]),a("div",{staticClass:"record-list-center"},[t._v(t._s(e.created_at))]),a("div",{staticClass:"record-list-line",class:{fff:i+1==t.amounts_list.length}})])})),0)])],1)],1)},r=[],s=a("c7eb"),n=a("1da1"),d=(a("99af"),a("ac0d")),o={mixins:[d["a"]],data:function(){return{active:0,status_list:["全部","未结算","已结算","已失效"],current_index:0,info:{},amounts_list:[],list:[],page:1,total_page:1,isLoadMore:!0}},activated:function(){this.isLoadMore=!0,this.get_rewards()},methods:{onClick:function(){0==this.active?this.get_rewards():this.get_amounts()},get_amounts:function(){var t=arguments,e=this;return Object(n["a"])(Object(s["a"])().mark((function a(){var i,r,n,d,o,l,c;return Object(s["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return i=t.length>0&&void 0!==t[0]?t[0]:1,a.next=3,$http.post("plugin.distributor-team.frontend.controllers.amounts.index",{page:i},"loading");case 3:r=a.sent,n=r.result,d=r.msg,o=r.data,n?(l=o.info,c=o.list,e.info=l,e.amounts_list=1==i?c.data:e.amounts_list.concat(c.data),e.page=c.current_page,e.total_page=c.last_page,e.isLoadMore=!0):e.$toast(d);case 8:case"end":return a.stop()}}),a)})))()},get_rewards:function(){var t=arguments,e=this;return Object(n["a"])(Object(s["a"])().mark((function a(){var i,r,n,d,o,l,c,f;return Object(s["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return i=t.length>0&&void 0!==t[0]?t[0]:1,r={page:i,status:e.current_index},0==e.current_index&&(r.status=4),a.next=5,$http.post("plugin.distributor-team.frontend.controllers.rewards.index",r,"loading");case 5:n=a.sent,d=n.result,o=n.msg,l=n.data,d?(c=l.info,f=l.list,e.info=c,e.list=1==i?f.data:e.list.concat(f.data),e.fun.setWXTitle(c.plugin_name),e.page=f.current_page,e.total_page=f.last_page,e.isLoadMore=!0):e.$toast(o);case 10:case"end":return a.stop()}}),a)})))()},getMoreData:function(){if(this.isLoadMore=!1,!(this.page>=this.total_page)){var t=this.page+1;0==this.active?this.get_rewards(t):this.get_amounts(t)}},toggle:function(t){this.current_index=t,this.get_rewards()}}},l=o,c=(a("7f78b"),a("2877")),f=Object(c["a"])(l,i,r,!1,null,"f33ead02",null);e["default"]=f.exports}}]); |