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 line
5.5 KiB
1 line
5.5 KiB
2 years ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-views-user-extension"],{1582:function(t,a,e){var n=e("cbcb");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=e("4f06").default;i("4dc9d326",n,!0,{sourceMap:!1,shadowMode:!1})},"209c":function(t,a,e){"use strict";var n;e.d(a,"b",(function(){return i})),e.d(a,"c",(function(){return o})),e.d(a,"a",(function(){return n}));var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("v-uni-view",[e("v-uni-view",{staticClass:"myextension"},[e("v-uni-canvas",{staticClass:"mycanvas",style:"width:"+(t.windowWidth-30)+"px;height:560px",attrs:{"canvas-id":"mycanvas"}}),[e("v-uni-image",{staticClass:"imgs",style:"width:"+(t.windowWidth-30)+"px;height:560px",attrs:{src:t.imgUrl,mode:""}})],e("p",{staticClass:"tips"},[t._v("长按图片进行保存")])],2),1==t.isShow?e("loading"):t._e()],1)},o=[]},"227c":function(t,a,e){var n=e("24fb");a=n(!1),a.push([t.i,".myextension[data-v-395a2fef]{background-color:#fff;overflow:hidden;padding-bottom:%?100?%}.myextension uni-image[data-v-395a2fef]{width:100%;height:100%;display:block}.saveImg[data-v-395a2fef]{width:%?300?%;height:%?80?%;border-radius:%?40?%;box-shadow:0 %?10?% %?10?% #ddd;background-color:pink;line-height:%?80?%;text-align:center;color:#fff;margin:0 auto;margin-top:%?60?%}.mycanvas[data-v-395a2fef]{margin:0 auto;-webkit-transform:translateY(%?30?%);transform:translateY(%?30?%);border-radius:%?10?%;overflow:hidden}.imgs[data-v-395a2fef]{position:absolute;top:%?30?%;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);border-radius:%?10?%;overflow:hidden}.tips[data-v-395a2fef]{text-align:center;color:#999;font-size:%?24?%;margin-top:%?50?%}",""]),t.exports=a},"22b2":function(t,a,e){"use strict";e.r(a);var n=e("209c"),i=e("b9bd");for(var o in i)"default"!==o&&function(t){e.d(a,t,(function(){return i[t]}))}(o);e("76ee");var s,r=e("f0c5"),c=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,"395a2fef",null,!1,n["a"],s);a["default"]=c.exports},"3c6b":function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var n={data:function(){return{}},components:{},props:{},methods:{}};a.default=n},"3f7a":function(t,a,e){"use strict";var n=e("1582"),i=e.n(n);i.a},"76ee":function(t,a,e){"use strict";var n=e("f0b2"),i=e.n(n);i.a},7878:function(t,a,e){"use strict";e.r(a);var n=e("3c6b"),i=e.n(n);for(var o in n)"default"!==o&&function(t){e.d(a,t,(function(){return n[t]}))}(o);a["default"]=i.a},"7b8f":function(t,a,e){"use strict";var n=e("4ea4");e("cb29"),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var i=n(e("8e5a")),o=getApp(),s={data:function(){return{isShow:!0,colors:"",windowHeight:"",windowWidth:"",imgUrl:""}},components:{loading:i.default},props:{},onLoad:function(t){var a=this;this.setData({colors:o.globalData.newColor}),this.getSystem(),setTimeout((function(){a.setData({isShow:!1})}),600)},onReady:function(){},onShow:function(){},onHide:function(){},onUnload:function(){},onPullDownRefresh:function(){},onReachBottom:function(){},onShareAppMessage:function(){},methods:{getSystem:function(){var t=this;uni.getSystemInfo({success:function(a){t.setData({windowHeight:a.windowHeight,windowWidth:a.windowWidth}),t.createPoster()}})},createPoster:function(){var t=this,a=uni.createCanvasContext("mycanvas",this);a.fillStyle="#FFFFFF",a.fillRect(0,0,this.windowWidth-30,560),a.drawImage("/static/images/user/poster.jpg",0,0,this.windowWidth-30,560),a.save();var e=60,n=60,i=15,o=15,s=8;this.setRadius(a,e,n,i,o,s),setTimeout((function(){a.save(),a.draw(!0,(function(){uni.canvasToTempFilePath({canvasId:"mycanvas",success:function(a){t.imgUrl=a.tempFilePath}})}))}),500)},setRadius:function(t,a,e,n,i,o){t.arc(n+o,i+o,o,Math.PI,3*Math.PI/2),t.lineTo(a-o+n,i),t.arc(a-o+n,o+i,o,3*Math.PI/2,2*Math.PI),t.lineTo(a+n,e+i-o),t.arc(a-o+n,e-o+i,o,0,1*Math.PI/2),t.lineTo(o+n,e+i),t.arc(o+n,e-o+i,o,1*Math.PI/2,Math.PI),t.strokeStyle="#fff",t.fill(),t.clip(),t.drawImage("/static/images/ewm.png",n,i,a,e),t.closePath(),t.restore()},saveImg:function(){u
|