|
|
|
@ -6,7 +6,9 @@ |
|
|
|
<!--顶部左边的返回箭头--> |
|
|
|
<div> |
|
|
|
<!-- <van-icon class="scanImg" @click="onClickLeft" name="arrow-left" /> --> |
|
|
|
<button @click="onClickLeft" name="arrow-left" ></button> |
|
|
|
<!-- <el-button type="primary" @click="onClickLeft" ></el-button> --> |
|
|
|
<el-icon @click="onClickLeft" style="margin:15px;width: 20px;height: 20px;"><Close style="width: 20px;height: 20px;" /></el-icon> |
|
|
|
|
|
|
|
</div> |
|
|
|
<!--中间的扫码框--> |
|
|
|
<div class="box"> |
|
|
|
@ -36,9 +38,10 @@ |
|
|
|
const onDecode = (res: any) => { |
|
|
|
dataList.value = res |
|
|
|
result.value = false |
|
|
|
console.log('你好',dataList.value) |
|
|
|
alert(dataList.value) |
|
|
|
//console.log('你好',dataList.value) |
|
|
|
//alert(dataList.value) |
|
|
|
//showSuccessToast('扫描成功')--------------------------------------- |
|
|
|
window.location.href = dataList.value[0].rawValue; |
|
|
|
// 调用后台接口存入数据库 |
|
|
|
// 数据存入数据库后跳转页面 |
|
|
|
} |
|
|
|
|