Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-business
/
scrm-equity
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 6d8e74c1
authored
Sep 03, 2021
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
app环境导航
1 parent
8152e78a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
14 deletions
src/router/index.js
src/store/commonStore.js
src/views/common/appTip.vue
src/router/index.js
View file @
6d8e74c
...
@@ -6,7 +6,7 @@ import {
...
@@ -6,7 +6,7 @@ import {
Notify
Notify
}
from
'vant'
}
from
'vant'
import
store
from
'@/store'
import
store
from
'@/store'
import
{
common
}
from
'../api/api'
import
{
common
,
equity
}
from
'../api/api'
Vue
.
use
(
VueRouter
)
Vue
.
use
(
VueRouter
)
const
router
=
new
VueRouter
({
const
router
=
new
VueRouter
({
routes
,
routes
,
...
@@ -75,15 +75,14 @@ const getSessionAppId = (sid,status) => {
...
@@ -75,15 +75,14 @@ const getSessionAppId = (sid,status) => {
setUserInfo
(
data
);
setUserInfo
(
data
);
if
(
status
)
{
if
(
status
)
{
store
.
commit
(
'reload'
);
store
.
commit
(
'reload'
);
}
else
{
//登录后,查询会员信息,如果已经开通过了会员,就直接跳转到会员页面,不走营销也?
equity
.
getCardInfo
().
then
(
res
=>
{
let
{
code
,
data
}
=
res
;
if
(
code
==
0
&&
data
)
{
router
.
replace
({
name
:
'equity.index'
})
}
})
}
}
// else {
// equity.getCardInfo().then(res => {
// let { code } = res;
// if (code == 0) {
// router.push({name: 'equity.index'})
// }
// })
// }
}
}
})
})
}
}
...
...
src/store/commonStore.js
View file @
6d8e74c
...
@@ -77,10 +77,11 @@ export default {
...
@@ -77,10 +77,11 @@ export default {
router
.
replace
({
name
:
'common.marketing'
})
router
.
replace
({
name
:
'common.marketing'
})
},
},
reload
(
state
)
{
reload
(
state
)
{
console
.
log
(
state
,
'storeRelod方法,已译注'
);
// router.replace({ name: 'common.nothing' })
// router.replace({ name: 'common.nothing' })
setTimeout
(()
=>
{
//
setTimeout(() => {
state
.
lastPath
?
router
.
replace
({
name
:
state
.
lastPath
}):
router
.
replace
({
name
:
'equity.index'
})
//
state.lastPath?router.replace({ name: state.lastPath }):router.replace({name: 'equity.index'})
},
1000
)
//
}, 1000)
}
}
},
},
}
}
src/views/common/appTip.vue
View file @
6d8e74c
...
@@ -6,10 +6,10 @@
...
@@ -6,10 +6,10 @@
<div
:class=
"status?'successText':'failText'"
>
{{
status
?
'领取成功'
:
'领取失败'
}}
</div>
<div
:class=
"status?'successText':'failText'"
>
{{
status
?
'领取成功'
:
'领取失败'
}}
</div>
<div
v-if=
"errorId==0"
class=
"contentText"
:class=
"center?'textCenter':''"
>
<div
v-if=
"errorId==0"
class=
"contentText"
:class=
"center?'textCenter':''"
>
您可关注微信公众号
<span
class=
"boldText"
>
“嘀加智享车生活”
</span>
,
在菜单
<span
class=
"boldText"
>
【车主权益-我的权益】
</span>
使用会员权益
您可关注微信公众号
<span
class=
"boldText"
>
“嘀加智享车生活”
</span>
,
在菜单
<span
class=
"boldText"
>
【车主权益-我的权益】
</span>
使用会员权益
</div>
</div>
<div
v-else-if=
"errorId==20321"
class=
"contentText"
:class=
"center?'textCenter':''"
>
<div
v-else-if=
"errorId==20321"
class=
"contentText"
:class=
"center?'textCenter':''"
>
您已领取过会员体验卡,可关注微信公众号
<span
class=
"boldText"
>
“嘀加智享车生活”
</span>
,
在菜单
<span
class=
"boldText"
>
【车主权益-我的权益】
</span>
使用会员权益
您已领取过会员体验卡,可关注微信公众号
<span
class=
"boldText"
>
“嘀加智享车生活”
</span>
,
在菜单
<span
class=
"boldText"
>
【车主权益-我的权益】
</span>
使用会员权益
</div>
</div>
<div
v-else-if=
"errorId==20320"
class=
"contentText"
:class=
"center?'textCenter':''"
>
{{
message
}}
</div>
<div
v-else-if=
"errorId==20320"
class=
"contentText"
:class=
"center?'textCenter':''"
>
{{
message
}}
</div>
<div
v-if=
"showbtn"
class=
"copy_btn"
@
click=
"copyName"
>
复制公众号名称
</div>
<div
v-if=
"showbtn"
class=
"copy_btn"
@
click=
"copyName"
>
复制公众号名称
</div>
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment