|
@@ -266,17 +266,16 @@
|
|
@onConfirm="onConfirm">
|
|
@onConfirm="onConfirm">
|
|
</mpvue-city-picker>
|
|
</mpvue-city-picker>
|
|
</view>
|
|
</view>
|
|
- <view class="secondBj thebj" v-show="vShow_secondBj" :class="vShow_secondBj?'show':''">
|
|
|
|
- <view class="bjmain theresult">
|
|
|
|
- <span class="title">发布提示</span>
|
|
|
|
- <p>发布二手商品,采美需要收取您每个商品100元的展示费,展示期为3个月</br>
|
|
|
|
- 支付完成后,商品会在1-2个工作日内进行审核,审核通过后,商品会立即上线</p>
|
|
|
|
- <view class="paybtn">
|
|
|
|
- <view class="thegopay gozhofubao" @click.stop="cancel">取消发布</view>
|
|
|
|
- <view class="cancel closebtn" @click.stop="gopay">去支付</view>
|
|
|
|
- </view>
|
|
|
|
|
|
+ <view class="secondBj thebj" v-show="PopupShow" :class="PopupShow ? 'show':''">
|
|
|
|
+ <view class="bjmain theresult">
|
|
|
|
+ <text class="title">发布提示</text>
|
|
|
|
+ <text class="content"> {{ tipsContentText }} </text>
|
|
|
|
+ <view class="paybtn">
|
|
|
|
+ <view class="btn cancel" @click.stop="cancelButtonFn">{{ cancelButtonText }}</view>
|
|
|
|
+ <view class="btn confirm" @click.stop="confirmButtonFn">{{ confirmButtonText }}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
+ </view>
|
|
<payment-record ref="payment" v-if="isRequest" :discernReceiptList="discernReceiptList" :receiptAmount="receiptAmount"></payment-record>
|
|
<payment-record ref="payment" v-if="isRequest" :discernReceiptList="discernReceiptList" :receiptAmount="receiptAmount"></payment-record>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
@@ -314,7 +313,7 @@
|
|
],
|
|
],
|
|
BrandList:[],
|
|
BrandList:[],
|
|
isShow:false,
|
|
isShow:false,
|
|
- GoodsImagesList:[''],
|
|
|
|
|
|
+ GoodsImagesList:['https://dss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2306696130,3636777462&fm=26&gp=0.jpg'],
|
|
secondParams:{
|
|
secondParams:{
|
|
secondHandType:'',//一级分类
|
|
secondHandType:'',//一级分类
|
|
instrumentType:'',//二手仪器分类
|
|
instrumentType:'',//二手仪器分类
|
|
@@ -332,14 +331,14 @@
|
|
productQuality:'',//商品成色
|
|
productQuality:'',//商品成色
|
|
contactName:'',//联系人
|
|
contactName:'',//联系人
|
|
contactMobile:'',//联系方式
|
|
contactMobile:'',//联系方式
|
|
- authenticationImage:'',//身份验证图片
|
|
|
|
- commitmentImage:'',//承诺函图片
|
|
|
|
|
|
+ authenticationImage:'https://dss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2306696130,3636777462&fm=26&gp=0.jpg',//身份验证图片
|
|
|
|
+ commitmentImage:'https://dss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2306696130,3636777462&fm=26&gp=0.jpg',//承诺函图片
|
|
dockingPeopleName:'',//采美对接人姓名
|
|
dockingPeopleName:'',//采美对接人姓名
|
|
dockingPeopleMobile:'',//采美对接人手机号
|
|
dockingPeopleMobile:'',//采美对接人手机号
|
|
secondProductType:'',//
|
|
secondProductType:'',//
|
|
townId:'',//县区地址
|
|
townId:'',//县区地址
|
|
address:'',//详细地址
|
|
address:'',//详细地址
|
|
- image:'',//图片
|
|
|
|
|
|
+ image:'https://dss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2306696130,3636777462&fm=26&gp=0.jpg',//图片
|
|
fileName:'',
|
|
fileName:'',
|
|
ossName:'',
|
|
ossName:'',
|
|
productDetails:'',//商品详细信息
|
|
productDetails:'',//商品详细信息
|
|
@@ -355,7 +354,11 @@
|
|
brandname:'请选择品牌名称',
|
|
brandname:'请选择品牌名称',
|
|
checkbox:false,
|
|
checkbox:false,
|
|
shoplogoTwo:false,
|
|
shoplogoTwo:false,
|
|
- vShow_secondBj:false,
|
|
|
|
|
|
+ PopupShow:false,
|
|
|
|
+ tipsContentText:'发布二手商品,采美需要收取您每个商品100元的展示费,展示期为3个月支付完成后,商品会在1-2个工作日内进行审核,审核通过后,商品会立即上线',
|
|
|
|
+ cancelButtonText:'取消发布',
|
|
|
|
+ confirmButtonText:'去支付',
|
|
|
|
+ isButtonsType:0,
|
|
resultBj:false,
|
|
resultBj:false,
|
|
vShow_detailTalkFlag:false,
|
|
vShow_detailTalkFlag:false,
|
|
playid:'',
|
|
playid:'',
|
|
@@ -428,16 +431,16 @@
|
|
},
|
|
},
|
|
uploadCommitmentFile(){//上传承诺函文件
|
|
uploadCommitmentFile(){//上传承诺函文件
|
|
uploadFilePdf().then(res =>{
|
|
uploadFilePdf().then(res =>{
|
|
- console.log(res.data)
|
|
|
|
let data = JSON.parse(res.data).data
|
|
let data = JSON.parse(res.data).data
|
|
- this.secondParams.fileName = data.fileName;
|
|
|
|
|
|
+ this.secondParams.fileName = uni.getStorageSync('fileName');
|
|
this.secondParams.ossName = data.ossName;
|
|
this.secondParams.ossName = data.ossName;
|
|
|
|
+ console.log('fileName',this.secondParams.fileName)
|
|
|
|
+ console.log('ossName',this.secondParams.ossName)
|
|
})
|
|
})
|
|
},
|
|
},
|
|
deleteCommitmentFile(){//删除承诺函文件
|
|
deleteCommitmentFile(){//删除承诺函文件
|
|
this.secondParams.fileName = ''
|
|
this.secondParams.fileName = ''
|
|
},
|
|
},
|
|
-
|
|
|
|
removeGoodsImagesFn(index){//删除商品图片
|
|
removeGoodsImagesFn(index){//删除商品图片
|
|
this.GoodsImagesList.splice(index,1);
|
|
this.GoodsImagesList.splice(index,1);
|
|
this.secondParams.image =this.GoodsImagesList.toString()+',';
|
|
this.secondParams.image =this.GoodsImagesList.toString()+',';
|
|
@@ -544,8 +547,31 @@
|
|
return
|
|
return
|
|
}
|
|
}
|
|
console.log(this.secondParams)
|
|
console.log(this.secondParams)
|
|
- this.SecondService.SecondHandProduct(this.secondParams).then(res=>{ //提交发布
|
|
|
|
- this.vShow_secondBj = true;
|
|
|
|
|
|
+ if(this.secondParams.authenticationImage == ''){
|
|
|
|
+ this.PopupShow = true
|
|
|
|
+ this.tipsContentText = '上传身份验证照片。您的二手商品将获得更好的推荐推荐和曝光,方便您快速卖出。'
|
|
|
|
+ this.cancelButtonText = '继续发布'
|
|
|
|
+ this.confirmButtonText = '去上传'
|
|
|
|
+ this.isButtonsType = 1
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ if(this.secondParams.commitmentImage == '' || this.secondParams.ossName == ''){
|
|
|
|
+ this.PopupShow = true
|
|
|
|
+ this.tipsContentText = '上传二手出让承诺函。您的二手商品将获得更好的推荐推荐和曝光,方便您快速卖出。'
|
|
|
|
+ this.cancelButtonText = '继续发布'
|
|
|
|
+ this.confirmButtonText = '去上传'
|
|
|
|
+ this.isButtonsType = 1
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ this.SecondHandProduct(this.secondParams)
|
|
|
|
+ },
|
|
|
|
+ SecondHandProduct(params){//提交发布
|
|
|
|
+ this.SecondService.SecondHandProduct(params).then(res=>{
|
|
|
|
+ this.PopupShow = true;
|
|
|
|
+ this.tipsContentText = '发布二手商品,采美需要收取您每个商品100元的展示费,展示期为3个月支付完成后,商品会在1-2个工作日内进行审核,审核通过后,商品会立即上线'
|
|
|
|
+ this.cancelButtonText = '取消发布'
|
|
|
|
+ this.confirmButtonText = '去支付'
|
|
|
|
+ this.isButtonsType = 2
|
|
this.playid= res.data;
|
|
this.playid= res.data;
|
|
}).catch(error =>{
|
|
}).catch(error =>{
|
|
this.$util.msg(error.msg,2000)
|
|
this.$util.msg(error.msg,2000)
|
|
@@ -553,12 +579,26 @@
|
|
return
|
|
return
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- cancel(){
|
|
|
|
- this.vShow_secondBj = false;
|
|
|
|
|
|
+ cancelButtonFn(){//弹窗操作按钮
|
|
|
|
+ switch(this.isButtonsType){
|
|
|
|
+ case 1:
|
|
|
|
+ this.SecondHandProduct(this.secondParams)
|
|
|
|
+ break;
|
|
|
|
+ case 2:
|
|
|
|
+ this.PopupShow = false;
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
},
|
|
},
|
|
- gopay(){
|
|
|
|
- this.MiniWxPayFor()
|
|
|
|
- this.vShow_secondBj = false;
|
|
|
|
|
|
+ confirmButtonFn(){//弹窗操作按钮
|
|
|
|
+ switch(this.isButtonsType){
|
|
|
|
+ case 1:
|
|
|
|
+ this.PopupShow = false;
|
|
|
|
+ break;
|
|
|
|
+ case 2:
|
|
|
|
+ this.MiniWxPayFor()
|
|
|
|
+ this.PopupShow = false;
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
},
|
|
},
|
|
MiniWxPayFor(){
|
|
MiniWxPayFor(){
|
|
authorize.getCode('weixin').then(wechatcode =>{
|
|
authorize.getCode('weixin').then(wechatcode =>{
|
|
@@ -983,30 +1023,36 @@
|
|
font-weight: bold;
|
|
font-weight: bold;
|
|
border-bottom: 2rpx solid #efefef;
|
|
border-bottom: 2rpx solid #efefef;
|
|
}
|
|
}
|
|
- .theresult p{
|
|
|
|
|
|
+ .theresult .content{
|
|
padding: 30rpx 52rpx;
|
|
padding: 30rpx 52rpx;
|
|
line-height: 48rpx;
|
|
line-height: 48rpx;
|
|
color: #666666;
|
|
color: #666666;
|
|
font-size: 30rpx;
|
|
font-size: 30rpx;
|
|
|
|
+ display: block;
|
|
}
|
|
}
|
|
- .paybtn view{
|
|
|
|
- width: 290rpx;
|
|
|
|
|
|
+ .paybtn{
|
|
|
|
+ width: 100%;
|
|
height: 90rpx;
|
|
height: 90rpx;
|
|
- text-align: center;
|
|
|
|
- line-height: 90rpx;
|
|
|
|
- font-size: 30rpx;
|
|
|
|
- display: inline-block;
|
|
|
|
- }
|
|
|
|
- .paybtn .cancel{
|
|
|
|
- background-image: linear-gradient(270deg, #f28f31 0%, #e15616 100%);
|
|
|
|
- border-radius: 0rpx 0rpx 32rpx 0rpx;
|
|
|
|
- color: #fff;
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
- .paybtn .thegopay{
|
|
|
|
- background-color: #efefef;
|
|
|
|
- border-radius: 0rpx 0rpx 0rpx 32rpx;
|
|
|
|
- color: #999999;
|
|
|
|
|
|
+ float: left;
|
|
|
|
+ .btn{
|
|
|
|
+ width: 50%;
|
|
|
|
+ height: 90rpx;
|
|
|
|
+ text-align: center;
|
|
|
|
+ line-height: 90rpx;
|
|
|
|
+ font-size: 30rpx;
|
|
|
|
+ display: inline-block;
|
|
|
|
+ float: left;
|
|
|
|
+ &.cancel{
|
|
|
|
+ background-color: #efefef;
|
|
|
|
+ border-radius: 0rpx 0rpx 0rpx 32rpx;
|
|
|
|
+ color: #999999;
|
|
|
|
+ }
|
|
|
|
+ &.confirm{
|
|
|
|
+ background-image: linear-gradient(270deg, #f28f31 0%, #e15616 100%);
|
|
|
|
+ border-radius: 0rpx 0rpx 32rpx 0rpx;
|
|
|
|
+ color: #fff;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
.icon-wenhao{
|
|
.icon-wenhao{
|
|
color: #1890f9;
|
|
color: #1890f9;
|