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.3 KiB
1 lines
5.3 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["user-pages-distribution-poster"],{4692:function(t,e,n){"use strict";n.r(e);var i=n("b3e0"),a=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e["default"]=a.a},"58ad":function(t,e,n){"use strict";var i=n("88bf"),a=n.n(i);a.a},"88bf":function(t,e,n){var i=n("f348");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("967d").default;a("28627189",i,!0,{sourceMap:!1,shadowMode:!1})},b3e0:function(t,e,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("5de6")),r=i(n("9b1b")),s=i(n("2634")),o=i(n("2fdc")),c=n("8f59"),u={components:{},props:{},data:function(){return{confirmText:"长按上图保存图片",src:""}},computed:(0,c.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,o.default)((0,s.default)().mark((function t(){var n;return(0,s.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.$jweixin.isWechat()){t.next=4;break}return t.next=3,e.$jweixin.initJssdk();case 3:e.$jweixin.wxReady((function(){e.$jweixin.hideOptionMenu()}));case 4:return e.$util.showLoading(),t.next=7,e.getConfigInfo();case 7:e.$util.setNavigationBarColor({bg:e.primaryColor}),n=e,setTimeout((function(){n.canvase()}),1e3);case 10:case"end":return t.stop()}}),t)})))()},methods:(0,r.default)((0,r.default)({},(0,c.mapActions)(["getConfigInfo"])),{},{canvase:function(){var t=this;return(0,o.default)((0,s.default)().mark((function e(){var n,i,a,r,o,c;return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t,e.next=3,t.$api.mine.userCommQr();case 3:i=e.sent,a=t.configInfo.promotion_poster_img,r=void 0===a?"":a,o=r||"https://lbqny.migugu.com/admin/anmo/mine/fx-share.png","0rpx",c={css:{width:"710rpx",height:"1152rpx"},views:[{type:"image",src:o,css:{width:"710rpx",height:"1152rpx",objectFit:"cover",top:"0rpx",left:"0rpx",position:"absolute"}},{type:"image",src:i,css:{position:"absolute",width:"290rpx",height:"290rpx",bottom:"70rpx",left:"210rpx",background:"#ffffff",borderRadius:"0rpx"}}]},t.$refs.painter.render(c),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)})))()},previewImage:function(){var t=this.src;uni.previewImage({current:t,urls:[t]})},saveImage:function(){var t=this;return(0,o.default)((0,s.default)().mark((function e(){var n,i,r,o;return(0,s.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,r=(0,a.default)(i,2),o=r[0],r[1],!o){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},b3fa:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return i}));var i={lPainter:n("577c").default},a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"pt-md",staticStyle:{"background-color":"#F4F6F7"}},[n("v-uni-view",{staticClass:"hideCanvasView"},[n("l-painter",{ref:"painter",staticClass:"hideCanvas",attrs:{useCORS:!0}})],1),t.src?n("v-uni-view",{staticClass:"ml-md"},[n("v-uni-image",{staticClass:"code-img radius-16",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:"info_text fill-base flex-column mt-sm radius-16"},[n("v-uni-view",{staticClass:"f-paragraph mt-sm mb-md",staticStyle:{color:"#2F2F2F"}},[t._v("邀请3步")]),n("v-uni-view",{staticClass:"flex-between f-paragraph",staticStyle:{color:"#767676"}},[n("v-uni-view",{staticClass:"flex-y-center"},[t._v("1.分享海报")]),n("v-uni-image",{staticClass:"info_text_img",attrs:{mode:"aspectFill",src:"https://lbqny.migugu.com/admin/anmo/coupon/btn.png"}}),n("v-uni-view",{staticClass:"flex-y-center"},[t._v("2.微信扫码")]),n("v-uni-image",{staticClass:"info_text_img",attrs:{mode:"aspectFill",src:"https://lbqny.migugu.com/admin/anmo/coupon/btn.png"}}),n("v-uni-view",{staticClass:"flex-y-center"},[t._v("3.注册登录")])],1)],1),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)}}})],1):t._e()],1)},r=[]},e656:function(t,e,n){"use strict";n.r(e);var i=n("b3fa"),a=n("4692");for(var r in a)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(r);n("58ad");var s=n("828b"),o=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,"46ea60d2",null,!1,i["a"],void 0);e["default"]=o.exports},f348:function(t,e,n){var i=n("c86c");e=i(!1),e.push([t.i,".info_text[data-v-46ea60d2]{width:%?710?%;padding:%?20?% %?40?%;box-sizing:border-box}.info_text_img[data-v-46ea60d2]{width:%?20?%;height:%?20?%}.code-img[data-v-46ea60d2]{width:%?710?%;height:%?1152?%}",""]),t.exports=e}}]); |