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
566e1e53
Commit
566e1e53
authored
Apr 02, 2019
by
Caiyijun
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'remotes/origin/mutou' into dev_yijun
parents
b0de9417
a40b97d8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 additions
and
40 deletions
+1
-40
fetch.js
src/components/axios/fetch.js
+1
-1
ChallengeDetail.vue
src/views/ChallengeDetail.vue
+0
-39
HaveJoinedGame.vue
src/views/HaveJoinedGame.vue
+0
-0
No files found.
src/components/axios/fetch.js
View file @
566e1e53
...
@@ -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': window['userData']?window['userData'].token:''
// 'Authorization': window['userData']?window['userData'].token:''
'Authorization'
:
"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAiLCJvcGVuX2lkIjoiMTExMTExMTExMTExMTExMTExMTExMTExMTExMSIsInVuaW9uX2lkIjoiMTExMTExMTExMTExMTExMTExMTExMTExMTExMSIsImV4cCI6MTU1NDMx
MTMzMH0.4UEG6I9K0JARU5KDMW-Xwx13DMniYelsmI-qWd97e_c
"
'Authorization'
:
"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAiLCJvcGVuX2lkIjoiMTExMTExMTExMTExMTExMTExMTExMTExMTExMSIsInVuaW9uX2lkIjoiMTExMTExMTExMTExMTExMTExMTExMTExMTExMSIsImV4cCI6MTU1NDMx
NzM0NH0.3yWRj-qm-Rk1PcCc7KrifJiuExlzETSBznBxrtYA3dU
"
// 'token_in_header': global_.token,//token从全局变量那里传过来
// 'token_in_header': global_.token,//token从全局变量那里传过来
},
},
timeout
:
30
*
1000
// 30秒超时
timeout
:
30
*
1000
// 30秒超时
...
...
src/views/ChallengeDetail.vue
View file @
566e1e53
...
@@ -147,45 +147,6 @@
...
@@ -147,45 +147,6 @@
closeShareModal
()
{
closeShareModal
()
{
this
.
showShareModal
=
false
this
.
showShareModal
=
false
},
},
//倒计时
countDown
(
times
)
{
clearInterval
(
grabStartTimer
)
grabStartTimer
=
null
grabStartTimer
=
setInterval
(
function
()
{
let
day
=
0
,
hour
=
0
,
minute
=
0
,
second
=
0
//时间默认值
// console.log('times:' + times)
if
(
times
>
0
)
{
day
=
Math
.
floor
(
times
/
(
60
*
60
*
24
))
hour
=
Math
.
floor
(
times
/
(
60
*
60
))
-
(
day
*
24
)
minute
=
Math
.
floor
(
times
/
60
)
-
(
day
*
24
*
60
)
-
(
hour
*
60
)
second
=
Math
.
floor
(
times
)
-
(
day
*
24
*
60
*
60
)
-
(
hour
*
60
*
60
)
-
(
minute
*
60
)
if
(
day
<
1
)
day
=
''
else
day
=
day
+
'天'
if
(
hour
<=
9
)
hour
=
'0'
+
hour
if
(
minute
<=
9
)
minute
=
'0'
+
minute
if
(
second
<=
9
)
second
=
'0'
+
second
this
.
grabTimer
=
(
day
+
hour
+
'时'
+
minute
+
'分'
+
second
+
'秒'
)
}
else
{
clearInterval
(
grabStartTimer
)
// that.setData({
// redpack: {
// ...that.data.redpack,
// redpackStatus: 2
// }
// })
}
times
--
//
//console.log(day + "天:" + hour + "小时:" + minute + "分钟:" + second + "秒");
},
1000
)
}
}
}
}
}
</
script
>
</
script
>
...
...
src/views/HaveJoinedGame.vue
View file @
566e1e53
This diff is collapsed.
Click to expand it.
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