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
fcc08147
Commit
fcc08147
authored
Apr 04, 2019
by
穆启卓
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支付大改
parent
f4f773cb
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
api.js
src/components/axios/api.js
+5
-2
fetch.js
src/components/axios/fetch.js
+1
-1
PartakeChallenge.vue
src/views/PartakeChallenge.vue
+0
-0
No files found.
src/components/axios/api.js
View file @
fcc08147
...
@@ -151,7 +151,7 @@ export function ocFollow() { //lookOption是你要调用接口的名字,issuer
...
@@ -151,7 +151,7 @@ export function ocFollow() { //lookOption是你要调用接口的名字,issuer
}
}
// 报名支付
// 报名支付
export
function
dakaPay
(
days
,
use_contract
)
{
export
function
dakaPay
(
paramStep
,
paramDay
,
paramMoney
,
nextGame
,
use_contract
)
{
let
now
=
new
Date
();
let
now
=
new
Date
();
let
year
=
now
.
getFullYear
();
let
year
=
now
.
getFullYear
();
let
month
=
now
.
getMonth
()
+
1
;
let
month
=
now
.
getMonth
()
+
1
;
...
@@ -173,7 +173,10 @@ export function dakaPay(days,use_contract) {
...
@@ -173,7 +173,10 @@ export function dakaPay(days,use_contract) {
use_contract
:
use_contract
||
0
,
use_contract
:
use_contract
||
0
,
inviter_id
:
inviter
||
''
,
inviter_id
:
inviter
||
''
,
from_type
:
from_type
||
''
,
from_type
:
from_type
||
''
,
days
:
days
||
0
days
:
nextGame
||
0
,
challenge_step
:
paramStep
,
all_days
:
paramDay
,
capital
:
paramMoney
,
}
}
})
})
}
}
...
...
src/components/axios/fetch.js
View file @
fcc08147
...
@@ -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.eyJ1c2VyX2lkIjoiMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAiLCJvcGVuX2lkIjoiMTExMTExMTExMTExMTExMTExMTExMTExMTExMSIsInVuaW9uX2lkIjoiMTExMTExMTExMTExMTExMTExMTExMTExMTExMSIsImV4cCI6MTU1ND
Q1NzU3Mn0.ehCAENl8zjdMyF4y44Z2-XEascaDhEbUF3BaNsWbfY8
"
'Authorization'
:
process
.
env
.
NODE_ENV
===
'production'
?
(
window
[
'userData'
]?
window
[
'userData'
].
token
:
''
)
:
"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAiLCJvcGVuX2lkIjoiMTExMTExMTExMTExMTExMTExMTExMTExMTExMSIsInVuaW9uX2lkIjoiMTExMTExMTExMTExMTExMTExMTExMTExMTExMSIsImV4cCI6MTU1ND
U2MjA2Mn0.eHkAuqQpoZb34KbCAyVzNaunn4Knn77jfC0N5DG5JD0
"
// 'token_in_header': global_.token,//token从全局变量那里传过来
// 'token_in_header': global_.token,//token从全局变量那里传过来
},
},
timeout
:
30
*
1000
// 30秒超时
timeout
:
30
*
1000
// 30秒超时
...
...
src/views/PartakeChallenge.vue
View file @
fcc08147
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