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
a6b5f40c
Commit
a6b5f40c
authored
Nov 10, 2021
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
核验历史
parent
655478f4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
58 additions
and
34 deletions
+58
-34
src/api/index.js
+5
-0
src/pages/wo/checkHistory/index.vue
+7
-6
src/pages/wo/showPassCheck/index.vue
+5
-5
src/pages/wo/verification/index.vue
+41
-23
No files found.
src/api/index.js
View file @
a6b5f40c
...
...
@@ -68,6 +68,10 @@ console.log(process.env,'-----------------config------')
getHistoryByVerifier
(
data
)
{
return
requestPOST
(
`
${
process
.
env
.
OLSHOP_URL
}
/user/getHistoryByVerifier`
,
data
);
},
// 扫码核验历史记录
getInfoByUniqueCode
(
code
)
{
return
requestGET
(
`
${
process
.
env
.
OLSHOP_URL
}
/user/getInfoByUniqueCode?code=
${
code
}
`
);
},
}
\ No newline at end of file
src/pages/wo/checkHistory/index.vue
View file @
a6b5f40c
<
template
>
<!-- 核验历史 -->
<div
class=
"checkHistory"
>
<div
class=
"list"
>
<div
class=
"list"
v-if=
"list.length>0"
>
<div
class=
"item flex"
v-for=
"(item, index) in list"
:key=
"index"
>
<div
class=
"left"
>
<p>
<span>
核验地点:
</span><span>
{{
"云顶大酒店"
}}
</span>
<span>
核验地点:
</span><span>
{{
item
.
verificationPoint
}}
</span>
</p>
<p
class=
"time"
>
<span>
核验时间:
</span><span>
{{
"2021-11-04 09:43:32"
}}
</span>
<span>
核验时间:
</span><span>
{{
item
.
verificationDatetime
}}
</span>
</p>
</div>
<div
class=
"checkIcon"
>
<image
v-if=
"i
ndex
<
6
"
v-if=
"i
tem.verificationStatus == 0
"
src=
"http://mayi-newshop.oss-cn-shanghai.aliyuncs.com/public/png/8c56ad03-32c4-46a2-91d0-98272c5c4a8b.png"
></image>
<image
...
...
@@ -22,8 +22,8 @@
></image>
</div>
</div>
<div
class=
"noCheck"
v-if=
"loaded && list.length == 0"
>
暂无核验
</div>
</div>
<div
class=
"noCheck"
v-else-if=
"loaded && list.length == 0"
>
暂无核验
</div>
</div>
</
template
>
...
...
@@ -52,6 +52,7 @@ export default {
},
methods
:
{
init
()
{
this
.
loaded
=
false
;
wx
.
showLoading
({
title
:
"加载中..."
,
});
...
...
@@ -63,7 +64,7 @@ export default {
index
.
getHistoryByVerifier
(
query
).
then
((
res
)
=>
{
this
.
loaded
=
true
;
wx
.
hideLoading
();
if
(
res
.
data
.
ok
==
"
ok
"
)
{
if
(
res
.
data
.
ok
==
"
true
"
)
{
this
.
list
=
res
.
data
.
data
;
}
});
...
...
src/pages/wo/showPassCheck/index.vue
View file @
a6b5f40c
...
...
@@ -17,7 +17,7 @@
alt=
""
></image>
</div>
<p>
张家口市公安局冬奥办
</p>
<p>
{{
userInfo
.
company
}}
</p>
</div>
<div
class=
"userImg"
>
<image
...
...
@@ -84,11 +84,11 @@ export default {
mounted
()
{},
methods
:
{
init
()
{
//
wx.showLoading({
//
title: "加载中...",
//
});
wx
.
showLoading
({
title
:
"加载中..."
,
});
live
.
getUserInfo
().
then
((
res
)
=>
{
//
wx.hideLoading();
wx
.
hideLoading
();
if
(
res
.
data
.
ok
==
"true"
)
{
this
.
userInfo
=
res
.
data
.
data
;
this
.
userInfo
.
headPortraitUrl
=
DFSImg
(
this
.
userInfo
.
headPortraitUrl
);
...
...
src/pages/wo/verification/index.vue
View file @
a6b5f40c
...
...
@@ -21,32 +21,33 @@
<div
class=
"userInfo"
v-if=
"showInfo"
>
<div
class=
"img"
>
<image
mode=
"
widthFix
"
src=
"http://mayi-newshop.oss-cn-shanghai.aliyuncs.com/public/png/f96b596d-e1e4-43c1-b707-226ff7d107bd.png
"
mode=
"
aspectFill
"
:src=
"userInfo.handImage
"
alt=
""
></image>
</div>
<div
class=
"cell flex"
>
<div
class=
"label"
>
姓名
</div>
<div
class=
"val"
>
张三
</div>
<div
class=
"val"
>
{{
userInfo
.
customerName
}}
</div>
</div>
<div
class=
"cell flex"
>
<div
class=
"label"
>
单位
</div>
<div
class=
"val"
>
张家口市公安局
</div>
<div
class=
"val"
>
{{
userInfo
.
company
}}
</div>
</div>
<div
class=
"cell flex"
>
<div
class=
"label"
>
身份
</div>
<div
class=
"val"
>
工作人员
</div>
<div
class=
"val"
>
{{
userInfo
.
identity
}}
</div>
</div>
<div
class=
"cell flex"
>
<div
class=
"label"
>
工作地点
</div>
<div
class=
"val"
>
云顶
</div>
<div
class=
"val"
>
{{
userInfo
.
workArea
}}
</div>
</div>
<div
class=
"cell flex"
>
<div
class=
"label"
>
就餐地点
</div>
<div
class=
"val"
>
云顶大酒店1层
</div>
<div
class=
"val"
>
{{
userInfo
.
diningPlace
}}
</div>
</div>
</div>
<div
v-if=
"loaded && !showInfo"
class=
"noInfo"
>
暂无人员信息
</div>
<template
v-if=
"showInfo"
>
<div
class=
"seat"
></div>
<div
class=
"btm flex"
>
...
...
@@ -57,12 +58,16 @@
</template>
<
script
type=
"text/ecmascript-6"
>
import
index
from
"@/api/index"
import
{
DFSImg
}
from
'@/utils/common.js'
export
default
{
name
:
"verification"
,
data
()
{
return
{
checkText
:
""
,
showInfo
:
false
,
loaded
:
false
,
userInfo
:
{},
};
},
components
:
{},
...
...
@@ -77,34 +82,23 @@ export default {
onShow
()
{
console
.
log
(
"---onShow"
);
},
onUnload
(){
onUnload
()
{
this
.
showInfo
=
false
;
},
methods
:
{
toCheck
()
{
wx
.
showLoading
({
title
:
"加载中..."
,
});
setTimeout
(()
=>
{
this
.
showInfo
=
true
;
wx
.
hideLoading
();
},
500
);
this
.
getInfoByUniqueCode
();
},
confirm
()
{
this
.
scanCode
();
},
scanCode
()
{
let
_this
=
this
;
// 允许从相机和相册扫码
wx
.
showLoading
({
title
:
"加载中..."
,
});
wx
.
scanCode
({
success
(
res
)
{
console
.
log
(
res
,
"---success"
);
_this
.
checkText
=
res
.
result
;
// 调接口完成改true 暂时为测试
_this
.
showInfo
=
true
;
_this
.
getInfoByUniqueCode
();
},
fail
(
res
)
{
wx
.
showToast
({
...
...
@@ -112,14 +106,30 @@ export default {
icon
:
"error"
,
duration
:
1000
,
});
console
.
log
(
res
,
'----fail'
);
console
.
log
(
res
,
"----fail"
);
},
complete
(
res
)
{
console
.
log
(
res
,
'----res'
)
console
.
log
(
res
,
"----res"
);
wx
.
hideLoading
();
},
});
},
getInfoByUniqueCode
()
{
wx
.
showLoading
({
title
:
"加载中..."
,
});
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
.
userInfo
=
res
.
data
.
data
.
uniqueScanUserInfoDTO
;
this
.
userInfo
.
handImage
=
DFSImg
(
this
.
userInfo
.
handImage
);
this
.
showInfo
=
true
;
}
});
},
},
};
</
script
>
...
...
@@ -169,6 +179,7 @@ export default {
width
:
104px
;
height
:
128px
;
margin
:
10px
auto
;
overflow
:
hidden
;
image
{
width
:
100%
;
height
:
100%
;
...
...
@@ -196,6 +207,13 @@ export default {
}
}
}
.noInfo
{
text-align
:
center
;
font-size
:
14px
;
color
:
#666
;
text-align
:
center
;
margin-top
:
20px
;
}
.seat
{
width
:
100%
;
height
:
60px
;
...
...
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