bztang-admin/addons/yun_shop/static/app/js/chunk-57b470aa.a4d7e37a.js

1 line
5.3 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-57b470aa"],{"05ad":function(t,e,a){"use strict";a("f796")},2194: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:"share-value"},[a("c-title",{attrs:{hide:!1,text:t.infoList.name}}),a("div",{staticClass:"top"},[a("div",{staticClass:"title"},[t._v(t._s(t.infoList.name))]),a("div",{staticClass:"text"},[t._v(t._s(t.infoList.nums))])]),a("div",{staticClass:"contain"},[a("van-tabs",{staticClass:"tabs-style",attrs:{"title-active-color":"#ffa822",color:"#ffa822"},on:{change:t.changeTabs},model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},t._l(t.vanTab,(function(e,i){return a("van-tab",{key:i,attrs:{title:e.title,name:e.id}},[a("d-list",{attrs:{loading:t.loading,finished:t.finished},on:{load:t.onLoad}},[1==t.active?a("div",t._l(t.dataList,(function(e,i){return a("div",{key:i,staticClass:"share-subsidy"},[a("div",{staticClass:"top-pane"},[a("span",{staticClass:"left"},[t._v("注册社员ID: "+t._s(e.child_id))]),a("span",{staticClass:"right"},[t._v("+"+t._s(e.change_value))])]),a("div",{staticClass:"bottom-time"},[t._v(t._s(e.created_at))])])})),0):t._e(),2==t.active?a("div",t._l(t.dataList,(function(e,i){return a("div",{key:i,staticClass:"distribution-details"},[a("div",{staticClass:"top-pane"},[a("span",{staticClass:"left"},[t._v(t._s(e.order_sn))]),a("span",{staticClass:"right"},[t._v(t._s(e.change_value))])]),a("div",{staticClass:"bottom-time"},[a("span",[t._v("粉丝消费ID: "+t._s(e.child_id))]),a("span",[t._v(t._s(e.created_at))])])])})),0):t._e()])],1)})),1)],1)],1)},s=[],n=a("c7eb"),o=a("2909"),d=a("1da1"),r=(a("14d9"),a("b0c0"),a("94b4")),l={data:function(){return{active:1,vanTab:[{title:"分享补贴",id:1},{title:"发放明细",id:2}],loading:!1,finished:!1,info:!1,page:1,dataList:[],infoList:{}}},mounted:function(){this.getData()},methods:{changeTabs:function(t){this.loading=!1,this.finished=!1,this.page=1,this.dataList=[],this.getData()},getData:function(){var t=this;return Object(d["a"])(Object(n["a"])().mark((function e(){var a,i,s,d,r,l;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!0!==t.loading&&!0!==t.finished){e.next=2;break}return e.abrupt("return");case 2:return t.loading=!0,t.info=!0,i=1==t.active?"plugin.share-value.frontend.controllers.rewards.index":"plugin.share-value.frontend.controllers.give.index",e.next=7,$http.post(i,{page:t.page});case 7:if(s=e.sent,d=s.data,r=s.result,l=s.msg,0!==r){e.next=14;break}return t.$toast(l),e.abrupt("return");case 14:t.info=!1,(0===d.list.data.length||d.list.data.length<d.list.per_page||d.list.current_page===d.list.last_page)&&(t.finished=!0),(a=t.dataList).push.apply(a,Object(o["a"])(d.list.data)),t.infoList=d.info,t.fun.setWXTitle(t.infoList.name),t.page++,t.loading=!1;case 21:case"end":return e.stop()}}),e)})))()},onLoad:function(){this.info=!0,this.getData()}},components:{DList:r["a"]}},c=l,f=c,u=(a("05ad"),a("2877")),b=Object(u["a"])(f,i,s,!1,null,"97ed547e",null);e["default"]=b.exports},d439:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,"[data-v-97ed547e] .van-tabs--line .van-tabs__wrap{border-radius:5rem}.share-value[data-v-97ed547e]{padding:.6rem}.share-value .top[data-v-97ed547e]{background-image:-webkit-gradient(linear,left top,left bottom,from(#ffc158),color-stop(#ffb843),to(#ffab29));background-image:-webkit-linear-gradient(#ffc158,#ffb843,#ffab29);background-image:linear-gradient(#ffc158,#ffb843,#ffab29);height:8rem;width:100%;border-radius:.5rem}.share-value .top .title[data-v-97ed547e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:1.1rem 0 0 1.2rem;color:#fff;font-size:.9rem}.share-value .top .text[data-v-97ed547e]{line-height:4rem;color:#fff;font-size:1.3rem}.share-value .contain[data-v-97ed547e]{background:#fff;margin:1rem 0;border-radius:.5rem}.share-value .contain .share-subsidy[data-v-97ed547e]{padding:.8rem .2rem;border-bottom:1px solid #f5f5f6;margin:0 .53rem}.share-value .contain .share-subsidy .top-pane[data-v-97ed547e]{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:.5rem}.share-value .contain .share-subsidy .bottom-time[data-v-97ed547e]{color:#bcbcbc;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-top:.5rem;font-size:.3rem}.share-value .contain .distribution-details[data-v-97ed547e]{padding:.8rem .2rem;border-bottom:1px solid #f5f5f6;margin:0 .53rem}.share-value .contain .distribution-details .top-pane[data-v-97ed547e]{font-size:.5rem}.share-value .contain .distribution-details .bottom-time[data-v-97ed547e],.share-value .contain .distribution-details .top-pane[data-v-97ed547e]{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}.share-value .contain .distribution-details .bottom-time[data-v-97ed547e]{color:#bcbcbc;margin-top:.5rem;font-size:.3rem}",""]),t.exports=e},f796:function(t,e,a){var i=a("d439");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("9e589c6a",i,!0,{sourceMap:!1,shadowMode:!1})}}]);