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
0f580ea8
Commit
0f580ea8
authored
Apr 04, 2019
by
Caiyijun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完成
parent
4bd65c7a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
16 deletions
+27
-16
main.js
src/main.js
+2
-2
PartakeChallenge.vue
src/views/PartakeChallenge.vue
+24
-13
Record.vue
src/views/Record.vue
+1
-1
No files found.
src/main.js
View file @
0f580ea8
...
@@ -5,8 +5,8 @@ import store from './store'
...
@@ -5,8 +5,8 @@ import store from './store'
import
axios
from
'axios'
import
axios
from
'axios'
import
wx
from
'weixin-js-sdk'
import
wx
from
'weixin-js-sdk'
import
api
from
"@/components/axios/api"
import
api
from
"@/components/axios/api"
import
VConsole
from
'vconsole/dist/vconsole.min.js'
//import vconsole
//
import VConsole from 'vconsole/dist/vconsole.min.js' //import vconsole
let
vConsole
=
new
VConsole
()
// 初始化
//
let vConsole = new VConsole() // 初始化
Vue
.
config
.
productionTip
=
false
Vue
.
config
.
productionTip
=
false
...
...
src/views/PartakeChallenge.vue
View file @
0f580ea8
...
@@ -7,19 +7,19 @@
...
@@ -7,19 +7,19 @@
<div
class=
"game-choose-section"
>
<div
class=
"game-choose-section"
>
<div
class=
"choose-title"
>
每日达标
</div>
<div
class=
"choose-title"
>
每日达标
</div>
<div
class=
"choose-content"
>
<div
class=
"choose-content"
>
<div
v-for=
"(item, index) in partakeStepList"
:class=
"['choose-option', index===partakeStepIndex?'check':'']"
@
click=
"chooseAttribute('partakeStepIndex', index)"
>
{{
item
.
step
}}
步
</div>
<div
v-for=
"(item, index) in partakeStepList"
:class=
"['choose-option', index===partakeStepIndex?'check':'']"
@
click=
"chooseAttribute('partakeStepIndex', index)"
:key =
"index"
>
{{
item
.
step
}}
步
</div>
</div>
</div>
</div>
</div>
<div
class=
"game-choose-section"
>
<div
class=
"game-choose-section"
>
<div
class=
"choose-title"
>
挑战天数
</div>
<div
class=
"choose-title"
>
挑战天数
</div>
<div
class=
"choose-content"
>
<div
class=
"choose-content"
>
<div
v-for=
"(item, index) in partakeDayList"
:class=
"['choose-option', index===partakeDayIndex?'check':'']"
@
click=
"chooseAttribute('partakeDayIndex', index)"
>
{{
item
.
days
}}
天
</div>
<div
v-for=
"(item, index) in partakeDayList"
:class=
"['choose-option', index===partakeDayIndex?'check':'']"
@
click=
"chooseAttribute('partakeDayIndex', index)"
:key =
"index"
>
{{
item
.
days
}}
天
</div>
</div>
</div>
</div>
</div>
<div
class=
"game-choose-section"
>
<div
class=
"game-choose-section"
>
<div
class=
"choose-title"
>
每日契约金
</div>
<div
class=
"choose-title"
>
每日契约金
</div>
<div
class=
"choose-content"
>
<div
class=
"choose-content"
>
<div
v-for=
"(item, index) in partakeMoneyList"
:class=
"['choose-option', index===partakeMoneyIndex?'check':'']"
@
click=
"chooseAttribute('partakeMoneyIndex', index)"
>
{{
item
.
money
}}
元
</div>
<div
v-for=
"(item, index) in partakeMoneyList"
:class=
"['choose-option', index===partakeMoneyIndex?'check':'']"
@
click=
"chooseAttribute('partakeMoneyIndex', index)"
:key =
"index"
>
{{
item
.
money
}}
元
</div>
</div>
</div>
</div>
</div>
<div
class=
"game-total-fee-container"
>
<div
class=
"game-total-fee-container"
>
...
@@ -96,7 +96,7 @@
...
@@ -96,7 +96,7 @@
import
Title
from
"@/components/Title.vue"
;
import
Title
from
"@/components/Title.vue"
;
import
PayFailModal
from
"@/components/PayFailModal.vue"
;
import
PayFailModal
from
"@/components/PayFailModal.vue"
;
import
Modal
from
"@/components/Modal.vue"
;
import
Modal
from
"@/components/Modal.vue"
;
import
{
daka_info
}
from
"@/components/axios/api"
;
import
{
daka_info
,
select_follow
}
from
"@/components/axios/api"
;
import
{
dakaPay
}
from
"@/components/axios/api"
;
import
{
dakaPay
}
from
"@/components/axios/api"
;
export
default
{
export
default
{
...
@@ -131,12 +131,22 @@ export default {
...
@@ -131,12 +131,22 @@ export default {
},
},
created
()
{
created
()
{
this
.
getPageData
();
this
.
getPageData
();
let
followInfo
=
sessionStorage
.
getItem
(
'followInfo'
)
this
.
getFollowInfo
()
if
(
followInfo
){
// let followInfo = sessionStorage.getItem('followInfo')
this
.
followInfo
=
JSON
.
parse
(
followInfo
)
// if(followInfo){
}
// this.followInfo = JSON.parse(followInfo)
// }
},
},
methods
:
{
methods
:
{
getFollowInfo
()
{
select_follow
().
then
(
res
=>
{
console
.
log
(
res
);
if
(
res
.
code
==
0
)
{
this
.
followInfo
=
res
.
data
// sessionStorage.setItem('followInfo',JSON.stringify(res.data))
}
});
},
// 加载页面数据
// 加载页面数据
getPageData
()
{
getPageData
()
{
daka_info
().
then
(
res
=>
{
daka_info
().
then
(
res
=>
{
...
@@ -259,7 +269,11 @@ export default {
...
@@ -259,7 +269,11 @@ export default {
// 同意规则协议
// 同意规则协议
bindArgeement
()
{
bindArgeement
()
{
this
.
argeement
=
!
this
.
argeement
;
this
.
argeement
=
!
this
.
argeement
;
}
},
closePopup
()
{
this
.
needFollow
=
false
;
},
},
},
filters
:
{
filters
:
{
moneyFormatter
(
val
)
{
moneyFormatter
(
val
)
{
...
@@ -269,10 +283,7 @@ export default {
...
@@ -269,10 +283,7 @@ export default {
return
"0.00"
;
return
"0.00"
;
}
}
}
}
},
}
closePopup
()
{
this
.
needFollow
=
false
;
},
};
};
</
script
>
</
script
>
...
...
src/views/Record.vue
View file @
0f580ea8
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
</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=
"goWhereDetail(item.week)"
>
<div
class=
"card-item"
v-for=
"(item,index) in recordList.records"
@
click=
"goWhereDetail(item.week)"
:key =
"index"
>
<div
class=
"card-title"
>
{{
item
.
week
}}
期-
{{
item
.
target_steps
}}
步
{{
item
.
total_days
}}
日耐力赛
<template
v-if=
"item.days"
>
(第
{{
item
.
days
}}
天)
</
template
></div>
<div
class=
"card-title"
>
{{
item
.
week
}}
期-
{{
item
.
target_steps
}}
步
{{
item
.
total_days
}}
日耐力赛
<template
v-if=
"item.days"
>
(第
{{
item
.
days
}}
天)
</
template
></div>
<div
class=
"card-detail-container"
>
<div
class=
"card-detail-container"
>
<div
class=
"detail-item"
>
<div
class=
"detail-item"
>
...
...
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