Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-business
/
ddh-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 2064fdab
authored
Jun 02, 2021
by
liwk
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
3997499d
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
49 additions
and
5 deletions
src/App.vue
src/assets/images/sprite.png
src/assets/spritesmith/tuanyou.png
src/router/index.js
src/router/routes.js
src/store/commonStore.js
src/views/common/index.vue
src/views/common/nothing.vue
src/views/equity/road.vue
src/App.vue
View file @
2064fda
...
@@ -27,10 +27,11 @@
...
@@ -27,10 +27,11 @@
</div>
</div>
</template>
</template>
<
script
>
<
script
>
//
import VConsole from 'vconsole'
import
VConsole
from
'vconsole'
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
}
}
},
},
components
:
{
components
:
{
...
@@ -39,7 +40,7 @@ export default {
...
@@ -39,7 +40,7 @@ export default {
},
},
mounted
()
{
mounted
()
{
//
window.vConsole = new VConsole()
window
.
vConsole
=
new
VConsole
()
},
},
methods
:
{
methods
:
{
}
}
...
...
src/assets/images/sprite.png
View file @
2064fda
1.32 MB
|
W:
|
H:
1.32 MB
|
W:
|
H:
2-up
Swipe
Onion skin
src/assets/spritesmith/tuanyou.png
View file @
2064fda
13.8 KB
|
W:
|
H:
13 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/router/index.js
View file @
2064fda
...
@@ -16,6 +16,16 @@ router.beforeEach((to, from, next) => {
...
@@ -16,6 +16,16 @@ router.beforeEach((to, from, next) => {
if
(
to
.
name
!=
'common.phoneLogin'
)
store
.
commit
(
'jumpPath'
,
to
.
name
)
if
(
to
.
name
!=
'common.phoneLogin'
)
store
.
commit
(
'jumpPath'
,
to
.
name
)
const
params
=
getParams
(
window
.
location
.
href
)
const
params
=
getParams
(
window
.
location
.
href
)
if
(
params
.
appId
)
sessionStorage
.
setItem
(
'GL_WX_APPID'
,
params
.
appId
)
if
(
params
.
appId
)
sessionStorage
.
setItem
(
'GL_WX_APPID'
,
params
.
appId
)
window
.
onMessageFromLoginBack
=
(
type
,
userId
,
sessionId
)
=>
{
console
.
log
(
'onMessageFromLoginBack'
,
type
,
userId
,
sessionId
)
if
(
type
==
0
)
{
store
.
commit
(
'reload'
)
}
else
{
store
.
commit
(
'clearSessionId'
)
next
()
}
return
}
if
(
to
.
matched
.
some
(
recode
=>
recode
.
meta
.
wxAuth
))
{
if
(
to
.
matched
.
some
(
recode
=>
recode
.
meta
.
wxAuth
))
{
const
ua
=
navigator
.
userAgent
.
toLowerCase
()
const
ua
=
navigator
.
userAgent
.
toLowerCase
()
if
(
window
.
__wxjs_environment
===
'miniprogram'
)
{
if
(
window
.
__wxjs_environment
===
'miniprogram'
)
{
...
@@ -23,7 +33,6 @@ router.beforeEach((to, from, next) => {
...
@@ -23,7 +33,6 @@ router.beforeEach((to, from, next) => {
next
()
next
()
}
else
{
}
else
{
if
(
ua
.
match
(
/MicroMessenger/i
)
==
'micromessenger'
)
{
if
(
ua
.
match
(
/MicroMessenger/i
)
==
'micromessenger'
)
{
let
userInfo
=
sessionStorage
.
getItem
(
'GL_EQUITY_USER_INFO'
)
let
userInfo
=
sessionStorage
.
getItem
(
'GL_EQUITY_USER_INFO'
)
if
(
userInfo
)
{
if
(
userInfo
)
{
setUserInfo
(
JSON
.
parse
(
userInfo
))
setUserInfo
(
JSON
.
parse
(
userInfo
))
...
...
src/router/routes.js
View file @
2064fda
...
@@ -5,6 +5,7 @@ const pages = {
...
@@ -5,6 +5,7 @@ const pages = {
{
name
:
'activate'
,
title
:
'激活权益'
},
{
name
:
'activate'
,
title
:
'激活权益'
},
{
name
:
'explain'
,
title
:
'常见疑问'
},
{
name
:
'explain'
,
title
:
'常见疑问'
},
{
name
:
'phoneLogin'
,
title
:
'登录'
},
{
name
:
'phoneLogin'
,
title
:
'登录'
},
{
name
:
'nothing'
}
],
],
car
:
[{
car
:
[{
name
:
'marketing'
,
name
:
'marketing'
,
...
...
src/store/commonStore.js
View file @
2064fda
...
@@ -39,6 +39,16 @@ export default {
...
@@ -39,6 +39,16 @@ export default {
},
},
jumpPath
(
state
,
newVal
)
{
jumpPath
(
state
,
newVal
)
{
state
.
lastPath
=
newVal
state
.
lastPath
=
newVal
},
clearSessionId
(
state
)
{
state
.
sessionId
=
''
router
.
replace
({
name
:
'common.index'
})
},
reload
(
state
)
{
router
.
replace
({
name
:
'common.nothing'
})
setTimeout
(()
=>
{
router
.
replace
({
name
:
state
.
lastPath
})
},
100
)
}
}
},
},
}
}
\ No newline at end of file
\ No newline at end of file
src/views/common/index.vue
View file @
2064fda
...
@@ -114,6 +114,7 @@ export default {
...
@@ -114,6 +114,7 @@ export default {
}
}
equity
.
getCardInfo
().
then
(
res
=>
{
equity
.
getCardInfo
().
then
(
res
=>
{
let
{
code
}
=
res
let
{
code
}
=
res
this
.
showToast
(
JSON
.
stringify
(
res
))
if
(
code
==
0
)
{
if
(
code
==
0
)
{
this
.
$router
.
replace
({
name
:
'equity.index'
})
this
.
$router
.
replace
({
name
:
'equity.index'
})
}
}
...
...
src/views/common/nothing.vue
0 → 100644
View file @
2064fda
<
template
>
<div>
</div>
</
template
>
<
script
type=
'text/ecmascript-6'
>
export
default
{
name
:
''
,
data
()
{
return
{
}
},
mounted
()
{
},
methods
:
{
}
}
</
script
>
<
style
scoped
lang=
'scss'
>
</
style
>
\ No newline at end of file
\ No newline at end of file
src/views/equity/road.vue
View file @
2064fda
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
<p>
4、
<span>
服务时间:全年7*24小时
</span></p>
<p>
4、
<span>
服务时间:全年7*24小时
</span></p>
<p>
5、
<span>
救援场景:非事故免费道路救援。
</span></p>
<p>
5、
<span>
救援场景:非事故免费道路救援。
</span></p>
<p>
6、
<span>
服务内容“包括拖车、紧急送油、路边快修、更换轮胎等,相关材料费由车主承担。
</span></p>
<p>
6、
<span>
服务内容“包括拖车、紧急送油、路边快修、更换轮胎等,相关材料费由车主承担。
</span></p>
<p>
7、
<span>
全国救援电话:4008060999转5号键
</span></p>
</div>
</div>
<div
class=
"tips"
>
注:本服务不承接事故类救援,请在需要时联系 您投保的车辆商业险的保险公司协助处理。
</div>
<div
class=
"tips"
>
注:本服务不承接事故类救援,请在需要时联系 您投保的车辆商业险的保险公司协助处理。
</div>
</div>
</div>
...
@@ -27,7 +28,7 @@
...
@@ -27,7 +28,7 @@
</div>
</div>
<div
<div
class=
"phone btn"
class=
"phone btn"
@
click=
"makePhoneCall(
4006123886
)"
@
click=
"makePhoneCall(
'4008060999'
)"
>
>
<div
class=
"sprite-icon icon-equity-phone"
></div>
<div
class=
"sprite-icon icon-equity-phone"
></div>
电话咨询
电话咨询
...
@@ -80,7 +81,7 @@ export default {
...
@@ -80,7 +81,7 @@ export default {
}
}
}
}
.body
{
.body
{
padding
:
24px
3
4
px
20px
;
padding
:
24px
3
0
px
20px
;
font-size
:
12px
;
font-size
:
12px
;
color
:
#333
;
color
:
#333
;
>
div
{
>
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