Commit cd326833 authored by wildfirecode's avatar wildfirecode

1

parent 50d5ce01
......@@ -8,7 +8,7 @@
</e:Group>
<e:Group id="pic2" y="15" horizontalCenter="0">
<e:Image source="showoff_jpg" x="0" y="0" height="931" width="579"/>
<e:Label id="lvTxt0" text="98" x="191.94" y="208.25" anchorOffsetX="0" width="130.67" anchorOffsetY="0" bold="true" textColor="0xEC1F09" textAlign="right" verticalAlign="middle" size="106"/>
<e:Label id="lvTxt0" text="98" x="185.29" y="208.25" anchorOffsetX="0" width="130.67" anchorOffsetY="0" bold="true" textColor="0xEC1F09" textAlign="right" verticalAlign="middle" size="106"/>
<e:Label id="tipsTxt0" text="超过了60%的好友" y="324.22" anchorOffsetX="0" anchorOffsetY="0" textColor="0xEC1F09" textAlign="center" verticalAlign="middle" size="29" horizontalCenter="0"/>
</e:Group>
<e:Image source="朋友圈中间分享蒙层1_jpg" y="899.88" horizontalCenter="0"/>
......
......@@ -2,7 +2,7 @@
<e:Skin class="ShowOffSkin" width="750" height="1206" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing">
<e:Group id="pic" x="0" y="0">
<e:Image source="showoff_jpg" x="0" y="0"/>
<e:Label id="lvTxt" text="888" x="250" y="284" anchorOffsetX="0" width="179" anchorOffsetY="0" bold="true" textColor="0xec1f09" textAlign="center" verticalAlign="middle" size="106"/>
<e:Label id="lvTxt" text="88" x="237.88" y="284" anchorOffsetX="0" width="179" anchorOffsetY="0" bold="true" textColor="0xec1f09" textAlign="right" verticalAlign="middle" size="106"/>
<e:Label id="tipsTxt" text="超过了60%的好友" y="403" anchorOffsetX="0" anchorOffsetY="0" textColor="0xEC1F09" textAlign="center" verticalAlign="middle" size="29" x="259"/>
</e:Group>
</e:Skin>
\ No newline at end of file
......@@ -12,10 +12,10 @@ img.style.display = 'none';
class Share2 extends ComponentBase {
type;
setType(type: any) {
this.type=type;
this['pic1'].visible=false;
this['pic2'].visible=false;
this['pic'+type].visible=true;
this.type = type;
this['pic1'].visible = false;
this['pic2'].visible = false;
this['pic' + type].visible = true;
}
start() {
const data = getHomeData();
......@@ -43,7 +43,7 @@ class Share2 extends ComponentBase {
}
//channel 1 好友 2 朋友圈
getFunc(type: string) {
const base64 = getPrintScreenData(this['pic'+this.type], 0, 0, 579, 866);
const base64 = getPrintScreenData(this['pic' + this.type], 0, 0, 579, 866);
NetManager.ins.imgUrl((success) => {
const data = DataManager.ins.getData('imgURL');
img.src = base64;
......@@ -57,14 +57,14 @@ class Share2 extends ComponentBase {
}
}
let inited = false;
let _share:Share2;
let _share: Share2;
const initShare = () => {
const layer = layers.shareLayer;
const share = new Share2();
share.loadSkin();
share.start();
layer.addChild(share);
_share=share;
_share = share;
};
export const showShare = (type) => {
if (!inited) {
......
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