|
@@ -1,7 +1,7 @@
|
|
|
<template name="secondHandrelease">
|
|
|
<view class="fleaMarketForm">
|
|
|
<view class="bannerimg"><image src="https://static.caimei365.com/app/img/bg/secondbg.jpg"></image></view>
|
|
|
- <view class="my-maintenance" :style="{ paddingBottom: isIphoneX ? '270rpx' : '168rpx' }">
|
|
|
+ <view class="my-maintenance" :style="{ paddingBottom: isIphoneX ? '270rpx' : '250rpx' }">
|
|
|
<view class="newsTitle">
|
|
|
<view class="nestext">
|
|
|
欢迎您来到采美365网二手商品市场,您可以在这里发布二手设备、产品信息,
|
|
@@ -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 () {
|
|
@@ -689,14 +689,14 @@
|
|
|
}
|
|
|
if(this.secondParams.name == ''){
|
|
|
this.$util.msg('请输入商品名称',2000)
|
|
|
- return
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if(this.secondParams.publishIdentity === 2) {
|
|
|
+ if (this.secondParams.companyName=='') {
|
|
|
+ this.$util.msg('请输入公司名称',2000);
|
|
|
+ return
|
|
|
+ }
|
|
|
}
|
|
|
- // if(this.secondParams.secondHandType ==2) {
|
|
|
- // if (this.secondParams.maturityYears=='') {
|
|
|
- // this.$util.msg('请输入产品到期日',2000);
|
|
|
- // return
|
|
|
- // }
|
|
|
- // }
|
|
|
if(!this.$api.isNumber(this.secondParams.price)){
|
|
|
this.$util.msg('请输入交易价',2000)
|
|
|
return
|
|
@@ -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=>{
|
|
@@ -964,6 +975,7 @@
|
|
|
margin-bottom: 10rpx;
|
|
|
box-sizing: border-box;
|
|
|
float: left;
|
|
|
+ color: #333333;
|
|
|
.icon-yixuanze{
|
|
|
margin-right: 10rpx;
|
|
|
color: #E15616;
|