1 line
8.7 KiB
JavaScript
1 line
8.7 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e4b7fefc","chunk-2d0d83d6"],{"0535":function(t,e,i){"use strict";i.r(e);var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("c-title",{attrs:{text:"关联收益"}}),i("div",{staticClass:"new-distributor"},[i("div",{staticClass:"user-info-box"},[t.statisticsInfo?i("div",{staticClass:"distributor"},[i("img",{staticClass:"avatar",attrs:{src:t.statisticsInfo.avatar,alt:""}}),i("div",{staticClass:"distributor-name"},[i("p",{staticClass:"name van-ellipsis"},[t._v(t._s(t.statisticsInfo.nickname))]),t.statisticsInfo.level?i("span",{staticClass:"level"},[t._v(t._s(t.statisticsInfo.level))]):t._e()])]):t._e(),t.statisticsInfo?i("div",{staticClass:"statistics-box"},[i("div",{staticClass:"statistics-item"},[i("p",{staticClass:"amounts"},[t._v(t._s(t.$i18n.t("money"))+" "+t._s(t.statisticsInfo.already))]),i("p",{staticClass:"amounts-name"},[t._v("已结算佣金")])]),i("div",{staticClass:"statistics-item"},[i("p",{staticClass:"amounts"},[t._v(t._s(t.$i18n.t("money"))+" "+t._s(t.statisticsInfo.wait))]),i("p",{staticClass:"amounts-name"},[t._v("待结算佣金")])]),i("div",{staticClass:"statistics-item"},[i("p",{staticClass:"amounts"},[t._v(t._s(t.$i18n.t("money"))+" "+t._s(t.statisticsInfo.froze))]),i("p",{staticClass:"amounts-name"},[t._v("冻结佣金")])]),i("div",{staticClass:"statistics-item"},[i("p",{staticClass:"amounts"},[t._v(t._s(t.$i18n.t("money"))+" "+t._s(t.statisticsInfo.predict))]),i("p",{staticClass:"amounts-name"},[t._v("预计佣金")])]),i("div",{staticClass:"statistics-item"},[i("p",{staticClass:"amounts"},[t._v(t._s(t.$i18n.t("money"))+" "+t._s(t.statisticsInfo.valid))]),i("p",{staticClass:"amounts-name"},[t._v("失效佣金")])])]):t._e()]),i("div",{staticClass:"detailed-box"},[i("div",{staticClass:"detailed-title"},[t._v("佣金明细")]),i("van-tabs",{attrs:{ellipsis:!1},on:{change:t.changeStatus},model:{value:t.statusType,callback:function(e){t.statusType=e},expression:"statusType"}},t._l(t.statusTabs,(function(e,s){return i("van-tab",{key:s,staticClass:"tab",class:{"active-tab":t.statusType==s},attrs:{title:e.label,name:e.typeId}})})),1),t.list.length>0?i("van-list",{staticClass:"list",attrs:{finished:t.finished,"finished-text":"没有更多了","immediate-check":!1},on:{load:t.getData},model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},t._l(t.list,(function(e,s){return i("div",{key:s,staticClass:"item"},[e.has_one_member?i("div",{staticClass:"member-info"},[i("div",{staticClass:"avatar"},[i("img",{attrs:{src:e.has_one_member.avatar_image,alt:""}})]),i("div",{staticClass:"member-name"},[i("p",{staticClass:"nickname van-ellipsis"},[t._v(t._s(e.has_one_member.nickname))]),i("p",[t._v("ID:"+t._s(e.has_one_member.uid))])]),e.buy_nums?i("div",[t._v("第"+t._s(e.buy_nums)+"次消费")]):t._e()]):t._e(),i("div",{staticClass:"row-class row-1"},[e.has_one_order?i("div",{staticClass:"order_sn"},[t._v("订单号:"+t._s(e.has_one_order.order_sn))]):t._e(),i("div",{staticClass:"order-amount"},[t._v(t._s(t.$i18n.t("money"))+" "+t._s(e.amounts))])]),i("div",{staticClass:"row-class row-2"},[i("div",[i("div",{staticClass:"time"},[t._v("创建时间:"+t._s(e.created_at))]),2==e.status?i("div",{staticClass:"time end-time"},[t._v("截止时间:"+t._s(e.final_time))]):t._e()]),i("div",{staticClass:"status"},[t._v(t._s(e.status_name))])])])})),0):t._e(),i("yz-blank",{attrs:{datas:t.list,text:"空空如也"}})],1)])],1)},a=[],n=(i("99af"),i("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 e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:res,i=e.result,s=e.msg,a=e.data;if(t.loading=!1,t.isLoading=!1,1!=i)return t.$toast(s);1==t.page&&(t.statisticsInfo=a.info);var n=a.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(e){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=(i("dd87"),i("2877")),l=Object(d["a"])(r,s,a,!1,null,"3ee6bcee",null);e["default"]=l.exports},"79db":function(t,e,i){t.exports=i.p+"static/app/img/empty-image-search.ef236a93.png"},"9a73":function(t,e,i){var s=i("9f0de");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);var a=i("499e").default;a("0b3f2288",s,!0,{sourceMap:!1,shadowMode:!1})},"9f0de":function(t,e,i){var s=i("24fb");e=s(!1),e.push([t.i,".new-distributor[data-v-3ee6bcee]{background-color:#f2f2f2}.new-distributor .user-info-box[data-v-3ee6bcee]{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-3ee6bcee]{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-3ee6bcee]{margin:0;width:3.56rem;height:3.56rem;border-radius:50%;overflow:hidden}.new-distributor .user-info-box .distributor .distributor-name[data-v-3ee6bcee]{-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-3ee6bcee]{font-size:1.06rem;font-weight:bolc;color:#fff}.new-distributor .user-info-box .distributor .distributor-name .level[data-v-3ee6bcee]{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-3ee6bcee]{font-size:14px;font-weight:700;color:#fff}.new-distributor .user-info-box .statistics-box[data-v-3ee6bcee]{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-3ee6bcee]{margin-top:.5rem}.new-distributor .user-info-box .statistics-box .amounts[data-v-3ee6bcee]{font-size:13px}.new-distributor .user-info-box .statistics-box .amounts-name[data-v-3ee6bcee]{margin:.3rem 0;font-size:12px}.new-distributor .detailed-box[data-v-3ee6bcee]{background-color:#fff;border-radius:.31rem;margin:.5rem;overflow:hidden}.new-distributor .detailed-box .detailed-title[data-v-3ee6bcee]{padding:.75rem;font-size:14px}.new-distributor .detailed-box .list[data-v-3ee6bcee]{min-height:12rem}.new-distributor .detailed-box .item[data-v-3ee6bcee]{padding:.8rem}.new-distributor .detailed-box .member-info[data-v-3ee6bcee]{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-3ee6bcee]{width:2.25rem;height:2.25rem;border-radius:50%;overflow:hidden}.new-distributor .detailed-box .member-info .avatar img[data-v-3ee6bcee]{width:100%;height:100%}.new-distributor .detailed-box .member-info .member-name[data-v-3ee6bcee]{-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-3ee6bcee]{max-width:10rem}.new-distributor .detailed-box .row-class[data-v-3ee6bcee]{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-3ee6bcee]{color:#7a7a7a;margin-top:.5rem}.new-distributor .detailed-box .order-amount[data-v-3ee6bcee]{color:#f15353}.new-distributor .detailed-box .time[data-v-3ee6bcee]{font-size:12px}.new-distributor .detailed-box .end-time[data-v-3ee6bcee]{margin-top:.5rem}",""]),t.exports=e},dd87:function(t,e,i){"use strict";i("9a73")}}]); |