Commit 21158fb6 authored by 邱旭's avatar 邱旭

1

parent f2c13f60
...@@ -122,11 +122,13 @@ export default class Turntable extends Panel { ...@@ -122,11 +122,13 @@ export default class Turntable extends Panel {
const data = res.data; const data = res.data;
const code = res.code; const code = res.code;
let id = data.option.categoryType; let id;
if(!success || !data.option) { if(!success || !data.option) {
id = "thanks"; id = "thanks";
} else if(data.isScratchCard) { } else if(data.isScratchCard) {
id = "scratch"; id = "scratch";
}else {
id = data.option.categoryType;
} }
this.rotateByPrize(id, () => { this.rotateByPrize(id, () => {
if(!success) { if(!success) {
......
{ {
"code":"600015", "success": true,
"data":{ "code": "0000000000",
"isScratchCard":false, "desc": "OK",
"option":{ "timestamp": 1572262646931,
"completePercent":"99", "data": {
"prizeImage":"", "isScratchCard": false,
"remainPercent":"剩余进度", "option": null,
"scratchCardTaskId":1, "orderNum": null
"categoryType":4, }
"title":"奖品信息",
"coinType":1,
"maxValue":10,
"minValue":10,
"appItemId":2099,
"img":"http://yun.duiba.com.cn/db_games/1022/111.png",
"name":"虚拟商品名称",
"value":"虚拟商品编码",
"num":10,
"propType":1
},
"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