"use strict";var o=require("../common/vendor.js"),p=require("../api/follow.js");require("../common/request.js");const f={data(){return{followId:null,follow:null,doctor:null,form:null}},onLoad(s){this.followId=s.followId},onShow(){this.getFollowById()},methods:{doFollow(){o.index.showModal({title:"\u63D0\u793A",content:"\u786E\u8BA4\u63D0\u4EA4\u5417\u5417?",showCancel:!0,cancelText:"\u53D6\u6D88",confirmText:"\u786E\u5B9A",success:s=>{if(s.confirm){var l={followId:this.followId,formJson:JSON.stringify(this.form)};p.doFollow(l).then(n=>{n.code==200?(o.index.showToast({icon:"success",title:"\u64CD\u4F5C\u6210\u529F"}),setTimeout(function(){o.index.$emit("refreshFollowList"),o.index.navigateBack({delta:1})},500)):o.index.showToast({icon:"none",title:n.msg})},n=>{})}}})},getFollowById(){var s={followId:this.followId};p.getFollowById(s).then(l=>{l.code==200&&(this.follow=l.follow,this.doctor=l.doctor,this.form=JSON.parse(this.follow.formJson),this.form.forEach(function(n){n.type==3&&(n.answers="")}))},l=>{})}}};if(!Array){const s=o.resolveComponent("u-alert"),l=o.resolveComponent("u-radio"),n=o.resolveComponent("u-radio-group"),i=o.resolveComponent("u-checkbox"),r=o.resolveComponent("u-checkbox-group"),c=o.resolveComponent("u--textarea");(s+l+n+i+r+c)()}const d=()=>"../uni_modules/uview-plus/components/u-alert/u-alert.js",m=()=>"../uni_modules/uview-plus/components/u-radio/u-radio.js",w=()=>"../uni_modules/uview-plus/components/u-radio-group/u-radio-group.js",h=()=>"../uni_modules/uview-plus/components/u-checkbox/u-checkbox.js",x=()=>"../uni_modules/uview-plus/components/u-checkbox-group/u-checkbox-group.js",y=()=>"../uni_modules/uview-plus/components/u--textarea/u--textarea.js";Math||(d+m+w+h+x+y)();function g(s,l,n,i,r,c){return o.e({a:o.p({fontSize:"13",type:"info",description:"\u4E3A\u4E86\u7ED9\u60A8\u63D0\u4F9B\u66F4\u597D\u7684\u670D\u52A1\uFF0C\u5E0C\u671B\u60A8\u80FD\u7528\u51E0\u5206\u949F\u65F6\u95F4\uFF0C\u5C06\u60A8\u7684\u611F\u53D7\u548C\u5EFA\u8BAE\u544A\u8BC9\u6211\u4EEC\uFF0C\u6211\u4EEC\u975E\u5E38\u91CD\u89C6\u60A8\u7684\u5B9D\u8D35\u610F\u89C1!"}),b:o.t(s.dortor!=null?r.doctor.doctorName:""),c:r.follow!=null},r.follow!=null?{d:o.t(r.follow.num),e:o.t(r.follow.totalNum)}:{},{f:o.t(r.follow.planTime),g:o.f(r.form,(e,v,t)=>o.e({a:o.t(e.question),b:e.require},e.require?{}:{},{c:e.type==1},e.type==1?{d:o.f(e.options,(u,a,_)=>({a,b:"5724fc07-2-"+t+"-"+_+","+("5724fc07-1-"+t),c:o.p({customStyle:{marginBottom:"8px"},label:u,name:u})})),e:"5724fc07-1-"+t,f:o.o(u=>e.answers=u),g:o.p({placement:"column",modelValue:e.answers})}:{},{h:e.type==2},e.type==2?{i:o.f(e.options,(u,a,_)=>({a,b:"5724fc07-4-"+t+"-"+_+","+("5724fc07-3-"+t),c:o.p({customStyle:{marginBottom:"8px"},label:u,name:u})})),j:"5724fc07-3-"+t,k:o.o(u=>e.answers=u),l:o.p({placement:"column",modelValue:e.answers})}:{},{m:e.type==3},e.type==3?{n:"5724fc07-5-"+t,o:o.o(u=>e.answers=u),p:o.p({count:!0,maxlength:"200",placeholder:"\u8BF7\u8F93\u5165\u5185\u5BB9",modelValue:e.answers})}:{})),h:o.o(e=>c.doFollow())})}var F=o._export_sfc(f,[["render",g],["__scopeId","data-v-5724fc07"],["__file","E:/Project/2023/\u95EE\u8BCA\u5E73\u53F0/his_user_miniapp/pages_user/doFollow.vue"]]);wx.createPage(F);
