|
|
@@ -117,28 +117,28 @@
|
|
|
this.imgUrl = obj.url
|
|
|
},
|
|
|
submit () {
|
|
|
- console.log(this.imgUrl)
|
|
|
- if (this.imgUrl) {
|
|
|
- let arr = []
|
|
|
- this.orderData.forEach(item => {
|
|
|
- arr.push(item.orderid)
|
|
|
- })
|
|
|
- this.$http.post(`/trade/transfer?order=${arr.join('-')}`, {
|
|
|
- imgUrl: this.imgUrl,
|
|
|
- total: this.totalPrice,
|
|
|
- type: 'PAIDTOPLATFORM'
|
|
|
- }).then(res => {
|
|
|
- if (res.data === 'success') {
|
|
|
- this.$router.push('/mobile/order?type=buyer')
|
|
|
- } else {
|
|
|
- this.setRemindText(res.data || '付款失败')
|
|
|
- }
|
|
|
- }, err => {
|
|
|
- this.setRemindText(err.response.data || '付款失败')
|
|
|
- })
|
|
|
- } else {
|
|
|
- this.setRemindText('请上传付款凭证')
|
|
|
- }
|
|
|
+ // if (this.imgUrl) {
|
|
|
+ //
|
|
|
+ // } else {
|
|
|
+ // this.setRemindText('请上传付款凭证')
|
|
|
+ // }
|
|
|
+ let arr = []
|
|
|
+ this.orderData.forEach(item => {
|
|
|
+ arr.push(item.orderid)
|
|
|
+ })
|
|
|
+ this.$http.post(`/trade/transfer?order=${arr.join('-')}`, {
|
|
|
+ imgUrl: this.imgUrl,
|
|
|
+ total: this.totalPrice,
|
|
|
+ type: 'PAIDTOPLATFORM'
|
|
|
+ }).then(res => {
|
|
|
+ if (res.data === 'success') {
|
|
|
+ this.$router.push('/mobile/order?type=buyer')
|
|
|
+ } else {
|
|
|
+ this.setRemindText(res.data || '付款失败')
|
|
|
+ }
|
|
|
+ }, err => {
|
|
|
+ this.setRemindText(err.response.data || '付款失败')
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
}
|