"use strict";var o=require("../common/vendor.js"),e=require("../api/follow.js");require("../common/request.js");const l={data:()=>({followId:null,follow:null,doctor:null,form:null}),onLoad(o){this.followId=o.followId},onShow(){this.getFollowById()},methods:{doFollow(){o.index.showModal({title:"提示",content:"确认提交吗吗?",showCancel:!0,cancelText:"取消",confirmText:"确定",success:l=>{if(l.confirm){var t={followId:this.followId,formJson:JSON.stringify(this.form)};e.doFollow(t).then((e=>{200==e.code?(o.index.showToast({icon:"success",title:"操作成功"}),setTimeout((function(){o.index.$emit("refreshFollowList"),o.index.navigateBack({delta:1})}),500)):o.index.showToast({icon:"none",title:e.msg})}),(o=>{}))}}})},getFollowById(){var o={followId:this.followId};e.getFollowById(o).then((o=>{200==o.code&&(this.follow=o.follow,this.doctor=o.doctor,this.form=JSON.parse(this.follow.formJson),this.form.forEach((function(o){3==o.type&&(o.answers="")})))}),(o=>{}))}}};if(!Array){(o.resolveComponent("u-alert")+o.resolveComponent("u-radio")+o.resolveComponent("u-radio-group")+o.resolveComponent("u-checkbox")+o.resolveComponent("u-checkbox-group")+o.resolveComponent("u--textarea"))()}Math||((()=>"../uni_modules/uview-plus/components/u-alert/u-alert.js")+(()=>"../uni_modules/uview-plus/components/u-radio/u-radio.js")+(()=>"../uni_modules/uview-plus/components/u-radio-group/u-radio-group.js")+(()=>"../uni_modules/uview-plus/components/u-checkbox/u-checkbox.js")+(()=>"../uni_modules/uview-plus/components/u-checkbox-group/u-checkbox-group.js")+(()=>"../uni_modules/uview-plus/components/u--textarea/u--textarea.js"))();var t=o._export_sfc(l,[["render",function(e,l,t,n,s,r){return o.e({a:o.p({fontSize:"13",type:"info",description:"为了给您提供更好的服务，希望您能用几分钟时间，将您的感受和建议告诉我们，我们非常重视您的宝贵意见!"}),b:o.t(null!=e.dortor?s.doctor.doctorName:""),c:null!=s.follow},null!=s.follow?{d:o.t(s.follow.num),e:o.t(s.follow.totalNum)}:{},{f:o.t(s.follow.planTime),g:o.f(s.form,((e,l,t)=>o.e({a:o.t(e.question),b:e.require},(e.require,{}),{c:1==e.type},1==e.type?{d:o.f(e.options,((e,l,n)=>({a:l,b:"e5947862-2-"+t+"-"+n+",e5947862-1-"+t,c:o.p({customStyle:{marginBottom:"8px"},label:e,name:e})}))),e:"e5947862-1-"+t,f:o.o((o=>e.answers=o)),g:o.p({placement:"column",modelValue:e.answers})}:{},{h:2==e.type},2==e.type?{i:o.f(e.options,((e,l,n)=>({a:l,b:"e5947862-4-"+t+"-"+n+",e5947862-3-"+t,c:o.p({customStyle:{marginBottom:"8px"},label:e,name:e})}))),j:"e5947862-3-"+t,k:o.o((o=>e.answers=o)),l:o.p({placement:"column",modelValue:e.answers})}:{},{m:3==e.type},3==e.type?{n:"e5947862-5-"+t,o:o.o((o=>e.answers=o)),p:o.p({count:!0,maxlength:"200",placeholder:"请输入内容",modelValue:e.answers})}:{}))),h:o.o((o=>r.doFollow()))})}],["__scopeId","data-v-e5947862"]]);wx.createPage(t);
