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
c3e8149b
Commit
c3e8149b
authored
Apr 02, 2019
by
Caiyijun
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'remotes/origin/mutou' into dev_yijun
parents
0bf7d45b
b6d8d3c1
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
36 additions
and
29 deletions
+36
-29
NoticeBonus.vue
src/components/NoticeBonus.vue
+9
-7
fetch.js
src/components/axios/fetch.js
+10
-10
shadow-bg.png
src/images/SignUp/shadow-bg.png
+0
-0
ChallengeDetail.vue
src/views/ChallengeDetail.vue
+9
-7
HaveJoinedGame.vue
src/views/HaveJoinedGame.vue
+0
-0
PartakeChallenge.vue
src/views/PartakeChallenge.vue
+7
-4
SignUp.vue
src/views/SignUp.vue
+1
-1
No files found.
src/components/NoticeBonus.vue
View file @
c3e8149b
<
template
>
<div>
<div
class=
"notice_bonus"
v-if=
"isShowNotice"
>
<img
class=
"icon_container"
src=
"../images/components/NoticeBonus/sy_guangbo.png"
alt=
""
>
<div
ref=
"container"
class=
"msg_container"
>
...
...
@@ -9,6 +10,7 @@
<div
:class=
"['notice_msg', startAnimate?'msg2':'']"
>
{{
msg2
}}
</div>
</div>
</div>
</div>
</
template
>
<
style
>
...
...
@@ -122,13 +124,13 @@
</
style
>
<
script
>
import
{
gameInfo
}
from
"@/components/axios/api"
;
import
{
gameInfo
}
from
"@/components/axios/api"
export
default
{
name
:
"NoticeBonus"
,
data
()
{
return
{
isShowNotice
:
false
,
isShowNotice
:
false
,
notice_list
:
[],
gameInfo
:
{
"fly_top"
:
[],
...
...
@@ -140,7 +142,7 @@
msg1
:
""
,
msg2
:
""
,
};
}
},
// props: ["notice_list"],
// computed: {
...
...
@@ -151,12 +153,12 @@
methods
:
{
stopScroll
(
e
)
{
console
.
log
(
e
)
e
.
preventDefault
();
e
.
preventDefault
()
},
getGameInfo
(
nonRefresh
)
{
gameInfo
().
then
(
result
=>
{
console
.
log
(
"result"
,
result
)
if
(
result
.
code
==
0
)
{
if
(
result
.
code
==
0
&&
result
.
data
.
lenght
>
0
)
{
let
fly_bot
=
result
.
data
.
fly_bot
let
fly_top
=
result
.
data
.
fly_top
let
len
=
Math
.
max
(
fly_bot
.
length
,
fly_top
.
length
)
...
...
@@ -171,7 +173,7 @@
this
.
msg2
=
this
.
notice_list
[
1
]
console
.
log
(
"this.notice_list"
,
this
.
notice_list
)
this
.
isShowNotice
=
true
this
.
isShowNotice
=
true
}
})
},
...
...
@@ -204,5 +206,5 @@
mounted
()
{
this
.
msgAnimate
()
}
};
}
</
script
>
src/components/axios/fetch.js
View file @
c3e8149b
...
...
@@ -30,16 +30,16 @@ export function fetch(options) {
resolve
(
response
.
data
);
//把请求到的数据发到引用请求的地方
})
.
catch
(
error
=>
{
//
console.log('请求异常信息:', error);
//
console.log(error);
//
if (error.response.status == 401) {
//
localStorage.setItem('last_url', location.hash.slice(1));
//
localStorage.setItem('walk_userData', '');
//
location.replace('#/Author');
//
// this.$router.push({name:"Author"})
//
} else {
//
reject(error);
//
}
console
.
log
(
'请求异常信息:'
,
error
);
console
.
log
(
error
);
if
(
error
.
response
.
status
==
401
)
{
localStorage
.
setItem
(
'last_url'
,
location
.
hash
.
slice
(
1
));
localStorage
.
setItem
(
'walk_userData'
,
''
);
location
.
replace
(
'#/Author'
);
// this.$router.push({name:"Author"})
}
else
{
reject
(
error
);
}
});
});
...
...
src/images/SignUp/shadow-bg.png
0 → 100644
View file @
c3e8149b
9.07 KB
src/views/ChallengeDetail.vue
View file @
c3e8149b
...
...
@@ -189,12 +189,14 @@
width
:
6.4rem
;
padding
:
0.3rem
0
;
box-sizing
:
border-box
;
background
:
linear-gradient
(
90deg
,
rgba
(
255
,
255
,
255
,
0
),
#1a285a
,
rgba
(
255
,
255
,
255
,
0
)
);
background
:
url("../images/SignUp/shadow-bg.png")
no-repeat
center
center
;
background-size
:
contain
;
/*background: linear-gradient(*/
/* 90deg,*/
/* rgba(255, 255, 255, 0),*/
/* #1a285a,*/
/* rgba(255, 255, 255, 0)*/
/*);*/
margin-top
:
2.38rem
;
.bonus-title
{
font-size
:
0.3rem
;
...
...
@@ -279,7 +281,7 @@
color
:
#fff
;
font-weight
:
bold
;
text-align
:
center
;
margin-top
:
2.24
rem
;
margin-top
:
1.1
rem
;
}
}
</
style
>
src/views/HaveJoinedGame.vue
View file @
c3e8149b
This diff is collapsed.
Click to expand it.
src/views/PartakeChallenge.vue
View file @
c3e8149b
...
...
@@ -171,12 +171,15 @@
this
.
modalShown
=
true
},
showSuccess
()
{
this
.
showModal
(
"温馨提示"
,
"报名成功"
,
{
scb
:
()
=>
{
sessionStorage
.
setItem
(
'userHaveJoinGame'
,
'true'
)
sessionStorage
.
setItem
(
'userHavePaidGame'
,
'true'
);
this
.
$router
.
push
({
name
:
"HaveJoinedGame"
})
}
})
// this.showModal("温馨提示", "报名成功", {
// scb: () => {
// sessionStorage.setItem('userHaveJoinGame', 'true')
// sessionStorage.setItem('userHavePaidGame', 'true');
// }
// })
},
closeFree
()
{
this
.
showFreeModal
=
false
...
...
src/views/SignUp.vue
View file @
c3e8149b
...
...
@@ -86,7 +86,7 @@
this
.
getPageData
(
grade
)
}
else
{
// console.log('grade 0',grade)
this
.
getPageData
()
this
.
getPageData
(
this
.
choosedLevel
)
}
},
mounted
()
{
...
...
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