Commit 1cac815a authored by wildfirecode's avatar wildfirecode

1

parent f380b3f4
egret/resource/assets/share2.jpg

504 KB | W: | H:

egret/resource/assets/share2.jpg

99.3 KB | W: | H:

egret/resource/assets/share2.jpg
egret/resource/assets/share2.jpg
egret/resource/assets/share2.jpg
egret/resource/assets/share2.jpg
  • 2-up
  • Swipe
  • Onion skin
egret/resource/assets/showoff.jpg

144 KB | W: | H:

egret/resource/assets/showoff.jpg

51.5 KB | W: | H:

egret/resource/assets/showoff.jpg
egret/resource/assets/showoff.jpg
egret/resource/assets/showoff.jpg
egret/resource/assets/showoff.jpg
  • 2-up
  • Swipe
  • Onion skin
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<e:Skin class="ShareSkin" width="750" height="1206" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing"> <e:Skin class="ShareSkin" width="750" height="1624" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing">
<e:Rect width="750" height="1624" fillAlpha="0.7"/>
<e:Image source="share2_jpg"/> <e:Image source="share2_jpg"/>
<e:Label id="lvTxt" text="2" x="336.65" y="918.94" size="20" anchorOffsetX="0" width="42.33" textAlign="center" verticalAlign="middle" textColor="0xea2917"/> <e:Label id="lvTxt" text="2" x="336.65" y="918.94" size="20" anchorOffsetX="0" width="42.33" textAlign="center" verticalAlign="middle" textColor="0xea2917"/>
</e:Skin> </e:Skin>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<e:Skin class="ShowOffSkin" width="750" height="1206" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing"> <e:Skin class="ShowOffSkin" width="750" height="1624" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing">
<e:Group id="pic" x="0" y="0"> <e:Group id="pic" x="0" y="0">
<e:Image source="showoff_jpg" x="0" y="0"/> <e:Image source="showoff_jpg" x="0" y="0"/>
<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="lvTxt" text="88" x="237.88" y="308" 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:Label id="tipsTxt" text="超过了60%的好友" y="427" anchorOffsetX="0" anchorOffsetY="0" textColor="0xEC1F09" textAlign="center" verticalAlign="middle" size="29" x="259"/>
</e:Group> </e:Group>
</e:Skin> </e:Skin>
\ No newline at end of file
...@@ -23,7 +23,7 @@ export default async (parent?: egret.DisplayObjectContainer) => { ...@@ -23,7 +23,7 @@ export default async (parent?: egret.DisplayObjectContainer) => {
return getPrintScreenData(showoff, 0, 0, pic.textureWidth, pic.textureHeight); return getPrintScreenData(showoff, 0, 0, pic.textureWidth, pic.textureHeight);
}) })
} }
const img:any = document.getElementById('pic'); const img: any = document.getElementById('pic');
img.style.display = 'none'; img.style.display = 'none';
export const getShareUrl = async (parent?: egret.DisplayObjectContainer) => { export const getShareUrl = async (parent?: egret.DisplayObjectContainer) => {
return new Promise(async (r) => { return new Promise(async (r) => {
...@@ -32,7 +32,8 @@ export const getShareUrl = async (parent?: egret.DisplayObjectContainer) => { ...@@ -32,7 +32,8 @@ export const getShareUrl = async (parent?: egret.DisplayObjectContainer) => {
showoff.loadSkin(); showoff.loadSkin();
showoff.start(); showoff.start();
if (parent) parent.addChild(showoff); if (parent) parent.addChild(showoff);
showoff.visible=false; showoff.visible = false;
img.style.display = 'block';
const base64 = getPrintScreenData(showoff, 0, 0, pic.textureWidth, parent.stage.stageHeight); const base64 = getPrintScreenData(showoff, 0, 0, pic.textureWidth, parent.stage.stageHeight);
// NetManager.ins.imgUrl((success) => { // NetManager.ins.imgUrl((success) => {
// const data = DataManager.ins.getData('imgURL'); // const data = DataManager.ins.getData('imgURL');
......
...@@ -8,7 +8,7 @@ import wait from "../../libs/new_tc/wait"; ...@@ -8,7 +8,7 @@ import wait from "../../libs/new_tc/wait";
import { showShare } from "../shareCtrl"; import { showShare } from "../shareCtrl";
import { iswx } from "../iswx"; import { iswx } from "../iswx";
import getShowOffPic from "../getShowOffPic"; import getShowOffPic from "../getShowOffPic";
import getSharePic from "../getSharePic"; import getSharePic, { getShareUrl } from "../getSharePic";
export default class BloodPanel extends Panel { export default class BloodPanel extends Panel {
start(data) { start(data) {
...@@ -57,7 +57,7 @@ this['price1Txt'].text = window['price1'] ...@@ -57,7 +57,7 @@ this['price1Txt'].text = window['price1']
onTapInvite() { onTapInvite() {
if (iswx()) { if (iswx()) {
getSharePic(this.stage); getShareUrl(this.stage);
} else } else
showShare(1); showShare(1);
NetManager.ins.clickLog(getlogItem(4)); NetManager.ins.clickLog(getlogItem(4));
......
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