You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
3.8 KiB
1 lines
3.8 KiB
import{_ as e}from"./u-tabs.ea263673.js";import{q as a,u as s,o as t,c as l,w as o,n,i as d,a as r,b as i,d as c,F as u,y as f,f as m,t as p,m as _,l as g,g as h}from"./index-4ddb689d.js";import{r as b}from"./uni-app.es.24af5d4f.js";import{M as x,_ as k}from"./mescroll-mixins.a7931123.js";import{l as T}from"./refund.57dda06a.js";import{_ as w}from"./_plugin-vue_export-helper.1b428a4d.js";const y=[{name:"全部",value:-1},{name:"待处理",value:0}];const C=w({mixins:[x],data:()=>({list:a(),tabs:y,curTab:0,upOption:{auto:!0,page:{size:15},noMoreSize:2,empty:{tip:"亲,暂无售后单记录"}},canReset:!1}),onLoad(e){},onShow(){this.canReset&&this.onRefreshList(),this.canReset=!0},methods:{upCallback(e){const a=this;a.getRefundList(e.num).then((e=>{const s=e.data.length,t=e.data.total;a.mescroll.endBySize(s,t)})).catch((()=>a.mescroll.endErr()))},getRefundList(e=1){const a=this;return new Promise(((t,l)=>{T({state:a.getTabValue(),page:e},{load:!1}).then((l=>{const o=l.data.list;a.list.data=s(o,a.list,e),t(o)}))}))},onChangeTab(e){this.curTab=e,this.onRefreshList()},onRefreshList(){this.list=a(),setTimeout((()=>{this.mescroll.resetUpScroll()}),120)},getTabValue(){return this.tabs[this.curTab].value},handleTargetDetail(e){this.$navTo("pages/refund/detail",{orderRefundId:e})}}},[["render",function(a,s,x,T,w,y){const C=b(f("u-tabs"),e),v=d,R=g,j=h,L=b(f("mescroll-body"),k);return t(),l(v,{class:"container",style:n(a.appThemeStyle)},{default:o((()=>[r(L,{ref:"mescrollRef",sticky:!0,onInit:a.mescrollInit,down:{native:!0},onDown:a.downCallback,up:w.upOption,onUp:y.upCallback},{default:o((()=>[r(C,{list:w.tabs,"is-scroll":!1,current:w.curTab,"active-color":a.appTheme.mainBg,duration:.2,onChange:y.onChangeTab},null,8,["list","current","active-color","duration","onChange"]),r(v,{class:"widget-list"},{default:o((()=>[(t(!0),i(u,null,c(w.list.data,((e,a)=>(t(),l(v,{class:"widget-detail",key:a},{default:o((()=>[r(v,{class:"row-block dis-flex flex-y-center"},{default:o((()=>[r(v,{class:"flex-box"},{default:o((()=>[m(p(e.create_time),1)])),_:2},1024),r(v,{class:"flex-box t-r"},{default:o((()=>[r(R,{class:"col-m"},{default:o((()=>[m(p(e.state_text),1)])),_:2},1024)])),_:2},1024)])),_:2},1024),r(v,{class:"detail-goods row-block dis-flex",onClick:_((a=>y.handleTargetDetail(e.order_refund_id)),["stop"])},{default:o((()=>[r(v,{class:"goods-image"},{default:o((()=>[r(j,{class:"image",src:e.orderGoods.goods_image,mode:"aspectFit"},null,8,["src"])])),_:2},1024),r(v,{class:"goods-right flex-box"},{default:o((()=>[r(v,{class:"goods-name"},{default:o((()=>[r(R,{class:"twoline-hide"},{default:o((()=>[m(p(e.orderGoods.goods_name),1)])),_:2},1024)])),_:2},1024),r(v,{class:"goods-props clearfix"},{default:o((()=>[(t(!0),i(u,null,c(e.orderGoods.goods_props,((e,a)=>(t(),l(v,{class:"goods-props-item",key:a},{default:o((()=>[r(R,null,{default:o((()=>[m(p(e.value.name),1)])),_:2},1024)])),_:2},1024)))),128))])),_:2},1024),r(v,{class:"goods-num t-r"},{default:o((()=>[r(R,{class:"f-26 col-8"},{default:o((()=>[m("×"+p(e.orderGoods.total_num),1)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1032,["onClick"]),r(v,{class:"detail-order row-block"},{default:o((()=>[r(v,{class:"item dis-flex flex-x-end flex-y-center"},{default:o((()=>[r(R,{class:""},{default:o((()=>[m("付款金额:")])),_:1}),r(R,{class:"col-m"},{default:o((()=>[m("¥"+p(e.orderGoods.total_pay_price),1)])),_:2},1024)])),_:2},1024)])),_:2},1024),r(v,{class:"detail-operate row-block dis-flex flex-x-end flex-y-center"},{default:o((()=>[r(v,{class:"detail-btn btn-detail",onClick:_((a=>y.handleTargetDetail(e.order_refund_id)),["stop"])},{default:o((()=>[m("查看详情")])),_:2},1032,["onClick"])])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1},8,["onInit","onDown","up","onUp"])])),_:1},8,["style"])}],["__scopeId","data-v-9e024991"]]);export{C as default};
|
|
|