Commit 53db602b authored by songrui's avatar songrui

idcard扫描

parent cabf2e35
...@@ -52,7 +52,7 @@ export default { ...@@ -52,7 +52,7 @@ export default {
if (!token) { if (!token) {
token = sessionStorage.getItem('token') token = sessionStorage.getItem('token')
if (process.env.NODE_ENV !== 'production') { if (process.env.NODE_ENV !== 'production') {
token = 'de42c09b-bcb0-4c21-9c8d-aaca5eff8cbb' token = 'e1f7a2d1-900c-472c-89af-ec10c87794ba'
} }
} }
if (token) { if (token) {
......
...@@ -11,7 +11,9 @@ ...@@ -11,7 +11,9 @@
clearable clearable
@clear="idCardClear" @clear="idCardClear"
ref="idCardField"/> ref="idCardField"/>
<van-uploader :max-size="5 * 1024 * 1024" :after-read="afterRead" max-count="1">
<doc-icon type="doc-camera" class="shrink-0 mr-3" style="color: #575B66"/> <doc-icon type="doc-camera" class="shrink-0 mr-3" style="color: #575B66"/>
</van-uploader>
</div> </div>
<span class="text-16 shrink-0 text-primary" @click="search"> <span class="text-16 shrink-0 text-primary" @click="search">
搜索 搜索
...@@ -183,6 +185,11 @@ export default { ...@@ -183,6 +185,11 @@ export default {
clearHistory() { clearHistory() {
setLocalStorage(this.historyKey, []) setLocalStorage(this.historyKey, [])
this.history = [] this.history = []
},
// 证件上传后
afterRead(file) {
console.log(file)
showNotify({ type: 'primary', message: '文件上传' })
} }
} }
} }
......
...@@ -208,7 +208,7 @@ export default { ...@@ -208,7 +208,7 @@ export default {
delBtn(item) { delBtn(item) {
showConfirmDialog({ showConfirmDialog({
title: '提示', title: '提示',
message: '确认删除该随访记录吗?确认后将无法查看该随访信息' message: '确认删除该随访记录吗?\n确认后将无法查看该随访信息'
}).then(() => { }).then(() => {
// on confirm // on confirm
// console.log(item.id) // console.log(item.id)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment