var y=Object.defineProperty;var p=Object.getOwnPropertySymbols;var f=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable;var u=(r,a,e)=>a in r?y(r,a,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[a]=e,h=(r,a)=>{for(var e in a||(a={}))f.call(a,e)&&u(r,e,a[e]);if(p)for(var e of p(a))_.call(a,e)&&u(r,e,a[e]);return r};import{_ as E,d as C,u as P,C as q,o as I,g as D,h as N,q as x}from"./index.9fabe127.js";import{d as l}from"./index.7c7dd05f.js";import{s as R}from"./auth.fe6ed6a9.js";const T=C({name:"transferPage"}),M=Object.assign(T,{setup(r){const{proxy:a}=x(),e={PROJECT_REVIEW:{pathName:"/toDoCenter/handleDuringExamine",listPathName:"/toDoCenter/waitMeToHandle",query:{0:["instanceId","projectCode"],1:["instanceId","projectCode"]}},PROJECT_REVIEW_PASS:{pathName:"/toDoCenter/handleDuringExamine",listPathName:"/toDoCenter/waitMeToHandle",query:{0:["instanceId","projectCode"],1:["instanceId","projectCode"]}},PROJECT_REVIEW_REJECT:{pathName:"/toDoCenter/handleDuringExamine",listPathName:"/toDoCenter/waitMeToHandle",query:{0:["instanceId","projectCode"],1:["instanceId","projectCode"]}},PROJECT_REVIEW_BACK:{pathName:"/toDoCenter/handleAfterGiveBack",listPathName:"/toDoCenter/waitMeToHandle",query:{0:["instanceId","projectCode"],1:["instanceId","id"]}},EXPERT_REVIEW:{pathName:"/expertManage/expertReview"},REVIEW_MEETING:{pathName:"/expertManage/meetingDetail",listPathName:"/expertManage/expertReview",query:{0:["meetingId"],1:["id"]}}},m=()=>{l?l.getAuthCode({}).then(n=>{n&&(n.code||n.auth_code)&&R({credential:n.code||n.auth_code,identifier:"",loginType:"DING_MD_LOGIN"}).then(t=>{t.code===200?d():a.$message.error(t.respMsg)})}):console.log("\u672A\u627E\u5230ddApi")},o=P(),g=q(),d=()=>{var n;if(c()){const t={};e[o.query.type].query&&e[o.query.type].query[0].forEach((i,s)=>{t[e[o.query.type].query[1][s]]=o.query[i]}),g.push({path:(n=Object.keys(t))!=null&&n.length?e[o.query.type].pathName:e[o.query.type].listPathName,query:h({},t)})}else{let t="http://lsmobile.ningdatech.com/#/transitPage?";if(o.query)for(const i in o.query)t=t+`&${i}=${o.query[i]}`;window.location.href=t}},c=()=>{for(var n=navigator.userAgent,t=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],i=!0,s=0;s<t.length;s++)if(n.indexOf(t[s])>0){i=!1;break}return i};return I(()=>{c()?m():d()}),(n,t)=>(D(),N("div"))}}),O=E(M,[["__file","/Users/chenlixin/Documents/work/NDKJ/MyProject/ls-project-v2.0/src/pages/transferPage/index.vue"]]);export{O as default};
