Commit 54534026 authored by wildfirecode's avatar wildfirecode

1

parent 1947d6ad
...@@ -910,6 +910,36 @@ export class NetManager extends ABNetManager { ...@@ -910,6 +910,36 @@ export class NetManager extends ABNetManager {
}; };
this.send(net); this.send(net);
} }
public hc_turnableBaseInfo(callback: Function, propType?: number): void {
const d: any = {
activityId: DataManager.ins.customCfgData.actId
};
const net: INetData = {
name: 'hc_turnableBaseInfo',
uri: window['duiba'] + '/customActivity/happyclear/bigWheel/baseInfo',
type: 'get',
dataType: 'json',
hideMsg:true,
param: d,
callback: callback
};
this.send(net);
}
public hc_turnableDojoin(callback: Function, propType?: number): void {
const d: any = {
activityId: DataManager.ins.customCfgData.actId
};
const net: INetData = {
name: 'hc_turnableDojoin',
uri: window['duiba'] + '/customActivity/happyclear/bigWheel/dojoin',
type: 'post',
dataType: 'json',
hideMsg:true,
param: d,
callback: callback
};
this.send(net);
}
public hc_askForEnergy(callback: Function): void { public hc_askForEnergy(callback: Function): void {
const net: INetData = { const net: INetData = {
......
...@@ -12,7 +12,9 @@ export default class TurntableIcon extends IconBase { ...@@ -12,7 +12,9 @@ export default class TurntableIcon extends IconBase {
protected start() { protected start() {
super.start(); super.start();
//有免费次数
//没有免费次数
//如果元宝足够
} }
protected initEvents() { protected initEvents() {
......
const path = require('path'); const path = require('path');
const config = { const config = {
'/customActivity/happyclear/bigWheel/baseInfo': {
data: './happyclear/turnablebaseInfo.json'
},
'/customActivity/happyclear/bigWheel/dojoin': {
data: './happyclear/turnabledojoin.json'
},
'/customActivity/happyclear/totalNumRank': {
data: './happyclear/totalNumRank.json'
},
'/customActivity/happyclear/totalNumRank': { '/customActivity/happyclear/totalNumRank': {
data: './happyclear/totalNumRank.json' data: './happyclear/totalNumRank.json'
}, },
......
{
"code":"0000000000",
"data":{
"luckyDrawInfo":{
"baseCount":50,
"bonusCount":10,
"enable":true,
"id":"1234",
"prizeList":[
{
"categoryType":4,
"coinType":1,
"maxValue":10,
"minValue":10,
"rate":"20",
"title":"奖品信息"
},
{
"appItemId":2099,
"categoryType":7,
"img":"虚拟商品图片",
"name":"虚拟商品名称",
"rate":"30",
"title":"奖品信息",
"value":"虚拟商品编码"
},
{
"categoryType":7,
"num":10,
"propType":2,
"rate":"30",
"title":"奖品信息"
}
]
},
"remainTimes":1,
"costCoinJoinTimes":10,
"nextTimeNeedCoin":150
},
"desc":"OK",
"success":true,
"timestamp":1572060015013
}
\ No newline at end of file
{
"code":"0000000000",
"data":{
"isScratchCard":true,
"option":{
"completePercent":"完成进度",
"prizeImage":"图片",
"remainPercent":"剩余进度",
"scratchCardTaskId":1,
"categoryType":4,
"title":"奖品信息",
"coinType":1,
"maxValue":10,
"minValue":10,
"appItemId":2099,
"img":"虚拟商品图片",
"name":"虚拟商品名称",
"value":"虚拟商品编码",
"num":10,
"propType":2
},
"orderNum":"24487583"
},
"desc":"OK",
"success":true,
"timestamp":1572061348762
}
\ 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