youhau daima

This commit is contained in:
java110 2022-09-02 12:23:00 +08:00
parent f421d955f1
commit 32469acf9f
6 changed files with 13 additions and 7 deletions

View File

@ -212,7 +212,7 @@ export function toPayTempCarFee(_objData){
export function toAliPayTempCarFee(_objData){
return new Promise((resolve, reject) => {
requestNoAuth({
url: url.payTempCarFee,
url: url.alipayPayTempCarFee,
method: "POST",
data: JSON.stringify(_objData), //动态数据
success: function(res) {

View File

@ -70,11 +70,11 @@
},
defProv:{
type:String,
default:''
default:''
},
defChar:{
type:String,
default:'A'
default:'H'
},
gua: {
type: Boolean,

View File

@ -15,7 +15,7 @@ export default {
saveOwner: baseUrl + 'app/owner.saveOwner', //家庭成员列表
queryOwnerMembers: baseUrl + 'app/owner.queryOwnerMembers', //投诉建议列表
listComplaints: baseUrl + 'app/complaint.listComplaints', //添加投诉建议
saveComplaint: baseUrl + 'app/complaint', //查询业主房间
saveComplaint: baseUrl + 'app/complaint.saveComplaint', //查询业主房间
queryRoomsByOwner: baseUrl + 'app/room.queryRoomsByOwner', //绑定业主
appUserBindingOwner: baseUrl + 'app/owner.appUserBindingOwner', //查询绑定业主
ownerRegiter: baseUrl + 'app/owner.ownerRegister', //业主注册
@ -149,7 +149,9 @@ export default {
listOwnerVisit: baseUrl + "app/visit.listVisits",
listSystemInfo:baseUrl+"app/system.listSystemInfo",
queryWaitPayFeeTempCar:baseUrl+"app/car.queryWaitPayFeeTempCar",
payTempCarFee:baseUrl+"app/alipay.payTempCarFee",
alipayPayTempCarFee:baseUrl+"app/alipay.payTempCarFee",
getOpenIdFromAliPay:baseUrl+"app/alipay.getOpenIdFromAliPay",

View File

@ -3,7 +3,7 @@ export function isWxOrAli() {
if (/MicroMessenger/.test(window.navigator.userAgent)) {
_env = "WECHAT"
} else if (/AlipayClient/.test(window.navigator.userAgent)) {
_env = "ALI"
_env = "ALIPAY"
} else {
_env = "OTHER"
}

View File

@ -172,7 +172,7 @@
})
},
onPayFee: function() {
if(isWxOrAli == 'ALIPAY'){
if(isWxOrAli() == 'ALIPAY'){
this.onAliPayPayFee();
}else{
this.onWxPayFee();

View File

@ -233,6 +233,10 @@
appId: this.aliAppId,
scopes: ['auth_base'],
}, function(res) {
uni.showToast({
title:JSON.stringify(res),
icon:'none'
})
ap.alert(JSON.stringify(res));
getOpenIdFromAliPay({
authCode:res.authCode,