Commit 8c7a089a authored by wildfirecode13's avatar wildfirecode13

Merge branch 'disu0811' of http://gitlab2.dui88.com/wildfirecode13/wfc13 into disu0811

parents 4087e17e 7840f124
{
"code": null,
"data": {
"surplusCount": 1,
"credits": 100,
"needCredits": 10,
"type": 2
},
"message": null,
"success": true
}
\ No newline at end of file
...@@ -242,10 +242,10 @@ export const SkinJson ={ ...@@ -242,10 +242,10 @@ export const SkinJson ={
{ {
"name": "index_moneytips2", "name": "index_moneytips2",
"x": 608, "x": 608,
"y": 1133, "y": 1127,
"type": "text", "type": "text",
"props": { "props": {
"text": "XX", "text": "0",
"size": 32, "size": 32,
"fillColor": "#000000", "fillColor": "#000000",
"textAlpha": 1 "textAlpha": 1
...@@ -266,10 +266,10 @@ export const SkinJson ={ ...@@ -266,10 +266,10 @@ export const SkinJson ={
{ {
"name": "index_timestips2", "name": "index_timestips2",
"x": 255, "x": 255,
"y": 1132, "y": 1127,
"type": "text", "type": "text",
"props": { "props": {
"text": "XX", "text": "0",
"size": 32, "size": 32,
"fillColor": "#000000", "fillColor": "#000000",
"textAlpha": 1 "textAlpha": 1
...@@ -290,10 +290,10 @@ export const SkinJson ={ ...@@ -290,10 +290,10 @@ export const SkinJson ={
{ {
"name": "index_costtips", "name": "index_costtips",
"x": 322, "x": 322,
"y": 434, "y": 430,
"type": "text", "type": "text",
"props": { "props": {
"text": "XX积分/次", "text": "0积分/次",
"size": 30, "size": 30,
"fillColor": "#000000", "fillColor": "#000000",
"textAlpha": 1 "textAlpha": 1
......
...@@ -19,5 +19,9 @@ ...@@ -19,5 +19,9 @@
/** /**
* 获取规则 * 获取规则
*/ */
projectRule = "/projectx/{projectId}/projectRule.query" projectRule = "/projectx/{projectId}/projectRule.query",
/**
* 获取首页数据
*/
projectIndex = "/projectx/{projectId}/dazzle/index.do"
} }
\ No newline at end of file
...@@ -10,10 +10,12 @@ import { notEnoughMoneyPanel } from "../panels/notEnoughMoney"; ...@@ -10,10 +10,12 @@ import { notEnoughMoneyPanel } from "../panels/notEnoughMoney";
import { PrizePanel } from "../panels/prize"; import { PrizePanel } from "../panels/prize";
import { SharePanel } from "../panels/share"; import { SharePanel } from "../panels/share";
import { timesNotEnoughPanel } from "../panels/timesNotEnough"; import { timesNotEnoughPanel } from "../panels/timesNotEnough";
import { RulePanel } from "../template/RulePanel"; import { RulePanel } from "../panels/RulePanel";
import { Box } from "./Box"; import { Box } from "./Box";
import { BoxGroup } from "./BoxGroup"; import { BoxGroup } from "./BoxGroup";
import { ScrollItem } from "./ScrollItem"; import { ScrollItem } from "./ScrollItem";
import { sendWebNet } from "../WebNet";
import { WebNetName } from "../WebNetName";
let boxGroup; let boxGroup;
...@@ -29,8 +31,13 @@ export class IndexScene extends Scene { ...@@ -29,8 +31,13 @@ export class IndexScene extends Scene {
start() { start() {
super.start(); super.start();
<<<<<<< HEAD
this.getIndex();
// showPanel(SharePanel);
=======
showPanel(PrizePanel); showPanel(PrizePanel);
>>>>>>> 4445b545174f45bdb5de86ca86be78b8f149ecec
getObject(this,'index_sharetips').visible=false; getObject(this,'index_sharetips').visible=false;
this.initContainer(); this.initContainer();
this.initmask(); this.initmask();
...@@ -71,8 +78,20 @@ export class IndexScene extends Scene { ...@@ -71,8 +78,20 @@ export class IndexScene extends Scene {
} }
toRule() { toRule() {
// showPanel(SharePanel); showPanel(RulePanel);
console.log("1111111") }
getIndex = async () => {
const result = await sendWebNet(WebNetName.projectIndex);
if (!result.success) return;
if (result && result.data && result.data.type == 2) {
const reDegree = getObject(this, 'index_timestips2');
reDegree.text = result.data.surplusCount;
const credits = getObject(this, 'index_moneytips2');
credits.text = result.data.credits;
const needCredits = getObject(this, 'index_costtips');
needCredits.text = result.data.needCredits + "积分/次";
}
} }
} }
import { Scene } from "../../module/views/Scene"; import { Scene } from "../../module/views/Scene";
import { showPanel, showWaiting, hideWaiting, showToast, changeScene } from "../../module/ctrls"; import { showPanel, showWaiting, hideWaiting, showToast, changeScene } from "../../module/ctrls";
import { RulePanel } from "./RulePanel"; import { RulePanel } from "../panels/RulePanel";
import { Tools } from "../Tools"; import { Tools } from "../Tools";
import { layers } from "../../module/views/layers"; import { layers } from "../../module/views/layers";
import { GDispatcher } from "../Main"; import { GDispatcher } from "../Main";
......
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