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
851f1a68
Commit
851f1a68
authored
Mar 29, 2019
by
穆启卓
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
47579fa5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
29 additions
and
4 deletions
+29
-4
api.js
src/components/axios/api.js
+10
-0
url.js
src/components/axios/url.js
+2
-0
Author.vue
src/views/Author.vue
+1
-1
HaveJoinedGame.vue
src/views/HaveJoinedGame.vue
+0
-0
PartakeChallenge.vue
src/views/PartakeChallenge.vue
+5
-1
Record.vue
src/views/Record.vue
+11
-2
No files found.
src/components/axios/api.js
View file @
851f1a68
...
@@ -414,6 +414,16 @@ export function daka_status_detail(week, grade) {
...
@@ -414,6 +414,16 @@ export function daka_status_detail(week, grade) {
})
})
}
}
// 比赛详情弹窗
export
function
pop_up_windows
()
{
return
fetch
({
url
:
api
.
pop_up_windows
,
method
:
'GET'
,
params
:
{
}
})
}
//有新接口的时候像上面那样再来一次
//有新接口的时候像上面那样再来一次
// //修改昵称接口
// //修改昵称接口
...
...
src/components/axios/url.js
View file @
851f1a68
...
@@ -87,4 +87,6 @@ export default {
...
@@ -87,4 +87,6 @@ export default {
select_user_signup
:
`
${
api
}
/api/v1/select_user_signup`
,
select_user_signup
:
`
${
api
}
/api/v1/select_user_signup`
,
// 比赛详情
// 比赛详情
daka_status_detail
:
`
${
api
}
/api/v1/daka_status/detail`
,
daka_status_detail
:
`
${
api
}
/api/v1/daka_status/detail`
,
// 比赛详情弹窗
pop_up_windows
:
`
${
api
}
/api/v1/pop_up_windows`
,
}
}
src/views/Author.vue
View file @
851f1a68
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
// alert(inviter + "test2")
// alert(inviter + "test2")
this
.
$http
this
.
$http
.
post
(
"/game-bsdk/api/v1/auth_login"
,
{
.
post
(
"/game-bsdk/api/v1/
oa_
auth_login"
,
{
js_code
:
code
,
js_code
:
code
,
inviter_id
:
inviter
||
""
,
inviter_id
:
inviter
||
""
,
from_type
:
from_type
||
""
from_type
:
from_type
||
""
...
...
src/views/HaveJoinedGame.vue
View file @
851f1a68
This diff is collapsed.
Click to expand it.
src/views/PartakeChallenge.vue
View file @
851f1a68
...
@@ -107,7 +107,11 @@
...
@@ -107,7 +107,11 @@
this
.
isShowPayFail
=
!
this
.
isShowPayFail
this
.
isShowPayFail
=
!
this
.
isShowPayFail
},
},
payToSign
()
{
payToSign
()
{
dakaPay
(
1
).
then
(
response
=>
{
let
nextGame
=
0
;
if
(
this
.
$route
.
query
.
nextGame
)
{
nextGame
=
2
;
}
dakaPay
(
sessionStorage
.
getItem
(
"bushuType"
),
nextGame
).
then
(
response
=>
{
if
(
response
.
code
==
1
)
{
if
(
response
.
code
==
1
)
{
this
.
showModal
(
"温馨提示"
,
response
.
msg
);
this
.
showModal
(
"温馨提示"
,
response
.
msg
);
return
;
return
;
...
...
src/views/Record.vue
View file @
851f1a68
...
@@ -23,8 +23,8 @@
...
@@ -23,8 +23,8 @@
</div>
</div>
</div>
</div>
<div
class=
"card-container-list"
@
scroll=
"onScroll"
>
<div
class=
"card-container-list"
@
scroll=
"onScroll"
>
<div
class=
"card-item"
v-for=
"(item,index) in recordList.records"
@
click=
"
toRecordDetail(item
)"
>
<div
class=
"card-item"
v-for=
"(item,index) in recordList.records"
@
click=
"
goWhereDetail(item.week, item.grade
)"
>
<div
class=
"card-title"
>
{{
item
.
period
}}
期-
{{
item
.
grade
}}
步
{{
item
.
total_days
}}
日耐力赛(第
{{
item
.
days
}}
天)
</div>
<div
class=
"card-title"
>
{{
item
.
week
}}
期-
{{
item
.
target_steps
}}
步
{{
item
.
total_days
}}
日耐力赛(第
{{
item
.
days
}}
天)
</div>
<div
class=
"card-detail-container"
>
<div
class=
"card-detail-container"
>
<div
class=
"detail-item"
>
<div
class=
"detail-item"
>
<div
class=
"item-title"
>
累计奖励金(元)
</div>
<div
class=
"item-title"
>
累计奖励金(元)
</div>
...
@@ -85,6 +85,15 @@
...
@@ -85,6 +85,15 @@
sessionStorage
.
setItem
(
"selectedRecord"
,
JSON
.
stringify
(
item
));
sessionStorage
.
setItem
(
"selectedRecord"
,
JSON
.
stringify
(
item
));
this
.
$router
.
push
({
name
:
"RecordDetail"
})
this
.
$router
.
push
({
name
:
"RecordDetail"
})
},
},
goWhereDetail
(
week
,
grade
)
{
sessionStorage
.
setItem
(
'bushuType'
,
grade
);
this
.
$router
.
push
({
name
:
'HaveJoinedGame'
,
query
:
{
week
:
week
}
});
},
onScroll
(
event
)
{
onScroll
(
event
)
{
if
(
this
.
recordList
.
next_page
&&
this
.
canScroll
)
{
if
(
this
.
recordList
.
next_page
&&
this
.
canScroll
)
{
let
offsetHeight
=
event
.
currentTarget
.
offsetHeight
,
let
offsetHeight
=
event
.
currentTarget
.
offsetHeight
,
...
...
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