1 line
8.6 KiB
JavaScript
1 line
8.6 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-74801002","chunk-2d0d83d6"],{"0535":function(t,i,s){"use strict";s.r(i);var a=function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",[s("c-title",{attrs:{text:"关联收益"}}),s("div",{staticClass:"new-distributor"},[s("div",{staticClass:"user-info-box"},[t.statisticsInfo?s("div",{staticClass:"distributor"},[s("img",{staticClass:"avatar",attrs:{src:t.statisticsInfo.avatar,alt:""}}),s("div",{staticClass:"distributor-name"},[s("p",{staticClass:"name van-ellipsis"},[t._v(t._s(t.statisticsInfo.nickname))]),t.statisticsInfo.level?s("span",{staticClass:"level"},[t._v(t._s(t.statisticsInfo.level))]):t._e()])]):t._e(),t.statisticsInfo?s("div",{staticClass:"statistics-box"},[s("div",{staticClass:"statistics-item"},[s("p",{staticClass:"amounts"},[t._v(t._s(t.$i18n.t("money"))+" "+t._s(t.statisticsInfo.already))]),s("p",{staticClass:"amounts-name"},[t._v("已结算佣金")])]),s("div",{staticClass:"statistics-item"},[s("p",{staticClass:"amounts"},[t._v(t._s(t.$i18n.t("money"))+" "+t._s(t.statisticsInfo.wait))]),s("p",{staticClass:"amounts-name"},[t._v("待结算佣金")])]),s("div",{staticClass:"statistics-item"},[s("p",{staticClass:"amounts"},[t._v(t._s(t.$i18n.t("money"))+" "+t._s(t.statisticsInfo.froze))]),s("p",{staticClass:"amounts-name"},[t._v("冻结佣金")])]),s("div",{staticClass:"statistics-item"},[s("p",{staticClass:"amounts"},[t._v(t._s(t.$i18n.t("money"))+" "+t._s(t.statisticsInfo.predict))]),s("p",{staticClass:"amounts-name"},[t._v("预计佣金")])]),s("div",{staticClass:"statistics-item"},[s("p",{staticClass:"amounts"},[t._v(t._s(t.$i18n.t("money"))+" "+t._s(t.statisticsInfo.valid))]),s("p",{staticClass:"amounts-name"},[t._v("失效佣金")])])]):t._e()]),s("div",{staticClass:"detailed-box"},[s("div",{staticClass:"detailed-title"},[t._v("佣金明细")]),s("van-tabs",{attrs:{ellipsis:!1},on:{change:t.changeStatus},model:{value:t.statusType,callback:function(i){t.statusType=i},expression:"statusType"}},t._l(t.statusTabs,(function(i,a){return s("van-tab",{key:a,staticClass:"tab",class:{"active-tab":t.statusType==a},attrs:{title:i.label,name:i.typeId}})})),1),t.list.length>0?s("van-list",{staticClass:"list",attrs:{finished:t.finished,"finished-text":"没有更多了","immediate-check":!1},on:{load:t.getData},model:{value:t.loading,callback:function(i){t.loading=i},expression:"loading"}},t._l(t.list,(function(i,a){return s("div",{key:a,staticClass:"item"},[i.has_one_member?s("div",{staticClass:"member-info"},[s("div",{staticClass:"avatar"},[s("img",{attrs:{src:i.has_one_member.avatar_image,alt:""}})]),s("div",{staticClass:"member-name"},[s("p",{staticClass:"nickname van-ellipsis"},[t._v(t._s(i.has_one_member.nickname))]),s("p",[t._v("ID:"+t._s(i.has_one_member.uid))])]),i.buy_nums?s("div",[t._v("第"+t._s(i.buy_nums)+"次消费")]):t._e()]):t._e(),s("div",{staticClass:"row-class row-1"},[i.has_one_order?s("div",{staticClass:"order_sn"},[t._v("订单号:"+t._s(i.has_one_order.order_sn))]):t._e(),s("div",{staticClass:"order-amount"},[t._v(t._s(t.$i18n.t("money"))+" "+t._s(i.amounts))])]),s("div",{staticClass:"row-class row-2"},[s("div",[s("div",{staticClass:"time"},[t._v("创建时间:"+t._s(i.created_at))]),2==i.status?s("div",{staticClass:"time end-time"},[t._v("截止时间:"+t._s(i.final_time))]):t._e()]),s("div",{staticClass:"status"},[t._v(t._s(i.status_name))])])])})),0):t._e(),s("yz-blank",{attrs:{datas:t.list,text:"空空如也"}})],1)])],1)},e=[],n=(s("99af"),s("eb17")),o={data:function(){return{statusType:0,statusTabs:[{label:"全部",typeId:0},{label:"已结算",typeId:1},{label:"未结算",typeId:2},{label:"预计佣金",typeId:5},{label:"已冻结",typeId:3},{label:"已失效",typeId:4}],page:1,loading:!1,isLoading:!1,finished:!1,statisticsInfo:null,list:[]}},activated:function(){this.getData()},methods:{getData:function(){var t=this;if(this.finished||this.isLoading)return!1;this.isLoading=!0,$http.get("plugin.fk-distribution.frontend.controllers.center.index",{page:this.page,record_status:this.statusType},"loading").then((function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:res,s=i.result,a=i.msg,e=i.data;if(t.loading=!1,t.isLoading=!1,1!=s)return t.$toast(a);1==t.page&&(t.statisticsInfo=e.info);var n=e.list;(t.page>=n.last_page||n.data.length<n.per_page)&&(t.finished=!0),t.list=t.page>1?t.list.concat(n.data):n.data,t.page++})).catch((function(i){t.loading=!1,t.isLoading=!1}))},initGetData:function(){this.page=1,this.finished=!1,this.loading=!1,this.isLoading=!1},changeStatus:function(t){this.initGetData(),this.getData()}},components:{yzBlank:n["default"]}},r=o,d=(s("69c51"),s("2877")),l=Object(d["a"])(r,a,e,!1,null,"4c273950",null);i["default"]=l.exports},"69c51":function(t,i,s){"use strict";s("cf18")},"79db":function(t,i,s){t.exports=s.p+"static/app/img/empty-image-search.ef236a93.png"},ca0e:function(t,i,s){var a=s("24fb");i=a(!1),i.push([t.i,".new-distributor[data-v-4c273950]{background-color:#f2f2f2}.new-distributor .user-info-box[data-v-4c273950]{min-height:12rem;padding:1rem;background-image:url(https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/plugin/new_distributor_bg.png);background-size:cover;background-repeat:no-repeat}.new-distributor .user-info-box .distributor[data-v-4c273950]{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}.new-distributor .user-info-box .distributor .avatar[data-v-4c273950]{margin:0;width:3.56rem;height:3.56rem;border-radius:50%;overflow:hidden}.new-distributor .user-info-box .distributor .distributor-name[data-v-4c273950]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:left;margin-left:.8rem;max-width:8rem}.new-distributor .user-info-box .distributor .distributor-name .name[data-v-4c273950]{font-size:1.06rem;font-weight:bolc;color:#fff}.new-distributor .user-info-box .distributor .distributor-name .level[data-v-4c273950]{display:inline-block;margin-top:.5rem;padding:.3rem .5rem;color:#673000;font-size:11px;background-color:#ffec46;border-radius:.8rem}.new-distributor .user-info-box .commission-ratio[data-v-4c273950]{font-size:14px;font-weight:700;color:#fff}.new-distributor .user-info-box .statistics-box[data-v-4c273950]{margin-top:2rem;display:grid;grid-template-columns:repeat(3,1fr);color:#fff;white-space:pre-wrap;word-break:break-all}.new-distributor .user-info-box .statistics-box .statistics-item[data-v-4c273950]{margin-top:.5rem}.new-distributor .user-info-box .statistics-box .amounts[data-v-4c273950]{font-size:13px}.new-distributor .user-info-box .statistics-box .amounts-name[data-v-4c273950]{margin:.3rem 0;font-size:12px}.new-distributor .detailed-box[data-v-4c273950]{background-color:#fff;border-radius:.31rem;margin:.5rem;overflow:hidden}.new-distributor .detailed-box .detailed-title[data-v-4c273950]{padding:.75rem;font-size:14px}.new-distributor .detailed-box .list[data-v-4c273950]{min-height:12rem}.new-distributor .detailed-box .item[data-v-4c273950]{padding:.8rem}.new-distributor .detailed-box .member-info[data-v-4c273950]{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:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start}.new-distributor .detailed-box .member-info .avatar[data-v-4c273950]{width:2.25rem;height:2.25rem;border-radius:50%;overflow:hidden}.new-distributor .detailed-box .member-info .avatar img[data-v-4c273950]{width:100%;height:100%}.new-distributor .detailed-box .member-info .member-name[data-v-4c273950]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;margin-left:.5rem;text-align:left;line-height:1.5}.new-distributor .detailed-box .member-info .member-name .nickname[data-v-4c273950]{max-width:10rem}.new-distributor .detailed-box .row-class[data-v-4c273950]{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-top:.5rem}.new-distributor .detailed-box .row-2[data-v-4c273950]{color:#7a7a7a;margin-top:.5rem}.new-distributor .detailed-box .order-amount[data-v-4c273950]{color:#f15353}.new-distributor .detailed-box .time[data-v-4c273950]{font-size:12px}.new-distributor .detailed-box .end-time[data-v-4c273950]{margin-top:.5rem}",""]),t.exports=i},cf18:function(t,i,s){var a=s("ca0e");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var e=s("499e").default;e("0d27b70d",a,!0,{sourceMap:!1,shadowMode:!1})}}]); |