import {
    Random
} from 'mockjs';

export const rule = {
    "success": true,
    "data": `活动规则: ${Random.cparagraph(20, 40)}`
};

//获取信息
export const ajaxElement = {
    "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倍"
                }
            ]
        },
        "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"
        },
        "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": "<p><strong>测试测试测试测试测试测试12313123121223131323121233</strong></p><p>测试一测试一下测试一下测试一下测试一下下</p><p>测测试一下测试一下测试一下测试一下测试一下试</p><p><strong>测试</strong></p><p>测试一下</p><p>测试</p><p><strong>测试</strong></p><p>测试一下</p><p>测试</p><p><strong>测试</strong></p><p>测试一下</p><p>测试</p><p><strong>测试</strong></p><p>测试一下</p><p>测试</p><p><strong>测试</strong></p><p>测试一下</p><p>测试9999999999999</p><p><strong>测试</strong></p><p>测试一下</p><p>测试</p><p><strong>测试</strong></p><p>测试一下</p><p>测试</p><p><strong>测试</strong></p><p>测试一11111111111下</p><p>测试</p>",
        "type": "hdtool",
        "element": {
            "isCreditsTypeOpen": false,
            "myCreditsLong": 300,
            "freeLimit": 0,
            "success": false,
            "myCredits": "200",
            "needCredits": "50",
            "freeEmpty": true,
            "needCreditsLong": 50,
            "status": 2
        }
    },
    "success": true,
    "desc": "OK",
    "timestamp": 1548832971636
}

//获取参加状态
export const doJoin = {
    "success": true,
    "code": "E100202007",
    "desc": "OK",
    "timestamp": 1548915321930,
    "data": 123456
}

//轮询新游戏参与状态
export const getNgameStartStatus = {
	"success": true,
	"code": "E100201007",
	"desc": "OK",
	"timestamp": 1550570639368,
	"data": {
		"orderId": "883006813674240289",
		"submitToken": "d895deb9118f4b938d0b70a3dd2ace19",
		"credits": "999999491765",
		"unitName": "金币",
		"consumerCredits": 999999491765
	}
}

//新游戏提交
export const gameSubmit = {
	"success": true,
	"code": "0000000000",
	"desc": "OK",
	"timestamp": 1550646190489,
	"data": {}
}

//游戏提交查询
export const getOrderStatus = {
    "success":true,
    "code":"0000000000",
    "desc":"OK",
    "timestamp":1548923950498,
    "data":{
        "element":{
            "success":false,
            "isCreditsTypeOpen":false,
            "needCredits":"100",
            "myCredits":"999999630434",
            "myCreditsLong":999999630434,
            "needCreditsLong":100,
            "freeLimit":-1,
            "status":1,
            "freeEmpty":true
        },
        "lottery":{
            "id":null,
            "type":"coin",
            "imgUrl":"//yun.duiba.com.cn/aurora/assets/afd0a4a4f2fb207af26fec956f189a663cbb9b4e.png",
            "link":"//yun.duiba.com.cn/aurora/assets/afd0a4a4f2fb207af26fec956f189a663cbb9b4e.png",
            "title":null,
            "itemId":null,
            "appItemId":null,
            "bonus":null,
            "bonusMin":null,
            "bonusMax":null,
            "needAccount":null,
            "appLucky":null,
            "tip":null,
            "useBtnText":null,
            "validate":null,
            "couponCode":null,
            "couponKey":null,
            "stInfoDpmImg":null,
            "stInfoDpmClose":null,
            "stInfoDpmGoUse":null,
            "showUse":null,
            "openUrl":null,
            "iosDownloadUrl":null,
            "androidDownloadUrl":null,
            "isDownloadUrl":null,
            "confirm":null,
            "phaseNumber":null,
            "happyCode":null,
            "appHidden":true,
            "zybangJson":null
        },
        "exposure":null,
        "creditsInfo":{
            "activityId":82567,
            "prizeId":4,
            "orderNum":null,
            "developerBizId":"3029576",
            "score":null,
            "recordStatus":1,
            "errorMsg":null
        },
        "againTag":null
    }
}