bztang-admin/addons/yun_shop/static/app/js/chunk-695ded23.b5054278.js

1 line
5.9 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-695ded23"],{"5c01":function(t,a,e){var i=e("9468");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=e("499e").default;n("d2290726",i,!0,{sourceMap:!1,shadowMode:!1})},"62a0":function(t,a,e){"use strict";e.r(a);var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{attrs:{id:"manage_award"}},[e("c-title",{attrs:{hide:!1,text:"平级奖"}}),e("div",{staticClass:"content"},[e("div",{staticClass:"background"},[e("div",{staticStyle:{"text-align":"left"}},[e("div",{staticClass:"money"},[t._v(" "+t._s(t.$i18n.t("money"))+t._s(t.total_amount)+" ")]),e("div",{staticClass:"text"},[t._v(" 奖励总额(元) ")])])]),e("div",{staticClass:"list"},[e("van-tabs",{model:{value:t.activeName,callback:function(a){t.activeName=a},expression:"activeName"}},[e("van-tab",{attrs:{name:"first"}},[e("span",{attrs:{slot:"title"},on:{click:function(a){return t.handleClick("0")}},slot:"title"},[t._v("奖励记录")])])],1),e("div",[e("div",{directives:[{name:"show",rawName:"v-show",value:"first"==t.activeName,expression:"activeName=='first'"}]},[e("ul",{staticClass:"rationList"},t._l(t.first_content,(function(a,i){return e("li",{key:i},[e("div",{staticClass:"detail"},[e("div",{staticClass:"logId"},[t._v("经销商奖励ID:"+t._s(a.logId))]),e("div",{staticClass:"info"},[e("ul",{staticClass:"left"},[e("li",[t._v("奖励比例:"+t._s(a.proportion))]),e("li",{staticClass:"time"},[t._v("记录时间:"+t._s(a.created_at))])]),e("ul",{staticClass:"right"},[e("li",[t._v(t._s(a.amount_money))])])])])])})),0)])])],1)])],1)},n=[],o=(e("e7e5"),e("d399")),r=(e("99af"),e("6968")),s=e("ac0d"),l={mixins:[s["a"]],data:function(){return{total_amount:"",current:0,bonus:{},first_content:[],isLoadMore:!0,activeName:"first",page:1,total_page:0}},activated:function(){this.initData(),this.current=0,this.getData()},components:{cTitle:r["a"]},computed:{},methods:{loadTop:function(){this.initData(),this.getData(),this.$refs.award_loadmore.onTopLoaded()},change:function(t){t.status=!t.status},initData:function(){this.page=1,this.total_page=0,this.isLoadMore=!0,this.first_content=[]},handleClick:function(){},getData:function(){var t=this,a="plugin.ordinary-dividend.frontend.ordinary.getOrdinaryList",e={page:1};$http.get(a,e,"获取中").then((function(a){1==a.result?(t.total_amount=a.data.total_amount,t.first_content=a.data.record.data,t.total_page=a.data.record.last_page,t.page=a.data.record.current_page,t.record=a.data.record,t.isLoadMore=!0,t.total_page=a.data.record.last_page,t.total_page||(t.total_page=0)):Object(o["a"])(a.msg)}),(function(t){}))},getMoreData:function(t){this.isLoadMore=!1;var a=this,e="plugin.ordinary-dividend.frontend.ordinary.getOrdinaryList";if(this.page!==this.total_page&&!(this.page>=this.total_page)){this.page=this.page+1;var i={page:this.page};this.page=this.page+1,$http.get(e,i,"加载中").then((function(t){if(1!==t.result)return a.page=a.page-1,void(a.isLoadMore=!1);a.isLoadMore=!0,a.total_page=t.data.record.last_page;var e=t.data.record.data;a.first_content=a.first_content.concat(e)}),(function(t){}))}}}},c=l,d=c,g=(e("8b8b"),e("2877")),f=Object(g["a"])(d,i,n,!1,null,"58028b43",null);a["default"]=f.exports},"8b8b":function(t,a,e){"use strict";e("5c01")},9468:function(t,a,e){var i=e("24fb");a=i(!1),a.push([t.i,"#manage_award .content .background[data-v-58028b43]{width:100%;height:5rem;background:#f15353;color:#fff;text-align:left;padding-top:1rem;padding-left:5%}#manage_award .content .background .money[data-v-58028b43]{font-size:1.5rem}#manage_award .content .background .text[data-v-58028b43]{font-size:1rem}#manage_award .content .list[data-v-58028b43]{margin:1rem 5%;padding:.5rem 0;border-radius:1rem;background:#fff}#manage_award .content .list .rationList[data-v-58028b43]{text-align:left;padding:.2rem .5rem;-webkit-box-shadow:0 0 10px #888;box-shadow:0 0 10px #888}#manage_award .content .list .rationList .detail[data-v-58028b43]{margin-bottom:.5rem;border-bottom:2px solid #f5f5f5}#manage_award .content .list .rationList .logId[data-v-58028b43]{line-height:2rem;font-weight:800;border-bottom:1px solid #fafafa}#manage_award .content .list .rationList .info[data-v-58028b43]{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;padding:.5rem 0}#manage_award .content .list .rationList .info .left[data-v-58028b43]{-webkit-box-flex:4;-webkit-flex:4;-ms-flex:4;flex:4}#manage_award .content .list .rationList .info .left .time[data-v-58028b43]{color:#ccc;font-size:.75rem}#manage_award .content .list .rationList .info .right[data-v-58028b43]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:right}#manage_award .content .list .rationList .info .right li[data-v-58028b43]{color:#f15353;font-size:1.2rem;font-weight:600}",""]),t.exports=a},ac0d:function(t,a,e){"use strict";e.d(a,"a",(function(){return o}));var i=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 i&&i.scrollTop?t=i.scrollTop:n&&(t=n.scrollTop),t},getClientHeight:function(){var t=0;return t=n.clientHeight&&i.clientHeight?Math.min(n.clientHeight,i.clientHeight):Math.max(n.clientHeight,i.clientHeight),t},getScrollHeight:function(){return Math.max(n.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(){}}}}}]);