Commit 53db602b authored by songrui's avatar songrui

idcard扫描

parent cabf2e35
......@@ -52,7 +52,7 @@ export default {
if (!token) {
token = sessionStorage.getItem('token')
if (process.env.NODE_ENV !== 'production') {
token = 'de42c09b-bcb0-4c21-9c8d-aaca5eff8cbb'
token = 'e1f7a2d1-900c-472c-89af-ec10c87794ba'
}
}
if (token) {
......
......@@ -11,7 +11,9 @@
clearable
@clear="idCardClear"
ref="idCardField"/>
<doc-icon type="doc-camera" class="shrink-0 mr-3" style="color: #575B66"/>
<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"/>
</van-uploader>
</div>
<span class="text-16 shrink-0 text-primary" @click="search">
搜索
......@@ -183,6 +185,11 @@ export default {
clearHistory() {
setLocalStorage(this.historyKey, [])
this.history = []
},
// 证件上传后
afterRead(file) {
console.log(file)
showNotify({ type: 'primary', message: '文件上传' })
}
}
}
......
......@@ -208,7 +208,7 @@ export default {
delBtn(item) {
showConfirmDialog({
title: '提示',
message: '确认删除该随访记录吗?确认后将无法查看该随访信息'
message: '确认删除该随访记录吗?\n确认后将无法查看该随访信息'
}).then(() => {
// on confirm
// 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