Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
4d9ee245
Commit
4d9ee245
authored
Nov 11, 2021
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
核验车辆
parent
9d4ec49a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
57 additions
and
17 deletions
+57
-17
src/pages/login/index.vue
+2
-1
src/pages/wo/verification/index.vue
+55
-16
No files found.
src/pages/login/index.vue
View file @
4d9ee245
...
...
@@ -231,7 +231,8 @@ export default {
console
.
log
(
this
.
$store
.
state
.
mixid
,
'mixid------230'
)
//冬奥会测试赛(mixid=CL)定制一键登录直接返回不用手机号
let
isCertified
=
false
;
if
(
this
.
$store
.
state
.
mixid
==
'CL'
)
{
// this.mpApp.globalData.shopInfo.outCode正式环境提审测试赛项目 这个值后台改为1 审核通过改为空
if
(
this
.
$store
.
state
.
mixid
==
'CL'
&&
this
.
mpApp
.
globalData
.
shopInfo
.
outCode
==
''
)
{
isCertified
=
res
.
data
.
data
.
isCertified
==
'true'
if
(
isCertified
&&
res
.
data
.
data
.
sessionId
)
{
//有账号
...
...
src/pages/wo/verification/index.vue
View file @
4d9ee245
...
...
@@ -18,36 +18,66 @@
<div
class=
"checkBtn flex"
@
click=
"toCheck"
>
核验
</div>
</div>
</div>
<div
class=
"userInfo"
v-if=
"showInfo"
>
<div
v-show=
"showInfo"
>
<div
class=
"userInfo"
v-if=
"isUser"
>
<div
class=
"img"
>
<image
mode=
"aspectFill"
:src=
"userInfo.handImage"
alt=
""
></image>
<image
mode=
"aspectFill"
:src=
"userInfo.handImage"
alt=
""
></image>
</div>
<div
class=
"cell flex"
>
<div
class=
"label"
>
姓名
</div>
<div
class=
"val"
>
{{
userInfo
.
customerName
}}
</div>
<div
class=
"val"
>
{{
userInfo
.
customerName
}}
</div>
</div>
<div
class=
"cell flex"
>
<div
class=
"label"
>
单位
</div>
<div
class=
"val"
>
{{
userInfo
.
company
}}
</div>
<div
class=
"val"
>
{{
userInfo
.
company
}}
</div>
</div>
<div
class=
"cell flex"
>
<div
class=
"label"
>
身份
</div>
<div
class=
"val"
>
{{
userInfo
.
identity
}}
</div>
<div
class=
"val"
>
{{
userInfo
.
identity
}}
</div>
</div>
<div
class=
"cell flex"
>
<div
class=
"label"
>
工作地点
</div>
<div
class=
"val"
>
{{
userInfo
.
workArea
}}
</div>
<div
class=
"val"
>
{{
userInfo
.
workArea
}}
</div>
</div>
<div
class=
"cell flex"
>
<div
class=
"label"
>
就餐地点
</div>
<div
class=
"val"
>
{{
userInfo
.
diningPlace
}}
</div>
<div
class=
"val"
>
{{
userInfo
.
diningPlace
}}
</div>
</div>
</div>
<div
v-if=
"loaded && !showInfo"
class=
"noInfo"
>
暂无人员信息
</div>
<div
class=
"userInfo"
v-else
>
<div
class=
"cell flex"
>
<div
class=
"label"
>
工作单位
</div>
<div
class=
"val"
>
{{
carInfo
.
companyName
}}
</div>
</div>
<div
class=
"cell flex"
>
<div
class=
"label"
>
车牌号
</div>
<div
class=
"val"
>
{{
carInfo
.
numberPlate
}}
</div>
</div>
<div
class=
"cell flex"
>
<div
class=
"label"
>
车辆颜色
</div>
<div
class=
"val"
>
{{
carInfo
.
vehicleColor
}}
</div>
</div>
<div
class=
"cell flex"
>
<div
class=
"label"
>
车辆类型
</div>
<div
class=
"val"
>
{{
carInfo
.
vehicleType
}}
</div>
</div>
<div
class=
"cell flex"
>
<div
class=
"label"
>
驾驶员姓名
</div>
<div
class=
"val"
>
{{
carInfo
.
driverName
}}
</div>
</div>
<div
class=
"cell flex"
>
<div
class=
"label"
>
工作区域
</div>
<div
class=
"val"
>
{{
carInfo
.
workArea
}}
</div>
</div>
<div
class=
"cell flex"
>
<div
class=
"label"
>
车辆用途
</div>
<div
class=
"val"
>
{{
carInfo
.
vehicleUse
}}
</div>
</div>
</div>
</div>
<div
v-if=
"loaded && !showInfo"
class=
"noInfo"
>
暂无
{{
isUser
?
"人员"
:
"车辆"
}}
信息
</div>
<template
v-if=
"showInfo"
>
<div
class=
"seat"
></div>
<div
class=
"btm flex"
>
...
...
@@ -58,8 +88,8 @@
</template>
<
script
type=
"text/ecmascript-6"
>
import
index
from
"@/api/index"
import
{
DFSImg
}
from
'@/utils/common.js'
import
index
from
"@/api/index"
;
import
{
DFSImg
}
from
"@/utils/common.js"
;
export
default
{
name
:
"verification"
,
data
()
{
...
...
@@ -67,7 +97,9 @@ export default {
checkText
:
""
,
showInfo
:
false
,
loaded
:
false
,
isUser
:
true
,
//是人员 false:车辆
userInfo
:
{},
carInfo
:
{},
};
},
components
:
{},
...
...
@@ -118,15 +150,22 @@ export default {
wx
.
showLoading
({
title
:
"加载中..."
,
});
this
.
isUser
=
true
;
this
.
showInfo
=
false
;
this
.
loaded
=
false
;
index
.
getInfoByUniqueCode
(
this
.
checkText
).
then
((
res
)
=>
{
wx
.
hideLoading
();
this
.
loaded
=
true
;
if
(
res
.
data
.
ok
==
"true"
&&
res
.
data
.
data
)
{
this
.
showInfo
=
true
;
// carOrUser 0人 1车
if
(
res
.
data
.
data
.
carOrUser
-
0
==
0
)
{
this
.
userInfo
=
res
.
data
.
data
.
uniqueScanUserInfoDTO
;
this
.
userInfo
.
handImage
=
DFSImg
(
this
.
userInfo
.
handImage
);
this
.
showInfo
=
true
;
}
else
{
this
.
carInfo
=
res
.
data
.
data
.
vehicleInfoResponseDTO
;
this
.
isUser
=
false
;
}
}
});
},
...
...
@@ -207,7 +246,7 @@ export default {
}
}
}
.noInfo
{
.noInfo
{
text-align
:
center
;
font-size
:
14px
;
color
:
#666
;
...
...
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