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.cfd169b3.js

1 lines
1.4 KiB

import{$ as t,p as s,q as a,o as e,c as l,w as o,i as n,a as i,b as r,d as p,F as c,x as u,f as d,t as m,k as f}from"./index-ae8bbb19.js";import{M as _,_ as h}from"./mescroll-mixins.7cda1bf3.js";import{r as b}from"./uni-app.es.ee1d5b08.js";import{_ as g}from"./_plugin-vue_export-helper.1b428a4d.js";const x="help/list";const k=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 k=f,y=n,j=b(u("mescroll-body"),h);return e(),l(y,{class:"container"},{default:o((()=>[i(j,{ref:"mescrollRef",sticky:!0,onInit:t.mescrollInit,down:{use:!1},up:g.upOption,onUp:x.upCallback},{default:o((()=>[(e(!0),r(c,null,p(g.list.data,((t,s)=>(e(),l(y,{class:"help cont-box b-f",key:s},{default:o((()=>[i(y,{class:"title"},{default:o((()=>[i(k,null,{default:o((()=>[d(m(t.title),1)])),_:2},1024)])),_:2},1024),i(y,{class:"content"},{default:o((()=>[i(k,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{k as default};