From c1fdd4cd63f2b70ca04e5af4321a38228b877850 Mon Sep 17 00:00:00 2001
From: zhaoxiaoqiang <287285524@qq.com>
Date: Mon, 28 Nov 2022 10:36:58 +0800
Subject: [PATCH] projID
---
src/views/order/pay-result.vue | 61 +++++++++++++-----------------
1 files changed, 27 insertions(+), 34 deletions(-)
diff --git a/src/views/order/pay-result.vue b/src/views/order/pay-result.vue
index 9f4830b..75fb544 100644
--- a/src/views/order/pay-result.vue
+++ b/src/views/order/pay-result.vue
@@ -1,8 +1,8 @@
<!--
* @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>
@@ -56,39 +56,34 @@
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)
+ }
});
}
@@ -96,9 +91,7 @@
goBack(){
this.$router.push({
path:'/order/order-detail',
- query:{
- id:this.$route.query.orderId
- }
+ query:{id:this.$route.query.orderId}
})
}
},
--
Gitblit v1.8.0