ycm 2 years ago
parent
commit
083f1ad6ab
2 changed files with 11 additions and 1 deletions
  1. 10 0
      pages/servicePoint/bind.js
  2. 1 1
      pages/servicePoint/bind.wxml

+ 10 - 0
pages/servicePoint/bind.js

@@ -48,6 +48,16 @@ Page({
         }
         }
         
         
     },
     },
+    somao(){
+        let that = this
+        wx.scanCode({
+          onlyFromCamera: true,
+          success (res) {
+            that.setData({sealNo: res.result.substr(0)})
+          }
+        
+        })
+    },
     getData:function(){
     getData:function(){
         var that=this
         var that=this
         app.api.useApi(app.globalData.baseAppUrl + "api/admin/CheckOrder", {
         app.api.useApi(app.globalData.baseAppUrl + "api/admin/CheckOrder", {

+ 1 - 1
pages/servicePoint/bind.wxml

@@ -45,7 +45,7 @@
               </view>
               </view>
             </view>
             </view>
             <view class="bd3">
             <view class="bd3">
-              <view class="group8">
+              <view class="group8" catchtap="somao">
                 <image src="/image/build/scan.png"></image>
                 <image src="/image/build/scan.png"></image>
               </view>
               </view>
             </view>
             </view>