"use strict";var o=require("../common/vendor.js"),c=require("../uni_modules/mescroll-uni/components/mescroll-uni/mescroll-mixins.js"),u=require("../api/follow.js");require("../common/request.js");const d={mixins:[c.MescrollMixin],data(){return{tabs:[{id:-1,name:"\u5168\u90E8"},{id:0,name:"\u672A\u5B8C\u6210"},{id:1,name:"\u5DF2\u5B8C\u6210"}],writeStatus:-1,mescroll:null,downOption:{use:!0,auto:!1},upOption:{onScroll:!1,use:!0,page:{pae:0,size:10},noMoreSize:10,textNoMore:"\u5DF2\u7ECF\u5230\u5E95\u4E86",empty:{icon:"https://cos.his.cdwjyyh.com/fs/20240423/cf4a86b913a04341bb44e34bb4d37aa2.png",tip:"\u6682\u65E0\u6570\u636E"}},dataList:[]}},onLoad(){var e=this;o.index.$on("refreshFollowList",()=>{e.mescroll.resetUpScroll()})},onShow(){},methods:{doFoloow(e){o.index.navigateTo({url:"./doFollow?followId="+e.followId})},showDetails(e){o.index.navigateTo({url:"./followDetails?followId="+e.followId})},statusChange(e){this.writeStatus=e.id,console.log(e),this.mescroll.resetUpScroll()},navTo(e){o.index.navigateTo({url:e})},mescrollInit(e){this.mescroll=e},downCallback(){this.mescroll.resetUpScroll()},upCallback(e){var s=this,n={pageNum:e.num,pageSize:e.size};this.writeStatus!=-1&&(n.writeStatus=this.writeStatus),u.getFollowList(n).then(a=>{a.code==200?(e.num==1?s.dataList=a.data.list:s.dataList=s.dataList.concat(a.data.list),s.mescroll.endBySize(a.data.list.length,a.data.total)):(o.index.showToast({icon:"none",title:"\u8BF7\u6C42\u5931\u8D25"}),s.dataList=null,s.mescroll.endErr())})}}};if(!Array){const e=o.resolveComponent("u-tabs"),s=o.resolveComponent("mescroll-body");(e+s)()}const m=()=>"../uni_modules/uview-plus/components/u-tabs/u-tabs.js",w=()=>"../uni_modules/mescroll-uni/components/mescroll-body/mescroll-body.js";Math||(m+w)();function _(e,s,n,a,r,l){return{a:o.o(l.statusChange),b:o.p({scrollable:!1,list:r.tabs,lineColor:"#C39A58"}),c:o.f(r.dataList,(t,f,h)=>o.e({a:o.t(t.tempName),b:t.writeStatus==0},t.writeStatus==0?{}:{},{c:t.writeStatus==1},t.writeStatus==1?{}:{},{d:o.t(t.planTime),e:o.t(t.num),f:o.t(t.totalNum),g:t.writeStatus==0},t.writeStatus==0?{h:o.o(i=>l.doFoloow(t))}:{},{i:t.writeStatus==1},t.writeStatus==1?{j:o.o(i=>l.showDetails(t))}:{},{k:o.o(i=>l.navTo("./inquiryOrderDetails?orderId="+t.orderId))})),d:o.sr("mescrollRef","379ddccc-1"),e:o.o(l.mescrollInit),f:o.o(l.downCallback),g:o.o(l.upCallback),h:o.p({top:"88rpx",bottom:"0",down:r.downOption,up:r.upOption})}}var p=o._export_sfc(d,[["render",_],["__scopeId","data-v-379ddccc"],["__file","E:/Project/2023/\u95EE\u8BCA\u5E73\u53F0/his_user_miniapp/pages_user/followList.vue"]]);wx.createPage(p);
