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