hotime/example/tpt/wx/js/chunk-20e158ec.a8f2a7c9.js
2022-03-12 23:52:42 +08:00

2 lines
13 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-20e158ec"],{1703:function(t,e,n){},2241:function(t,e,n){"use strict";var c,o=n("f2bf"),a=n("f344"),l=n("c199"),i=n("1da4"),s=n("fe7e"),r=n("f691"),u=n("7e3e"),b=n("8da3"),f=n("b1d2"),O=n("8405"),d=n("f827"),j=n("e41f"),m=n("b650"),g=n("7f9b"),[p,h]=Object(s["a"])("action-bar"),v=Symbol(p),w={safeAreaInsetBottom:r["g"]},k=Object(o["l"])({name:p,props:w,setup(t,e){var{slots:n}=e,{linkChildren:c}=Object(g["e"])(v);return c(),()=>Object(o["k"])("div",{class:[h(),{"van-safe-area-bottom":t.safeAreaInsetBottom}]},[null==n.default?void 0:n.default()])}}),y=Object(l["a"])(k),C=n("4eda"),B=n("b070"),[x,S]=Object(s["a"])("action-bar-button"),z=Object(a["a"])({},B["a"],{type:String,text:String,icon:String,color:String,loading:Boolean,disabled:Boolean}),T=Object(o["l"])({name:x,props:z,setup(t,e){var{slots:n}=e,c=Object(B["b"])(),{parent:a,index:l}=Object(g["i"])(v),i=Object(o["d"])(()=>{if(a){var t=a.children[l.value-1];return!(t&&"isButton"in t)}}),s=Object(o["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:r,loading:u,disabled:b}=t;return Object(o["k"])(m["a"],{class:S([e,{last:s.value,first:i.value}]),size:"large",type:e,icon:a,color:r,loading:u,disabled:b,onClick:c},{default:()=>[n.default?n.default():l]})}}}),P=Object(l["a"])(T),[_,I,q]=Object(s["a"])("dialog"),H=Object(a["a"])({},d["b"],{title:String,theme:String,width:r["f"],message:[String,Function],callback:Function,allowHtml:Boolean,className:r["h"],transition:Object(r["e"])("van-dialog-bounce"),messageAlign:String,closeOnPopstate:r["g"],showCancelButton:Boolean,cancelButtonText:String,cancelButtonColor:String,confirmButtonText:String,confirmButtonColor:String,showConfirmButton:r["g"],closeOnClickOverlay:Boolean}),L=[...d["a"],"transition","closeOnPopstate"],U=Object(o["l"])({name:_,props:H,emits:["confirm","cancel","update:show"],setup(t,e){var{emit:n,slots:c}=e,l=Object(o["D"])({confirm:!1,cancel:!1}),i=t=>n("update:show",t),s=e=>{i(!1),null==t.callback||t.callback(e)},r=e=>()=>{t.show&&(n(e),t.beforeClose?(l[e]=!0,Object(u["a"])(t.beforeClose,{args:[e],done(){s(e),l[e]=!1},canceled(){l[e]=!1}})):s(e))},d=r("cancel"),g=r("confirm"),p=()=>{var e=c.title?c.title():t.title;if(e)return Object(o["k"])("div",{class:I("header",{isolated:!t.message&&!c.default})},[e])},h=e=>{var{message:n,allowHtml:c,messageAlign:a}=t,l=I("message",{"has-title":e,[a]:a}),i=Object(b["b"])(n)?n():n;return c&&"string"===typeof i?Object(o["k"])("div",{class:l,innerHTML:i},null):Object(o["k"])("div",{class:l},[i])},v=()=>{if(c.default)return Object(o["k"])("div",{class:I("content")},[c.default()]);var{title:e,message:n,allowHtml:a}=t;if(n){var l=!(!e&&!c.title);return Object(o["k"])("div",{key:a?1:0,class:I("content",{isolated:!l})},[h(l)])}},w=()=>Object(o["k"])("div",{class:[f["d"],I("footer")]},[t.showCancelButton&&Object(o["k"])(m["a"],{size:"large",text:t.cancelButtonText||q("cancel"),class:I("cancel"),style:{color:t.cancelButtonColor},loading:l.cancel,onClick:d},null),t.showConfirmButton&&Object(o["k"])(m["a"],{size:"large",text:t.confirmButtonText||q("confirm"),class:[I("confirm"),{[f["b"]]:t.showCancelButton}],style:{color:t.confirmButtonColor},loading:l.confirm,onClick:g},null)]),k=()=>Object(o["k"])(y,{class:I("footer")},{default:()=>[t.showCancelButton&&Object(o["k"])(P,{type:"warning",text:t.cancelButtonText||q("cancel"),class:I("cancel"),color:t.cancelButtonColor,loading:l.cancel,onClick:d},null),t.showConfirmButton&&Object(o["k"])(P,{type:"danger",text:t.confirmButtonText||q("confirm"),class:I("confirm"),color:t.confirmButtonColor,loading:l.confirm,onClick:g},null)]}),C=()=>c.footer?c.footer():"round-button"===t.theme?k():w();return()=>{var{width:e,title:n,theme:c,message:l,className:s}=t;return Object(o["k"])(j["a"],Object(o["r"])({role:"dialog",class:[I([c]),s],style:{width:Object(O["a"])(e)},"aria-labelledby":n||l,"onUpdate:show":i},Object(a["e"])(t,L)),{default:()=>[p(),v(),C()]})}}});function A(){var t={setup(){var{state:t,toggle:e}=Object(i["b"])();return()=>Object(o["k"])(U,Object(o["r"])(t,{"onUpdate:show":e}),null)}};({instance:c}=Object(i["a"])(t))}function K(t){return a["c"]?new Promise((e,n)=>{c||A(),c.open(Object(a["a"])({},K.currentOptions,t,{callback:t=>{("confirm"===t?e:n)(t)}}))}):Promise.resolve()}K.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},K.currentOptions=Object(a["a"])({},K.defaultOptions),K.alert=K,K.confirm=t=>K(Object(a["a"])({showCancelButton:!0},t)),K.close=()=>{c&&c.toggle(!1)},K.setDefaultOptions=t=>{Object(a["a"])(K.currentOptions,t)},K.resetDefaultOptions=()=>{K.currentOptions=Object(a["a"])({},K.defaultOptions)},K.Component=Object(l["a"])(U),K.install=t=>{t.use(K.Component),t.config.globalProperties.$dialog=K};e["a"]=K},"2fcb":function(t,e,n){},5726:function(t,e,n){"use strict";n("5b17")},"5b17":function(t,e,n){},"9d09":function(t,e,n){"use strict";n.r(e);n("b0c0");var c=n("f2bf"),o=function(t){return Object(c["C"])("data-v-adc2a0aa"),t=t(),Object(c["A"])(),t},a={class:"Matters"},l={class:"matterList"},i=["onClick"],s={class:"mattertitle flexcenter"},r={key:0,class:"i1"},u={key:1,class:"i2"},b={class:"flexcenter",style:{"justify-content":"space-between"}},f={class:"matterdate"},O={class:"mdate"},d=Object(c["j"])("状态: "),j={key:0,style:{color:"#e6422d"}},m={key:1,style:{color:"#e6422d"}},g={key:2,style:{color:"#e6422d"}},p={key:3,style:{color:"#e6422d"}},h={key:4,style:{color:"#e6422d"}},v={class:"mdate"},w=Object(c["j"])("发文日期:"),k={class:"mdate"},y=Object(c["j"])("截止日期:"),C={key:0,class:"matterbtn mtn1"},B={key:1,class:"matterbtn mtn2"},x={class:"block",style:{margin:"20px","margin-top":"40px"}},S=o((function(){return Object(c["i"])("h1",{style:{"font-size":"2em","text-align":"center","margin-bottom":"10px"}},"查看填报内容",-1)})),z={style:{"margin-bottom":"2px"}},T={key:0,style:{display:"contents"}},P={style:{"margin-left":"10px"}},_={key:0},I=o((function(){return Object(c["i"])("p",{style:{height:"60px"}},null,-1)})),q=Object(c["j"])("关闭");function H(t,e,n,o,H,L){var U=Object(c["G"])("van-nav-bar"),A=Object(c["G"])("van-image"),K=Object(c["G"])("van-button"),F=Object(c["G"])("van-icon"),N=Object(c["G"])("van-overlay");return Object(c["z"])(),Object(c["h"])("div",a,[Object(c["k"])(U,{title:"调研填报","left-arrow":"",onClickLeft:L.onClickLeft},null,8,["onClickLeft"]),Object(c["i"])("div",l,[(Object(c["z"])(!0),Object(c["h"])(c["a"],null,Object(c["F"])(H.info.questions,(function(t,e){return Object(c["z"])(),Object(c["h"])("div",{class:"matterLi",key:e,onClick:function(e){return L.clickLi(t)}},[Object(c["i"])("div",s,[t.status<2||4==t.status?(Object(c["z"])(),Object(c["h"])("i",r)):Object(c["g"])("",!0),2==t.status||3==t.status?(Object(c["z"])(),Object(c["h"])("i",u)):Object(c["g"])("",!0),Object(c["i"])("h1",null,Object(c["K"])(t.name)+"-截止"+Object(c["K"])(L.getTime(t.question.end_time)),1)]),Object(c["i"])("div",b,[Object(c["i"])("div",f,[Object(c["i"])("div",O,[d,0==t.status?(Object(c["z"])(),Object(c["h"])("span",j,"待填报")):Object(c["g"])("",!0),1==t.status?(Object(c["z"])(),Object(c["h"])("span",m,"待上传文件")):Object(c["g"])("",!0),2==t.status?(Object(c["z"])(),Object(c["h"])("span",g,"待审核")):Object(c["g"])("",!0),3==t.status?(Object(c["z"])(),Object(c["h"])("span",p,"填报完成")):Object(c["g"])("",!0),4==t.status?(Object(c["z"])(),Object(c["h"])("span",h,"驳回重填")):Object(c["g"])("",!0)]),Object(c["i"])("div",v,[w,Object(c["i"])("span",null,Object(c["K"])(L.getTime(t.question.start_time)),1)]),Object(c["i"])("div",k,[y,Object(c["i"])("span",null,Object(c["K"])(L.getTime(t.question.end_time)),1)])]),t.status<2||4==t.status?(Object(c["z"])(),Object(c["h"])("div",C,"填报")):Object(c["g"])("",!0),2==t.status||3==t.status?(Object(c["z"])(),Object(c["h"])("div",B,"详情")):Object(c["g"])("",!0)])],8,i)})),128))]),Object(c["k"])(N,{show:H.showPreview,onClick:e[3]||(e[3]=function(t){return H.showPreview=!1}),"lock-scroll":!1},{default:Object(c["P"])((function(){return[Object(c["i"])("div",{class:"wrapper",onClick:e[1]||(e[1]=Object(c["R"])((function(){}),["stop"])),style:{background:"white",width:"90vw","max-height":"80vh",margin:"10vh 5vw","overflow-y":"auto",display:"block",position:"absolute","-webkit-overflow-scrolling":"touch"}},[Object(c["i"])("div",x,[S,(Object(c["z"])(!0),Object(c["h"])(c["a"],null,Object(c["F"])(t.question.question_data,(function(t,e){return Object(c["z"])(),Object(c["h"])(c["a"],{key:e},[Object(c["i"])("p",z,[Object(c["j"])(Object(c["K"])(e+1)+"、"+Object(c["K"])(t.label),1),null!=t.unit&&""!=t.unit?(Object(c["z"])(),Object(c["h"])("span",T,"(单位:"+Object(c["K"])(t.unit)+")",1)):Object(c["g"])("",!0)]),Object(c["i"])("p",P,"你填报的内容是:"+Object(c["K"])(t.value),1),0!=t.fileNum&&"否"!=t.value?(Object(c["z"])(),Object(c["h"])("p",_,[(Object(c["z"])(!0),Object(c["h"])(c["a"],null,Object(c["F"])(t.files,(function(t){return Object(c["z"])(),Object(c["f"])(A,{key:t,width:"100",onClick:function(e){return L.previewImg(t.url)},height:"100",src:L.setImg(t.url),style:{"margin-left":"15px"}},null,8,["onClick","src"])})),128))])):Object(c["g"])("",!0)],64)})),128))]),I,Object(c["k"])(K,{type:"primary",onClick:e[0]||(e[0]=function(t){return H.showPreview=!1}),size:"large",style:{position:"absolute","margin-left":"-0.2vw",width:"90vw"}},{default:Object(c["P"])((function(){return[q]})),_:1})]),Object(c["k"])(F,{name:"cross",onClick:e[2]||(e[2]=function(t){return H.showPreview=!1}),style:{right:"6vw",top:"11vh",position:"absolute"}})]})),_:1},8,["show"])])}n("4662");var L=n("28a2"),U=n("c1fb"),A=n("c1df"),K=n.n(A),F={name:"Matters",data:function(){return{showPreview:!1,loading:!1,finished:!1,refreshing:!1,info:{name:"",avatar:null,company:{name:""},questions:[]}}},mounted:function(){var t=Object(U["b"])("user");null!=t&&(this.info=t)},methods:{previewImg:function(t){Object(L["a"])([this.setImg(t)])},clickLi:function(t){if(t.status>2&&4!=t.status)return this.question=t,void(this.showPreview=!0);var e=Object(U["b"])("question");null!=e&&e.id!=t.id&&Object(U["b"])("question",t),1!=t.status?this.$router.push({path:"matterCon"}):this.$router.push({path:"matterUp"})},getTime:function(t){return K()(1e3*t).format("MM月DD日")},setImg:function(t){return null==t||""==t?"./img/logo.png":U["a"]+t},onClickLeft:function(){return history.back()}}},N=(n("5726"),n("d959")),D=n.n(N);const G=D()(F,[["render",H],["__scopeId","data-v-adc2a0aa"]]);e["default"]=G},b0c0:function(t,e,n){var c=n("83ab"),o=n("5e77").EXISTS,a=n("e330"),l=n("9bf2").f,i=Function.prototype,s=a(i.toString),r=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,u=a(r.exec),b="name";c&&!o&&l(i,b,{configurable:!0,get:function(){try{return u(r,s(this))[1]}catch(t){return""}}})},c1fb:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return l})),n.d(e,"e",(function(){return s})),n.d(e,"c",(function(){return r})),n.d(e,"d",(function(){return u}));n("e17f");var c=n("2241"),o=(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 i(){return null==a&&(a=localStorage.getItem("token")),a}function s(t){return null==t?(a=null,void localStorage.removeItem("token")):(a=localStorage.setItem("token",t),a)}function r(t,e){null==e&&(e={}),null!=i()&&(e["token"]=i());var n=new Promise((function(n){window.H.get(window.H.makeUrl(o+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 s(null),void(location.hash="#/companytwo");0==t.status?n(t):Object(c["a"])({message:t.error.msg})}))}));return n}function u(t,e){var n={};null!=i()&&(n={token:i()});var a=new Promise((function(a){window.H.post(window.H.makeUrl(o+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 s(null),void(location.hash="#/companytwo");0==t.status?a(t):Object(c["a"])({message:t.error.msg})}))}));return a}},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-20e158ec.a8f2a7c9.js.map