Browse Source

二维码扫描动画效果优化v1.0

lwx_v7
liwenxuan 10 months ago
parent
commit
b7adf187a7
  1. 9
      src/views/home/scanQrCode.vue

9
src/views/home/scanQrCode.vue

@ -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;
//
//
}

Loading…
Cancel
Save