"use strict";var i=require("../common/vendor.js"),c=require("../api/common.js");require("../common/request.js");const o={data(){return{isShare:null,companyId:null,companyUserId:null,inquiryType:null,price1:null,price2:null}},onLoad(r){this.$isEmpty(r.isShare)?i.index.hideShareMenu():this.isShare=r.isShare,this.inquiryType=r.inquiryType,this.inquiryType==3&&(i.index.setNavigationBarTitle({title:"\u836F\u5E08\u54A8\u8BE2"}),this.typeText="\u836F\u5E08"),this.companyId=r.companyId,this.companyUserId=r.companyUserId},onShow(){this.getConfigByKey()},onShareAppMessage(r){return i.index.showShareMenu({withShareTicket:!0}),wx.updateShareMenu({isPrivateMessage:!0,withShareTicket:!1,success(n){console.log("updateShareMenu: ",n)},fail(){}}),{title:"\u5FA1\u541B\u65B9\u4E92\u8054\u7F51\u533B\u9662--\u5065\u5EB7\u4F1A\u8BCA",path:"/pages_order/inquirySelect?inquiryType=3&companyId="+this.companyId+"&companyUserId="+this.companyUserId}},methods:{getConfigByKey(){let r={key:"his.inquiryConfig"};c.getConfigByKey(r).then(n=>{if(n.code==200){var p=JSON.parse(n.data);this.price1=p.prices.find((y,e)=>y.type===1),this.price2=p.prices.find((y,e)=>y.type===2)}else i.index.showToast({icon:"none",title:"\u8BF7\u6C42\u5931\u8D25"})},n=>{})},doInquiryForm(r){this.$isLogin().then(n=>{console.log(n),n?this.inquiryType==1?i.index.navigateTo({url:"/pages_order/inquiryForm1?inquiryType="+this.inquiryType+"&orderType="+r.type}):this.inquiryType==3&&i.index.navigateTo({url:"/pages_order/inquiryForm3?inquiryType="+this.inquiryType+"&orderType="+r.type+"&companyId="+this.companyId+"&companyUserId="+this.companyUserId}):i.index.navigateTo({url:"/pages/auth/login"})})}}};function t(r,n,p,y,e,s){return i.e({a:i.t(e.inquiryType==1?"\u4E13\u5BB6\u533B\u751F":"\u6267\u4E1A\u836F\u5E08"),b:e.price1!=null},e.price1!=null?i.e({c:e.inquiryType==1},e.inquiryType==1?{d:i.t(e.price1.price)}:{},{e:e.inquiryType==3},e.inquiryType==3?{f:i.t(e.price1.price)}:{},{g:i.o(u=>s.doInquiryForm(e.price1))}):{},{h:e.price2!=null&&e.inquiryType==1},e.price2!=null&&e.inquiryType==1?i.e({i:e.inquiryType==1},e.inquiryType==1?{j:i.t(e.price2.price)}:{},{k:e.inquiryType==3},e.inquiryType==3?{l:i.t(e.price2.price)}:{},{m:i.o(u=>s.doInquiryForm(e.price2))}):{})}var h=i._export_sfc(o,[["render",t],["__scopeId","data-v-fc4142ee"],["__file","E:/Project/2023/\u95EE\u8BCA\u5E73\u53F0/his_user_miniapp/pages_order/inquirySelect.vue"]]);o.__runtimeHooks=2;wx.createPage(h);
