|
@@ -18,6 +18,7 @@ Page({
|
|
latitude: Number,
|
|
latitude: Number,
|
|
businessName: null,
|
|
businessName: null,
|
|
orgCode: null,
|
|
orgCode: null,
|
|
|
|
+ qrCode:null,
|
|
officeAddress: null,
|
|
officeAddress: null,
|
|
businessAddress: null,
|
|
businessAddress: null,
|
|
supervisor: null,
|
|
supervisor: null,
|
|
@@ -26,7 +27,8 @@ Page({
|
|
mainPerson: null,
|
|
mainPerson: null,
|
|
mainPersonPhone: null,
|
|
mainPersonPhone: null,
|
|
headSecurity: null,
|
|
headSecurity: null,
|
|
- headSecurityPhone: null
|
|
|
|
|
|
+ headSecurityPhone: null,
|
|
|
|
+
|
|
}
|
|
}
|
|
},
|
|
},
|
|
//-------------------------------表单数据绑定方法---------------------------------------
|
|
//-------------------------------表单数据绑定方法---------------------------------------
|
|
@@ -36,6 +38,9 @@ Page({
|
|
get_orgCode(e) {
|
|
get_orgCode(e) {
|
|
this.data.form.orgCode = e.detail.value
|
|
this.data.form.orgCode = e.detail.value
|
|
},
|
|
},
|
|
|
|
+ get_qrCode(e) {
|
|
|
|
+ this.data.form.qrCode = e.detail.value
|
|
|
|
+ },
|
|
get_officeAddress(e) {
|
|
get_officeAddress(e) {
|
|
this.data.form.officeAddress = e.detail.value
|
|
this.data.form.officeAddress = e.detail.value
|
|
},
|
|
},
|
|
@@ -63,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
|