Commit 4a9d56e0 authored by Friends233's avatar Friends233

玩法组件mock

parent 11e8e763
module.exports = {
"/bindPhone_1/sendSmsCode.do": {
"success": false,
"code": "3245243",
message: '随便',
data: '11324'
},
"/bindPhone_1/bindPhone.do": {
"success": false,
"code": "",
"data": {
"bindResult": true,
"extra": ""
},
message: '随便'
}
}
\ No newline at end of file
module.exports = {
"POST /inviteAssist_1/getInviteCode.do": {
"code": null,
"data": {
"extra": "CustomAssist.getInviteCode",
"inviteCode": "SBF1G4",
"timestamp": 1616998096431
},
"message": null,
"success": true
},
"POST /inviteAssist_1/doAssist.do": {
"code": null,
"data": {
"awardPrizeResult": true,
"extra": null,
"index": 1,
"options": [
{
"optionId": "o693fc73e",
"optionImg": null,
"optionName": "游戏x1",
"position": null,
"prizeId": "sp_1",
"prizeType": 1,
"ruleId": "ru_1",
"url": "null18528"
}
],
"status": true,
"timestamp": 1617002898409
},
"message": null,
"success": true
},
"/inviteAssist_1/queryInviteRecords.do": {
"code": null,
"data": {
"list": [
{
"assistAvatar": "",
"assistNickname": "三胖",
"assistUserId": "2000637",
"extra": null,
"genInviteId": 660,
"gmtCreate": "2021-03-29 14:11:25",
"gmtModified": "2021-03-29 14:11:25",
"id": 38,
"newStatus": true,
"options": [
{
"optionId": "o693fc73e",
"optionImg": null,
"optionName": "游戏x1",
"position": null,
"prizeId": "sp_1",
"prizeType": 1,
"ruleId": "ru_1",
"url": "null18526"
}
],
"playwayId": "inviteAssist_1",
"shareUserId": "1539355"
},
{
"assistAvatar": "",
"assistNickname": "还钱",
"assistUserId": "2000637",
"extra": null,
"genInviteId": 660,
"gmtCreate": "2021-03-29 14:11:25",
"gmtModified": "2021-03-29 14:11:25",
"id": 38,
"newStatus": true,
"options": [
{
"optionId": "o693fc73e",
"optionImg": null,
"optionName": "游戏x1",
"position": null,
"prizeId": "sp_1",
"prizeType": 1,
"ruleId": "ru_1",
"url": "null18526"
}
],
"playwayId": "inviteAssist_1",
"shareUserId": "1539355"
},
{
"assistAvatar": "",
"assistNickname": "抹桌帕",
"assistUserId": "2000637",
"extra": null,
"genInviteId": 660,
"gmtCreate": "2021-03-29 14:11:25",
"gmtModified": "2021-03-29 14:11:25",
"id": 38,
"newStatus": true,
"options": [
{
"optionId": "o693fc73e",
"optionImg": null,
"optionName": "游戏x1",
"position": null,
"prizeId": "sp_1",
"prizeType": 1,
"ruleId": "ru_1",
"url": "null18526"
}
],
"playwayId": "inviteAssist_1",
"shareUserId": "1539355"
},
],
"totalCount": 1,
"totalPage": 1
},
"message": null,
"success": true
},
"/inviteAssist_1/queryAssistRecords.do": {
"code": null,
"data": {
"list": [
{
"assistUserId": "1539355",
"extra": null,
"gmtCreate": "2021-03-29 15:28:13",
"gmtModified": "2021-03-29 15:28:13",
"id": 39,
"playwayId": "inviteAssist_1",
"shareAvatar": "",
"shareNickname": "胖虎",
"shareUserId": "1539357"
}
],
"totalCount": 1,
"totalPage": 1
},
"message": null,
"success": true
},
"/inviteAssist_1/queryNewInviteCount.do": {
"code": null,
"data": 3,
"message": null,
"success": true
}
}
\ No newline at end of file
/**
* Created by rockyl on 2020/10/3.
*/
module.exports = {
'GET /records.query': {
"data": [
{
"extra": {
"name": "优惠券-大转盘04",
"icon": "//yun.dui88.com/images/201907/tua0um9jjp.jpg",
"refType": "coupon",
"refId": "49354",
"type": 2
},
"gmtCreate": 1565197386000,
"id": 325,
"prizeId": "gc1a8c03c"
},
{
"extra": {
"name": "优惠券-大转盘02",
"icon": "//yun.dui88.com/images/201907/tua0um9jjp.jpg",
"refType": "coupon",
"refId": "49354",
"type": 2
},
"gmtCreate": 1565197080000,
"id": 324,
"strategyId": 11,
"prizeId": "g0e432eeb"
},
{
"extra": {
"name": "优惠券-大转盘04",
"icon": "//yun.dui88.com/images/201907/tua0um9jjp.jpg",
"refType": "coupon",
"refId": "49354",
"type": 2
},
"gmtCreate": 1565197386000,
"id": 325,
"prizeId": "gc1a8c03c"
},
{
"extra": {
"name": "优惠券-大转盘02",
"icon": "//yun.dui88.com/images/201907/tua0um9jjp.jpg",
"refType": "coupon",
"refId": "49354",
"type": 2
},
"gmtCreate": 1565197080000,
"id": 324,
"strategyId": 11,
"prizeId": "g0e432eeb"
},
{
"extra": {
"name": "优惠券-大转盘04",
"icon": "//yun.dui88.com/images/201907/tua0um9jjp.jpg",
"refType": "coupon",
"refId": "49354",
"type": 3
},
"gmtCreate": 1565197386000,
"id": 325,
"prizeId": "gc1a8c03c"
},
{
"extra": {
"name": "优惠券-大转盘02优惠券-大转盘02优惠券-大转盘02优惠券-大转盘02优惠券-大转盘02优惠券-大转盘02",
"icon": "//yun.dui88.com/images/201907/tua0um9jjp.jpg",
"refType": "coupon",
"refId": "49354",
"type": 3
},
"gmtCreate": 1565197080000,
"id": 324,
"strategyId": 11,
"prizeId": "g0e432eeb"
}, {
"extra": {
"name": "优惠券-大转盘04",
"icon": "//yun.dui88.com/images/201907/tua0um9jjp.jpg",
"refType": "coupon",
"refId": "49354",
"type": 3
},
"gmtCreate": 1565197386000,
"id": 325,
"prizeId": "gc1a8c03c"
},
{
"extra": {
"name": "优惠券-大转盘02",
"icon": "//yun.dui88.com/images/201907/tua0um9jjp.jpg",
"refType": "coupon",
"refId": "49354",
"type": 2
},
"gmtCreate": 1565197080000,
"id": 324,
"strategyId": 11,
"prizeId": "g0e432eeb"
},
{
"extra": {
"name": "优惠券-大转盘04",
"icon": "//yun.dui88.com/images/201907/tua0um9jjp.jpg",
"refType": "coupon",
"refId": "49354",
"type": 3
},
"gmtCreate": 1565197386000,
"id": 325,
"prizeId": "gc1a8c03c"
},
{
"extra": {
"name": "优惠券-大转盘02",
"icon": "//yun.dui88.com/images/201907/tua0um9jjp.jpg",
"refType": "coupon",
"refId": "49354",
"type": 2
},
"gmtCreate": 1565197080000,
"id": 324,
"strategyId": 11,
"prizeId": "g0e432eeb"
},
{
"extra": {
"name": "10积分",
"icon": "//yun.dui88.com/images/201907/tua0um9jjp.jpg",
"refType": "coupon",
"refId": "49354",
"type": 2
},
"gmtCreate": 1565197386000,
"id": 325,
"prizeId": "gc1a8c03c"
},
{
"extra": {
"name": "优惠券-大转盘02",
"icon": "//yun.dui88.com/images/201907/tua0um9jjp.jpg",
"refType": "coupon",
"refId": "49354",
"type": 2
},
"gmtCreate": 1565197080000,
"id": 324,
"strategyId": 11,
"prizeId": "g0e432eeb"
}, {
"extra": {
"name": "优惠券-大转盘04",
"icon": "//yun.dui88.com/images/201907/tua0um9jjp.jpg",
"refType": "coupon",
"refId": "49354",
"type": 2
},
"gmtCreate": 1565197386000,
"id": 325,
"prizeId": "gc1a8c03c"
},
{
"extra": {
"name": "优惠券-大转盘02",
"icon": "//yun.dui88.com/images/201907/tua0um9jjp.jpg",
"refType": "coupon",
"refId": "49354",
"type": 2
},
"gmtCreate": 1565197080000,
"id": 324,
"strategyId": 11,
"prizeId": "g0e432eeb"
}
],
"success": true
},
}
This diff is collapsed.
...@@ -11,4 +11,6 @@ body { ...@@ -11,4 +11,6 @@ body {
-webkit-text-size-adjust: 100% !important; -webkit-text-size-adjust: 100% !important;
text-size-adjust: 100% !important; text-size-adjust: 100% !important;
-moz-text-size-adjust: 100% !important; -moz-text-size-adjust: 100% !important;
// -webkit-touch-callout: none !important;
// user-select: none;
} }
import getTaskApi from '@spark/api-task'
import getInviteAssistApi from '@spark/api-inviteAssist'
import getBindPhoneApi from '@spark/api-bindPhone'
// 任务玩法组件
const taskApi = getTaskApi('task_1') // 邀请助力玩法组件包
// 邀请助力玩法组件包
const inviteAssistApi = getInviteAssistApi('inviteAssist_1')
const bindPhoneApi = getBindPhoneApi('bindPhone_1')
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