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 e68ec36f
authored
May 24, 2021
by
liwk
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
47e15e16
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
12 deletions
src/router/index.js
src/router/routes.js
src/views/car/marketing.vue
src/views/device/index.vue
src/router/index.js
View file @
e68ec36
import
Vue
from
'vue'
import
Vue
from
'vue'
import
VueRouter
from
'vue-router'
import
VueRouter
from
'vue-router'
import
routes
from
'./routes'
import
routes
from
'./routes'
import
{
Toast
}
from
'vant'
Vue
.
use
(
VueRouter
)
const
router
=
new
VueRouter
({
routes
})
import
{
import
{
Toast
,
Notify
Notify
}
from
'vant'
}
from
'vant'
import
store
from
'@/store'
import
store
from
'@/store'
import
{
common
}
from
'../api/api'
import
{
common
}
from
'../api/api'
Vue
.
use
(
VueRouter
)
const
router
=
new
VueRouter
({
routes
})
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
let
{
meta
:
{
authBase
}
}
=
to
let
{
meta
:
{
authBase
}
}
=
to
if
(
to
.
name
!=
'common.phoneLogin'
)
store
.
commit
(
'jumpPath'
,
to
.
name
)
if
(
to
.
name
!=
'common.phoneLogin'
)
store
.
commit
(
'jumpPath'
,
to
.
name
)
if
(
to
.
matched
.
some
(
recode
=>
recode
.
meta
.
has
Auth
))
{
if
(
to
.
matched
.
some
(
recode
=>
recode
.
meta
.
wx
Auth
))
{
const
ua
=
navigator
.
userAgent
.
toLowerCase
()
const
ua
=
navigator
.
userAgent
.
toLowerCase
()
const
params
=
getParams
(
window
.
location
.
href
)
const
params
=
getParams
(
window
.
location
.
href
)
if
(
window
.
__wxjs_environment
===
'miniprogram'
)
{
if
(
window
.
__wxjs_environment
===
'miniprogram'
)
{
...
...
src/router/routes.js
View file @
e68ec36
const
pages
=
{
const
pages
=
{
equity
:
[{
name
:
'index'
,
has
Auth
:
true
},
{
name
:
'road'
,
title
:
'道路救援'
}],
equity
:
[{
name
:
'index'
,
wx
Auth
:
true
},
{
name
:
'road'
,
title
:
'道路救援'
}],
common
:
[
common
:
[
{
name
:
'index'
,
has
Auth
:
true
},
{
name
:
'index'
,
wx
Auth
:
true
},
{
name
:
'activate'
,
title
:
'激活权益'
},
{
name
:
'activate'
,
title
:
'激活权益'
},
{
name
:
'explain'
,
title
:
'常见疑问'
},
{
name
:
'explain'
,
title
:
'常见疑问'
},
{
name
:
'phoneLogin'
,
title
:
'登录'
},
{
name
:
'phoneLogin'
,
title
:
'登录'
},
...
@@ -11,12 +11,12 @@ const pages = {
...
@@ -11,12 +11,12 @@ const pages = {
title
:
'绑定挪车码'
title
:
'绑定挪车码'
},
{
},
{
name
:
'index'
,
name
:
'index'
,
has
Auth
:
true
,
wx
Auth
:
true
,
title
:
'绑定挪车码'
title
:
'绑定挪车码'
}],
}],
device
:
[{
device
:
[{
name
:
'index'
,
name
:
'index'
,
has
Auth
:
true
,
wx
Auth
:
true
,
authBase
:
true
,
authBase
:
true
,
title
:
'设备关联'
title
:
'设备关联'
},
},
...
...
src/views/car/marketing.vue
View file @
e68ec36
...
@@ -115,7 +115,8 @@ export default {
...
@@ -115,7 +115,8 @@ export default {
},
},
methods
:
{
methods
:
{
jump
()
{
jump
()
{
window
.
location
.
href
=
`
${
window
.
location
.
href
.
split
(
'#'
)[
0
]}
/#/car/index`
const
appId
=
sessionStorage
.
getItem
(
'GL_WX_APPID'
)
window
.
location
.
href
=
`
${
window
.
location
.
href
.
split
(
'#'
)[
0
]}
/#/car/index?appId=
${
appId
}
`
}
}
}
}
}
}
...
...
src/views/device/index.vue
View file @
e68ec36
...
@@ -45,6 +45,9 @@
...
@@ -45,6 +45,9 @@
<div
class=
"add"
>
<div
class=
"add"
>
<div
class=
"sprite-icon icon-device-add"
></div>
<div
class=
"sprite-icon icon-device-add"
></div>
上传安装设备的车辆VIN码
上传安装设备的车辆VIN码
<div
class=
"tips"
>
注:
<div>
VIN码是车辆车架号,通常位于
<br>
汽车前挡风玻璃左/右下角
</div>
</div>
</div>
</div>
</
template
>
</
template
>
</div>
</div>
...
@@ -318,9 +321,21 @@ export default {
...
@@ -318,9 +321,21 @@ export default {
.add
{
.add
{
font-size
:
16px
;
font-size
:
16px
;
color
:
#999999
;
color
:
#999999
;
text-align
:
center
;
.icon-device-add
{
.icon-device-add
{
margin
:
0
auto
10px
;
margin
:
0
auto
10px
;
}
}
.tips
{
margin-top
:
12px
;
color
:
#c6c6c6
;
font-size
:
10px
;
display
:
flex
;
align-items
:
flex-start
;
justify-content
:
center
;
div
{
text-align
:
left
;
}
}
}
}
}
}
}
}
...
...
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