Commit 3bd508e2 by cocomilk2012

update

parent 488b52a5
...@@ -254,11 +254,10 @@ export default { ...@@ -254,11 +254,10 @@ export default {
location.reload(); location.reload();
}; };
//根据UA判断:如果App版本<2.1.9就走原来的充值逻辑;如果App版本>=2.1.9就走新的充值逻辑; //根据UA判断:如果App版本<2.1.9就走原来的充值逻辑;如果App版本>=2.1.9就走新的充值逻辑;
//TODO:安卓的单独判断
try { try {
const userAgent = navigator.userAgent.toLowerCase(); const userAgent = navigator.userAgent.toLowerCase();
if (userAgent.indexOf("qqxbua") != -1) { if (userAgent.indexOf("qqxbua") != -1) {
console.log('ios'); console.log("ios");
let tempArr = userAgent.split("qqxbua:"); let tempArr = userAgent.split("qqxbua:");
if (tempArr.length > 1) { if (tempArr.length > 1) {
const tempStr = tempArr[1]; const tempStr = tempArr[1];
...@@ -417,7 +416,6 @@ export default { ...@@ -417,7 +416,6 @@ export default {
await this.loadBillPeriod().then( await this.loadBillPeriod().then(
data => { data => {
this.period = data; this.period = data;
flag = true; flag = true;
this.initMonth(); this.initMonth();
}, },
...@@ -439,7 +437,7 @@ export default { ...@@ -439,7 +437,7 @@ export default {
data => { data => {
this.data.balance = data.balance; this.data.balance = data.balance;
this.data.waitPay = data.waitPay; this.data.waitPay = data.waitPay;
this.nativePayUrl = `hrs100://native/SelectRechargeMode?periodId=${this.currentPerId}&fee=${this.data.waitPay}`; this.nativePayUrl = `hrs100://native/SelectRechargeMode?accountType=-1&periodId=${this.currentPerId}&fee=${this.data.waitPay}`;
console.log("this.nativePayUrl=", this.nativePayUrl); console.log("this.nativePayUrl=", this.nativePayUrl);
}, },
err => { err => {
...@@ -499,6 +497,11 @@ export default { ...@@ -499,6 +497,11 @@ export default {
} }
} }
} }
//TODO:根据APP传过来的periodId赋值给this.currentPerId
const query_periodID = this.$route.query.periodID;
if (query_periodID) {
this.currentPerId = query_periodID;
}
}, },
setBarHeightLowBee() { setBarHeightLowBee() {
setTimeout(() => { setTimeout(() => {
......
...@@ -157,7 +157,7 @@ export default { ...@@ -157,7 +157,7 @@ export default {
data => { data => {
this.summary = data; this.summary = data;
console.log("this.summary=", this.summary); console.log("this.summary=", this.summary);
this.nativePayUrl = `hrs100://native/SelectRechargeMode?periodId=${this.currentPerId}&fee=${this.summary.waitPay}`; this.nativePayUrl = `hrs100://native/SelectRechargeMode?accountType=19&periodId=0&fee=${this.summary.waitPay}`;
console.log("this.nativePayUrl=", this.nativePayUrl); console.log("this.nativePayUrl=", this.nativePayUrl);
}, },
err => { err => {
......
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 sign in to comment