| | |
| | | <!-- |
| | | * @Author: 小明丶 |
| | | * @Date: 2020-06-19 15:59:27 |
| | | * @LastEditors: Please set LastEditors |
| | | * @LastEditTime: 2021-10-29 16:51:54 |
| | | * @LastEditors: zxq |
| | | * @LastEditTime: 2022-11-11 09:35:55 |
| | | * @Description: 支付结果页面 |
| | | --> |
| | | <template> |
| | |
| | | if (res.body.repaySts == 0) { |
| | | this.url = "./static/img/ing.png"; |
| | | this.titleText = "支付中"; |
| | | this.tipText = "正在进行支付,请稍后…"; |
| | | |
| | | this.tipText = "正在进行支付,请稍后…"; |
| | | } |
| | | }); |
| | | } |
| | | if(this.$route.query.model == 2){ |
| | | this.$api |
| | | .preSettleStatus({ |
| | | orderId: this.$route.query.orderId |
| | | }) |
| | | .then(res => { |
| | | this.preSettleStatus = res.body.status |
| | | if (res.body.status == 2) { |
| | | this.url = "./static/img/faile.png"; |
| | | this.titleText = "支付失败"; |
| | | this.tipText = res.body.msg; |
| | | } |
| | | if (res.body.status == 1) { |
| | | this.url = "./static/img/success.png"; |
| | | this.titleText = "支付成功"; |
| | | this.tipText = "支付成功,跳转中请稍后…"; |
| | | this.timer = setTimeout(()=>{ |
| | | this.goBack() |
| | | },3000) |
| | | } |
| | | if (res.body.status == 0) { |
| | | this.url = "./static/img/ing.png"; |
| | | this.titleText = "支付中"; |
| | | this.tipText = "正在进行支付,请稍后…"; |
| | | this.timer = setInterval(()=>{ |
| | | this.init() |
| | | },3000) |
| | | } |
| | | this.$api.preSettleStatus({ orderId: this.$route.query.orderId}).then(res => { |
| | | this.preSettleStatus = res.body.status |
| | | if (res.body.status == 2) { |
| | | this.url = "./static/img/faile.png"; |
| | | this.titleText = "支付失败"; |
| | | this.tipText = res.body.msg; |
| | | } |
| | | if (res.body.status == 1) { |
| | | this.url = "./static/img/success.png"; |
| | | this.titleText = "支付成功"; |
| | | this.tipText = "支付成功,跳转中请稍后…"; |
| | | this.timer = setTimeout(()=>{ |
| | | this.goBack() |
| | | },3000) |
| | | } |
| | | if (res.body.status == 0) { |
| | | this.url = "./static/img/ing.png"; |
| | | this.titleText = "支付中"; |
| | | this.tipText = "正在进行支付,请稍后…"; |
| | | this.timer = setInterval(()=>{ |
| | | this.init() |
| | | },3000) |
| | | } |
| | | }); |
| | | } |
| | | |
| | |
| | | goBack(){ |
| | | this.$router.push({ |
| | | path:'/order/order-detail', |
| | | query:{ |
| | | id:this.$route.query.orderId |
| | | } |
| | | query:{id:this.$route.query.orderId} |
| | | }) |
| | | } |
| | | }, |