"use strict";var e=require("../../common/vendor.js"),t=require("../../api/healthTongue.js"),a=require("../../uni_modules/mescroll-uni/components/mescroll-uni/mescroll-mixins.js");require("../../common/request.js");const o={mixins:[a.MescrollMixin],data:()=>({mescroll:null,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:[]}),onLoad(){},methods:{navTo(t){e.index.navigateTo({url:t})},mescrollInit(e){this.mescroll=e},downCallback(e){e.resetUpScroll()},upCallback(a){var o=this,s={pageNum:a.num,pageSize:a.size};t.getHealthTongueList(s).then((t=>{200==t.code?(1==a.num?o.dataList=t.data.list:o.dataList=o.dataList.concat(t.data.list),o.mescroll.endBySize(t.data.list.length,t.data.total)):(e.index.showToast({icon:"none",title:"请求失败"}),o.dataList=null,o.mescroll.endErr())}))}}};if(!Array){e.resolveComponent("mescroll-body")()}Math;var s=e._export_sfc(o,[["render",function(t,a,o,s,i,l){return{a:e.f(i.dataList,((t,a,o)=>e.e({a:e.t(t.taiseName),b:e.t(t.taiseDesc),c:e.t(t.typeName),d:e.t(t.name),e:e.t(t.age),f:e.t(1==t.sex?"男":"女"),g:null!=t.createTime},null!=t.createTime?{h:e.t(t.createTime)}:{},{i:a,j:e.o((e=>l.navTo("/pages_user/tongue/report?type=back&id="+t.id)),a)}))),b:e.sr("mescrollRef","87a7f270-0"),c:e.o(l.mescrollInit),d:e.o(l.downCallback),e:e.o(l.upCallback),f:e.p({top:"0rpx",bottom:"0",down:t.downOption,up:i.upOption})}}]]);wx.createPage(s);
