You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
5.5 KiB
1 lines
5.5 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["user-pages-stored-poster"],{1767:function(t,e,n){var i=n("41f3");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("967d").default;r("13959318",i,!0,{sourceMap:!1,shadowMode:!1})},"41f3":function(t,e,n){var i=n("c86c");e=i(!1),e.push([t.i,".code-img[data-v-1f2c6b9c]{width:%?750?%;height:%?1400?%}",""]),t.exports=e},"76e2":function(t,e,n){"use strict";var i=n("1767"),r=n.n(i);r.a},8572:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var i={lPainter:n("577c").default},r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",[n("v-uni-view",{staticClass:"hideCanvasView"},[n("l-painter",{ref:"painter",staticClass:"hideCanvas",attrs:{useCORS:!0}})],1),t.src?[n("v-uni-image",{staticClass:"code-img",attrs:{src:t.src},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.previewImage.apply(void 0,arguments)}}}),n("v-uni-view",{staticClass:"space-max-footer"}),n("fix-bottom-button",{attrs:{text:[{text:t.confirmText,type:"confirm"}],bgColor:"#fff",classType:2},on:{confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.toPreviewSave.apply(void 0,arguments)}}})]:t._e()],2)},a=[]},b388:function(t,e,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("c223");var r=i(n("5de6")),a=i(n("9b1b")),o=i(n("2634")),c=i(n("2fdc")),s=n("8f59"),u={components:{},props:{},data:function(){return{confirmText:"长按上图保存图片",options:{},src:""}},computed:(0,s.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},configInfo:function(t){return t.config.configInfo},userInfo:function(t){return t.user.userInfo}}),onLoad:function(t){var e=this;return(0,c.default)((0,o.default)().mark((function n(){var i;return(0,o.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(e.options=t,!e.$jweixin.isWechat()){n.next=5;break}return n.next=4,e.$jweixin.initJssdk();case 4:e.$jweixin.wxReady((function(){e.$jweixin.hideOptionMenu()}));case 5:e.$util.showLoading(),e.$util.setNavigationBarColor({bg:e.primaryColor}),i=e,setTimeout((function(){i.canvase()}),1e3);case 9:case"end":return n.stop()}}),n)})))()},methods:(0,a.default)((0,a.default)({},(0,s.mapActions)([])),{},{canvase:function(){var t=this;return(0,c.default)((0,o.default)().mark((function e(){var n,i,r,a,c,s,u,f,p,l,d,x,h;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:n=t,i=t.userInfo.nickName,r=t.$util.getPage(-1),a=r.qr_code,c=r.shareInd,s=r.list,"https://lbqny.migugu.com/admin/anmo/mine/balance-text-bg.png","https://lbqny.migugu.com/admin/anmo/mine/balance-share.png",u=s.data[c],f=u.price,p=void 0===f?0:f,l=u.true_price,d=void 0===l?0:l,x=d-p,h={css:{width:"750rpx",height:"1400rpx",background:"#fff"},views:[{type:"text",text:"充".concat(p,"送").concat(x),css:{position:"absolute",top:"70rpx",left:"0rpx",width:"750rpx",fontSize:"70rpx",fontWeight:"1000",color:"#209620",textAlign:"center"}},{type:"image",src:"https://lbqny.migugu.com/admin/anmo/mine/balance-text-bg.png",css:{position:"absolute",width:"484rpx",height:"46rpx",top:"190rpx",left:"132rpx"}},{type:"text",text:"充值优惠多多",css:{position:"absolute",top:"190rpx",left:"0rpx",width:"750rpx",fontSize:"34rpx",color:"#fff",fontWeight:"400",textAlign:"center"}},{type:"image",src:"https://lbqny.migugu.com/admin/anmo/mine/balance-share.png",css:{width:"632rpx",height:"464rpx",objectFit:"cover",position:"absolute",top:"360rpx",left:"58rpx"}},{type:"image",src:a,css:{width:"290rpx",height:"290rpx",position:"absolute",top:"920rpx",left:"230rpx"}},{type:"text",text:i,css:{position:"absolute",top:"1235rpx",left:"0rpx",width:"750rpx",fontSize:"30rpx",color:"#209620",textAlign:"center"}},{type:"text",text:"邀请您充值有优惠~",css:{position:"absolute",top:"1280rpx",left:"0rpx",width:"750rpx",fontSize:"28rpx",color:"#333",textAlign:"center"}}]},t.$refs.painter.render(h),t.$refs.painter.canvasToTempFilePathSync({fileType:"jpg",quality:1,success:function(e){n.$util.hideAll(),t.src=e.tempFilePath}});case 10:case"end":return e.stop()}}),e)})))()},extraImage:function(){var t=this;return(0,c.default)((0,o.default)().mark((function e(){var n;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:n=t.widget.canvasToTempFilePath(),n.then((function(e){t.src=e.tempFilePath}));case 2:case"end":return e.stop()}}),e)})))()},previewImage:function(){var t=this.src;uni.previewImage({current:t,urls:[t]})},saveImage:function(){var t=this;return(0,c.default)((0,o.default)().mark((function e(){var n,i,a,c;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$util.checkAuth({type:"writePhotosAlbum"});case 2:return n=t.src,e.next=5,uni.saveImageToPhotosAlbum({filePath:n});case 5:if(i=e.sent,a=(0,r.default)(i,2),c=a[0],a[1],!c){e.next=11;break}return e.abrupt("return");case 11:uni.showToast({icon:"none",title:"保存成功"});case 12:case"end":return e.stop()}}),e)})))()},toPreviewSave:function(){this.previewImage()}})};e.default=u},dd3f:function(t,e,n){"use strict";n.r(e);var i=n("b388"),r=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=r.a},ec40:function(t,e,n){"use strict";n.r(e);var i=n("8572"),r=n("dd3f");for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);n("76e2");var o=n("828b"),c=Object(o["a"])(r["default"],i["b"],i["c"],!1,null,"1f2c6b9c",null,!1,i["a"],void 0);e["default"]=c.exports}}]); |