Browse Source

删除自我介绍验证;

feature/optimise
ZhaoTongYao 5 years ago
parent
commit
16fc4c9da0
  1. 32
      subpages/heart/pages/volunteer/volunteer.js

32
subpages/heart/pages/volunteer/volunteer.js

@ -19,7 +19,7 @@ Page({
wxCode: "", //用户unionId为空时 传入 wxCode: "", //用户unionId为空时 传入
encryptedData: "", //用户unionId为空时 传入 encryptedData: "", //用户unionId为空时 传入
iv: "", //用户unionId为空时 传入 iv: "", //用户unionId为空时 传入
introduce: "", //自我介绍 // introduce: "", //自我介绍
volunteerNickname:"",//昵称 volunteerNickname:"",//昵称
volunteerSignature:"",//签名 volunteerSignature:"",//签名
volunteerFaceImg:"",//头像 volunteerFaceImg:"",//头像
@ -87,11 +87,11 @@ Page({
}) })
}, },
adInputIntroduce (e) { // adInputIntroduce (e) {
this.setData({ // this.setData({
introduce: e.detail.value // introduce: e.detail.value
}) // })
}, // },
volunteerSignature (e) { volunteerSignature (e) {
this.setData({ this.setData({
volunteerSignature: e.detail.value volunteerSignature: e.detail.value
@ -156,7 +156,7 @@ Page({
volunteerNickname:res.data.volunteerNickname, volunteerNickname:res.data.volunteerNickname,
volunteerSignature:res.data.volunteerSignature, volunteerSignature:res.data.volunteerSignature,
volunteerFaceImg:res.data.volunteerFaceImg, volunteerFaceImg:res.data.volunteerFaceImg,
introduce:res.data.introduce // introduce:res.data.introduce
}) })
resolve(true) resolve(true)
}).catch(() => { }).catch(() => {
@ -244,15 +244,15 @@ Page({
this.showToast("小区或所在道路不能超过100个字") this.showToast("小区或所在道路不能超过100个字")
return false return false
} }
if (!this.data.introduce) { // if (!this.data.introduce) {
this.showToast("请输入自我介绍") // this.showToast("请输入自我介绍")
return false // return false
} // }
if (!this.data.introduce.length > 200) { // if (!this.data.introduce.length > 200) {
this.showToast("自我介绍输入内容不超过200字") // this.showToast("自我介绍输入内容不超过200字")
return false // return false
} // }
const params = { const params = {
smsCode: this.data.smsCode, smsCode: this.data.smsCode,
realName: this.data.realName, realName: this.data.realName,
@ -262,7 +262,7 @@ Page({
villageName: this.data.villageName, villageName: this.data.villageName,
dwellingPlace: this.data.dwellingPlace, dwellingPlace: this.data.dwellingPlace,
gridId: this.data.gridId, gridId: this.data.gridId,
introduce: this.data.introduce, // introduce: this.data.introduce,
volunteerFaceImg:this.data.volunteerFaceImg, volunteerFaceImg:this.data.volunteerFaceImg,
volunteerNickname:this.data.volunteerNickname, volunteerNickname:this.data.volunteerNickname,
volunteerSignature:this.data.volunteerSignature, volunteerSignature:this.data.volunteerSignature,

Loading…
Cancel
Save