|
@@ -638,7 +638,7 @@
|
|
|
},
|
|
|
contactMobileOnblur(e){// 识别手机号是否正确
|
|
|
if(this.$reg.isMobile(e.detail.value)){
|
|
|
- this.isMobileDisabled = false;
|
|
|
+ this.isMobileDisabled = false
|
|
|
}
|
|
|
},
|
|
|
getMobileCodeFn(){
|
|
@@ -648,19 +648,19 @@
|
|
|
activateCodeType:6,
|
|
|
platformType:2
|
|
|
}
|
|
|
- this.isMobileDisabled = true;
|
|
|
+ this.isMobileDisabled = true
|
|
|
this.PublicService.GetRegisterMobileCode(params).then(response =>{
|
|
|
- this.$util.msg('验证短信已发送',2000);
|
|
|
- const TIME_COUNT = 60;
|
|
|
+ this.$util.msg('验证短信已发送',2000)
|
|
|
+ const TIME_COUNT = 60
|
|
|
if (!this.mobilTime) {
|
|
|
- this.mobilCount = TIME_COUNT;
|
|
|
- this.isMobileDisabled = true;
|
|
|
+ this.mobilCount = TIME_COUNT
|
|
|
+ this.isMobileDisabled = true
|
|
|
this.mobilTime = setInterval(() => {
|
|
|
if (this.mobilCount > 1 && this.mobilCount <= TIME_COUNT) {
|
|
|
this.mobilCount--
|
|
|
this.mobileCodeText = this.mobilCount +'s重新发送'
|
|
|
} else {
|
|
|
- this.isMobileDisabled = false;
|
|
|
+ this.isMobileDisabled = false
|
|
|
clearInterval(this.mobilTime)
|
|
|
this.mobilTime = null
|
|
|
this.mobileCodeText = '获取验证码'
|
|
@@ -668,8 +668,8 @@
|
|
|
},1000)
|
|
|
}
|
|
|
}).catch( error =>{
|
|
|
- this.$util.msg(error.msg,2000);
|
|
|
- this.isMobileDisabled = false;
|
|
|
+ this.$util.msg(error.msg,2000)
|
|
|
+ this.isMobileDisabled = false
|
|
|
})
|
|
|
},
|
|
|
handleSubmitBtn () {
|
|
@@ -772,23 +772,34 @@
|
|
|
this.$util.msg('请勾选已阅读',2000)
|
|
|
return
|
|
|
}
|
|
|
- console.log(this.secondParams)
|
|
|
- if(this.secondParams.licenseImage == ''){
|
|
|
- this.modal1 = true
|
|
|
- this.tipsContentText = '上传身份验证照片,您的二手商品将获得更好的推荐推荐和曝光,方便您快速卖出。'
|
|
|
- this.cancelButtonText = '继续发布'
|
|
|
- this.confirmButtonText = '去上传'
|
|
|
- this.isButtonsType = 1
|
|
|
- return
|
|
|
+ if(this.secondParams.publishIdentity === 1){
|
|
|
+ if(this.secondParams.authenticationImage == '' && this.secondParams.authenticationBackImage == ''){
|
|
|
+ this.modal1 = true
|
|
|
+ this.tipsContentText = '上传身份证照片,您的二手商品将获得更好的推荐和曝光,方便您快速卖出。'
|
|
|
+ this.cancelButtonText = '继续发布'
|
|
|
+ this.confirmButtonText = '去上传'
|
|
|
+ this.isButtonsType = 1
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ if(this.secondParams.licenseImage == ''){
|
|
|
+ this.modal1 = true
|
|
|
+ this.tipsContentText = '上传营业执照照片,您的二手商品将获得更好的推荐和曝光,方便您快速卖出。'
|
|
|
+ this.cancelButtonText = '继续发布'
|
|
|
+ this.confirmButtonText = '去上传'
|
|
|
+ this.isButtonsType = 1
|
|
|
+ return
|
|
|
+ }
|
|
|
}
|
|
|
if(this.secondParams.commitmentImage == '' || this.secondParams.ossName == ''){
|
|
|
this.modal1 = true
|
|
|
- this.tipsContentText = '上传二手出让承诺函,您的二手商品将获得更好的推荐推荐和曝光,方便您快速卖出。'
|
|
|
+ this.tipsContentText = '上传二手出让承诺函,您的二手商品将获得更好的推荐和曝光,方便您快速卖出。'
|
|
|
this.cancelButtonText = '继续发布'
|
|
|
this.confirmButtonText = '去上传'
|
|
|
this.isButtonsType = 1
|
|
|
return
|
|
|
}
|
|
|
+ console.log(this.secondParams)
|
|
|
},
|
|
|
SecondHandProduct(params){//提交发布
|
|
|
this.SecondService.SecondHandProduct(params).then(res=>{
|