"use strict";var i=require("../../common/vendor.js"),m=require("../../api/healthTongue.js");require("../../common/request.js");const h={data(){return{type:null,id:null,isShare:null,avatar:null,item:null,typeList:[],baseUrl:i.index.getStorageSync("requestPath"),statusBarHeight:i.index.getSystemInfoSync().statusBarHeight+"px",defaultHeadimg:"/static/images/my_heads_icon.png",showShare:!1,shareItem:{imageUrl:"",title:"",path:"",isMini:!0},isLock:!0,videoUrl:"",imageUrl:"",headerBG:"transparent"}},onLoad(t){this.type=t.type,this.isShare=t.isShare,this.id=t.id,this.getHealthTongueById()},onShareAppMessage(t){return{title:"\u820C\u82D4\u68C0\u6D4B\u62A5\u544A",path:"/pages_user/tongue/report?isShare=1&id="+this.id}},onShareTimeline(t){return{title:"\u820C\u82D4\u68C0\u6D4B\u62A5\u544A",path:"/pages_user/tongue/report?isShare=1&id="+this.id}},onPageScroll(t){t.scrollTop>44?this.headerBG="#FF8A00":this.headerBG="transparent"},methods:{doTongue(){i.index.redirectTo({url:"/pages/user/tongue/index"})},getHealthTongueById(){m.getHealthTongueById(this.id).then(t=>{if(t.code==200){this.isLock=t.isAddQw==1,this.videoUrl=t.url||"",this.imageUrl=t.imageUrl||"",this.item=t.data;const s=JSON.parse(this.item.typeJson);let n=s.findIndex(o=>o.name==="\u7528\u836F\u8C03\u6CBB");n>-1?this.typeList=s.splice(0,n):this.typeList=s}},t=>{})},back(){this.type!=null&&this.type=="back"?i.index.navigateBack():i.index.switchTab({url:"/pages/index/index"})},doShare(){if(this.isH5)return;this.shareItem.title="\u820C\u82D4\u68C0\u6D4B\u62A5\u544A",this.shareItem.imageUrl="",this.shareItem.isMini=!0,this.shareItem.path="/pages/user/tongue/report?isShare=1&id="+this.id;let t=i.index.getStorageSync("h5Path");this.shareItem.url=t+this.shareItem.path,this.showShare=!0}}};if(!Array){const t=i.resolveComponent("share-box"),s=i.resolveComponent("u-popup");(t+s)()}const l=()=>"../../uni_modules/uview-plus/components/u-popup/u-popup.js";Math||l();function p(t,s,n,o,e,a){return i.e({a:i.o(r=>a.back()),b:e.headerBG,c:e.baseUrl+"/images/ai_top_bg.png",d:e.baseUrl+"/images/ai_top_bg.png",e:e.baseUrl+"/images/ai_bottom_bg.png",f:e.item!=null},e.item!=null?i.e({g:e.item.avatar,h:i.t(e.item.name),i:i.t(e.item.sex==1?"\u7537":"\u5973"),j:i.t(e.item.age),k:e.baseUrl+"/images/ai_sz_img.png",l:i.t(e.item.createTime),m:i.t(e.item.typeName),n:i.t(e.item.typeName),o:e.videoUrl},e.videoUrl?{p:e.videoUrl,q:e.imageUrl}:{},{r:i.t(e.item.taiseName),s:i.t(e.item.taiseDesc),t:i.t(e.item.shemianName),v:i.t(e.item.shemianDesc),w:i.t(e.item.botai==1?"\u6709\u5265\u82D4":"\u672A\u89C1\u5265\u82D4"),x:i.t(e.item.botaiDesc),y:i.t(e.item.liewen==1?"\u6709\u88C2\u7EB9":"\u672A\u89C1\u88C2\u7EB9"),z:i.t(e.item.liewenDesc),A:i.t(e.item.chihen==1?"\u6709\u9F7F\u75D5":"\u672A\u89C1\u9F7F\u75D5"),B:i.t(e.item.chihenDesc),C:i.f(e.typeList,(r,g,c)=>({a:i.t(r.name),b:i.t(r.value)})),D:e.baseUrl+"/images/bxzs.jpg",E:i.o(r=>e.showShare=!1),F:i.p({shareItem:e.shareItem,showCopy:!1}),G:i.o(r=>e.showShare=!1),H:i.p({show:e.showShare}),I:e.isShare==null},e.isShare==null?{}:{}):{})}var u=i._export_sfc(h,[["render",p],["__scopeId","data-v-0f562e44"],["__file","E:/Project/2023/\u95EE\u8BCA\u5E73\u53F0/his_user_miniapp/pages_user/tongue/report.vue"]]);h.__runtimeHooks=7;wx.createPage(u);
