"use strict";var e=require("../common/vendor.js"),t=require("../api/test.js"),o=require("../uni_modules/mescroll-uni/components/mescroll-uni/mescroll-mixins.js");require("../common/request.js");const s={mixins:[o.MescrollMixin],data:()=>({mescroll:null,downOption:{use:!0,auto:!1},upOption:{onScroll:!1,use:!0,page:{pae:0,size:10},noMoreSize:10,textNoMore:"已经到底了",empty:{icon:"https://cos.his.cdwjyyh.com/fs/20240423/cf4a86b913a04341bb44e34bb4d37aa2.png",tip:"暂无数据"}},dataList:[]}),onShow(){},onShareAppMessage(e){if(this.$isLogin())return{title:"健康自测",path:"/pages_index/testList",imageUrl:"https://hos-1309931967.cos.ap-chongqing.myqcloud.com/fs/20230106/6b459adfb1004c1a96219bcdf07e337c.png"}},onShareTimeline(e){if(this.utils.isLogin())return{title:"健康自测",imageUrl:"https://hos-1309931967.cos.ap-chongqing.myqcloud.com/fs/20230106/6b459adfb1004c1a96219bcdf07e337c.png"}},methods:{mescrollInit(e){this.mescroll=e},downCallback(e){e.resetUpScroll()},upCallback(o){var s=this,i={pageNum:o.num,pageSize:o.size};t.getTestList(i).then((t=>{200==t.code?(1==o.num?s.dataList=t.data.list:s.dataList=s.dataList.concat(t.data.list),s.mescroll.endBySize(t.data.list.length,t.data.total)):(e.index.showToast({icon:"none",title:"请求失败"}),s.dataList=null,s.mescroll.endErr())}))},showDetail(t){e.index.navigateTo({url:"/pages_index/testDetails?tempId="+t.tempId})}}};if(!Array){e.resolveComponent("mescroll-body")()}Math;var i=e._export_sfc(s,[["render",function(t,o,s,i,a,n){return{a:e.f(a.dataList,((t,o,s)=>({a:e.t(t.name),b:e.t(t.title),c:e.t(t.peopleNum),d:e.t(t.num),e:e.t(t.time),f:t.img,g:o,h:e.o((e=>n.showDetail(t)),o)}))),b:e.sr("mescrollRef","75611768-0"),c:e.o(n.mescrollInit),d:e.o(n.downCallback),e:e.o(n.upCallback),f:e.p({top:"0rpx",down:a.downOption,up:a.upOption})}}]]);s.__runtimeHooks=6,wx.createPage(i);
