Commit aa1ace1d authored by wildfirecode13's avatar wildfirecode13

1

parent 57412ee5
......@@ -86,8 +86,8 @@
var CFG = {
actId: '1',
oaId: '1',
unitName: '积分',
btnUnitName: '积分',
unitName: '金币',
btnUnitName: '金币',
doJoin: '/hdtool/recon/doJoin?dpm=1.3.1.0&activityId=1',
quireOrder: '/hdtool/getOrderStatus',
styleConfig: '/hdtool/getHdtoolConfig',
......
......@@ -2,8 +2,8 @@
<e:Skin class="NoLoginSkin" height="1624" xmlns:e="http://ns.egret.com/eui" xmlns:ns1="*" xmlns:w="http://ns.egret.com/wing" width="750">
<e:Group width="623" height="504" x="62" y="427">
<e:Image source="common_bg_png" scaleX="1" scaleY="1"/>
<e:Label text="积分不足" y="72" textColor="0xba5c03" size="48" bold="true" horizontalCenter="0"/>
<e:Label text="抱歉您当前积分不足" y="219" textColor="0xba5c03" horizontalCenter="0.5"/>
<e:Label id="title" text="积分不足" y="72" textColor="0xba5c03" size="48" bold="true" horizontalCenter="0"/>
<e:Label id="tip" text="抱歉您当前积分不足" y="219" textColor="0xba5c03" horizontalCenter="0.5"/>
<ns1:MButton id="btnDo" label="" x="115" y="357">
<ns1:skinName>
<e:Skin states="up,down,disabled">
......
......@@ -23,7 +23,7 @@
<e:Image source="main_guideboard_png" x="482" y="869" />
<e:Group id="groupFree" width="204" height="150" x="482" y="864" anchorOffsetX="0" anchorOffsetY="0"
visible="false">
<e:Label text="今日免费次数" x="21" y="62" scaleX="1" scaleY="1" size="24" />
<e:Label id="labelFreeNumTitle" text="今日免费次数" x="21" y="62" scaleX="1" scaleY="1" size="24" />
<e:Label id="labelFreeNum" text="" y="97" size="30" horizontalCenter="-10.5" />
</e:Group>
<e:Label id="labelCostNum" text="" y="938" size="30" horizontalCenter="204" visible="false" />
......
......@@ -23,6 +23,7 @@ export default class MainScene extends Scene {
public btnRule: eui.Button;
public groupFree: eui.Group;
public labelFreeNum: eui.Label;
public labelFreeNumTitle: eui.Label;
public labelCostNum: eui.Label;
public imgTitle: eui.Image;
public progress: MProgressBar;
......@@ -100,7 +101,7 @@ export default class MainScene extends Scene {
this.groupFree.visible = false;
this.labelCostNum.visible = false;
if (element["freeLimit"] > 0) {
if (element["freeLimit"] > 0 && !element.freeEmpty ) {
this.labelFreeNum.text = element["freeLimit"] + "次";
this.groupFree.visible = true;
} else {
......@@ -183,11 +184,19 @@ class CommonPanel extends Panel {
public btnDo: MButton;
public btnClose: MButton;
btnTxt:egret.TextField
title:egret.TextField
tip:egret.TextField
onSkinComplete() {
super.onSkinComplete();
this.btnClose.onTap(this, () => this.hidePanel());
this.btnDo.onTap(this, () => this.hidePanel());
this.btnTxt.text = `赚${window['CFG'].unitName}`
if(this.title) {
this.title.text=`${window['CFG'].unitName}不足`
}
if(this.tip) {
this.tip.text=`抱歉您当前${window['CFG'].unitName}不足`
}
}
}
\ No newline at end of file
{
"code": "0000000000",
"data": {
"creditsConf": {
"creditsUp": 100,
"creditsType": "virtual",
"creditsDown": 50,
"prize": [
{
"img": "adsfsadf",
"credits": 20,
"id": 4,
"title": "0.3"
},
{
"img": "sadfasdf",
"credits": 150,
"id": 3,
"title": "1.5倍"
},
{
"img": "sadfasdf",
"credits": 100,
"id": 2,
"title": "1倍"
},
{
"img": "sadfasdf",
"credits": 50,
"id": 1,
"title": "0.5倍"
}
]
"jsTest": "//yun.duiba.com.cn/h5/showCouponPrize/4.0.0/index_201710191434.js",
"success": true,
"cssTest": "//yun.duiba.com.cn/h5/showCouponPrize/4.0.0/index_201710191440.css",
"options": [
{
"description": "",
"hidden": false,
"id": 22038,
"logo": "//yun.duiba.com.cn/upload/uP99F1462438316972.png",
"name": "谢谢参与",
"prizeType": "thanks"
},
"floating": {
"jsTest": "//yun1.duiba.com.cn/h5/showCouponPrize/4.0.0/index_201710191434.js",
"cssTest": "//yun1.duiba.com.cn/h5/showCouponPrize/4.0.0/index_201710191440.css"
{
"description": "",
"hidden": false,
"id": 22075,
"itemId": 33466,
"logo": "//yun.dui88.com/images/201910/ig6klxap34.jpg",
"name": "体育复合弓",
"prizeType": "object",
"scoreArea": ""
},
"options": [
{
"hidden": false,
"prizeType": "thanks",
"name": "谢谢参与",
"description": "",
"logo": "//yun1.duiba.com.cn/upload/uP99F1462438316972.png",
"id": 15581
},
{
"hidden": false,
"prizeType": "lucky",
"name": "幸运福袋",
"description": "",
"logo": "//yun1.duiba.com.cn/webapp/img/luckynewn.png",
"id": 15582
},
{
"itemId": 47861,
"scoreArea": "",
"hidden": false,
"prizeType": "alipay",
"name": "支付宝1",
"description": "",
"logo": "//yun1.duiba.com.cn/developer/img/activityTool/slotMachine/alipay.png",
"id": 15585
}
],
"rule": "adsfasdf",
"type": "hdtool"
},
{
"description": "",
"hidden": true,
"id": 22099,
"logo": "//yun.duiba.com.cn/webapp/img/luckynewn.png",
"name": "放到",
"prizeType": "lucky"
}
],
"rule": "dadaddfsg1fg当地噶的观点噶接口搭嘎巨大嘎达嘎嘎大家来给大家了更多哈工大哈根达瓦大lzfdfjykuhfdzk<br>dadaddfsg1fg当地噶的观点噶接口搭嘎巨大嘎达嘎嘎大家来给大家了更多哈工大哈根达瓦大lzfdfjykuhfdzk<br>dadaddfsg1fg当地噶的观点噶接口搭嘎巨大嘎达嘎嘎大家来给大家了更多哈工大哈根达瓦大lzfdfjykuhfdzk<br>",
"type": "hdtool",
"element": {
"isCreditsTypeOpen": false,
"myCreditsLong": 999999632167,
"freeLimit": 0,
"success": false,
"myCredits": "999999632167",
"needCredits": "100",
"freeEmpty": true,
"needCreditsLong": 100,
"status": 5
},
"success": true,
"desc": "OK",
"timestamp": 1548832971636
"freeLimit": 2,
"isCreditsTypeOpen": false,
"myCredits": "166714",
"needCredits": "2",
"status": 6
}
}
\ 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