Commit 0f3d17a7 authored by 王勇霞's avatar 王勇霞

feat: 整理

parent 63c023af
export default [
{
url: '/inviteAssist_1/getInviteCode.do',
response: ({ query }) => {
response: () => {
return {
"code": null,
"data": {
......
export default [
{
url: `/home/tradeDraw.do`,
response: ({ query }) => {
return {
"success": "enim ut velit",
"data": {
"prizeImg": "in velit dolor",
"prizeName": "do",
"prizeId": "1" // thanks
},
"message": "est fugiat in Excepteur dolor",
"code": "commodo"
}
},
},
{
url: `/redRain/submitGame.do`,
response: ({ query }) => {
return {
"success": "proident exercitation",
"data": {
"prizeImg": "ipsum in mollit",
"prizeName": "reprehenderit ex ut esse"
},
"message": "reprehenderit laboris Excepteur",
"code": "ullamco commodo"
}
},
},
{
url: `/redRain/startGame.do`,
response: ({ query }) => {
return {
"success": "Duis incididunt dolor deserunt ut",
"data": {
"currentRecordId": "fugiat"
},
"message": "consequat aute",
"code": "anim incididunt"
}
},
}
]
\ No newline at end of file
......@@ -3,7 +3,7 @@ export default [
{
url: '/getTokenKey',
method: 'get',
response: ({query}) => {
response: () => {
return `/*kAYom*/var/*r09wG8etE2C0Ww*/__znEpIi/*NQu8hjl0pN*/=\u0053\u0074\u0072\u0069\u006e\u0067
/*oOKm61nGC*/./*azF3poNNY*/\u0066r\u006fm\u0043ha\u0072C\u006fde/*p0scllAOdTIKgCQ*/;
var/*SSGyGa*/_x_PHl = [/*TI3296OxdeL5hVix2TN*/346,2778,2017,2853,3444,/*bkKvcNtSusbemP*/];//zEYRSemnjOjcNUASL
......@@ -38,7 +38,7 @@ _$xdxE(0x0|0xb1e),_$Hel(03634)/*KhGbUVwyZRLYya*/));/*qSvuXGoAFMLnuM7BiqR*/`
{
url: '/getToken',
method: 'get',
response: ({query}) => {
response: () => {
return {
"success": true,
"message": null,
......
......@@ -48,87 +48,14 @@ const API = generateAPI({
// 理财成绩-首页
drawIndex: "draw/index.do",
// =============
// getShareInfo: '/wechatShare/getShareInfo/v2',
getShareInfo: '/wechatMiniApp/ticket/info',
// cookie丢失-重新设置cookie
resetCookie: "/autoLogin/resetCookie",
userLogin: {
uri: "userLogin.check",
showMsg: false,
},
getInviteCode: {
uri: 'inviteAssist_1/getInviteCode.do',
withToken: true,
method: 'post',
},
doAssist: {
uri: 'inviteAssist_1/doAssist.do',
withToken: true,
method: 'post',
showMsg: false,
},
/** 二维码 */
getQrcode: "/customActivity/qrcode/getQrcode",
// 免登-华夏理财
doAuth: {
uri: "/customActivity/hxlc/login",
method: 'post',
headers: {
'Content-Type': 'application/json',
},
},
// 首页-查询服务协议
coop_queryAgreement: "home/coop_queryAgreement.do",
// 首页-校验验证码并登录(渠道5-昆仑银行使用)
coop_checkCode: {
uri: 'home/coop_checkCode.do',
method: 'post',
},
// 首页-校验验证码并登录(渠道1-华夏理财,渠道2-华夏银行使用)
checkCode: {
uri: 'home/checkCode.do',
method: 'post',
},
// 首页-发送验证码
coop_sendCode: {
uri: 'home/coop_sendCode.do',
method: 'post',
},
// 签到-签到
doCheckIn: "home/doCheckIn.do",
// 签到-领奖
doRewards: "home/doRewards.do",
// 新人礼抽奖
newbieDraw: `home/tradeDraw.do`,
// 红包雨开始游戏
redStartGame: `redRain/startGame.do`,
// 红包雨提交
redSubmitGame: `redRain/submitGame.do`,
/** 分享落地页接口 */
getSharePageInfo: "invite/coop_queryRecommand.do",
// 获取任务列表的接口
getTaskList: "task/queryTasks.do",
// 完成任务接口
completeTask: "task/doCompleted.do",
// 任务领奖接口
sendPrizeTask: "task/sendPrize.do",
// 查询题目
queryQS: "answer_1/query.do",
// 开始答题
startQS: {
uri: "answer_1/start.do",
......@@ -154,6 +81,43 @@ const API = generateAPI({
withToken: true,
},
// =============
// getShareInfo: '/wechatShare/getShareInfo/v2',
// getShareInfo: '/wechatMiniApp/ticket/info',
// userLogin: {
// uri: "userLogin.check",
// showMsg: false,
// },
getInviteCode: {
uri: 'inviteAssist_1/getInviteCode.do',
withToken: true,
method: 'post',
},
doAssist: {
uri: 'inviteAssist_1/doAssist.do',
withToken: true,
method: 'post',
showMsg: false,
},
/** 二维码 */
// getQrcode: "/customActivity/qrcode/getQrcode",
// 免登-华夏理财
doAuth: {
uri: "/customActivity/hxlc/login",
method: 'post',
headers: {
'Content-Type': 'application/json',
},
},
/** 分享落地页接口 */
getSharePageInfo: "invite/coop_queryRecommand.do",
doAsistInSharePage: {
uri: "invite/coop_assist.do",
},
......@@ -164,6 +128,4 @@ const API = generateAPI({
}
})
// console.log('======', API)
export default API
......@@ -98,22 +98,6 @@ class HomePage extends React.Component<any, any> {
PageCtrl.changePage(MyQradesPage)
})
/** 已签到 */
signedHandle = _asyncThrottle(async () => {
if (!store.judgeActTime()) return
Toast.show("今日已签到")
})
/** 签到 */
signHandle = _asyncThrottle(async () => {
if (!store.judgeActTime()) return
const { success } = await API.doCheckIn();
if (success) {
Toast.show("签到成功")
}
await store.updateIndex();
})
/** 切换tab */
toggleTab = async (type) => {
this.setState({ curTab: type })
......
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