Commit e4bf6e85 authored by 邱旭's avatar 邱旭

1

parent 5a1d5f2e
No preview for this file type
This diff is collapsed.
......@@ -1576,7 +1576,9 @@ export class NetManager extends ABNetManager {
uri: '/customActivity/fuzhouBank/bigWheel/getPhone',
type: 'get',
dataType: 'json',
param: {},
param: {
activityId: DataManager.ins.customCfgData.actId,
},
callback: callback,
};
this.send(net);
......@@ -1594,6 +1596,7 @@ export class NetManager extends ABNetManager {
type: 'post',
dataType: 'json',
param: {
activityId: DataManager.ins.customCfgData.actId,
phone: phone
},
callback: callback,
......@@ -1609,7 +1612,7 @@ export class NetManager extends ABNetManager {
const net: INetData = {
name: NetName.SUBMIT_PHONE,
uri: '/customActivity/fuzhouBank/bigWheel/getCarousel',
type: 'post',
type: 'get',
dataType: 'json',
param: {
activityId: DataManager.ins.customCfgData.actId
......
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"phone_panel","version":5,"files":["../assets/phone_panel/phone_btn.png","../assets/phone_panel/phone_bg.png"]}
\ No newline at end of file
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"preload","version":5,"files":["../assets/common/closeBtn.png","../assets/start_scene/start_myPrize_btn.png"]}
\ No newline at end of file
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"preload","version":5,"files":["../assets/common/closeBtn.png","../assets/start_scene/start_myPrize_btn.png","../assets/rule_panel/rule_bg.png","../assets/noPrize_panel/NoPrize_btn.png","../assets/noPrize_panel/NoPrize_bg.png","../assets/noTimes_panel/noTimes_btn.png","../assets/phone_panel/phone_bg.png","../assets/phone_panel/phone_btn.png"]}
\ No newline at end of file
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"rule_panel","version":5,"files":["../assets/rule_panel/rule_bg.png"]}
\ No newline at end of file
{
"skins": {},
"autoGenerateExmlsList": true,
"exmls": [
"resource/skins/AlertSkin.exml",
"resource/skins/LoadingSceneSkin.exml",
"resource/skins/LoadingSkin.exml",
"resource/skins/MyPrizeItemSkin.exml",
"resource/skins/MyPrizeSceneSkin.exml",
"resource/skins/NoPrizePanelSkin.exml",
"resource/skins/NoTimesPanelSkin.exml",
"resource/skins/PrizePanelSkin.exml",
"resource/skins/RulePanelSkin.exml",
"resource/skins/StartSceneSkin.exml",
"resource/skins/PhonePanelSkin.exml",
"resource/skins/ToastPanelSkin.exml",
"resource/skins/ui/IconButtonSkin.exml",
"resource/skins/ui/ProgressBarSkin.exml",
"resource/skins/ui/TimeProgressBarSkin.exml"
],
"path": "resource/default.thm.json"
"skins": {},
"autoGenerateExmlsList": true,
"exmls": [
"resource/skins/AlertSkin.exml",
"resource/skins/LoadingSceneSkin.exml",
"resource/skins/LoadingSkin.exml",
"resource/skins/MyPrizeItemSkin.exml",
"resource/skins/MyPrizeSceneSkin.exml",
"resource/skins/NoPrizePanelSkin.exml",
"resource/skins/NoTimesPanelSkin.exml",
"resource/skins/PhonePanelSkin.exml",
"resource/skins/PrizePanelSkin.exml",
"resource/skins/RulePanelSkin.exml",
"resource/skins/StartSceneSkin.exml",
"resource/skins/ToastPanelSkin.exml",
"resource/skins/ui/IconButtonSkin.exml",
"resource/skins/ui/ProgressBarSkin.exml",
"resource/skins/ui/TimeProgressBarSkin.exml"
],
"path": "resource/default.thm.json"
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<e:Skin class="LoadingSceneSkin" width="750" height="1624" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing">
<e:Image source="start_bg_png"/>
<e:Image y="285" source="info_bg_png" horizontalCenter="0"/>
<e:Image id="infoImg" y="285" source="info_bg_png" horizontalCenter="0"/>
<e:Group id="infoGroup" y="285" height="48" anchorOffsetX="0" width="355.5" horizontalCenter="0">
<e:Rect id="infoMask" anchorOffsetX="0" anchorOffsetY="0" width="355.5" height="48" y="0" x="0"/>
<e:Label id="label1" text="Label" anchorOffsetX="0" anchorOffsetY="0" verticalAlign="middle" height="48" width="355.5" y="0" x="0" size="24" textAlign="center"/>
......@@ -37,7 +37,7 @@
</e:Skin>
</e:skinName>
</e:Button>
<e:Image id="hand" scaleX="1" scaleY="1" source="start_hand_png" x="391.15" y="376" touchEnabled="false"/>
<e:Image id="hand" scaleX="1" scaleY="1" source="start_hand_png" x="391" y="367" touchEnabled="false"/>
</e:Group>
<e:Group y="27" anchorOffsetX="0" anchorOffsetY="0" height="60.39" width="750" horizontalCenter="0">
<e:Button id="act_btn" label="" anchorOffsetY="21" left="0" verticalCenter="0">
......
import Panel from "../../MVC/views/Panel";
import { GDispatcher } from "../../../libs/tc/util/GDispatcher";
export default class NoPrizePanel extends Panel {
public group: eui.Group;
......@@ -16,6 +17,11 @@ export default class NoPrizePanel extends Panel {
this.closeBtn.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouchTap, this);
}
onTouchTap() {
GDispatcher.dispatchEvent('panelEffect');
return super.onTouchTap();
}
removeEvents() {
this.ok_btn.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouchTap, this);
this.closeBtn.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouchTap, this);
......
......@@ -3,6 +3,9 @@ import { NetManager } from '../../../libs/tw/manager/NetManager';
import TopLayerCtrl from '../../MVC/ctrls/topLayerCtrl';
import { ModuleTypes } from '../../Comm/types/sceneTypes';
import PanelCtrl from '../../MVC/ctrls/panelCtrl';
import getItem = egret.localStorage.getItem;
import { getlogItem } from "../../getlogItem";
import { GDispatcher } from "../../../libs/tc/util/GDispatcher";
export default class PhonePanel extends Panel {
......@@ -36,6 +39,7 @@ export default class PhonePanel extends Panel {
let _y = this.group.y;
this.group.y = _y - 300;
egret.Tween.get(this.group).to({y: _y}, 800, egret.Ease.bounceOut);
NetManager.ins.showLog(getlogItem(4));
}
initInput() {
......@@ -57,6 +61,7 @@ export default class PhonePanel extends Panel {
}
onTap_Submit() {
NetManager.ins.clickLog(getlogItem(4));
PanelCtrl.instance.btnDelay(this.submitBtn);
if(!(/^1(3|4|5|6|7|8|9)\d{9}$/.test(this.myEditableText.text))) {
TopLayerCtrl.instance.show(ModuleTypes.TOAST_PANEL, {msg: "请输入正确手机号"});
......
......@@ -3,6 +3,7 @@ import { DataManager } from "../../../libs/tw/manager/DataManager";
import { NetName } from "../../../libs/tw/enum/NetName";
import { PrizeTypes } from "../../Scene/StartScene/RotaryData";
import { NetManager } from "../../../libs/tw/manager/NetManager";
import { GDispatcher } from "../../../libs/tc/util/GDispatcher";
export default class PrizePanel extends Panel {
public group: eui.Group;
......@@ -14,8 +15,6 @@ export default class PrizePanel extends Panel {
public get skinKey() { return 'PrizePanel' }
public get groupName() { return 'prize_panel' }
private url: string;
constructor(data?) {
super(data);
......@@ -26,26 +25,12 @@ export default class PrizePanel extends Panel {
}
onTouchTap(){
GDispatcher.dispatchEvent('getCount');
GDispatcher.dispatchEvent('panelEffect');
super.onTouchTap();
}
touch_tap_ok_btn() {
// if (this.data == 'coupon') { // 如果是优惠卷则查询链接并跳转
// let userRecordId = DataManager.ins.getData(NetName.GET_PRIZE).data.userRecordId;
// NetManager.ins.getCouponInfo((success) => {
// if (!success) {
// return;
// }
// let link = DataManager.ins.getData(NetName.GET_COUPON_INFO).data.link;
// window.location.href = link;
// }, userRecordId, () => {
// let data = DataManager.ins.getData(NetName.GET_COUPON_INFO);
// return !(data.success && data.code == '0000000000')
// }, 10);
//
// } else { // 不是优惠卷直接跳转链接
// window.location.href = this.url;
// }
window.location.href = this.data.link;
}
......
This diff is collapsed.
......@@ -3,5 +3,15 @@
"code": "0000000000",
"desc": "OK",
"timestamp": 1548915321930,
"data": "6666"
"data": [
"1111",
"2222",
"3333",
"4444",
"5555",
"6666",
"7777",
"8888",
"9999"
]
}
\ No newline at end of file
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