|
|
@@ -17,6 +17,8 @@ var content = {
|
|
|
BankCode: "银行Code:",
|
|
|
expireTime: "过期时间:",
|
|
|
success:'成功',
|
|
|
+ timeout:'订单已过期!',
|
|
|
+ orderTip:'找不到该订单或订单已过期!',
|
|
|
},
|
|
|
'en':{
|
|
|
item1:'Order',
|
|
|
@@ -35,6 +37,8 @@ var content = {
|
|
|
BankCode: "Bank Code:",
|
|
|
expireTime: "ExpireTime:",
|
|
|
success:'success',
|
|
|
+ timeout:'订单已过期!',
|
|
|
+ orderTip:'找不到该订单或订单已过期!',
|
|
|
}
|
|
|
};
|
|
|
let config = {
|
|
|
@@ -82,7 +86,7 @@ let vm = new Vue({
|
|
|
|
|
|
time:'',
|
|
|
timer:null,
|
|
|
- timeStatus:1,
|
|
|
+ timeStatus:0,
|
|
|
|
|
|
rules: {
|
|
|
|
|
|
@@ -125,7 +129,6 @@ let vm = new Vue({
|
|
|
send: async function () {
|
|
|
this.pictLoading = true;
|
|
|
axios.get(this.ho + '/pay/order/get?serial=' + this.serial, {
|
|
|
-
|
|
|
//参数
|
|
|
}).then(res => {//请求成功后的处理函数
|
|
|
if (res.data.code == 200) {
|
|
|
@@ -135,10 +138,13 @@ let vm = new Vue({
|
|
|
});
|
|
|
this.params = res.data.data;
|
|
|
} else {
|
|
|
- this.$message.error(res.data.msg);
|
|
|
+ // 过期或者单号不对前端来提示不用后端的字段
|
|
|
+ // this.$message.error(res.data.msg);
|
|
|
+ this.$message.error(this.lang['orderTip']);
|
|
|
}
|
|
|
this.timer = setInterval(() => {this.getDate()}, 1000);
|
|
|
- }).catch(err => { //请求失败后的处理函数
|
|
|
+ }).catch(err => {
|
|
|
+ //请求失败后的处理函数
|
|
|
|
|
|
})
|
|
|
setTimeout(() => {
|
|
|
@@ -209,8 +215,8 @@ let vm = new Vue({
|
|
|
|
|
|
},
|
|
|
mounted() {
|
|
|
- // this.ho ='http://192.168.0.21:15233';
|
|
|
- this.ho = window.location.origin;
|
|
|
+ this.ho ='http://192.168.0.21:15233';
|
|
|
+ // this.ho = window.location.origin;
|
|
|
// this.params.token = window.location.search.split('?token=')[1];
|
|
|
this.serial = window.location.search.split('?serial=')[1];
|
|
|
|