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
a55457a4
Commit
a55457a4
authored
Nov 26, 2019
by
liu zhuoyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
只留用户页
parent
25b15b3d
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
10 deletions
+9
-10
HelloWorld.vue
src/components/HelloWorld.vue
+2
-3
fetch.js
src/components/axios/fetch.js
+1
-1
router.js
src/router.js
+1
-1
MainPage.vue
src/views/MainPage.vue
+1
-1
SignUp.vue
src/views/SignUp.vue
+2
-2
vue.config.js
vue.config.js
+2
-2
No files found.
src/components/HelloWorld.vue
View file @
a55457a4
...
...
@@ -155,7 +155,7 @@
sessionStorage
.
setItem
(
"jssdk_ready"
,
1
);
});
wx
.
error
(
function
(
err
)
{
alert
(
JSON
.
stringify
(
err
));
//
alert(JSON.stringify(err));
});
// 1秒后,如果还没有jssdk注入,则重新调用注入请求方法
// setTimeout(() => {
...
...
@@ -182,4 +182,4 @@
}
}
};
</
script
>
\ No newline at end of file
</
script
>
src/components/axios/fetch.js
View file @
a55457a4
...
...
@@ -20,7 +20,7 @@ export function fetch(options) {
//所有的请求都会带上这些配置,比如全局都要用的身份信息等。
headers
:
{
'Content-Type'
:
'application/json'
,
'Authorization'
:
process
.
env
.
NODE_ENV
===
'production'
?
(
window
[
'userData'
]
?
window
[
'userData'
].
token
:
''
)
:
"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiZjNhY2E1ZWYwMTk0NDcxZGIzOGQxNTVjMTEyYTU4NTIiLCJvcGVuX2lkIjoib2FwY0cxaFU0c0EwUDdFc2ZvX1VtNmkwOTFtTSIsInVuaW9uX2lkIjoib0xfc0R4SUpuY0FocTBnYTFKOFdlTUlGaFNnRSIsImV4cCI6MTU3
MzY0NjM5MX0.pO22JcmEwpGFwZfxeodcPGApYRg6Ss_KkljIi98cGFw
"
'Authorization'
:
process
.
env
.
NODE_ENV
===
'production'
?
(
window
[
'userData'
]
?
window
[
'userData'
].
token
:
''
)
:
"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiZjNhY2E1ZWYwMTk0NDcxZGIzOGQxNTVjMTEyYTU4NTIiLCJvcGVuX2lkIjoib2FwY0cxaFU0c0EwUDdFc2ZvX1VtNmkwOTFtTSIsInVuaW9uX2lkIjoib0xfc0R4SUpuY0FocTBnYTFKOFdlTUlGaFNnRSIsImV4cCI6MTU3
NDkzNDc2Nn0.MCuBMbzajgUC4wGYiypnPctklspqMxVfOKVYZbU3bgY
"
// 'token_in_header': global_.token,//token从全局变量那里传过来
},
timeout
:
30
*
1000
// 30秒超时
...
...
src/router.js
View file @
a55457a4
...
...
@@ -28,7 +28,7 @@ export default new Router({
routes
:
[
{
path
:
"/"
,
redirect
:
"/
MainPage/SignUp
"
redirect
:
"/
UserCenter
"
},
{
path
:
'/Author'
,
...
...
src/views/MainPage.vue
View file @
a55457a4
...
...
@@ -3,7 +3,7 @@
<router-view/>
<div
class=
"bottom-bar"
>
<div
class=
"bottom-tab"
@
click=
"selectTab('SignUp')"
>
<div
:class=
"['text', currentPage()==='SignUp'?'active':'']"
>
健步挑战赛
</div>
<div
:class=
"['text', currentPage()==='SignUp'?'active':'']"
>
公告
</div>
</div>
<div
class=
"bottom-tab"
@
click=
"selectTab('nowGame')"
v-if=
"!pauseData.is_pause"
>
<div
:class=
"['text', (currentPage()==='MainPagePartakeChallenge'||currentPage()==='MainPageHaveJoinedGame')?'active':'']"
>
{{
index1Name
}}
</div>
...
...
src/views/SignUp.vue
View file @
a55457a4
...
...
@@ -25,7 +25,7 @@
<div
class=
"confirm"
@
click=
"toggleFollowDialog"
>
联系客服
</div>
</div>
</div>
<div
v-else
class=
"challenge-card"
@
click=
"clickCard(item)"
>
<div
v-else
-if=
"!pauseData.is_pause"
class=
"challenge-card"
@
click=
"clickCard(item)"
>
<img
class=
"corner-marker"
src=
"@/images/SignUp/home_tag_bsz.png"
v-if=
"item.status===0"
>
<img
class=
"corner-marker"
src=
"@/images/SignUp/home_tag_zmz.png"
v-if=
"item.status===1"
>
<img
class=
"corner-marker"
src=
"@/images/SignUp/home_tag_yjs.png"
v-if=
"item.status===2"
>
...
...
@@ -298,7 +298,7 @@
.notice-broadcast
{
flex-shrink
:
0
;
margin
:
4.5
rem
0
0.18rem
;
margin
:
2
rem
0
0.18rem
;
}
.notice-container
{
...
...
vue.config.js
View file @
a55457a4
...
...
@@ -2,8 +2,8 @@ let config = {
devServer
:
{
proxy
:
{
'/api'
:
{
//
target: "https://miniapp-api.wxatech.com/game-bsdk/",
target
:
"https://miniapp-testapi.wxatech.com/game-bsdk/"
,
target
:
"https://miniapp-api.wxatech.com/game-bsdk/"
,
//
target: "https://miniapp-testapi.wxatech.com/game-bsdk/",
changeOrigin
:
true
,
pathRewrite
:
{
"^/api"
:
"/api"
...
...
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