Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
html
/
wanda-ball
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a78abfe5
authored
May 27, 2019
by
hank
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分享以及token修改
parent
a2cec90c
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
9 deletions
+9
-9
src/components/Detail.vue
+1
-1
src/modules/store/index.js
+2
-2
src/pages/index/ImgUp.vue
+1
-1
src/pages/index/Shouye.vue
+3
-3
src/pages/user/Photographic.vue
+1
-1
src/pages/user/User.vue
+1
-1
No files found.
src/components/Detail.vue
View file @
a78abfe5
...
@@ -156,7 +156,7 @@ export default {
...
@@ -156,7 +156,7 @@ export default {
axios
axios
.
get
(
'/contest/wechat/info'
,
{
.
get
(
'/contest/wechat/info'
,
{
params
:
{
params
:
{
url
:
encodeURI
(
location
.
href
.
split
(
'#'
)[
0
]
),
url
:
encodeURI
(
`
${
api
.
indexHref
}
?shareId=
${
this
.
currentId
}
`
),
type
:
1
type
:
1
}
}
})
})
...
...
src/modules/store/index.js
View file @
a78abfe5
...
@@ -59,11 +59,11 @@ export default new Vuex.Store({
...
@@ -59,11 +59,11 @@ export default new Vuex.Store({
},
},
setToken
(
state
,
token
)
{
setToken
(
state
,
token
)
{
state
.
token
=
token
state
.
token
=
token
localStorage
.
setItem
(
'token'
,
JSON
.
stringify
(
token
)
)
localStorage
.
setItem
(
'token'
,
token
)
},
},
setType
(
state
,
type
)
{
setType
(
state
,
type
)
{
state
.
type
=
type
state
.
type
=
type
localStorage
.
setItem
(
'type'
,
JSON
.
stringify
(
type
)
)
localStorage
.
setItem
(
'type'
,
type
)
},
},
getAuth
(
state
,
auth
)
{
getAuth
(
state
,
auth
)
{
...
...
src/pages/index/ImgUp.vue
View file @
a78abfe5
...
@@ -65,7 +65,7 @@ export default {
...
@@ -65,7 +65,7 @@ export default {
axios
axios
.
get
(
'/contest/wechat/info'
,
{
.
get
(
'/contest/wechat/info'
,
{
params
:
{
params
:
{
url
:
encodeURI
(
location
.
href
.
split
(
'#'
)[
0
]
),
url
:
encodeURI
(
api
.
indexHref
),
type
:
1
type
:
1
}
}
})
})
...
...
src/pages/index/Shouye.vue
View file @
a78abfe5
...
@@ -547,7 +547,7 @@ export default {
...
@@ -547,7 +547,7 @@ export default {
axios
axios
.
get
(
'/contest/wechat/info'
,
{
.
get
(
'/contest/wechat/info'
,
{
params
:
{
params
:
{
url
:
encodeURI
(
location
.
href
.
split
(
'#'
)[
0
]
),
url
:
encodeURI
(
api
.
indexHref
),
type
:
1
type
:
1
}
}
})
})
...
@@ -696,12 +696,12 @@ export default {
...
@@ -696,12 +696,12 @@ export default {
});
});
wx
.
error
(
function
(
res
)
{
wx
.
error
(
function
(
res
)
{
//
console.log('微信错误');
console
.
log
(
'微信错误'
);
// console.log(res);
// console.log(res);
});
});
})
})
.
catch
(
err
=>
{
.
catch
(
err
=>
{
//
console.log('请求的错误');
console
.
log
(
'请求的错误'
);
// console.log(err);
// console.log(err);
});
});
},
},
...
...
src/pages/user/Photographic.vue
View file @
a78abfe5
...
@@ -58,7 +58,7 @@ export default {
...
@@ -58,7 +58,7 @@ export default {
axios
axios
.
get
(
'/contest/wechat/info'
,
{
.
get
(
'/contest/wechat/info'
,
{
params
:
{
params
:
{
url
:
encodeURI
(
location
.
href
.
split
(
'#'
)[
0
]
),
url
:
encodeURI
(
api
.
indexHref
),
type
:
1
type
:
1
}
}
})
})
...
...
src/pages/user/User.vue
View file @
a78abfe5
...
@@ -164,7 +164,7 @@ export default {
...
@@ -164,7 +164,7 @@ export default {
axios
axios
.
get
(
'/contest/wechat/info'
,
{
.
get
(
'/contest/wechat/info'
,
{
params
:
{
params
:
{
url
:
encodeURI
(
location
.
href
.
split
(
'#'
)[
0
]
),
url
:
encodeURI
(
api
.
indexHref
),
type
:
1
type
:
1
}
}
})
})
...
...
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