bztang-admin/addons/yun_shop/static/app/js/chunk-9f147ed2.993fa160.js

1 line
7.5 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-9f147ed2"],{"41c3":function(t,e,a){var n=a("95da");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("499e").default;i("3592d233",n,!0,{sourceMap:!1,shadowMode:!1})},"8e92":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"exchange-bond"},[a("c-title",{attrs:{text:t.text}}),a("div",{staticClass:"header"},[a("div",{staticClass:"img"},[a("img",{staticStyle:{width:"100%",height:"100%"},attrs:{src:t.avatar_image}})]),a("span",[t._v(t._s(t.username))])]),a("div",{staticClass:"detail-wrapper"},[a("div",{staticClass:"flex-center"},[a("div",{staticClass:"mb24"},[a("p",{staticClass:"fz28 mb8"},[t._v(t._s(t.$i18n.t("money"))+t._s(t.un_settlement_count))]),a("span",{staticClass:"c-999 "},[t._v("未结算")])]),a("div",[a("p",{staticClass:"fz28 mb8"},[t._v(t._s(t.$i18n.t("money"))+t._s(t.one_consignment_sum))]),a("span",{staticClass:"c-999"},[t._v("直推寄售业绩")])])]),a("div",{staticClass:"flex-center"},[a("div",{staticClass:"mb24"},[a("p",{staticClass:"fz28 mb8"},[t._v(t._s(t.$i18n.t("money"))+t._s(t.finish_settlement_count))]),a("span",{staticClass:"c-999"},[t._v("已结算")])]),a("div",[a("p",{staticClass:"fz28 mb8"},[t._v(t._s(t.$i18n.t("money"))+t._s(t.consignment_sum))]),a("span",{staticClass:"c-999"},[t._v("间推寄售业绩")])])])]),a("div",{staticStyle:{height:"0.75rem",background:"#f5f5f5"}}),a("van-tabs",{on:{change:t.change},model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[a("van-tab",{attrs:{title:"全部"}}),a("van-tab",{attrs:{title:"未结算"}}),a("van-tab",{attrs:{title:"已结算"}})],1),a("div",{staticClass:"list"},t._l(t.list,(function(e,n){return a("div",{key:n},[a("div",{staticClass:"flex between mb24"},[a("div",{staticStyle:{"text-align":"left"}},[a("div",{staticClass:"fz26"},[t._v(t._s(e.order_sn))]),a("div",{staticClass:"c-999 fz24 mt-8"},[t._v(t._s(e.created_at))])]),a("div",{staticClass:"c-F14E4E fz26 bold"},[t._v(t._s(t.$i18n.t("money"))+t._s(e.settlement_price))])]),a("div",{staticClass:"bond "},[a("div",{staticClass:"flex between align-center"},[a("div",{staticStyle:{"text-align":"left"}},[a("p",{staticClass:"bold fz26 mb16"},[t._v(t._s(e.exchange_voucher_name))]),a("div",{staticClass:"fz24 c-999"},[a("span",[t._v("寄售价:"+t._s(t.$i18n.t("money"))+t._s(e.price))]),a("span",[t._v("服务费:"+t._s(t.$i18n.t("money"))+t._s(e.service_charge))])])]),a("span",[t._v(t._s(e.status_name))])])]),a("div",{staticClass:"line"})])})),0)],1)},i=[],s=(a("99af"),a("ac0d")),c={mixins:[s["a"]],data:function(){return{active:0,avatar_image:"",text:"",nickname:"",list:[],isLoadMore:!0,page:1,total_page:0,un_settlement_count:0,finish_settlement_count:0,one_consignment_sum:0,consignment_sum:0}},activated:function(){this.active=0,this.isLoadMore=!0,this.getData(),this.get_total()},methods:{get_total:function(){var t=this;$http.post("plugin.consignment.frontend.controllers.withdrawal.index").then((function(e){if(e.result){var a=e.data.statistics;t.un_settlement_count=a.un_settlement_count,t.finish_settlement_count=a.finish_settlement_count,t.one_consignment_sum=a.one_consignment_sum,t.consignment_sum=a.consignment_sum,t.text=e.data.plugin_name,t.avatar_image=e.data.member.avatar_image,t.username=e.data.member.username}else t.$toast(e.msg)}))},change:function(){this.getData()},getData:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,a={page:e,status:this.active-1};0==this.active&&delete a.status,$http.post("plugin.consignment.frontend.controllers.withdrawal.get-exchange-voucher-list",a).then((function(a){if(a.result){var n=a.data.settlement_record_list,i=n.current_page,s=n.last_page,c=n.data;t.page=i,t.total_page=s,t.list=1==e?c||[]:t.list.concat(c)}else t.$toast(a.msg)}))},getMoreData:function(){if(this.isLoadMore=!1,!(this.page>=this.total_page)){var t=this.page+1;this.getData(t)}}}},o=c,l=(a("bf0a"),a("2877")),r=Object(l["a"])(o,n,i,!1,null,"13c76652",null);e["default"]=r.exports},"95da":function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,'.exchange-bond[data-v-13c76652]{min-height:100vh;background:#fff}.exchange-bond .list[data-v-13c76652]{padding-top:.75rem;padding-left:.5625rem;padding-right:.75rem}.exchange-bond .success[data-v-13c76652]{color:#f14e4e}.exchange-bond .line[data-v-13c76652]{margin-bottom:.75rem;background:#e7e7e7;height:1px}.exchange-bond .bond[data-v-13c76652]{background:#f5f5f5;padding:.75rem 1rem .75rem .75rem;margin-bottom:.75rem}.exchange-bond .bold[data-v-13c76652]{font-weight:700}.exchange-bond .mt-8[data-v-13c76652]{margin-top:.25rem}.exchange-bond .flex[data-v-13c76652]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.exchange-bond .between[data-v-13c76652]{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.exchange-bond .detail-wrapper[data-v-13c76652]{position:relative;background:#fff;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:.75rem 0;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around}.exchange-bond .detail-wrapper[data-v-13c76652]:after{position:absolute;content:"";width:1px;height:5.8125rem;background-color:#e7e7e7;left:50%;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.exchange-bond .c-999[data-v-13c76652]{color:#999}.exchange-bond .flex-center[data-v-13c76652]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.exchange-bond .mb8[data-v-13c76652]{margin-bottom:.25rem}.exchange-bond .mb16[data-v-13c76652]{margin-bottom:.5rem}.exchange-bond .align-center[data-v-13c76652]{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.exchange-bond .mb24[data-v-13c76652]{margin-bottom:.75rem}.exchange-bond .fz28[data-v-13c76652]{font-size:.875rem}.exchange-bond .fz26[data-v-13c76652]{font-size:.8125rem}.exchange-bond .fz24[data-v-13c76652]{font-size:.75rem}.exchange-bond .c-F14E4E[data-v-13c76652]{color:#f14e4e}.exchange-bond .header[data-v-13c76652]{background:#fb6b68;padding:1.5rem .9375rem;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;color:#fff;font-size:1rem}.exchange-bond .img[data-v-13c76652]{width:3.4375rem;height:3.4375rem;border-radius:100px;overflow:hidden;margin-right:.375rem}',""]),t.exports=e},ac0d:function(t,e,a){"use strict";a.d(e,"a",(function(){return s}));var n=document.documentElement,i=document.body,s={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return n&&n.scrollTop?t=n.scrollTop:i&&(t=i.scrollTop),t},getClientHeight:function(){var t=0;return t=i.clientHeight&&n.clientHeight?Math.min(i.clientHeight,n.clientHeight):Math.max(i.clientHeight,n.clientHeight),t},getScrollHeight:function(){return Math.max(i.scrollHeight,n.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(){}}}},bf0a:function(t,e,a){"use strict";a("41c3")}}]);