Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
walk_daka_h5
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
穆启卓
walk_daka_h5
Commits
972bb4a8
Commit
972bb4a8
authored
Apr 11, 2019
by
穆启卓
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
报名下一期报名过点按钮直接去对应的比赛详情页
parent
3a186f1f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
fetch.js
src/components/axios/fetch.js
+1
-1
HaveJoinedGame.vue
src/views/HaveJoinedGame.vue
+12
-1
No files found.
src/components/axios/fetch.js
View file @
972bb4a8
...
@@ -18,7 +18,7 @@ export function fetch(options) {
...
@@ -18,7 +18,7 @@ export function fetch(options) {
//所有的请求都会带上这些配置,比如全局都要用的身份信息等。
//所有的请求都会带上这些配置,比如全局都要用的身份信息等。
headers
:
{
headers
:
{
'Content-Type'
:
'application/json'
,
'Content-Type'
:
'application/json'
,
'Authorization'
:
process
.
env
.
NODE_ENV
===
'production'
?
(
window
[
'userData'
]
?
window
[
'userData'
].
token
:
''
)
:
"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAiLCJvcGVuX2lkIjoiMTExMTExMTExMTExMTExMTExMTExMTExMTExMSIsInVuaW9uX2lkIjoiMTExMTExMTExMTExMTExMTExMTExMTExMTExMSIsImV4cCI6MTU1N
DkwMzIwOX0.vp0jBmcncqDzk0TwPt4-_XL5JdPXvTxNQ-u_ps7-7Do
"
'Authorization'
:
process
.
env
.
NODE_ENV
===
'production'
?
(
window
[
'userData'
]
?
window
[
'userData'
].
token
:
''
)
:
"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAiLCJvcGVuX2lkIjoiMTExMTExMTExMTExMTExMTExMTExMTExMTExMSIsInVuaW9uX2lkIjoiMTExMTExMTExMTExMTExMTExMTExMTExMTExMSIsImV4cCI6MTU1N
TE3MDIxOH0.fEIhvDaUlX5NKBm4XUvZFs8lMmIWMq11sfE_Wt_wRZE
"
// 'token_in_header': global_.token,//token从全局变量那里传过来
// 'token_in_header': global_.token,//token从全局变量那里传过来
},
},
timeout
:
30
*
1000
// 30秒超时
timeout
:
30
*
1000
// 30秒超时
...
...
src/views/HaveJoinedGame.vue
View file @
972bb4a8
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
</swiper>
</swiper>
<div
class=
"func-btn green-btn"
@
click=
"inviteFriend"
v-if=
"record_list.length&&record_list[0].status === 0"
>
邀请好友来参赛
</div>
<div
class=
"func-btn green-btn"
@
click=
"inviteFriend"
v-if=
"record_list.length&&record_list[0].status === 0"
>
邀请好友来参赛
</div>
<div
class=
"func-btn"
@
click=
"goOtherPage('GoXCX')"
v-else
>
提交今日步数
</div>
<div
class=
"func-btn"
@
click=
"goOtherPage('GoXCX')"
v-else
>
提交今日步数
</div>
<div
class=
"next-func-btn"
v-if=
"next_signup"
@
click=
"joinNextGame()"
>
报名下一期
</div>
<div
class=
"next-func-btn"
:style=
"next_period?'background: #5f95e7;':''"
v-if=
"next_signup"
@
click=
"joinNextGame()"
>
{{next_period?`已报名${String(next_period).slice(4,8)}期`:'报名下一期'}}
</div>
<!-- 报名成功弹框 -->
<!-- 报名成功弹框 -->
<div
class=
"game-status-popup"
v-if=
"userHavePaidGame"
>
<div
class=
"game-status-popup"
v-if=
"userHavePaidGame"
>
<div
class=
"game-status-container"
>
<div
class=
"game-status-container"
>
...
@@ -152,6 +152,7 @@ export default {
...
@@ -152,6 +152,7 @@ export default {
showSwiper
:
false
,
showSwiper
:
false
,
bet_bonus
:
"0.00"
,
bet_bonus
:
"0.00"
,
next_signup
:
false
,
next_signup
:
false
,
next_period
:
''
,
period_end
:
""
,
period_end
:
""
,
period_start
:
""
,
period_start
:
""
,
total_signup
:
0
,
total_signup
:
0
,
...
@@ -196,12 +197,21 @@ export default {
...
@@ -196,12 +197,21 @@ export default {
},
},
methods
:
{
methods
:
{
joinNextGame
()
{
joinNextGame
()
{
if
(
this
.
next_period
)
{
this
.
$router
.
push
({
name
:
"HaveJoinedGame"
,
query
:
{
week
:
this
.
next_period
}
});
}
else
{
this
.
$router
.
push
({
this
.
$router
.
push
({
name
:
"PartakeChallenge"
,
name
:
"PartakeChallenge"
,
query
:
{
query
:
{
nextGame
:
true
nextGame
:
true
}
}
});
});
}
},
},
goOtherPage
(
pageName
)
{
goOtherPage
(
pageName
)
{
this
.
$router
.
push
({
name
:
pageName
});
this
.
$router
.
push
({
name
:
pageName
});
...
@@ -235,6 +245,7 @@ export default {
...
@@ -235,6 +245,7 @@ export default {
}
}
this
.
bet_bonus
=
pageData
.
bet_bonus
;
this
.
bet_bonus
=
pageData
.
bet_bonus
;
this
.
next_signup
=
pageData
.
next_signup
;
this
.
next_signup
=
pageData
.
next_signup
;
this
.
next_period
=
pageData
.
next_period
;
this
.
period_end
=
pageData
.
period_end
;
this
.
period_end
=
pageData
.
period_end
;
this
.
period_start
=
pageData
.
period_start
;
this
.
period_start
=
pageData
.
period_start
;
this
.
total_signup
=
pageData
.
total_signup
;
this
.
total_signup
=
pageData
.
total_signup
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment