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
62d03f4b
You need to sign in or sign up before continuing.
Commit
62d03f4b
authored
Apr 08, 2019
by
穆启卓
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
feddc068
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
fetch.js
src/components/axios/fetch.js
+1
-1
HaveJoinedGame.vue
src/views/HaveJoinedGame.vue
+5
-5
No files found.
src/components/axios/fetch.js
View file @
62d03f4b
...
...
@@ -18,7 +18,7 @@ export function fetch(options) {
//所有的请求都会带上这些配置,比如全局都要用的身份信息等。
headers
:
{
'Content-Type'
:
'application/json'
,
'Authorization'
:
process
.
env
.
NODE_ENV
===
'production'
?
(
window
[
'userData'
]
?
window
[
'userData'
].
token
:
''
)
:
"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAiLCJvcGVuX2lkIjoiMTExMTExMTExMTExMTExMTExMTExMTExMTExMSIsInVuaW9uX2lkIjoiMTExMTExMTExMTExMTExMTExMTExMTExMTExMSIsImV4cCI6MTU1ND
U2MjA2Mn0.eHkAuqQpoZb34KbCAyVzNaunn4Knn77jfC0N5DG5JD0
"
'Authorization'
:
process
.
env
.
NODE_ENV
===
'production'
?
(
window
[
'userData'
]
?
window
[
'userData'
].
token
:
''
)
:
"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAiLCJvcGVuX2lkIjoiMTExMTExMTExMTExMTExMTExMTExMTExMTExMSIsInVuaW9uX2lkIjoiMTExMTExMTExMTExMTExMTExMTExMTExMTExMSIsImV4cCI6MTU1ND
g4OTkzN30.Wrb10H0dVKPr4RzVfuzxrHzM_MTad4So4nzvC0qRuGo
"
// 'token_in_header': global_.token,//token从全局变量那里传过来
},
timeout
:
30
*
1000
// 30秒超时
...
...
src/views/HaveJoinedGame.vue
View file @
62d03f4b
...
...
@@ -27,14 +27,14 @@
<div
class=
"item-title"
>
第
{{
item
.
days
}}
天
</div>
<div
:class=
"item.status===0?'item-status0':item.status===1?'item-status1':item.status===2?'item-status2':'item-status2'"
>
{{
item
.
status
===
0
?
'未开始'
:
item
.
status
===
1
?
'比赛中'
:
item
.
status
===
2
?
'已结束'
:
'已淘汰'
}}
</div>
</div>
<div
class=
"item-income"
v-if=
"item.yj_money"
>
<div
class=
"item-amount"
>
{{
item
.
yj_money
|
moneyFormatter
}}
</div>
<div
class=
"item-text"
>
(元) 预计收益
</div>
</div>
<div
class=
"item-income"
v-else-if=
"item.money"
>
<div
class=
"item-income"
v-if=
"item.money"
>
<div
class=
"item-amount"
>
{{
item
.
money
|
moneyFormatter
}}
</div>
<div
class=
"item-text"
>
(元) 收益
</div>
</div>
<div
class=
"item-income"
v-else-if=
"item.yj_money"
>
<div
class=
"item-amount"
>
{{
item
.
yj_money
|
moneyFormatter
}}
</div>
<div
class=
"item-text"
>
(元) 预计收益
</div>
</div>
<div
class=
"item-income"
v-else
style=
"visibility: hidden;"
>
<div
class=
"item-amount"
>
0.00
</div>
<div
class=
"item-text"
>
(元)
</div>
...
...
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