Commit 4844a58a authored by 沈良进's avatar 沈良进

Merge branch 'master' of http://gitlab.oytour.com/viitto/million

parents c30fc511 f5bd04eb
...@@ -871,14 +871,14 @@ export default { ...@@ -871,14 +871,14 @@ export default {
).value; ).value;
}, },
goPayHandler(pay) { goPayHandler(pay) {
let key = this.$md5(JSON.stringify(pay)); // let key = this.$md5(JSON.stringify(pay));
let pays = localStorage.getItem("pays"); // let pays = localStorage.getItem("pays");
pays = pays ? JSON.parse(pays) : []; // pays = pays ? JSON.parse(pays) : [];
pays.push({ // pays.push({
key, // key,
pay, // pay,
}); // });
localStorage.setItem("pays", JSON.stringify(pays)); // localStorage.setItem("pays", JSON.stringify(pays));
let lineCars = localStorage.getItem("lineCars"); let lineCars = localStorage.getItem("lineCars");
lineCars = lineCars ? JSON.parse(lineCars) : []; lineCars = lineCars ? JSON.parse(lineCars) : [];
let i = lineCars.findIndex((x) => x.key == this.orderKey); let i = lineCars.findIndex((x) => x.key == this.orderKey);
...@@ -886,7 +886,7 @@ export default { ...@@ -886,7 +886,7 @@ export default {
lineCars.splice(i, 1); lineCars.splice(i, 1);
localStorage.setItem("lineCars", JSON.stringify(lineCars)); localStorage.setItem("lineCars", JSON.stringify(lineCars));
} }
this.CommonJump("/pay/" + key, {}); this.CommonJump("/pay/" + pay.OrderNo, {});
}, },
GUID() { GUID() {
return "xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g, function (c) { return "xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g, function (c) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment