|
@@ -27,7 +27,8 @@ Page({
|
|
mainPerson: null,
|
|
mainPerson: null,
|
|
mainPersonPhone: null,
|
|
mainPersonPhone: null,
|
|
headSecurity: null,
|
|
headSecurity: null,
|
|
- headSecurityPhone: null
|
|
|
|
|
|
+ headSecurityPhone: null,
|
|
|
|
+
|
|
}
|
|
}
|
|
},
|
|
},
|
|
//-------------------------------表单数据绑定方法---------------------------------------
|
|
//-------------------------------表单数据绑定方法---------------------------------------
|
|
@@ -67,9 +68,40 @@ Page({
|
|
//----------------------------------------------------------------------------
|
|
//----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
+ saoyisao(){
|
|
|
|
+
|
|
|
|
+ wx.scanCode({
|
|
|
|
+ onlyFromCamera: true,
|
|
|
|
+ success: (res) => {
|
|
|
|
+
|
|
|
|
+ console.log("$$$",res);
|
|
|
|
+ //this.data.form.qrCode=res.result
|
|
|
|
+ this.setData({
|
|
|
|
+ form: {
|
|
|
|
+ qrCode: res.result
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ fail: (res) => {
|
|
|
|
+
|
|
|
|
+ wx.showToast({
|
|
|
|
+ title: '扫描失败请手动输入',
|
|
|
|
+ icon:'none'
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
|
|
addEnterprise(e) {
|
|
addEnterprise(e) {
|
|
|
|
+ console.log("###1",this.data.form.qrCode)
|
|
let obj = new Object()
|
|
let obj = new Object()
|
|
obj.latitude = this.data.form.latitude
|
|
obj.latitude = this.data.form.latitude
|
|
obj.longitude = this.data.form.longitude
|
|
obj.longitude = this.data.form.longitude
|