|
@@ -148,7 +148,7 @@
|
|
|
|
|
|
},
|
|
},
|
|
onReady() {
|
|
onReady() {
|
|
- var time = this.carhelp.get("getvcodetime");
|
|
|
|
|
|
+ var time = this.carhelp.get("getrechagetime");
|
|
if (time) {
|
|
if (time) {
|
|
//this.$refs.uCode.start();
|
|
//this.$refs.uCode.start();
|
|
var nowtime = new Date().getTime()
|
|
var nowtime = new Date().getTime()
|
|
@@ -191,7 +191,7 @@
|
|
uni.hideLoading();
|
|
uni.hideLoading();
|
|
|
|
|
|
if (response.data=!"") {
|
|
if (response.data=!"") {
|
|
- this.carhelp.set("getvcodetime", new Date().getTime());
|
|
|
|
|
|
+ this.carhelp.set("getrechagetime", new Date().getTime());
|
|
|
|
|
|
//倒计时
|
|
//倒计时
|
|
uni.showToast({
|
|
uni.showToast({
|
|
@@ -252,10 +252,15 @@
|
|
uni.showModal({
|
|
uni.showModal({
|
|
title:"提示",
|
|
title:"提示",
|
|
content:"发卡成功",
|
|
content:"发卡成功",
|
|
- showCancel:false,
|
|
|
|
|
|
+ cancelText:"返回",
|
|
confirmText:"前往充值",
|
|
confirmText:"前往充值",
|
|
success: res => {
|
|
success: res => {
|
|
- this.gotoUrl('pages/user/rechargeByPhone?phone='+this.phone)
|
|
|
|
|
|
+ if(res.confirm){
|
|
|
|
+ this.gotoUrl('pages/user/rechargeByPhone?phone='+this.phone)
|
|
|
|
+
|
|
|
|
+ }else if(res.cancel){
|
|
|
|
+ uni.navigateBack()
|
|
|
|
+ }
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
|