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
1af0a6b4
Commit
1af0a6b4
authored
Apr 12, 2019
by
穆启卓
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去小程序页面取消改为弹框
parent
972bb4a8
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
52 additions
and
10 deletions
+52
-10
FollowDialog.vue
src/components/FollowDialog.vue
+4
-1
go_xcx.jpg
src/images/common/go_xcx.jpg
+0
-0
router.js
src/router.js
+5
-5
HaveJoinedGame.vue
src/views/HaveJoinedGame.vue
+41
-2
SignUp.vue
src/views/SignUp.vue
+1
-1
UserCenter.vue
src/views/UserCenter.vue
+1
-1
No files found.
src/components/FollowDialog.vue
View file @
1af0a6b4
...
@@ -3,9 +3,12 @@
...
@@ -3,9 +3,12 @@
<div
class=
"follow_img"
v-if=
"isKefu==1"
>
<div
class=
"follow_img"
v-if=
"isKefu==1"
>
<img
src=
"https://cos-minigame.wxatech.com/common/study_contact_kefu.jpg"
alt=
""
>
<img
src=
"https://cos-minigame.wxatech.com/common/study_contact_kefu.jpg"
alt=
""
>
</div>
</div>
<div
class=
"follow_img"
v-else
>
<div
class=
"follow_img"
v-else
-if=
"isKefu==2"
>
<img
src=
"https://cos-minigame.wxatech.com/common/walk_daka_account_1.jpg"
alt=
""
>
<img
src=
"https://cos-minigame.wxatech.com/common/walk_daka_account_1.jpg"
alt=
""
>
</div>
</div>
<div
class=
"follow_img"
v-else-if=
"isKefu==3"
>
<img
src=
"../images/common/go_xcx.jpg"
>
</div>
<div
class=
"close_btn"
@
click=
"closeDialog"
>
<div
class=
"close_btn"
@
click=
"closeDialog"
>
<img
src=
"../assets/ic_close3.png"
alt=
""
>
<img
src=
"../assets/ic_close3.png"
alt=
""
>
</div>
</div>
...
...
src/images/common/go_xcx.jpg
0 → 100644
View file @
1af0a6b4
47.5 KB
src/router.js
View file @
1af0a6b4
...
@@ -99,11 +99,11 @@ export default new Router({
...
@@ -99,11 +99,11 @@ export default new Router({
name
:
'HaveJoinedGame'
,
name
:
'HaveJoinedGame'
,
component
:
HaveJoinedGame
component
:
HaveJoinedGame
},
},
{
//
{
path
:
'/GoXCX'
,
//
path: '/GoXCX',
name
:
'GoXCX'
,
//
name: 'GoXCX',
component
:
GoXCX
//
component: GoXCX
},
//
},
{
{
path
:
'/MainPage'
,
path
:
'/MainPage'
,
name
:
'MainPage'
,
name
:
'MainPage'
,
...
...
src/views/HaveJoinedGame.vue
View file @
1af0a6b4
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
<div
class=
"swiper-pagination"
slot=
"pagination"
style=
"opacity: 0"
></div>
<div
class=
"swiper-pagination"
slot=
"pagination"
style=
"opacity: 0"
></div>
</swiper>
</swiper>
<div
class=
"func-btn green-btn"
@
click=
"inviteFriend"
v-if=
"record_list.length&&record_list[0].status === 0"
>
邀请好友来参赛
</div>
<div
class=
"func-btn green-btn"
@
click=
"inviteFriend"
v-if=
"record_list.length&&record_list[0].status === 0"
>
邀请好友来参赛
</div>
<div
class=
"func-btn"
@
click=
"
goOtherPage('GoXCX'
)"
v-else
>
提交今日步数
</div>
<div
class=
"func-btn"
@
click=
"
changeXcxPopup(
)"
v-else
>
提交今日步数
</div>
<div
class=
"next-func-btn"
:style=
"next_period?'background: #5f95e7;':''"
v-if=
"next_signup"
@
click=
"joinNextGame()"
>
{{next_period?`已报名${String(next_period).slice(4,8)}期`:'报名下一期'}}
</div>
<div
class=
"next-func-btn"
:style=
"next_period?'background: #5f95e7;':''"
v-if=
"next_signup"
@
click=
"joinNextGame()"
>
{{next_period?`已报名${String(next_period).slice(4,8)}期`:'报名下一期'}}
</div>
<!-- 报名成功弹框 -->
<!-- 报名成功弹框 -->
<div
class=
"game-status-popup"
v-if=
"userHavePaidGame"
>
<div
class=
"game-status-popup"
v-if=
"userHavePaidGame"
>
...
@@ -111,6 +111,13 @@
...
@@ -111,6 +111,13 @@
<img
class=
"close-btn"
src=
"../images/common/pop_ic_close.png"
@
click=
"closePopup()"
>
<img
class=
"close-btn"
src=
"../images/common/pop_ic_close.png"
@
click=
"closePopup()"
>
</div>
</div>
</div>
</div>
<!-- 提交步数去小程序弹框 -->
<div
class=
"go-xcx-popup"
v-if=
"showXcxPopup"
>
<div
class=
"go-xcx-container"
>
<img
class=
"main-img"
src=
"../images/common/go_xcx.jpg"
>
<img
class=
"close-btn"
src=
"../images/common/pop_ic_close.png"
@
click=
"changeXcxPopup()"
>
</div>
</div>
<ShareModal
v-on:close=
"closeShareModal"
v-if=
"showShareModal"
></ShareModal>
<ShareModal
v-on:close=
"closeShareModal"
v-if=
"showShareModal"
></ShareModal>
</div>
</div>
</template>
</template>
...
@@ -162,7 +169,8 @@ export default {
...
@@ -162,7 +169,8 @@ export default {
current_day
:
0
,
current_day
:
0
,
userHavePaidGame
:
false
,
userHavePaidGame
:
false
,
showShareModal
:
false
,
showShareModal
:
false
,
userData
:
null
userData
:
null
,
showXcxPopup
:
false
};
};
},
},
created
()
{
created
()
{
...
@@ -196,6 +204,9 @@ export default {
...
@@ -196,6 +204,9 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
changeXcxPopup
()
{
this
.
showXcxPopup
=
!
this
.
showXcxPopup
;
},
joinNextGame
()
{
joinNextGame
()
{
if
(
this
.
next_period
)
{
if
(
this
.
next_period
)
{
this
.
$router
.
push
({
this
.
$router
.
push
({
...
@@ -802,4 +813,32 @@ export default {
...
@@ -802,4 +813,32 @@ export default {
}
}
}
}
}
}
.go-xcx-popup
{
position
:
fixed
;
left
:
0
;
top
:
0
;
right
:
0
;
bottom
:
0
;
z-index
:
998
;
background
:
rgba
(
0
,
0
,
0
,
0.5
);
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
.go-xcx-container
{
position
:
relative
;
.main-img
{
width
:
6.4rem
;
height
:
8rem
;
display
:
block
;
}
.close-btn
{
width
:
0.58rem
;
height
:
0.58rem
;
position
:
absolute
;
top
:
-0.88rem
;
right
:
0
;
}
}
}
</
style
>
</
style
>
src/views/SignUp.vue
View file @
1af0a6b4
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
<div
class=
"card-title"
>
{{
item
.
action
}}
期耐力赛
</div>
<div
class=
"card-title"
>
{{
item
.
action
}}
期耐力赛
</div>
<div
class=
"card-time"
>
{{
item
.
already_join
===
1
?
'已参赛'
:
'未参赛'
}}
{{
item
.
period_start
}}
-
{{
item
.
period_end
}}
</div>
<div
class=
"card-time"
>
{{
item
.
already_join
===
1
?
'已参赛'
:
'未参赛'
}}
{{
item
.
period_start
}}
-
{{
item
.
period_end
}}
</div>
<div
class=
"card-info"
>
<div
class=
"card-info"
>
<div
class=
"info-item"
v-if=
"
item.status===0||item.status===2
"
>
<div
class=
"info-item"
v-if=
"
(item.status===0||item.status===2)&&item.people_cnt
"
>
<div
class=
"item-title"
>
达标人数
</div>
<div
class=
"item-title"
>
达标人数
</div>
<div
class=
"item-content"
>
{{
item
.
people_cnt
||
0
}}
</div>
<div
class=
"item-content"
>
{{
item
.
people_cnt
||
0
}}
</div>
</div>
</div>
...
...
src/views/UserCenter.vue
View file @
1af0a6b4
...
@@ -107,7 +107,7 @@
...
@@ -107,7 +107,7 @@
{
{
icon
:
require
(
"../images/UserCenter/ic_my_daka.png"
),
icon
:
require
(
"../images/UserCenter/ic_my_daka.png"
),
text
:
"提交今日步数"
,
text
:
"提交今日步数"
,
router
:
"GoXCX"
isKefu
:
3
},
},
]
]
}
}
...
...
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