|
@@ -4,7 +4,8 @@ const app = getApp()
|
|
Page({
|
|
Page({
|
|
|
|
|
|
onLoad() {
|
|
onLoad() {
|
|
- this.getLocation()
|
|
|
|
|
|
+ // console.log("@@","load")
|
|
|
|
+ //this.getLocation()
|
|
},
|
|
},
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -77,10 +78,9 @@ Page({
|
|
console.log("$$$",res);
|
|
console.log("$$$",res);
|
|
//this.data.form.qrCode=res.result
|
|
//this.data.form.qrCode=res.result
|
|
this.setData({
|
|
this.setData({
|
|
- form: {
|
|
|
|
- qrCode: res.result
|
|
|
|
- }
|
|
|
|
|
|
+ ['form.qrCode']: res.result
|
|
})
|
|
})
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -103,6 +103,7 @@ Page({
|
|
addEnterprise(e) {
|
|
addEnterprise(e) {
|
|
console.log("###1",this.data.form.qrCode)
|
|
console.log("###1",this.data.form.qrCode)
|
|
let obj = new Object()
|
|
let obj = new Object()
|
|
|
|
+ obj.enterpriseCode=this.data.form.qrCode
|
|
obj.latitude = this.data.form.latitude
|
|
obj.latitude = this.data.form.latitude
|
|
obj.longitude = this.data.form.longitude
|
|
obj.longitude = this.data.form.longitude
|
|
obj.businessName = this.data.form.businessName
|
|
obj.businessName = this.data.form.businessName
|
|
@@ -115,7 +116,7 @@ Page({
|
|
obj.mainPersonPhone = this.data.form.mainPersonPhone
|
|
obj.mainPersonPhone = this.data.form.mainPersonPhone
|
|
obj.headSecurity = this.data.form.headSecurity
|
|
obj.headSecurity = this.data.form.headSecurity
|
|
obj.headSecurityPhone = this.data.form.headSecurityPhone
|
|
obj.headSecurityPhone = this.data.form.headSecurityPhone
|
|
-
|
|
|
|
|
|
+console.log("@@@@",obj)
|
|
http.post("/system/AppEnterpriseController/addEnterprise", obj, this.addEnterpriseSuccess)
|
|
http.post("/system/AppEnterpriseController/addEnterprise", obj, this.addEnterpriseSuccess)
|
|
},
|
|
},
|
|
addEnterpriseSuccess(e) {
|
|
addEnterpriseSuccess(e) {
|
|
@@ -139,10 +140,10 @@ Page({
|
|
type: 'wgs84', //返回可以用于wx.openLocation的经纬度
|
|
type: 'wgs84', //返回可以用于wx.openLocation的经纬度
|
|
success: function (res) {
|
|
success: function (res) {
|
|
that.setData({
|
|
that.setData({
|
|
- form: {
|
|
|
|
- longitude: res.longitude,
|
|
|
|
- latitude: res.latitude
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
|
|
+ ['form.longitude']: res.longitude,
|
|
|
|
+ ['form.latitude']: res.latitude
|
|
|
|
+
|
|
})
|
|
})
|
|
},
|
|
},
|
|
})
|
|
})
|
|
@@ -166,7 +167,7 @@ Page({
|
|
* 生命周期函数--监听页面显示
|
|
* 生命周期函数--监听页面显示
|
|
*/
|
|
*/
|
|
onShow() {
|
|
onShow() {
|
|
-
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
|
|
|
|
/**
|
|
/**
|