Commit 2399f224 authored by 邱旭's avatar 邱旭

1

parent 6795a36f
......@@ -6,27 +6,27 @@
<e:Group id="panel" anchorOffsetX="253.5" anchorOffsetY="253.5" rotation="0" horizontalCenter="0" verticalCenter="0" width="507" height="507">
<e:Image scaleX="1" scaleY="1" anchorOffsetX="253.5" anchorOffsetY="253.5" rotation="0" horizontalCenter="0" verticalCenter="0" source="turntable_panel_png"/>
<e:Group id="prize0" y="-10" x="179">
<e:Image id="img0" y="50" width="83" height="83" rotation="0" horizontalCenter="0"/>
<e:Image id="img0" y="50" width="83" height="83" rotation="0" horizontalCenter="0" source="turntable_wealth_png"/>
<e:Label id="lab0" text="Label" y="0" size="24" rotation="0" textAlign="center" verticalAlign="middle" anchorOffsetX="75" width="150" anchorOffsetY="0" height="50" skewX="0" textColor="0xe33330" horizontalCenter="0" visible="false"/>
</e:Group>
<e:Group id="prize1" y="187" x="-11" rotation="-60">
<e:Image id="img1" y="50" width="83" height="83" rotation="0" horizontalCenter="0"/>
<e:Image id="img1" y="50" width="83" height="83" rotation="0" horizontalCenter="0" source="turntable_oupon_png"/>
<e:Label id="lab1" text="Label" y="0" size="24" rotation="0" textAlign="center" verticalAlign="middle" anchorOffsetX="75" width="150" anchorOffsetY="0" height="50" skewX="0" textColor="0xE33330" horizontalCenter="0" visible="false"/>
</e:Group>
<e:Group id="prize2" y="450" x="64" rotation="-120">
<e:Image id="img2" y="50" width="83" height="83" rotation="0" horizontalCenter="0"/>
<e:Image id="img2" y="50" width="83" height="83" rotation="0" horizontalCenter="0" source="turntable_prop_png"/>
<e:Label id="lab2" text="Label" y="0" size="24" rotation="0" textAlign="center" verticalAlign="middle" anchorOffsetX="75" width="150" anchorOffsetY="0" height="50" skewX="0" textColor="0xE33330" horizontalCenter="0" visible="false"/>
</e:Group>
<e:Group id="prize3" y="516.5" rotation="-180" x="329">
<e:Image id="img3" y="50" width="83" height="83" rotation="0" horizontalCenter="0"/>
<e:Image id="img3" y="50" width="83" height="83" rotation="0" horizontalCenter="0" source="turntable_scratch_png"/>
<e:Label id="lab3" text="Label" y="0" size="24" rotation="0" textAlign="center" verticalAlign="middle" anchorOffsetX="75" width="150" anchorOffsetY="0" height="50" skewX="0" textColor="0xE33330" horizontalCenter="0" visible="false"/>
</e:Group>
<e:Group id="prize4" y="320.1" rotation="-240" x="519.18">
<e:Image id="img4" y="50" width="83" height="83" rotation="0" horizontalCenter="0"/>
<e:Image id="img4" y="50" width="83" height="83" rotation="0" horizontalCenter="0" source="turntable_thanks_png"/>
<e:Label id="lab4" text="Label" y="0" size="24" rotation="0" textAlign="center" verticalAlign="middle" anchorOffsetX="75" width="150" anchorOffsetY="0" height="50" skewX="0" textColor="0xE33330" horizontalCenter="0" visible="false"/>
</e:Group>
<e:Group id="prize5" y="56.5" rotation="-300" x="444.18">
<e:Image id="img5" y="50" width="83" height="83" rotation="0" horizontalCenter="0"/>
<e:Image id="img5" y="50" width="83" height="83" rotation="0" horizontalCenter="0" source="turntable_gameTime_png"/>
<e:Label id="lab5" text="Label" y="0" size="24" rotation="0" textAlign="center" verticalAlign="middle" anchorOffsetX="75" width="150" anchorOffsetY="0" height="50" skewX="0" textColor="0xE33330" horizontalCenter="0" visible="false"/>
</e:Group>
</e:Group>
......
......@@ -250,7 +250,7 @@ class ScratchItem extends eui.ItemRenderer {
let shareCode = res.data; // 分享码
let code = "12345678" + shareCode;
CFG.wxShareLink = window['h5URL2'] + "&shareCode=" + code; // 分享链接
CFG.wxShareTitle = '来自萌狮的好友申请';
CFG.wxShareTitle = '萌狮消消消';
CFG.wxShareDesc = '超好玩的萌狮消消乐,快来和我一起玩吧~';
CFG.wxShareImg = "http://yun.duiba.com.cn/db_games/xiaoxiaole2.jpg";
if(iswx()) { //微信端
......
let RotaryData = {
key: [
],
key: [],
data: {
4: [
{start: 0 * 60 - 20, end: 0 * 60 + 20}
],
5: [
{start: 1 * 60 - 20, end: 1 * 60 + 20}
],
6: [
{start: 1 * 60 - 20, end: 1 * 60 + 20}
],
7: [
{start: 1 * 60 - 20, end: 1 * 60 + 20}
],
3: [
{start: 2 * 60 - 20, end: 2 * 60 + 20}
],
scratch: [
{start: 3 * 60 - 20, end: 3 * 60 + 20}
],
thanks: [
{start: 4 * 60 - 20, end: 4 * 60 + 20}
],
1: [
{start: 4 * 60 - 20, end: 4 * 60 + 20}
],
2: [
{start: 5 * 60 - 20, end: 5 * 60 + 20}
],
}
};
......
......@@ -257,64 +257,64 @@ export default class Turntable extends Panel {
this.remainTimes = data.remainTimes;
this.nextTimeNeedCoin = data.nextTimeNeedCoin;
// 添加奖品
let prizeList = [];
for(let v of data.luckyDrawInfo.prizeList) {
if(v.categoryType == 1) {
continue;
}
prizeList.push(Utils.deepClone(v));
}
prizeList.unshift({
categoryType: 'thanks',
}, {
categoryType: 'scratch',
});
for(let i = 0; i < prizeList.length; i++) {
let v = prizeList[i];
let prizeImg = "";
switch(v.categoryType) {
case "scratch":
prizeImg = "turntable_scratch_png";
break;
case "thanks":
prizeImg = "turntable_thanks_png";
break;
case 1:
prizeImg = "turntable_thanks_png";
break;
case 2:
prizeImg = "turntable_gameTime_png";
break;
case 3:
prizeImg = `turnable_icon${v.propType}_png`;
break;
case 4:
prizeImg = "turntable_wealth_png";
break;
case 5:
prizeImg = "turntable_oupon_png";
break;
case 6:
prizeImg = "turntable_oupon_png";
break;
case 7:
prizeImg = "turntable_oupon_png";
break;
default:
break;
}
v.prizeImg = prizeImg;
RotaryData.key.push(v.categoryType);
if(i >= 6) {
continue;
}
RotaryData.data[v.categoryType] = [{start: i * 60 - 20, end: i * 60 + 20}];
this[`img${i}`].source = v.prizeImg;
}
// // 添加奖品
// let prizeList = [];
// for(let v of data.luckyDrawInfo.prizeList) {
// if(v.categoryType == 1) {
// continue;
// }
// prizeList.push(Utils.deepClone(v));
// }
//
// prizeList.unshift({
// categoryType: 'thanks',
// }, {
// categoryType: 'scratch',
// });
//
// for(let i = 0; i < prizeList.length; i++) {
// let v = prizeList[i];
// let prizeImg = "";
// switch(v.categoryType) {
// case "scratch":
// prizeImg = "turntable_scratch_png";
// break;
// case "thanks":
// prizeImg = "turntable_thanks_png";
// break;
// case 1:
// prizeImg = "turntable_thanks_png";
// break;
// case 2:
// prizeImg = "turntable_gameTime_png";
// break;
// case 3:
// prizeImg = `turnable_icon${v.propType}_png`;
// break;
// case 4:
// prizeImg = "turntable_wealth_png";
// break;
// case 5:
// prizeImg = "turntable_oupon_png";
// break;
// case 6:
// prizeImg = "turntable_oupon_png";
// break;
// case 7:
// prizeImg = "turntable_oupon_png";
// break;
//
// default:
// break;
// }
// v.prizeImg = prizeImg;
// RotaryData.key.push(v.categoryType);
// if(i >= 6) {
// continue;
// }
// RotaryData.data[v.categoryType] = [{start: i * 60 - 20, end: i * 60 + 20}];
// this[`img${i}`].source = v.prizeImg;
// }
if(this.data.onceAgain) { // 再抽一次
this.onTapStart();
}
......
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