@@ -311,13 +311,16 @@
if(res.data.code==200){
that.$api.doRequest('post','/purchaseOrder/api/submitPurchaseOrder', {id:res.data.data}).then(res1 => {
if(res1.data.code==200){
- uni.navigateTo({
- url: `/pages/business/business`
- })
+ // uni.navigateTo({
+ // url: `/pageA/product/detail`
+ // })
uni.showToast({
title: '提交成功,等待买方回复',
icon: 'none',
- duration: 2000
+ duration: 2000,
+ success() {
+ uni.navigateBack(1)
+ }
})
}else{
@@ -492,6 +495,7 @@
background-color: #22C572;
border-radius: 20px;
margin-top: 10px;
+ color: white;
}
.textareas{
width: 95%;
@@ -321,12 +321,21 @@
title: '提交成功,等待卖方回复',
+ uni.showToast({
+ title: '提交成功,等待买方回复',
+ icon: 'none',
+ })
- // uni.navigateBack();
+ // url: `/pages/business/business`
title: '提交失败:'+res.data.message,
@@ -443,6 +452,7 @@
width: 260px;