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.5 KiB
1 lines
3.5 KiB
import{_ as e}from"./u-tabs.ea263673.js";import{$ as t,q as a,u as s,o as l,c as i,w as r,n as o,i as n,a as d,b as u,d as c,F as f,y as _,r as m,f as p,t as h,l as g}from"./index-4ddb689d.js";import{r as b}from"./uni-app.es.24af5d4f.js";import{M as x,_ as v}from"./mescroll-mixins.a7931123.js";import{A as T}from"./index.1169d7d7.js";import{S as y}from"./Setting.15a9e6ae.js";import{_ as w}from"./_plugin-vue_export-helper.1b428a4d.js";const L="dealer.order/list";const S=w({components:{AvatarImage:T},mixins:[x],data:()=>({tabList:[],curTab:0,list:a(),upOption:{auto:!0,page:{size:15},noMoreSize:12,empty:{tip:"亲,暂无相关数据"}}}),onLoad(e){this.getSetting()},methods:{getSetting(){const e=this;y.data().then((t=>{const a=t.words.order;e.setPageTitle(a.title),e.setTabList(a.words)}))},setPageTitle(e){uni.setNavigationBarTitle({title:e.value})},setTabList(e){this.tabList=[{value:-1,name:e.all.value},{value:0,name:e.unsettled.value},{value:1,name:e.settled.value}]},upCallback(e){const t=this;t.getList(e.num).then((e=>{const a=e.data.length,s=e.data.total;t.mescroll.endBySize(a,s)})).catch((()=>t.mescroll.endErr()))},getList(e=1){const a=this;return new Promise(((l,i)=>{var r;(r={settled:a.getTabValue(),page:e},t.get(L,r)).then((t=>{const i=t.data.list;a.list.data=s(i,a.list,e),l(i)}))}))},getTabValue(){const e=this;return e.tabList.length?e.tabList[e.curTab].value:-1},onChangeTab(e){this.curTab=e,this.onRefreshList()},onRefreshList(){this.list=a(),setTimeout((()=>{this.mescroll.resetUpScroll()}),120)}}},[["render",function(t,a,s,x,T,y){const w=b(_("u-tabs"),e),L=n,S=m("avatar-image"),j=g,k=b(_("mescroll-body"),v);return l(),i(L,{class:"container",style:o(t.appThemeStyle)},{default:r((()=>[d(k,{ref:"mescrollRef",sticky:!0,onInit:t.mescrollInit,down:{use:!1},up:T.upOption,onUp:y.upCallback},{default:r((()=>[d(w,{list:T.tabList,"is-scroll":!1,current:T.curTab,"active-color":"#786cff",duration:.2,onChange:y.onChangeTab},null,8,["list","current","duration","onChange"]),d(L,{class:"widget-list b-f"},{default:r((()=>[(l(!0),u(f,null,c(T.list.data,((e,t)=>(l(),i(L,{class:"widget__detail",key:t},{default:r((()=>[d(L,{class:"detail__row dis-flex flex-x-between"},{default:r((()=>[d(L,{class:"detail__left f-24"},{default:r((()=>[p("订单号:"+h(e.order.order_no),1)])),_:2},1024),d(L,{class:"detail__right f-24 c-violet"},{default:r((()=>[p(h(e.order.state_text),1)])),_:2},1024)])),_:2},1024),d(L,{class:"detail__row m-top10 dis-flex flex-x-between"},{default:r((()=>[d(L,{class:"detail__left dis-flex flex-y-center"},{default:r((()=>[d(L,{class:"user-avatar"},{default:r((()=>[d(S,{url:e.user.avatar_url,width:100,borderWidth:4,borderColor:"#fff"},null,8,["url"])])),_:2},1024),d(L,{class:"user-info dis-flex flex-dir-column flex-x-center"},{default:r((()=>[d(L,{class:"user-nickName f-28"},{default:r((()=>[p(h(e.user.nick_name),1)])),_:2},1024),d(L,{class:"user-time f-24 c-80"},{default:r((()=>[p("消费金额:¥"+h(e.order_price),1)])),_:2},1024)])),_:2},1024)])),_:2},1024),d(L,{class:"detail__right dis-flex flex-dir-column flex-x-center flex-y-center"},{default:r((()=>[d(L,{class:"detail__money t-r col-m"},{default:r((()=>[d(j,{class:"f-26"},{default:r((()=>[p("+ ")])),_:1}),d(j,{class:"f-28"},{default:r((()=>[p(h(e.my_money),1)])),_:2},1024)])),_:2},1024),d(L,{class:"detail__time f-22 c-80"},{default:r((()=>[p(h(e.create_time),1)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1},8,["onInit","up","onUp"])])),_:1},8,["style"])}],["__scopeId","data-v-de4886d8"]]);export{S as default};
|
|
|