"use strict";var e=require("../common/vendor.js"),t=require("../api/test.js");require("../common/request.js");const i={data:()=>({tempId:null,item:{}}),onLoad(e){this.tempId=e.tempId},onShow(){this.getTestDetails()},onShareAppMessage(e){if(this.$isLogin())return{title:"健康自测",path:"/pages_index/testDetails?tempId="+this.tempId,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:{navTo(t){this.$isLogin().then((i=>{console.log(i),i?e.index.navigateTo({url:t}):e.index.navigateTo({url:"/pages/auth/login"})}))},getTestDetails(){let i={tempId:this.tempId};t.getTestDetails(i).then((t=>{200==t.code?(this.item=t.data,e.index.setNavigationBarTitle({title:this.item.name+"自测"})):e.index.showToast({icon:"none",title:"请求失败"})}),(e=>{}))}}};var s=e._export_sfc(i,[["render",function(t,i,s,n,o,a){return{a:e.t(o.item.name),b:e.t(o.item.msg),c:o.item.descs,d:e.o((e=>a.navTo("/pages_index/test?tempId="+o.item.tempId)))}}]]);i.__runtimeHooks=6,wx.createPage(s);
