1 line
6.2 KiB
JavaScript
1 line
6.2 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-73cdaea0"],{"02b8":function(t,e,i){"use strict";i("87bd")},"6f5c":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{attrs:{id:"debtorAudit"}},[i("c-title",{attrs:{hide:!1,text:"售后审核"}}),i("van-tabs",{on:{change:t.tapchange},model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[i("van-tab",{attrs:{title:"待审核"}}),i("van-tab",{attrs:{title:"已审核"}})],1),i("div",{staticClass:"listBox"},[t._l(t.listData,(function(e,a){return i("div",{key:a,staticClass:"lis"},[i("div",{staticClass:"top"},[i("div",{staticClass:"topTxt"},[e.has_one_order?i("div",{staticClass:"topTxt_left"},[t._v(" "+t._s(e.has_one_order.order_sn)+" ")]):t._e(),i("div",{staticClass:"topTxt_Right"},[t._v(t._s(e.status_name))])]),e.has_one_refund_apply?i("div",{staticClass:"topTxt topTxt2"},[i("div",{staticClass:"topTxt_left"},[t._v(" "+t._s(e.has_one_refund_apply.refund_type_name)+" ")]),0==e.has_one_refund_apply.refund_type||1==e.has_one_refund_apply.refund_type?i("div",{staticClass:"topTxt_Right"},[t._v(" 退款金额:¥"+t._s(e.has_one_refund_apply.price)+" ")]):t._e()]):t._e()]),i("div",{staticClass:"bottom"},[0==t.active?[i("div",{staticClass:"agree",on:{click:function(i){return t.refundExamine(1,e)}}},[t._v("同意申请")]),i("div",{staticClass:"reject",on:{click:function(i){return t.refundExamine(2,e)}}},[t._v("驳回申请")])]:t._e(),1==t.active?[i("div",{staticClass:"reject",on:{click:function(i){return t.refundExamine(3,e)}}},[t._v("查看详情")])]:t._e()],2)])})),0==t.listData.length?i("view",{staticStyle:{"text-align":"center","line-height":"1rem",color:"#999"}},[t._v("暂无更多")]):t._e()],2)],1)},o=[],s=(i("e7e5"),i("d399")),n=(i("99af"),i("ac0d")),l={mixins:[n["a"]],data:function(){return{active:0,listData:[],isLoadMore:!0,page:1,total_page:0}},activated:function(){this.init(),this.getData()},methods:{init:function(){this.listData=[],this.isLoadMore=!0,this.page=1,this.total_page=0},tapchange:function(){this.init(),this.getData()},refundExamine:function(t,e){var i,a=this;if(1==t)i=1;else if(2==t)i=2;else if(3==t)return void this.$router.push(this.fun.getUrl("aftersalesDebt",{refund_id:e.refund_id,debt:4}));$http.get("plugin.debt-shop.frontend.debtor.refundExamine",{status:i,id:e.id},"加载中").then((function(t){1===t.result?(Object(s["a"])(t.msg),a.init(),a.getData()):Object(s["a"])(t.msg)})).catch((function(t){}))},getData:function(){var t,e=this;t=0==this.active?0:["1","-1","-2"],$http.post("plugin.debt-shop.frontend.debtor.refundList",{status:t},"加载中").then((function(t){1===t.result?(e.isLoadMore=!0,e.page=1,e.total_page=t.data.last_page,e.total_page||(e.total_page=0),e.listData=t.data.data):Object(s["a"])(t.msg)})).catch((function(t){}))},getMoreData:function(){var t,e=this,i=this;(i.isLoadMore=!1,this.page>=this.total_page)||(this.page=this.page+1,t=0==this.active?0:["1","-1","-2"],$http.post("plugin.debt-shop.frontend.debtor.refundList",{status:t,page:i.page},"加载中").then((function(t){if(e.isLoadMore=!0,1!==t.result)return e.page=e.page-1,void(e.isLoadMore=!1);var i=t.data.data;e.listData=e.listData.concat(i)}),(function(t){})))}}},r=l,c=(i("02b8"),i("2877")),d=Object(c["a"])(r,a,o,!1,null,"779b1048",null);e["default"]=d.exports},"73d1":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,".listBox[data-v-779b1048]{padding:.63rem}.listBox .lis[data-v-779b1048]{padding:.84rem .81rem .56rem .84rem;background-color:#fff;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:.31rem}.listBox .lis .bottom[data-v-779b1048]{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;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;margin-top:.63rem}.listBox .lis .bottom .reject[data-v-779b1048]{border-radius:.88rem;border:.03rem solid #f15353;color:#f15353}.listBox .lis .bottom .agree[data-v-779b1048],.listBox .lis .bottom .reject[data-v-779b1048]{width:4.69rem;height:1.75rem;font-size:.69rem;text-align:center;line-height:1.75rem}.listBox .lis .bottom .agree[data-v-779b1048]{background-color:#f15353;border-radius:.88rem;color:#fff;margin-right:.94rem}.listBox .lis .top[data-v-779b1048]{padding-bottom:.78rem;border-bottom:1px solid #f0f0f0}.listBox .lis .top .topTxt[data-v-779b1048]{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}.listBox .lis .top .topTxt .topTxt_left[data-v-779b1048]{font-size:.81rem;color:#6d6d6d}.listBox .lis .top .topTxt .topTxt_Right[data-v-779b1048]{font-size:.81rem;color:#f15353}.listBox .lis .top .topTxt2[data-v-779b1048]{margin-top:.8rem}.listBox .lis .top .topTxt2 .topTxt_left[data-v-779b1048]{font-size:.81rem;color:#6d6d6d}.listBox .lis .top .topTxt2 .topTxt_Right[data-v-779b1048]{font-size:.81rem;color:#2f2f2f}",""]),t.exports=e},"87bd":function(t,e,i){var a=i("73d1");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=i("499e").default;o("12b0f18f",a,!0,{sourceMap:!1,shadowMode:!1})},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var a=document.documentElement,o=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 a&&a.scrollTop?t=a.scrollTop:o&&(t=o.scrollTop),t},getClientHeight:function(){var t=0;return t=o.clientHeight&&a.clientHeight?Math.min(o.clientHeight,a.clientHeight):Math.max(o.clientHeight,a.clientHeight),t},getScrollHeight:function(){return Math.max(o.scrollHeight,a.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(){}}}}}]); |