diff --git a/src/pageB/select_product/index.vue b/src/pageB/select_product/index.vue
index 478de63..acfae97 100644
--- a/src/pageB/select_product/index.vue
+++ b/src/pageB/select_product/index.vue
@@ -4,6 +4,7 @@
商品信息
+
@@ -103,6 +104,20 @@
}
},
methods: {
+ //扫码
+ onQR(){
+ uni.scanCode({
+ onlyFromCamera: true,
+ success: ({result})=>{
+ this.keyword=result
+ this.searchGoods()
+ },
+ fail:err=>{
+ this.$u.toast('扫码失败,请重新扫描')
+ }
+ });
+
+ },
async searchGoods() {
const resDate = await this.$api.get(`/v1/store/${this.id}/products`, {
params: {