//支付倒计时 ?? ??? ??? ?ComputetTime(data) { ?? ??? ??? ??? ?let st = data.replace(/\-/g, "/"), //当前服务器时间 ?? ??? ??? ??? ??? ?ct = this.dataList.createTime.replace(/\-/g, "-"); //创建订单时间 ?? ??? ??? ??? ?let ts = new Date(st).getTime(), ?? ??? ??? ??? ??? ?tc = new Date(ct).getTime(); ?? ??? ??? ??? ?let cm = uni.getStorageSync("timeSetting")[0].orderCancleTime * 60 * 1000 - (ts - tc); ?? ??? ??? ??? ?// let cm = 9000 * 60 * 1000 - (ts - tc); ?? ??? ??? ??? ?console.log(cm, "cm") ?? ??? ??? ??? ?this.runBack(cm); ?? ??? ??? ?}, ?? ??? ??? ?runBack(cm) { ?? ??? ??? ??? ?if (cm > 0) { ?? ??? ??? ??? ??? ?if (cm > 3600000) { ?? ??? ??? ??? ??? ??? ?this.rocallTime = Math.floor(cm / 60 / 1000 / 60) + ":" + (new Date(cm).getMinutes() < 10 ? ?? ??? ??? ??? ??? ??? ??? ??? ?"0" + new Date(cm).getMinutes() : ?? ??? ??? ??? ??? ??? ??? ??? ?new Date(cm).getMinutes()) + ?? ??? ??? ??? ??? ??? ??? ?":" + ?? ??? ??? ??? ??? ??? ??? ?(new Date(cm).getSeconds() < 10 ? ?? ??? ??? ??? ??? ??? ??? ??? ?"0" + new Date(cm).getSeconds() : ?? ??? ??? ??? ??? ??? ??? ??? ?new Date(cm).getSeconds()) ?? ??? ??? ??? ??? ?} else if (cm > 60000 && cm < 3600000) { ?? ??? ??? ??? ??? ??? ?(this.rocallTime = ?? ??? ??? ??? ??? ??? ??? ?(new Date(cm).getMinutes() < 10 ? ?? ??? ??? ??? ??? ??? ??? ??? ?"0" + new Date(cm).getMinutes() : ?? ??? ??? ??? ??? ??? ??? ??? ?new Date(cm).getMinutes()) + ?? ??? ??? ??? ??? ??? ??? ?":" + ?? ??? ??? ??? ??? ??? ??? ?(new Date(cm).getSeconds() < 10 ? ?? ??? ??? ??? ??? ??? ??? ??? ?"0" + new Date(cm).getSeconds() : ?? ??? ??? ??? ??? ??? ??? ??? ?new Date(cm).getSeconds())) ?? ??? ??? ??? ??? ?} else { ?? ??? ??? ??? ??? ??? ?(this.rocallTime = ?? ??? ??? ??? ??? ??? ??? ?"00:" + ?? ??? ??? ??? ??? ??? ??? ?(new Date(cm).getSeconds() < 10 ? ?? ??? ??? ??? ??? ??? ??? ??? ?"0" + new Date(cm).getSeconds() : ?? ??? ??? ??? ??? ??? ??? ??? ?new Date(cm).getSeconds())); ?? ??? ??? ??? ??? ?} ?? ??? ??? ??? ??? ?let _msThis = this; ?? ??? ??? ??? ??? ?setTimeout(function() { ?? ??? ??? ??? ??? ??? ?cm -= 1000; ?? ??? ??? ??? ??? ??? ?_msThis.runBack(cm); ?? ??? ??? ??? ??? ?}, 1000); ?? ??? ??? ??? ?} else { ?? ??? ??? ??? ??? ?this.getDetailList(this.orderId) ?? ??? ??? ??? ?} ?? ??? ??? ?},
|