Redirect to userPayData.wxPay

This commit is contained in:
Vion
2022-01-27 17:40:14 +08:00
parent 300788a552
commit 808807c563
3 changed files with 56 additions and 23 deletions

View File

@@ -33,6 +33,22 @@ let util = {
} else {
return 2;
}
},
checkPaytypeValidated($paytype) {
if(isWx && $paytype == 1) {
//return 3;
return true;
} else if(isWx && $paytype!=1) {
return false;
}
if(!isMobile && $paytype == 1) {
//Desktop, use native pay
return true;
} else if(isMobile && $paytype == 2) {
return true;
}
return false;
}
}
export default util;