(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesA/pages/pay-suce/pay-suce"],{"4bf7":function(t,e,n){"use strict";(function(t){n("fdf4");a(n("66fd"));var e=a(n("ad04"));function a(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=n,t(e.default)}).call(this,n("543d")["createPage"])},"7ab1":function(t,e,n){"use strict";var a=n("cdd6"),o=n.n(a);o.a},"99b4":function(t,e,n){"use strict";n.r(e);var a=n("ae90"),o=n.n(a);for(var i in a)"default"!==i&&function(t){n.d(e,t,(function(){return a[t]}))}(i);e["default"]=o.a},ad04:function(t,e,n){"use strict";n.r(e);var a=n("e0c4"),o=n("99b4");for(var i in o)"default"!==i&&function(t){n.d(e,t,(function(){return o[t]}))}(i);n("7ab1");var r,c=n("f0c5"),s=Object(c["a"])(o["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],r);e["default"]=s.exports},ae90:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n("057a"),o={data:function(){return{inte:0,order_no:"",gotScore:100,riseNumber:10,posterShow:!1,poster:"",store:"",canvasWidth:"",canvasHeight:"",scoreData:"",model:""}},onLoad:function(e){var n=this;this.store=t.getStorageSync("store"),this.order_no=e.order_no,this.inte=e.inte,this.getData(),wx.getSystemInfo({success:function(t){n.model=t.model,n.canvasWidth=t.windowWidth/375,n.canvasHeight=t.windowHeight}})},methods:{preview:function(){t.previewImage({current:this.poster,urls:[this.poster]})},getData:function(){var e=this;(0,a.getZbsData)({order_no:this.order_no}).then((function(n){if(200==n.code){e.scoreData=n.data;var a=n.data.type;1==a&&t.getImageInfo({src:e.store.img,success:function(t){e.posterShow=!0,e.drawPoster(t.path)}})}}))},skipApplets:function(){t.navigateToMiniProgram({appId:"wx0348d5a266f867a3",path:"pages/index/index",extraData:{data1:"test"},success:function(t){console.log("打开成功")}})},skipPage:function(e){var n=0==e?"../integral-detail/integral-detail":"../../../pages/order-info/order-info?order_no="+this.order_no;t.redirectTo({url:n})},dataURLtoFile:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"file",n=t.split(","),a=n[0].match(/:(.*?);/)[1],o=a.split("/")[1],i=atob(n[1]),r=i.length,c=new Uint8Array(r);while(r--)c[r]=i.charCodeAt(r);return new File([c],"".concat(e,".").concat(o),{type:a})},drawPoster:function(e){var n=this,a=this;t.getImageInfo({src:"https://api.jiuweiyun.cn/public/uploads/icon/poster_new.png",success:function(o){t.showLoading({title:"图片加载中..."});var i=a.scoreData,r=i.score,c=i.ranking;console.log(n.scoreData,"data");var s=t.createCanvasContext("canvas"),u=a.canvasWidth;s.drawImage(o.path,0,0,270*u,450*u),s.font="italic bold 28px Microsoft YaHei",s.setFillStyle("#fff"),s.textAlign="center",s.fillText(r,t.upx2px(250),t.upx2px(432)),s.font="italic bold 18px 微软雅黑",s.setFillStyle("#fff"),s.textAlign="center",s.fillText(c,t.upx2px(270),t.upx2px(467)),s.beginPath(),s.setLineWidth(2),s.setStrokeStyle("#EF0A16"),s.setFillStyle("#EF0A16"),s.font="noraml bold 18px 微软雅黑",s.textAlign="center",s.fillText(n.store.name,t.upx2px(270),t.upx2px(360)),s.moveTo(t.upx2px(175),t.upx2px(375)),s.lineTo(t.upx2px(365),t.upx2px(375)),s.stroke(),s.closePath(),s.beginPath(),s.arc(55*u/2+110*u,55*u/2+104*u,55*u/2,0,2*Math.PI,!1),s.clip(),s.drawImage(e,110*u,104*u,55*u,55*u),s.restore(),setTimeout((function(e){s.draw(!1,(function(){t.canvasToTempFilePath({width:270*u,height:450*u,canvasId:"canvas",success:function(e){if(t.hideLoading(),"iPhone"==n.model)n.poster=n.dataURLtoFile(e.tempFilePath).name;else{var a=e.tempFilePath.replace(/\. +/g,"");n.poster=a.replace(/[\r\n]/g,"")}}})})),t.hideLoading()}),1e3)}})}}};e.default=o}).call(this,n("543d")["default"])},cdd6:function(t,e,n){},e0c4:function(t,e,n){"use strict";var a;n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return a}));var o=function(){var t=this,e=t.$createElement;t._self._c;t._isMounted||(t.e0=function(e){t.posterShow=!1})},i=[]}},[["4bf7","common/runtime","common/vendor"]]]);