iedc-go/example/tpt/wx/js/chunk-d856e504.a9c74dc8.js
2022-03-12 23:52:42 +08:00

2 lines
9.2 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d856e504"],{1703:function(t,e,n){},2241:function(t,e,n){"use strict";var o,c=n("f2bf"),a=n("f344"),l=n("c199"),r=n("1da4"),i=n("fe7e"),s=n("f691"),u=n("7e3e"),f=n("8da3"),b=n("b1d2"),d=n("8405"),m=n("f827"),O=n("e41f"),g=n("b650"),p=n("7f9b"),[j,v]=Object(i["a"])("action-bar"),h=Symbol(j),w={safeAreaInsetBottom:s["g"]},k=Object(c["l"])({name:j,props:w,setup(t,e){var{slots:n}=e,{linkChildren:o}=Object(p["e"])(h);return o(),()=>Object(c["k"])("div",{class:[v(),{"van-safe-area-bottom":t.safeAreaInsetBottom}]},[null==n.default?void 0:n.default()])}}),B=Object(l["a"])(k),C=n("4eda"),S=n("b070"),[y,x]=Object(i["a"])("action-bar-button"),H=Object(a["a"])({},S["a"],{type:String,text:String,icon:String,color:String,loading:Boolean,disabled:Boolean}),T=Object(c["l"])({name:y,props:H,setup(t,e){var{slots:n}=e,o=Object(S["b"])(),{parent:a,index:l}=Object(p["i"])(h),r=Object(c["d"])(()=>{if(a){var t=a.children[l.value-1];return!(t&&"isButton"in t)}}),i=Object(c["d"])(()=>{if(a){var t=a.children[l.value+1];return!(t&&"isButton"in t)}});return Object(C["a"])({isButton:!0}),()=>{var{type:e,icon:a,text:l,color:s,loading:u,disabled:f}=t;return Object(c["k"])(g["a"],{class:x([e,{last:i.value,first:r.value}]),size:"large",type:e,icon:a,color:s,loading:u,disabled:f,onClick:o},{default:()=>[n.default?n.default():l]})}}}),I=Object(l["a"])(T),[_,P,A]=Object(i["a"])("dialog"),U=Object(a["a"])({},m["b"],{title:String,theme:String,width:s["f"],message:[String,Function],callback:Function,allowHtml:Boolean,className:s["h"],transition:Object(s["e"])("van-dialog-bounce"),messageAlign:String,closeOnPopstate:s["g"],showCancelButton:Boolean,cancelButtonText:String,cancelButtonColor:String,confirmButtonText:String,confirmButtonColor:String,showConfirmButton:s["g"],closeOnClickOverlay:Boolean}),z=[...m["a"],"transition","closeOnPopstate"],D=Object(c["l"])({name:_,props:U,emits:["confirm","cancel","update:show"],setup(t,e){var{emit:n,slots:o}=e,l=Object(c["D"])({confirm:!1,cancel:!1}),r=t=>n("update:show",t),i=e=>{r(!1),null==t.callback||t.callback(e)},s=e=>()=>{t.show&&(n(e),t.beforeClose?(l[e]=!0,Object(u["a"])(t.beforeClose,{args:[e],done(){i(e),l[e]=!1},canceled(){l[e]=!1}})):i(e))},m=s("cancel"),p=s("confirm"),j=()=>{var e=o.title?o.title():t.title;if(e)return Object(c["k"])("div",{class:P("header",{isolated:!t.message&&!o.default})},[e])},v=e=>{var{message:n,allowHtml:o,messageAlign:a}=t,l=P("message",{"has-title":e,[a]:a}),r=Object(f["b"])(n)?n():n;return o&&"string"===typeof r?Object(c["k"])("div",{class:l,innerHTML:r},null):Object(c["k"])("div",{class:l},[r])},h=()=>{if(o.default)return Object(c["k"])("div",{class:P("content")},[o.default()]);var{title:e,message:n,allowHtml:a}=t;if(n){var l=!(!e&&!o.title);return Object(c["k"])("div",{key:a?1:0,class:P("content",{isolated:!l})},[v(l)])}},w=()=>Object(c["k"])("div",{class:[b["d"],P("footer")]},[t.showCancelButton&&Object(c["k"])(g["a"],{size:"large",text:t.cancelButtonText||A("cancel"),class:P("cancel"),style:{color:t.cancelButtonColor},loading:l.cancel,onClick:m},null),t.showConfirmButton&&Object(c["k"])(g["a"],{size:"large",text:t.confirmButtonText||A("confirm"),class:[P("confirm"),{[b["b"]]:t.showCancelButton}],style:{color:t.confirmButtonColor},loading:l.confirm,onClick:p},null)]),k=()=>Object(c["k"])(B,{class:P("footer")},{default:()=>[t.showCancelButton&&Object(c["k"])(I,{type:"warning",text:t.cancelButtonText||A("cancel"),class:P("cancel"),color:t.cancelButtonColor,loading:l.cancel,onClick:m},null),t.showConfirmButton&&Object(c["k"])(I,{type:"danger",text:t.confirmButtonText||A("confirm"),class:P("confirm"),color:t.confirmButtonColor,loading:l.confirm,onClick:p},null)]}),C=()=>o.footer?o.footer():"round-button"===t.theme?k():w();return()=>{var{width:e,title:n,theme:o,message:l,className:i}=t;return Object(c["k"])(O["a"],Object(c["r"])({role:"dialog",class:[P([o]),i],style:{width:Object(d["a"])(e)},"aria-labelledby":n||l,"onUpdate:show":r},Object(a["e"])(t,z)),{default:()=>[j(),h(),C()]})}}});function N(){var t={setup(){var{state:t,toggle:e}=Object(r["b"])();return()=>Object(c["k"])(D,Object(c["r"])(t,{"onUpdate:show":e}),null)}};({instance:o}=Object(r["a"])(t))}function q(t){return a["c"]?new Promise((e,n)=>{o||N(),o.open(Object(a["a"])({},q.currentOptions,t,{callback:t=>{("confirm"===t?e:n)(t)}}))}):Promise.resolve()}q.defaultOptions={title:"",width:"",theme:null,message:"",overlay:!0,callback:null,teleport:"body",className:"",allowHtml:!1,lockScroll:!0,transition:void 0,beforeClose:null,overlayClass:"",overlayStyle:void 0,messageAlign:"",cancelButtonText:"",cancelButtonColor:null,confirmButtonText:"",confirmButtonColor:null,showConfirmButton:!0,showCancelButton:!1,closeOnPopstate:!0,closeOnClickOverlay:!1},q.currentOptions=Object(a["a"])({},q.defaultOptions),q.alert=q,q.confirm=t=>q(Object(a["a"])({showCancelButton:!0},t)),q.close=()=>{o&&o.toggle(!1)},q.setDefaultOptions=t=>{Object(a["a"])(q.currentOptions,t)},q.resetDefaultOptions=()=>{q.currentOptions=Object(a["a"])({},q.defaultOptions)},q.Component=Object(l["a"])(D),q.install=t=>{t.use(q.Component),t.config.globalProperties.$dialog=q};e["a"]=q},"2fcb":function(t,e,n){},"5ff8":function(t,e,n){},ac2e:function(t,e,n){"use strict";n("5ff8")},b0c0:function(t,e,n){var o=n("83ab"),c=n("5e77").EXISTS,a=n("e330"),l=n("9bf2").f,r=Function.prototype,i=a(r.toString),s=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,u=a(s.exec),f="name";o&&!c&&l(r,f,{configurable:!0,get:function(){try{return u(s,i(this))[1]}catch(t){return""}}})},bab3:function(t,e,n){t.exports=n.p+"img/vc2.59364747.png"},c1fb:function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return l})),n.d(e,"e",(function(){return i})),n.d(e,"c",(function(){return s})),n.d(e,"d",(function(){return u}));n("e17f");var o=n("2241"),c=(n("e9c4"),n("d3b7"),n("b0c0"),"/"),a=null;function l(t,e){if(null==e)return e=localStorage.getItem(t),null==e?null:(e=JSON.parse(e),e["data"]);localStorage.setItem(t,null),localStorage.setItem(t,JSON.stringify({data:e}))}function r(){return null==a&&(a=localStorage.getItem("token")),a}function i(t){return null==t?(a=null,void localStorage.removeItem("token")):(a=localStorage.setItem("token",t),a)}function s(t,e){null==e&&(e={}),null!=r()&&(e["token"]=r());var n=new Promise((function(n){window.H.get(window.H.makeUrl(c+t,e),(function(t){if(2==t.status&&window.H.upUrl("https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx2edb802f5c3ae1ae&redirect_uri="+window.H.makeUrl("wx/wx.html")+"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect"),6==t.status)return i(null),void(location.hash="#/companytwo");0==t.status?n(t):Object(o["a"])({message:t.error.msg})}))}));return n}function u(t,e){var n={};null!=r()&&(n={token:r()});var a=new Promise((function(a){window.H.post(window.H.makeUrl(c+t,n),e,(function(t){if(2==t.status&&window.H.upUrl("https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx2edb802f5c3ae1ae&redirect_uri="+window.H.makeUrl("wx/wx.html")+"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect"),6==t.status)return i(null),void(location.hash="#/companytwo");0==t.status?a(t):Object(o["a"])({message:t.error.msg})}))}));return a}},cd34:function(t,e,n){"use strict";n.r(e);var o=n("f2bf"),c=n("bab3"),a=n.n(c),l=function(t){return Object(o["C"])("data-v-f273c964"),t=t(),Object(o["A"])(),t},r={class:"CompanyRegistered"},i=l((function(){return Object(o["i"])("div",{class:"flowbox"},[Object(o["i"])("div",{class:"navslist"},[Object(o["i"])("div",{class:"navli",style:{color:"#fff"}},"基础填报"),Object(o["i"])("div",{class:"navli",style:{color:"#fff"}},"文件上传"),Object(o["i"])("div",{class:"navli",style:{color:"#fff",background:"#2f58e4"}},"填报完成")]),Object(o["i"])("div",{class:"photobox2"},[Object(o["i"])("img",{src:a.a})])],-1)})),s={class:"upphoto"},u=l((function(){return Object(o["i"])("h1",{class:"bigtitle"},"恭喜你填报完成",-1)})),f={class:"stitle"},b={class:"nextbtn"},d=Object(o["j"])("立即跳转");function m(t,e,n,c,a,l){var m=Object(o["G"])("van-nav-bar"),O=Object(o["G"])("van-button");return Object(o["z"])(),Object(o["h"])("div",r,[Object(o["k"])(m,{title:"调研填报"}),i,Object(o["i"])("div",s,[u,Object(o["i"])("h2",f,Object(o["K"])(a.timeSet)+"秒后页面将自动跳转",1)]),Object(o["i"])("div",b,[Object(o["k"])(O,{type:"primary",block:"",round:"",size:"large",color:"#2f58e4",onClick:e[0]||(e[0]=function(e){return t.$router.push({path:"/"})})},{default:Object(o["P"])((function(){return[d]})),_:1})])])}var O=n("c1fb"),g=n("c1df"),p=n.n(g),j={name:"MattersFinish",data:function(){return{loading:!1,finished:!1,refreshing:!1,timeSet:3}},mounted:function(){var t=this,e=setInterval((function(){if(t.timeSet<=0)return t.$router.push({path:"/"}),void clearInterval(e);t.timeSet=t.timeSet-1}),1e3)},methods:{getTime:function(t){return p()(1e3*t).format("YYYY-MM-DD HH:mm:ss")},setImg:function(t){return null==t||""==t?"./img/logo.png":O["a"]+"/"+t},onClickLeft:function(){return history.back()}}},v=(n("ac2e"),n("d959")),h=n.n(v);const w=h()(j,[["render",m],["__scopeId","data-v-f273c964"]]);e["default"]=w},d4ef:function(t,e,n){},e17f:function(t,e,n){"use strict";n("68ef"),n("d4ef"),n("cb51"),n("3743"),n("e3b3"),n("bc1b"),n("1703"),n("a71a"),n("4d75"),n("2fcb")}}]);
//# sourceMappingURL=chunk-d856e504.a9c74dc8.js.map