Commit 4c09b2cb authored by wildfirecode's avatar wildfirecode

1

parent 8197e620
......@@ -5,9 +5,9 @@ import { showToast } from "../libs/new_wx/ctrls/toastCtrl";
import { DataManager } from "../libs/tw/manager/DataManager";
import join_1_index from "./interfaces/join_1_index";
import { getProvince } from "./MyDreamScene";
import { NetManager } from "../libs/tw/manager/NetManager";
export default class HisDreamScene extends Scene {
type;
async start(type?) {
this.showlog();
......@@ -41,9 +41,6 @@ export default class HisDreamScene extends Scene {
this['group'].removeChild(this['status5']);
this['group'].removeChild(this['status6']);
this.status = type;
// if (type == HisDreamType.SHARE)
// this['group'].removeChild(this['back']);
this['helpbtn'].addEventListener(egret.TouchEvent.TOUCH_TAP, this.ontap_helpbtn, this);
......@@ -73,24 +70,6 @@ export default class HisDreamScene extends Scene {
loadImg(url) {
RES.getResByUrl(url, (img: egret.Texture) => {
// if (this.type == HisDreamType.SHARE) {
// this['imgGroup'].height = this['imgbg'].height;
// const maskRatio = this['imgMask'].width / this['imgMask'].height;
// this['img'].source = img;
// const imgRatio = img.textureWidth / img.textureHeight;
// if (imgRatio < maskRatio) {
// const scale = this['imgMask'].width / img.textureWidth;
// this['img'].width = this['imgMask'].width;
// this['img'].height = img.textureHeight * scale;
// this['img'].y = 5.1 - this['img'].height / 2 + this['imgMask'].height / 2;
// } else {
// const scale2 = this['imgMask'].height / img.textureHeight;
// this['img'].height = this['imgMask'].height;
// this['img'].width = img.textureWidth * scale2;
// this['img'].x = 31.7 - this['img'].width / 2 + this['imgMask'].width / 2;
// }
// }
// else {
const oriHeight = this['img'].height;
const scale = this['imgMask'].width / img.textureWidth;
this['img'].source = img;
......@@ -98,8 +77,6 @@ export default class HisDreamScene extends Scene {
const addHeight = this['img'].height - oriHeight;
this['imgMask'].height = this['img'].height;
this['imgbg'].height = this['imgbg'].height + addHeight;
// }
}, this, RES.ResourceItem.TYPE_IMAGE)
}
......@@ -107,7 +84,9 @@ export default class HisDreamScene extends Scene {
console.log('onTap_sharebtn')
}
onTap_ruleBtn() {
SceneCtrl.instance.change('MainScene');
NetManager.ins.yyh_join1_index(async (success) => {
SceneCtrl.instance.change('MainScene');
});
}
get skinKey() { return 'HisDream' }
......
......@@ -4,6 +4,7 @@ import { HtmlTextParser } from "../libs/new_wx/HtmlTextParser";
import { DataManager } from "../libs/tw/manager/DataManager";
import getsubmitUrl from "./getsubmitUrl";
import join_1_index from "./interfaces/join_1_index";
import { NetManager } from "../libs/tw/manager/NetManager";
export default class IntroScene extends Scene {
......@@ -22,7 +23,9 @@ export default class IntroScene extends Scene {
}
ontap_lab1(){
SceneCtrl.instance.change('MainScene');
NetManager.ins.yyh_join1_index(async (success) => {
SceneCtrl.instance.change('MainScene');
});
}
ontap_btn0(){
......
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