|
@@ -55,7 +55,7 @@
|
|
|
<text>行业</text>
|
|
<text>行业</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="info-value-box">
|
|
<view class="info-value-box">
|
|
|
- <picker @change="bindPickerChange($event,'trade')" :range="tradeArray" class="select-box">
|
|
|
|
|
|
|
+ <picker @change="bindPickerChange($event,'trade')" :range="tradeArray" class="select-box" name="trade">
|
|
|
<view class="uni-input">{{tradeValue}}</view>
|
|
<view class="uni-input">{{tradeValue}}</view>
|
|
|
</picker>
|
|
</picker>
|
|
|
</view>
|
|
</view>
|
|
@@ -67,7 +67,7 @@
|
|
|
<text>职业</text>
|
|
<text>职业</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="info-value-box">
|
|
<view class="info-value-box">
|
|
|
- <picker @change="bindPickerChange($event,'profession')" :range="professionArray" class="select-box">
|
|
|
|
|
|
|
+ <picker @change="bindPickerChange($event,'profession')" :range="professionArray" class="select-box" name="profession">
|
|
|
<view class="uni-input">{{professionValue}}</view>
|
|
<view class="uni-input">{{professionValue}}</view>
|
|
|
</picker>
|
|
</picker>
|
|
|
</view>
|
|
</view>
|
|
@@ -79,7 +79,7 @@
|
|
|
<text>参观目的</text>
|
|
<text>参观目的</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="info-value-box">
|
|
<view class="info-value-box">
|
|
|
- <picker @change="bindPickerChange($event,'ends')" :range="endsArray" class="select-box">
|
|
|
|
|
|
|
+ <picker @change="bindPickerChange($event,'ends')" :range="endsArray" class="select-box" name="ends">
|
|
|
<view class="uni-input">{{endsValue}}</view>
|
|
<view class="uni-input">{{endsValue}}</view>
|
|
|
</picker>
|
|
</picker>
|
|
|
</view>
|
|
</view>
|
|
@@ -90,7 +90,7 @@
|
|
|
<text>您目前从事的家具品牌</text>
|
|
<text>您目前从事的家具品牌</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="info-value-box">
|
|
<view class="info-value-box">
|
|
|
- <input type="text" placeholder="请输入您目前从事的家具品牌" name="selfName">
|
|
|
|
|
|
|
+ <input type="text" placeholder="请输入您目前从事的家具品牌">
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
@@ -182,14 +182,25 @@
|
|
|
checkType: "notnull",
|
|
checkType: "notnull",
|
|
|
errorMsg: "姓名不能为空"
|
|
errorMsg: "姓名不能为空"
|
|
|
},
|
|
},
|
|
|
- {
|
|
|
|
|
- name: "dealerName",
|
|
|
|
|
- checkType: "notnull",
|
|
|
|
|
- errorMsg: "经销商姓名不能为空"
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ {
|
|
|
|
|
+ name: "trade",
|
|
|
|
|
+ checkType: "notnull",
|
|
|
|
|
+ errorMsg: "行业不能为空"
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: "profession",
|
|
|
|
|
+ checkType: "notnull",
|
|
|
|
|
+ errorMsg: "职业不能为空"
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: "ends",
|
|
|
|
|
+ checkType: "notnull",
|
|
|
|
|
+ errorMsg: "参观目的不能为空"
|
|
|
|
|
+ },
|
|
|
];
|
|
];
|
|
|
//进行表单检查
|
|
//进行表单检查
|
|
|
var formData = e.detail.value;
|
|
var formData = e.detail.value;
|
|
|
|
|
+ console.log(formData)
|
|
|
var checkRes = graceChecker.check(formData, rule);
|
|
var checkRes = graceChecker.check(formData, rule);
|
|
|
if (checkRes) {
|
|
if (checkRes) {
|
|
|
this.txt === '请选择' ?
|
|
this.txt === '请选择' ?
|
|
@@ -197,7 +208,7 @@
|
|
|
title: '请选择地区',
|
|
title: '请选择地区',
|
|
|
icon: "none"
|
|
icon: "none"
|
|
|
}):
|
|
}):
|
|
|
- console.log('pass')
|
|
|
|
|
|
|
+ this.submitRequest();
|
|
|
} else {
|
|
} else {
|
|
|
uni.showToast({
|
|
uni.showToast({
|
|
|
title: graceChecker.error,
|
|
title: graceChecker.error,
|
|
@@ -205,6 +216,24 @@
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ submitRequest(){
|
|
|
|
|
+ this.goCustomCardPage('0')
|
|
|
|
|
+ },
|
|
|
|
|
+ goCustomCardPage(type){
|
|
|
|
|
+ type === '1' ?
|
|
|
|
|
+ uni.redirectTo({
|
|
|
|
|
+ url: '/pages/index/successPage/index?types='+'custom', //游客成功页面
|
|
|
|
|
+ success: res => {},
|
|
|
|
|
+ fail: () => {},
|
|
|
|
|
+ complete: () => {}
|
|
|
|
|
+ }):
|
|
|
|
|
+ uni.redirectTo({
|
|
|
|
|
+ url: '/pages/index/failPage/index', //失败页面
|
|
|
|
|
+ success: res => {},
|
|
|
|
|
+ fail: () => {},
|
|
|
|
|
+ complete: () => {}
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|