|
@@ -77,7 +77,7 @@
|
|
|
</div>
|
|
|
<van-field @input="entOnChange('input')" @blur="entOnChange('blur')" @focus="infoCheckMap.company = ''"
|
|
|
:error-message="infoCheckMap.company" required v-model.trim="infoMap.company" label="公司名称" placeholder="请输入公司名称"></van-field>
|
|
|
- <van-field v-if="moduleShow.companyType" v-model="infoMap.companyType" label="公司类型" @click="openPop('公司类型')" readonly is-link
|
|
|
+ <van-field v-if="moduleShow.companyType" v-model="infoMap.companyType" required label="公司类型" @click="openPop('公司类型')" readonly is-link
|
|
|
placeholder="请选择公司类型"></van-field>
|
|
|
<van-field v-if="moduleShow.position" :class="{'hide-border': infoMap.position === '其他'}" required v-model="infoMap.position" label="职位" @click="openPop('职位')" readonly is-link
|
|
|
placeholder="请选择职位"></van-field>
|
|
@@ -777,6 +777,12 @@
|
|
|
}
|
|
|
return true
|
|
|
},
|
|
|
+ checkEntType() {
|
|
|
+ if (this.infoMap.companyType === '') {
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ return true
|
|
|
+ },
|
|
|
checkPosition () {
|
|
|
if (!this.moduleShow.position) return true
|
|
|
if (this.infoMap.position !== "" && this.infoMap.position !== '其他') {
|
|
@@ -789,7 +795,7 @@
|
|
|
return namereg.test(this.infoMap.position_other)
|
|
|
},
|
|
|
isSubmitDisabled () {
|
|
|
- return !this.checkName || !this.checkPhone || !this.checkEmail || !this.checkEntName || !this.checkPosition || (this.showBranch && !this.infoMap.branch)
|
|
|
+ return !this.checkName || !this.checkPhone || !this.checkEmail || !this.checkEntName || !this.checkEntType || !this.checkPosition || (this.showBranch && !this.infoMap.branch)
|
|
|
},
|
|
|
isMoreSelect () {
|
|
|
return this.popInfo.label === '公司类型'
|
|
@@ -910,7 +916,7 @@
|
|
|
}
|
|
|
if (r && r.error_msg === '' && r.data) {
|
|
|
this.setEchoInfo(r.data)
|
|
|
- var result = checkRequiredKeys(['name', 'phone', 'company', 'position', 'branch'], r.data)
|
|
|
+ var result = checkRequiredKeys(['name', 'phone', 'company','companyType', 'position', 'branch'], r.data)
|
|
|
if (result) {
|
|
|
var skipAuto = ['jyarticle_see3', 'article_collection', 'article_original', 'jypush_see10']
|
|
|
var _this = this
|
|
@@ -922,6 +928,25 @@
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ getParam (name) {
|
|
|
+ var search = document.location.search;
|
|
|
+ // alert(search);
|
|
|
+ var pattern = new RegExp("[?&]" + name + "\=([^&]+)", "g");
|
|
|
+ var matcher = pattern.exec(search);
|
|
|
+ var items = null;
|
|
|
+ if (null != matcher) {
|
|
|
+ try {
|
|
|
+ items = decodeURIComponent(decodeURIComponent(matcher[1]));
|
|
|
+ } catch (e) {
|
|
|
+ try {
|
|
|
+ items = decodeURIComponent(matcher[1]);
|
|
|
+ } catch (e) {
|
|
|
+ items = matcher[1];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return items
|
|
|
+ },
|
|
|
highlightText (value, keyStr) {
|
|
|
return utils.replaceKeyword(value, keyStr, '<span class="highlight-text">' + keyStr + '</span>')
|
|
|
},
|
|
@@ -1211,6 +1236,9 @@
|
|
|
this.ajaxParams.phone = this.infoMap.phone
|
|
|
this.ajaxParams.mail = this.infoMap.email
|
|
|
this.ajaxParams.company = this.infoMap.company
|
|
|
+ if (this.getParam('source') === 'peugeot_supplier_regist'){
|
|
|
+ this.ajaxParams.publish_id = this.getParam('infoid')
|
|
|
+ }
|
|
|
this.ajaxParams.position = this.infoMap.position
|
|
|
if (this.infoMap.position === '其他') {
|
|
|
this.ajaxParams.position = '其他/' + this.infoMap.position_other
|
|
@@ -1325,6 +1353,10 @@
|
|
|
if (source.indexOf('ent-manage-') > -1) {
|
|
|
message = '您的申请已提交,我们会尽快联系您并预约演示时间,请耐心等待~您将获得免费体验商机管理全部功能!'
|
|
|
}
|
|
|
+ //
|
|
|
+ if (source.indexOf('peugeot_supplier_regist') > -1) {
|
|
|
+ message = '我们会尽快联系您完成供应商报名,请耐心等待。'
|
|
|
+ }
|
|
|
|
|
|
|
|
|
// 免费用户体验
|