|
@@ -9,7 +9,11 @@ Page({
|
|
|
lat: '', // 纬度
|
|
|
visitLocation: '',
|
|
|
info: '', //老人锕
|
|
|
- imgPath: [],
|
|
|
+ imgPath: [{
|
|
|
+
|
|
|
+ }, {
|
|
|
+
|
|
|
+ }],
|
|
|
isTrue: true,
|
|
|
index: 0,
|
|
|
visitPhoto: '',
|
|
@@ -87,6 +91,8 @@ Page({
|
|
|
that.setData({
|
|
|
imgPath: that.data.imgPath
|
|
|
})
|
|
|
+ console.log(that.data.imgPath, "打印下招聘的路径锕");
|
|
|
+
|
|
|
that.data.visitPhoto = that.data.imgPath.join(',')
|
|
|
if (that.data.imgPath.length == 2) {
|
|
|
that.setData({
|
|
@@ -110,7 +116,7 @@ Page({
|
|
|
this.setData({
|
|
|
visitPhoto: aa,
|
|
|
})
|
|
|
- if (this.data.imgPath.length == 0) {
|
|
|
+ if (this.data.imgPath.length == 0 || this.data.imgPath.length == 1) {
|
|
|
this.setData({
|
|
|
isTrue: true
|
|
|
})
|
|
@@ -146,21 +152,22 @@ Page({
|
|
|
visitLocation: this.data.visitLocation
|
|
|
}
|
|
|
|
|
|
- wx.request({
|
|
|
- url: app.globalData.publicUrl + '/visit/doFace3',
|
|
|
- method: "POST",
|
|
|
- header: {
|
|
|
- appletsId: wx.getStorageSync('openId')
|
|
|
- },
|
|
|
- data: {
|
|
|
- infoId: this.data.infoId,
|
|
|
- visitPhoto: this.data.visitPhoto,
|
|
|
- },
|
|
|
- success: (res) => {
|
|
|
- console.log(res);
|
|
|
- }
|
|
|
- })
|
|
|
+ // wx.request({
|
|
|
+ // url: app.globalData.publicUrl + '/visit/doFace3',
|
|
|
+ // method: "POST",
|
|
|
+ // header: {
|
|
|
+ // appletsId: wx.getStorageSync('openId')
|
|
|
+ // },
|
|
|
+ // data: {
|
|
|
+ // infoId: this.data.infoId,
|
|
|
+ // visitPhoto: this.data.visitPhoto,
|
|
|
+ // },
|
|
|
+ // success: (res) => {
|
|
|
+ // console.log(res);
|
|
|
+ // }
|
|
|
+ // })
|
|
|
|
|
|
+ // 提交的接口
|
|
|
|
|
|
// wx.request({
|
|
|
// url: app.globalData.publicUrl + '/visit/add',
|