webpackJsonp([4,5],{Az5b:function(t,a,i){"use strict";var e=i("iEz+");a.a={components:{RingChart:e.default},mounted:function(){this.houseTotalPrice={name:"房款总价",value:(this.$route.query.totalPrice/1e4).toFixed(2)},this.IsCommonHouse=this.$route.query.IsCommonHouse,this.IsOnly=this.$route.query.IsOnly,this.IsOnly?this.ringList=[{name:"契税",value:1e4*this.houseTotalPrice.value*.015,color:"#6EBF00",unit:"元"}]:this.ringList=[{name:"契税",value:1e4*this.houseTotalPrice.value*.03,color:"#6EBF00"}],this.ringList.push({name:"合同工本费",value:5,unit:"元",color:"#6EBFFF"},{name:"维修基金",value:3e4,unit:"元",color:"#FFDA7C"},{name:"权属登记费",value:80,unit:"元",color:"#ff70A0"});for(var t=0,a=0;a<this.ringList.length;a++)t+=Number(this.ringList[a].value);this.totalPrice={name:"税金总额",value:t}},data:function(){return{lineOne:"税金明细",ringList:[],houseTotalPrice:0,IsCommonHouse:0,IsOnly:!0,totalPrice:0}}}},Mf5F:function(t,a,i){"use strict";a.a={props:{ringList:"",houseTotalPrice:"",monthPay:0},data:function(){return{chartColor:!1,aniend:0,ctx:null,startarc:0,endarc:0,aniid:"",drawList:[],drawCount:0,rcolor:"#ff0000",maxEndArc:0}},watch:{ringList:function(){this.ctx=this.$refs.canvas.getContext("2d"),this.drawlist(this.ringList)}},methods:{drawlist:function(t){var a=this,i=0;t.map(function(t){i+=~~t.value});var e=0;this.drawList=[],t.map(function(t){var n=Math.ceil(~~t.value/i*100)-1;a.maxEndArc=n>a.maxEndArc?n:a.maxEndArc,n>0&&(a.drawList.push({startarc:e,endarc:n,rcolor:t.color}),e+=n+1)}),window.cancelAnimationFrame(this.aniid),this.drawCount=0,this.startarc=0,this.aniend=0,this.endarc=0,this.rcolor="#ff0000",this.drawAniRing()},drawAniRing:function(){var t=this;if(this.aniid=window.requestAnimationFrame(this.drawAniRing),this.aniend+=2,this.ctx.clearRect(0,0,160,160),this.monthPay&&this.drawText(this.ctx,"￥"+this.monthPay),this.drawList.map(function(a){var i=t.aniend;i=Math.round(a.endarc/t.maxEndArc*i),t.drawRing(t.ctx,a.startarc,i,a.rcolor)}),this.aniend>=this.maxEndArc)return void window.cancelAnimationFrame(this.aniid)},drawRingBorder:function(t){t.save(),t.beginPath(),t.lineWidth=2,t.strokeStyle="#000000",t.arc(80,80,38,-90*Math.PI/180,270*Math.PI/180),t.arc(80,80,76,-90*Math.PI/180,270*Math.PI/180),t.stroke(),t.closePath(),t.restore()},drawRing:function(t,a,i,e){t.save(),t.beginPath(),t.lineWidth=36,t.strokeStyle=e;var n=a+i;n>99&&(n=99),t.arc(80,80,58,(3.6*a-90)*Math.PI/180,(3.6*n-90)*Math.PI/180),t.stroke(),t.closePath(),t.restore()},drawText:function(t,a){t.font="16px Arial",t.fillStyle="#83868f",t.textBaseline="middle",t.textAlign="center",t.fillText("月供",80,65),t.fillText(a,80,95)}}}},TdIT:function(t,a,i){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var e=i("Az5b"),n=i("oBXi"),s=i("VU/8"),r=s(e.a,n.a,!1,null,null,null);a.default=r.exports},"iEz+":function(t,a,i){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var e=i("Mf5F"),n=i("rNpD"),s=i("VU/8"),r=s(e.a,n.a,!1,null,null,null);a.default=r.exports},oBXi:function(t,a,i){"use strict";var e=function(){var t=this,a=t.$createElement,i=t._self._c||a;return i("div",{staticClass:"outerLayerDiv"},[i("div",{staticStyle:{margin:"0 auto",width:"220px"}},[i("p",{staticClass:"disctext"},[t._v(t._s(t.lineOne))]),t._v(" "),i("RingChart",{attrs:{ringList:t.ringList,houseTotalPrice:t.houseTotalPrice}}),t._v(" "),i("p",{staticClass:"houseMoney"},[i("span"),t._v(" "),i("span",[t._v(t._s(t.totalPrice.name))]),t._v(" "),i("span",[t._v(":")]),t._v(" "),i("span",[t._v(t._s(t.totalPrice.value))]),t._v(" "),i("span",[t._v("元")])]),t._v(" "),i("p",{staticClass:"disctext",staticStyle:{"text-align":"center"}},[t._v("以上结果仅供参考")])],1)])},n=[],s={render:e,staticRenderFns:n};a.a=s},rNpD:function(t,a,i){"use strict";var e=function(){var t=this,a=t.$createElement,i=t._self._c||a;return i("div",{staticStyle:{"margin-top":"10px","text-align":"center",width:"220px",transform:"translateZ(0px)"}},[i("canvas",{ref:"canvas",attrs:{width:"160",height:"160"}}),t._v(" "),i("div",{},[i("p",{staticClass:"houseMoney"},[i("span"),t._v(" "),i("span",[t._v(t._s(t.houseTotalPrice.name))]),t._v(" "),i("span",[t._v(":")]),t._v(" "),i("span",[t._v(t._s(t.houseTotalPrice.value))]),t._v(" "),i("span",[t._v("万元")])]),t._v(" "),i("ul",t._l(t.ringList,function(a){return i("li",{key:a.name,staticClass:"houseMoney"},[i("span",{style:{color:a.color}},[t._v("▇")]),t._v(" "),i("span",[t._v(t._s(a.name))]),t._v(" "),i("span",[t._v(":")]),t._v(" "),i("span",[t._v(t._s(a.value))]),t._v(" "),i("span",[t._v(t._s(a.unit))])])}))])])},n=[],s={render:e,staticRenderFns:n};a.a=s}});
//# sourceMappingURL=4.6da7dc96d81de18cf989.js.map