<template>
<view class="allpage">
<view class="box color1" @click="Scan_code">
<text>扫码核销</text>
<image src="../../static/images/icon02.png" mode="widthFix"></image>
</view>
</view>
</template>
<script>
export default {
data() {
return {
}
},
methods: {
Scan_code() {
// #ifdef APP-PLUS
uni.scanCode({
success: function(res) {
uni.navigateTo({
url:"./list/list"
})
console.log('条码类型:' + res.scanType);
console.log('条码内容:' + res.result);
}
});
// #endif
console.log("请在APP页面执行")
}
}
}
</script>

2***@qq.com
- 发布:2021-02-07 00:37
- 更新:2021-02-18 15:08
- 阅读:531
1 个回复
DCloud_UNI_GSQ
是否进入了错误回调?
ios 还是安卓?