update 细节和订单确认收货(提示支付和确认收货的人,需要同一个openid)
| | |
| | | extraData: { |
| | | // merchant_id: '', |
| | | // merchant_trade_no: '', |
| | | merchant_id: '1661512517', |
| | | merchant_trade_no: tmp.id || '', |
| | | // merchant_id: '1661512517', |
| | | // merchant_trade_no: tmp.id || '', |
| | | transaction_id: tmp.dto && tmp.dto.paymentTrId || '' |
| | | }, |
| | | async success(info) { |
| | | console.log('info', info) |
| | | //dosomething |
| | | // 发送请求 |
| | | if (info.extraData && info.extraData.status === 'fail') { |
| | | tmp.$message.showToast('支付和确认收货需要是同一微信号,请联系实际支付人登录确认') |
| | | |
| | | } else if (info.extraData && info.extraData.status === 'cancel') { |
| | | |
| | | } else { |
| | | tmp.$message.showLoading() |
| | | const { |
| | | code |
| | |
| | | tmp.getDetail() |
| | | tmp.$store.dispatch('getCurrentInfo') |
| | | } |
| | | |
| | | } |
| | | |
| | | }, |
| | | fail(e) { |
| | | //dosomething |
| | |
| | | extraData: { |
| | | // merchant_id: '1230000109', |
| | | // merchant_trade_no: '1234323JKHDFE1243252', |
| | | merchant_id: '1661512517', |
| | | merchant_trade_no: item.orderId || item.id || '', |
| | | // merchant_id: '1661512517', |
| | | // merchant_trade_no: item.orderId || item.id || '', |
| | | transaction_id: item.paymentTrId |
| | | }, |
| | | async success(info) { |
| | | console.log('确认收货 info success', info) |
| | | //dosomething |
| | | if (info.extraData && info.extraData.status === 'fail') { |
| | | tmp.$message.showToast('支付和确认收货需要是同一微信号,请联系实际支付人登录确认') |
| | | } else if (info.extraData && info.extraData.status === 'cancel') { |
| | | |
| | | } else { |
| | | |
| | | |
| | | // 发送请求 |
| | | tmp.$message.showLoading() |
| | | const { |
| | |
| | | tmp.$store.dispatch('getCurrentInfo') |
| | | tmp.$message.showToast('收货成功') |
| | | } |
| | | } |
| | | }, |
| | | fail(e) { |
| | | console.log('确认收货 info error', e) |