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

View File

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

View File

@ -15,7 +15,7 @@ export default {
saveOwner: baseUrl + 'app/owner.saveOwner', //家庭成员列表 saveOwner: baseUrl + 'app/owner.saveOwner', //家庭成员列表
queryOwnerMembers: baseUrl + 'app/owner.queryOwnerMembers', //投诉建议列表 queryOwnerMembers: baseUrl + 'app/owner.queryOwnerMembers', //投诉建议列表
listComplaints: baseUrl + 'app/complaint.listComplaints', //添加投诉建议 listComplaints: baseUrl + 'app/complaint.listComplaints', //添加投诉建议
saveComplaint: baseUrl + 'app/complaint', //查询业主房间 saveComplaint: baseUrl + 'app/complaint.saveComplaint', //查询业主房间
queryRoomsByOwner: baseUrl + 'app/room.queryRoomsByOwner', //绑定业主 queryRoomsByOwner: baseUrl + 'app/room.queryRoomsByOwner', //绑定业主
appUserBindingOwner: baseUrl + 'app/owner.appUserBindingOwner', //查询绑定业主 appUserBindingOwner: baseUrl + 'app/owner.appUserBindingOwner', //查询绑定业主
ownerRegiter: baseUrl + 'app/owner.ownerRegister', //业主注册 ownerRegiter: baseUrl + 'app/owner.ownerRegister', //业主注册
@ -149,7 +149,9 @@ export default {
listOwnerVisit: baseUrl + "app/visit.listVisits", listOwnerVisit: baseUrl + "app/visit.listVisits",
listSystemInfo:baseUrl+"app/system.listSystemInfo", listSystemInfo:baseUrl+"app/system.listSystemInfo",
queryWaitPayFeeTempCar:baseUrl+"app/car.queryWaitPayFeeTempCar", 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)) { if (/MicroMessenger/.test(window.navigator.userAgent)) {
_env = "WECHAT" _env = "WECHAT"
} else if (/AlipayClient/.test(window.navigator.userAgent)) { } else if (/AlipayClient/.test(window.navigator.userAgent)) {
_env = "ALI" _env = "ALIPAY"
} else { } else {
_env = "OTHER" _env = "OTHER"
} }

View File

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

View File

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