Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
h5-base
Project
Project
Details
Activity
Releases
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
new-sing
h5-base
Commits
aa54c53a
Commit
aa54c53a
authored
Sep 16, 2019
by
IvyXia123
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
授权后置4
parent
d6ae5a91
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
10 deletions
+26
-10
index.vue
src/components/buy/index.vue
+19
-3
index.vue
src/components/map/index.vue
+6
-7
index.js
src/service/index.js
+1
-0
No files found.
src/components/buy/index.vue
View file @
aa54c53a
...
...
@@ -480,7 +480,7 @@ export default {
if
(
this
.
$route
.
query
.
invite_code
)
{
this
.
invite_code
=
this
.
$route
.
query
.
invite_code
;
}
this
.
user_id
=
JSON
.
parse
(
localStorage
.
getItem
(
"userDesc"
)).
user_id
;
if
(
window
.
location
.
href
.
indexOf
(
"shopId"
)
>
-
1
)
{
this
.
shopId
=
this
.
$route
.
query
.
shopId
;
getGoodsDetailApi
(
this
.
shopId
).
then
(
res
=>
{
...
...
@@ -594,6 +594,8 @@ export default {
});
}
let
userCourse
=
JSON
.
parse
(
localStorage
.
getItem
(
"userCourse"
));
// console.log(localStorage.getItem("userDesc"))
// this.user_id = JSON.parse(localStorage.getItem("userDesc")).user_id;
if
(
userCourse
&&
!
userCourse
.
periods_list
)
{
// 优惠券
...
...
@@ -623,7 +625,21 @@ export default {
this
.
groupSuc
=
status
;
// console.log(status)
}
if
(
!
JSON
.
parse
(
localStorage
.
getItem
(
"userDesc"
)).
mobile
||
JSON
.
parse
(
localStorage
.
getItem
(
"userDesc"
)).
mobile
===
""
)
{
getUserDetailApi
().
then
(
res
=>
{
// debugger
localStorage
.
setItem
(
'userDesc'
,
JSON
.
stringify
(
res
));
if
(
!
JSON
.
parse
(
localStorage
.
getItem
(
"userDesc"
)).
mobile
||
JSON
.
parse
(
localStorage
.
getItem
(
"userDesc"
)).
mobile
===
""
)
{
this
.
bindMobile
.
flag
=
type
;
this
.
bindMobile
.
show
=
true
;
setTimeout
(()
=>
{
this
.
$sa
.
track
(
"ViewRegisterpage"
,
{});
},
1000
);
}
else
{
this
.
goToBuyPage
();
}
}).
catch
((
res
)
=>
{
});
/*if (!JSON.parse(localStorage.getItem("userDesc")).mobile || JSON.parse(localStorage.getItem("userDesc")).mobile === "") {
this.bindMobile.flag = type;
this.bindMobile.show = true;
setTimeout(() => {
...
...
@@ -631,7 +647,7 @@ export default {
}, 1000);
} else {
this.goToBuyPage(type);
}
}
*/
}
}
};
...
...
src/components/map/index.vue
View file @
aa54c53a
...
...
@@ -331,13 +331,12 @@
},
},
mounted
()
{
getNotifyApi
(
this
.
$route
.
query
.
periods_id
).
then
(
res
=>
{
if
(
res
.
time
)
{
if
(
localStorage
.
getItem
(
'promp'
)
==
'1'
)
{
this
.
promp
=
false
}
else
{
this
.
promp
=
true
}
}
)
}
else
{
localStorage
.
setItem
(
'promp'
,
1
)
this
.
promp
=
true
}
},
methods
:{
// 页面初始化
...
...
@@ -906,7 +905,7 @@
height: 100%;
position: absolute;
top: 0;
right:
0
;
right:
10 * @toVw
;
.zhongbian {
width: 22 * @toVw;
height: 22 * @toVw;
...
...
src/service/index.js
View file @
aa54c53a
...
...
@@ -91,6 +91,7 @@ axios.interceptors.request.use(
axios
.
interceptors
.
response
.
use
(
response
=>
{
if
(
response
.
data
.
code
===
501
)
{
console
.
log
(
9898989898
)
// 登录验证
router
.
push
({
name
:
'author'
,
//从哪个页面跳转
...
...
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