|
@@ -133,7 +133,7 @@ import { isMobile, isSmscode } from '../../../utils/validate'
|
|
|
import { getQueryString } from '../../../utils/getQueryString'
|
|
|
|
|
|
export default {
|
|
|
- name: 'onlineAct',
|
|
|
+ name: 'actApply',
|
|
|
components: {
|
|
|
'van-popup': Popup,
|
|
|
'van-picker': Picker
|
|
@@ -141,16 +141,16 @@ export default {
|
|
|
data () {
|
|
|
return {
|
|
|
postData: {
|
|
|
- userName: '潘勇', // 用户名称
|
|
|
+ userName: '', // 用户名称
|
|
|
userSex: '男', // 性别(0男1女)
|
|
|
- userPhone: '13429176706', // 手机号码
|
|
|
- code: '1212', // 验证码
|
|
|
- applyPrice: '10', // 申请金额
|
|
|
+ userPhone: '', // 手机号码
|
|
|
+ code: '', // 验证码
|
|
|
+ applyPrice: '', // 申请金额
|
|
|
provinceName: '', // 省份
|
|
|
cityName: '', // 城市
|
|
|
districtName: '', // 区域
|
|
|
- addressName: '测试小区', // 详细地址
|
|
|
- isHouse: '有' // 是否有房(0无1有)
|
|
|
+ addressName: '', // 详细地址
|
|
|
+ isHouse: '' // 是否有房(0无1有)
|
|
|
},
|
|
|
numCount: 60,
|
|
|
arrErrorList: [],
|
|
@@ -264,7 +264,8 @@ export default {
|
|
|
cityName,
|
|
|
districtName,
|
|
|
addressName,
|
|
|
- applyPrice
|
|
|
+ applyPrice,
|
|
|
+ isHouse
|
|
|
} = this.postData
|
|
|
this.arrErrorList = []
|
|
|
if (!userName) {
|
|
@@ -288,6 +289,9 @@ export default {
|
|
|
if (applyPrice * 1 <= 0) {
|
|
|
this.arrErrorList.push('请输入需求金额')
|
|
|
}
|
|
|
+ if (!isHouse) {
|
|
|
+ this.arrErrorList.push('请选择是否有房')
|
|
|
+ }
|
|
|
return this.arrErrorList.length <= 0
|
|
|
},
|
|
|
funSubmit () {
|
|
@@ -316,6 +320,7 @@ export default {
|
|
|
Toast({
|
|
|
type: 'success',
|
|
|
message: '提交成功',
|
|
|
+ duration: 5000,
|
|
|
forbidClick: true,
|
|
|
onClose: () => {
|
|
|
}
|