1 line
5.5 KiB
JavaScript
1 line
5.5 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4d5960ae","chunk-2d0d83d6"],{"0ad5":function(t,e,i){"use strict";i("f8d0")},"79db":function(t,e,i){t.exports=i.p+"static/app/img/empty-image-search.ef236a93.png"},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var a=document.documentElement,n=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:n&&(t=n.scrollTop),t},getClientHeight:function(){var t=0;return t=n.clientHeight&&a.clientHeight?Math.min(n.clientHeight,a.clientHeight):Math.max(n.clientHeight,a.clientHeight),t},getScrollHeight:function(){return Math.max(n.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(){}}}},e1376:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,".record[data-v-e314104a]{text-align:left}.record .member[data-v-e314104a]{width:100%;height:7.375rem;background-color:#ee2e2b;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}.record .member .member-image[data-v-e314104a]{width:2.875rem;height:2.875rem;border-radius:50%;margin:0 .8rem}.record .member .nickname[data-v-e314104a]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-size:1rem;color:#fff;line-height:1.2rem}.record .total-box[data-v-e314104a]{line-height:2.8125rem;height:2.8125rem;font-size:1rem;background-color:#fff;padding:0 .8rem;margin-bottom:.5rem}.record .total-box .total[data-v-e314104a]{color:#f15353}.record .list[data-v-e314104a]{background-color:#fff;padding:0 .8rem}.record .list .list-item[data-v-e314104a]{height:4rem;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;border-bottom:1px solid #ebebeb;font-size:.8rem;line-height:1.4rem}.record .list .list-item .sn[data-v-e314104a]{color:#333}.record .list .list-item .date[data-v-e314104a]{color:#8c8c8c;font-size:.75rem}.record .list .list-item .money[data-v-e314104a]{color:#f15353}.record .loading[data-v-e314104a]{height:4rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}",""]),t.exports=e},f8d0:function(t,e,i){var a=i("e1376");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("499e").default;n("2adaa544",a,!0,{sourceMap:!1,shadowMode:!1})},fb74: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",{staticClass:"record"},[i("c-title",{attrs:{text:t.info.plugin_name}}),i("div",{staticClass:"member"},[i("img",{staticClass:"member-image",attrs:{src:t.info.avatar}}),i("div",{staticClass:"nickname"},[t._v(t._s(t.info.nickname))])]),i("div",{staticClass:"total-box"},[t._v(" 累计金额: "),i("span",{staticClass:"total"},[t._v(t._s(t.info.total))])]),i("van-tabs",{attrs:{active:t.active,sticky:"","offset-top":"40"}},[i("van-tab",{attrs:{title:"奖励记录"}},[t.list&&0!=t.list.length||t.loading?i("ul",{staticClass:"list"},[t._l(t.list,(function(e,a){return i("li",{key:a,staticClass:"list-item"},[i("div",{staticStyle:{flex:"1"}},[i("div",{staticClass:"sn"},[t._v("奖励ID:"+t._s(e.id))]),i("div",{staticClass:"date"},[t._v(t._s(e.created_at))])]),i("div",{staticClass:"money"},[i("small",[t._v(t._s(t.$i18n.t("money")))]),i("span",[t._v(t._s(e.amounts))])])])})),t.noMore?i("li",{staticStyle:{"text-align":"center",padding:"1rem 0"}},[t._v("没有更多了~~")]):t._e()],2):i("yz-blank",{attrs:{text:"暂无奖励记录"}}),i("div",{directives:[{name:"show",rawName:"v-show",value:t.loading,expression:"loading"}],staticClass:"loading"},[i("van-loading",{attrs:{size:"24px"}},[t._v("加载数据中...")])],1)],1)],1)],1)},n=[],o=(i("99af"),i("ac0d")),s=i("eb17"),l={mixins:[o["a"]],components:{yzBlank:s["default"]},data:function(){return{active:0,info:{plugin_name:"分销收入奖励记录"},isLoadMore:!1,list:[],loading:!1,page:1,noMore:!1}},activated:function(){this.getdata()},methods:{initdata:function(){this.isLoadMore=!1,this.page=1,this.info={},this.list=[]},setMore:function(t){this.noMore=t,this.isLoadMore=!t},getdata:function(){var t=this;this.loading=!0,this.initdata(),$http.post("plugin.distribution-income.frontend.controllers.center.index").then((function(e){var i=e.result,a=e.data,n=e.msg;t.loading=!1,1==i?(t.info=a.info,t.fun.setWXTitle(t.info.plugin_name||"分销收入奖励记录"),t.setMore(t.page==a.list.last_page),t.list=a.list.data):t.$toast(n)}))},getMoreData:function(){var t=this;this.loading=!0,this.isLoadMore=!1;var e=this.page+1;$http.post("plugin.distribution-income.frontend.controllers.center.index",{page:e}).then((function(i){var a=i.result,n=i.data,o=i.msg;t.loading=!1,1==a?(t.list=t.list.concat(n.list.data),t.page=e,t.setMore(t.page==n.list.last_page)):t.$toast(o)}))}}},r=l,c=(i("0ad5"),i("2877")),d=Object(c["a"])(r,a,n,!1,null,"e314104a",null);e["default"]=d.exports}}]); |