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.
2 lines
1.7 KiB
2 lines
1.7 KiB
11 months ago
|
import{$ as s,q as t,u as a,o as e,c as l,w as o,i,a as n,b as r,d as c,F as u,y as d,f as p,t as m,k as f,l as _}from"./index-4ddb689d.js";import{M as g,_ as h}from"./mescroll-mixins.a7931123.js";import{r as x}from"./uni-app.es.24af5d4f.js";import{_ as b}from"./_plugin-vue_export-helper.1b428a4d.js";const v="points.log/list";const y=b({mixins:[g],data:()=>({list:t(),upOption:{auto:!0,page:{size:15},noMoreSize:12,empty:{tip:"亲,暂无相关数据"}}}),onLoad(s){},methods:{upCallback(s){const t=this;t.getLogList(s.num).then((s=>{const a=s.data.length,e=s.data.total;t.mescroll.endBySize(a,e)})).catch((()=>t.mescroll.endErr()))},getLogList(t=1){const e=this;return new Promise(((l,o)=>{var i;(i={page:t},s.get(v,i)).then((s=>{const o=s.data.list;e.list.data=a(o,e.list,t),l(o)}))}))}}},[["render",function(s,t,a,g,b,v){const y=_,k=i,L=x(d("mescroll-body"),h);return e(),l(k,{class:"container"},{default:o((()=>[n(L,{ref:"mescrollRef",sticky:!0,onInit:s.mescrollInit,down:{use:!1},up:b.upOption,onUp:v.upCallback},{default:o((()=>[n(k,{class:"log-list"},{default:o((()=>[(e(!0),r(u,null,c(b.list.data,((s,t)=>(e(),l(k,{key:t,class:"log-item"},{default:o((()=>[n(k,{class:"item-left flex-box"},{default:o((()=>[n(k,{class:"rec-status"},{default:o((()=>[n(y,null,{default:o((()=>[p(m(s.describe),1)])),_:2},1024)])),_:2},1024),n(k,{class:"rec-time"},{default:o((()=>[n(y,null,{default:o((()=>[p(m(s.create_time),1)])),_:2},1024)])),_:2},1024)])),_:2},1024),n(k,{class:f(["item-right",[s.value>0?"col-green":"col-6"]])},{default:o((()=>[n(y,null,{default:o((()=>[p(m(s.value>0?"+":"")+m(s.value),1)])),_:2},1024)])),_:2},1032,["class"])])),_:2},1024)))),128))])),_:1})])),_:1},8,["onInit","up","onUp"])])),_:1})}],["__scopeId","data-v-631d0666"]]);export{y as default};
|