ycm 2 år sedan
förälder
incheckning
083f1ad6ab
2 ändrade filer med 11 tillägg och 1 borttagningar
  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(){
         var that=this
         app.api.useApi(app.globalData.baseAppUrl + "api/admin/CheckOrder", {

+ 1 - 1
pages/servicePoint/bind.wxml

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