Commit c95b9536 by cocomilk2012

update

parent 2df3e8e1
......@@ -87,6 +87,7 @@ class Bridge {
* @param {Object=} args 请求对象
*/
getActionUrl(args = {}) {
console.log('bridge.getActionUrl');
return new Promise((resolve, reject) => {
try {
jsBridge.callHandler("getActionUrl", args, function (response) {
......
......@@ -251,22 +251,31 @@ export default {
//TODO:根据UA判断:如果App版本<2.1.9就走原来的充值逻辑;如果App版本>=2.1.9就走新的充值逻辑;
const userAgent = navigator.userAgent.toLowerCase();
if (userAgent.indexOf("qqxbua") != -1) {
}
const version = "2.1.9";
let tempArr = userAgent.split("qqxbua:");
if (tempArr.length > 1) {
const tempStr = tempArr[1];
const QQXBUA = JSON.parse(tempStr);
let version = QQXBUA.version;
console.log('version=',version);
if (version < "2.1.9") {
this.toPay_old();
} else {
this.toPay_new();
}
}
} else {
this.toPay_new();
}
},
toPay_new() {
console.log("topay_new");
//TODO:先弹出一个遮罩层,点击任意按钮刷新页面
this.$bridge.getActionUrl(nativePayUrl).then(res => {
this.$bridge.getActionUrl(this.nativePayUrl).then(res => {
console.log("getActionUrl in bill index");
});
},
toPay_old() {
console.log("topay_old");
this.$bridge
.setPageNavState({
headerColor: "#fff",
......
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