Commit d7b02efb authored by wildfirecode's avatar wildfirecode

1

parent e03881a0
egret/resource/assets/share3.jpg

196 KB | W: | H:

egret/resource/assets/share3.jpg

195 KB | W: | H:

egret/resource/assets/share3.jpg
egret/resource/assets/share3.jpg
egret/resource/assets/share3.jpg
egret/resource/assets/share3.jpg
  • 2-up
  • Swipe
  • Onion skin
...@@ -51,7 +51,11 @@ class Share2 extends ComponentBase { ...@@ -51,7 +51,11 @@ class Share2 extends ComponentBase {
} }
//channel 1 好友 2 朋友圈 //channel 1 好友 2 朋友圈
getFunc(type: string) { getFunc(type: string) {
const base64 = getPrintScreenData(this['pic' + this.type], 0, 0, 579, 866); let base64;
if(this.type==1)
base64= getPrintScreenData(this['pic' + this.type], 0, 0, 579, 866);
else
base64= getPrintScreenData(this['pic' + this.type], 0, 0, 600, 965);
NetManager.ins.imgUrl((success) => { NetManager.ins.imgUrl((success) => {
const data = DataManager.ins.getData('imgURL'); const data = DataManager.ins.getData('imgURL');
img.src = base64; img.src = base64;
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment