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.
yanzong/public/assets/pages-help-index.18b609f6.js

2 lines
1.4 KiB

11 months ago
import{$ as t,q as s,u as a,o as e,c as l,w as o,i as n,a as i,b as r,d as c,F as p,y as u,f as d,t as m,l as f}from"./index-4ddb689d.js";import{M as _,_ as h}from"./mescroll-mixins.a7931123.js";import{r as b}from"./uni-app.es.24af5d4f.js";import{_ as g}from"./_plugin-vue_export-helper.1b428a4d.js";const x="help/list";const y=g({mixins:[_],data:()=>({list:s(),upOption:{auto:!0,page:{size:15},noMoreSize:12,empty:{tip:"亲,暂无相关数据"}}}),onLoad(t){},methods:{upCallback(t){const s=this;s.getHelpList(t.num).then((t=>{const a=t.data.length,e=t.data.total;s.mescroll.endBySize(a,e)})).catch((()=>s.mescroll.endErr()))},getHelpList(s=1){const e=this;return new Promise(((l,o)=>{var n;(n={page:s},t.get(x,n)).then((t=>{const o=t.data.list;e.list.data=a(o,e.list,s),l(o)}))}))}}},[["render",function(t,s,a,_,g,x){const y=f,j=n,k=b(u("mescroll-body"),h);return e(),l(j,{class:"container"},{default:o((()=>[i(k,{ref:"mescrollRef",sticky:!0,onInit:t.mescrollInit,down:{use:!1},up:g.upOption,onUp:x.upCallback},{default:o((()=>[(e(!0),r(p,null,c(g.list.data,((t,s)=>(e(),l(j,{class:"help cont-box b-f",key:s},{default:o((()=>[i(j,{class:"title"},{default:o((()=>[i(y,null,{default:o((()=>[d(m(t.title),1)])),_:2},1024)])),_:2},1024),i(j,{class:"content"},{default:o((()=>[i(y,null,{default:o((()=>[d(m(t.content),1)])),_:2},1024)])),_:2},1024)])),_:2},1024)))),128))])),_:1},8,["onInit","up","onUp"])])),_:1})}],["__scopeId","data-v-f8734fbe"]]);export{y as default};