chunk-72ab68c2.7607cd2d.js 9.8 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-72ab68c2"],{"0653":function(t,e,n){"use strict";n("68ef"),n("5c56")},"0a26":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("ad06"),a=n("9884"),r=n("ea8e"),o=function(t){var e=t.parent,n=t.bem,o=t.role;return{mixins:[Object(a["a"])(e)],props:{name:null,value:null,disabled:Boolean,iconSize:[Number,String],checkedColor:String,labelPosition:String,labelDisabled:Boolean,shape:{type:String,default:"round"},bindGroup:{type:Boolean,default:!0}},computed:{disableBindRelation:function(){return!this.bindGroup},isDisabled:function(){return this.parent&&this.parent.disabled||this.disabled},iconStyle:function(){var t=this.checkedColor||this.parent&&this.parent.checkedColor;if(t&&this.checked&&!this.isDisabled)return{borderColor:t,backgroundColor:t}},tabindex:function(){return this.isDisabled||"radio"===o&&!this.checked?-1:0}},methods:{onClick:function(t){var e=t.target,n=this.$refs.icon,i=n===e||n.contains(e);this.isDisabled||!i&&this.labelDisabled||this.toggle(),this.$emit("click",t)},genIcon:function(){var t=this.$createElement,e=this.checked,a=this.iconSize||this.parent&&this.parent.iconSize;return t("div",{ref:"icon",class:n("icon",[this.shape,{disabled:this.isDisabled,checked:e}]),style:{fontSize:Object(r["a"])(a)}},[this.slots("icon",{checked:e})||t(i["a"],{attrs:{name:"success"},style:this.iconStyle})])},genLabel:function(){var t=this.$createElement,e=this.slots();if(e)return t("span",{class:n("label",[this.labelPosition,{disabled:this.isDisabled}])},[e])}},render:function(){var t=arguments[0],e=[this.genIcon()];return"left"===this.labelPosition?e.unshift(this.genLabel()):e.push(this.genLabel()),t("div",{attrs:{role:o,tabindex:this.tabindex,"aria-checked":String(this.checked)},class:n({disabled:this.isDisabled,"label-disabled":this.labelDisabled}),on:{click:this.onClick}},[e])}}}},1141:function(t,e,n){},"34e9":function(t,e,n){"use strict";var i=n("2638"),a=n.n(i),r=n("d282"),o=n("ba31"),s=n("b1d2"),c=Object(r["a"])("cell-group"),l=c[0],u=c[1];function d(t,e,n,i){var r,c=t("div",a()([{class:[u(),(r={},r[s["f"]]=e.border,r)]},Object(o["b"])(i,!0)]),[null==n.default?void 0:n.default()]);return e.title||n.title?t("div",[t("div",{class:u("title")},[n.title?n.title():e.title]),c]):c}d.props={title:String,border:{type:Boolean,default:!0}},e["a"]=l(d)},"48f4":function(t,e,n){"use strict";function i(t,e){var n=e.to,i=e.url,a=e.replace;if(n&&t){var r=t[a?"replace":"push"](n);r&&r.catch&&r.catch((function(t){if(t&&"NavigationDuplicated"!==t.name)throw t}))}else i&&(a?location.replace(i):location.href=i)}function a(t){i(t.parent&&t.parent.$router,t.props)}n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return a})),n.d(e,"c",(function(){return r}));var r={url:String,replace:Boolean,to:[String,Object]}},"4ddd":function(t,e,n){"use strict";n("68ef"),n("9d70"),n("3743"),n("dde9")},"5c56":function(t,e,n){},6502:function(t,e,n){"use strict";var i=n("1141"),a=n.n(i);a.a},"66b9":function(t,e,n){"use strict";n("68ef"),n("9d70"),n("3743"),n("e3b3"),n("bc1b")},9884:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o}));var i=n("a026");function a(t){var e=[];function n(t){t.forEach((function(t){e.push(t),t.children&&n(t.children)}))}return n(t),e}function r(t,e){var n,r;void 0===e&&(e={});var o=e.indexKey||"index";return i["a"].extend({inject:(n={},n[t]={default:null},n),computed:(r={parent:function(){return this.disableBindRelation?null:this[t]}},r[o]=function(){return this.bindRelation(),this.parent.children.indexOf(this)},r),mounted:function(){this.bindRelation()},beforeDestroy:function(){var t=this;this.parent&&(this.parent.children=this.parent.children.filter((function(e){return e!==t})))},methods:{bindRelation:function(){if(this.parent&&-1===this.parent.children.indexOf(this)){var t=[].concat(this.parent.children,[this]),e=a(this.parent.slots());t.sort((function(t,n){return e.indexOf(t.$vnode)-e.indexOf(n.$vnode)})),this.parent.children=t}}}})}function o(t){return{provide:function(){var e;return e={},e[t]=this,e},data:function(){return{children:[]}}}}},"9f14":function(t,e,n){"use strict";var i=n("d282"),a=n("0a26"),r=Object(i["a"])("radio"),o=r[0],s=r[1];e["a"]=o({mixins:[Object(a["a"])({bem:s,role:"radio",parent:"vanRadio"})],computed:{currentValue:{get:function(){return this.parent?this.parent.value:this.value},set:function(t){(this.parent||this).$emit("input",t)}},checked:function(){return this.currentValue===this.name}},methods:{toggle:function(){this.currentValue=this.name}}})},a44c:function(t,e,n){"use strict";n("68ef")},ade3:function(t,e,n){"use strict";function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return i}))},b1d2:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"h",(function(){return a})),n.d(e,"b",(function(){return r})),n.d(e,"e",(function(){return o})),n.d(e,"c",(function(){return s})),n.d(e,"d",(function(){return c})),n.d(e,"f",(function(){return l})),n.d(e,"g",(function(){return u}));var i="#1989fa",a="#fff",r="van-hairline",o=r+"--top",s=r+"--left",c=r+"--surround",l=r+"--top-bottom",u=r+"-unset--top-bottom"},b650:function(t,e,n){"use strict";var i=n("c31d"),a=n("2638"),r=n.n(a),o=n("d282"),s=n("ba31"),c=n("b1d2"),l=n("48f4"),u=n("ad06"),d=n("543e"),f=Object(o["a"])("button"),h=f[0],b=f[1];function p(t,e,n,i){var a,o=e.tag,f=e.icon,h=e.type,p=e.color,v=e.plain,g=e.disabled,m=e.loading,S=e.hairline,y=e.loadingText,k={};function O(t){m||g||(Object(s["a"])(i,"click",t),Object(l["a"])(i))}function x(t){Object(s["a"])(i,"touchstart",t)}p&&(k.color=v?p:c["h"],v||(k.background=p),-1!==p.indexOf("gradient")?k.border=0:k.borderColor=p);var j=[b([h,e.size,{plain:v,loading:m,disabled:g,hairline:S,block:e.block,round:e.round,square:e.square}]),(a={},a[c["d"]]=S,a)];function E(){var i,a=[];return m?a.push(t(d["a"],{class:b("loading"),attrs:{size:e.loadingSize,type:e.loadingType,color:"currentColor"}})):f&&a.push(t(u["a"],{attrs:{name:f},class:b("icon")})),i=m?y:n.default?n.default():e.text,i&&a.push(t("span",{class:b("text")},[i])),a}return t(o,r()([{style:k,class:j,attrs:{type:e.nativeType,disabled:g},on:{click:O,touchstart:x}},Object(s["b"])(i)]),[E()])}p.props=Object(i["a"])({},l["c"],{text:String,icon:String,color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,nativeType:String,loadingText:String,loadingType:String,tag:{type:String,default:"button"},type:{type:String,default:"default"},size:{type:String,default:"normal"},loadingSize:{type:String,default:"20px"}}),e["a"]=h(p)},bc1b:function(t,e,n){},bc59:function(t,e,n){"use strict";n.r(e);var i,a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"firstLogin"},[n("div",{staticClass:"firstLogin-title"},[n("div",{staticClass:"firstLogin-title-view"},[n("p",{staticClass:"firstLogin-title-view-txt"},[t._v("家园抗击疫情公共服务平台")]),n("p",{staticClass:"firstLogin-title-view-txt"},[n("span",{staticStyle:{display:"inline-block","vertical-align":"middle"}},[t._v("欢迎")]),n("span",{staticStyle:{display:"inline-block","max-width":"30%",overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis","vertical-align":"middle"}},[t._v(t._s(t.userInfo?" "+t.userInfo.userName+" ":""))]),n("span",{staticStyle:{display:"inline-block","vertical-align":"middle"}},[t._v("使用")])])])]),n("div",{staticClass:"firstLogin-input"},[n("p",{staticClass:"firstLogin-input-title"},[t._v("选择角色")]),n("div",{staticStyle:{padding:"0.8rem 0",position:"relative"}},[n("div",{staticStyle:{"padding-left":"3rem"}},[n("van-radio-group",{model:{value:t.result,callback:function(e){t.result=e},expression:"result"}},[n("van-radio",{staticStyle:{"margin-bottom":"0.5rem"},attrs:{name:"a",shape:"square"}},[t._v("家庭用户")]),n("van-radio",{attrs:{name:"b",shape:"square"}},[t._v("业委会成员")])],1)],1)]),n("div",{staticStyle:{padding:"1rem 0","text-align":"center","font-size":"0.5rem"}}),n("div",{staticStyle:{"padding-top":"1rem","text-align":"center"}},[n("van-button",{staticStyle:{"margin-right":"0.5rem",padding:"0 1rem"},attrs:{color:"#a6a6a6"},on:{click:t.goBack}},[t._v(" 退 出 ")]),n("van-button",{staticStyle:{"margin-left":"0.5rem",padding:"0 1rem"},attrs:{color:"#009688"},on:{click:t.nextStep}},[t._v(" 进 入 ")])],1)])])},r=[],o=n("ade3"),s=(n("e7e5"),n("d399")),c=(n("4ddd"),n("9f14")),l=(n("a44c"),n("e27c")),u=(n("66b9"),n("b650")),d=(n("0653"),n("34e9")),f={components:(i={},Object(o["a"])(i,d["a"].name,d["a"]),Object(o["a"])(i,u["a"].name,u["a"]),Object(o["a"])(i,l["a"].name,l["a"]),Object(o["a"])(i,c["a"].name,c["a"]),Object(o["a"])(i,s["a"].name,s["a"]),i),data:function(){return{result:""}},mounted:function(){this.$store.commit("SET_REPORTITEM",null),this.$store.commit("SET_REPORTID",""),this.$store.commit("SET_USERCREATE",""),this.$store.commit("SET_USERUPDATE",""),this.$store.commit("SET_REPORTCOMPONENTNAME","report")},computed:{userInfo:function(){return this.$store.getters.userInfo}},methods:{nextStep:function(){var t=this;this.result?this.$http.userLogin({}).then((function(t){console.log(t)})).catch((function(e){console.log(e),"a"===t.result?t.$router.push("household"):t.$router.push("committees")})):Object(s["a"])("请选择角色")},goBack:function(){this.$router.back()}}},h=f,b=(n("6502"),n("2877")),p=Object(b["a"])(h,a,r,!1,null,null,null);e["default"]=p.exports},dde9:function(t,e,n){},e27c:function(t,e,n){"use strict";var i=n("d282"),a=n("9884"),r=Object(i["a"])("radio-group"),o=r[0],s=r[1];e["a"]=o({mixins:[Object(a["b"])("vanRadio")],props:{value:null,disabled:Boolean,checkedColor:String,iconSize:[Number,String]},watch:{value:function(t){this.$emit("change",t)}},render:function(){var t=arguments[0];return t("div",{class:s(),attrs:{role:"radiogroup"}},[this.slots()])}})}}]);
  2. //# sourceMappingURL=chunk-72ab68c2.7607cd2d.js.map