mirror of
https://gitee.com/java110/WechatOwnerService.git
synced 2026-02-23 21:36:38 +08:00
youhau daima
This commit is contained in:
parent
f421d955f1
commit
32469acf9f
@ -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) {
|
||||
|
||||
@ -70,11 +70,11 @@
|
||||
},
|
||||
defProv:{
|
||||
type:String,
|
||||
default:'青'
|
||||
default:'渝'
|
||||
},
|
||||
defChar:{
|
||||
type:String,
|
||||
default:'A'
|
||||
default:'H'
|
||||
},
|
||||
gua: {
|
||||
type: Boolean,
|
||||
|
||||
@ -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",
|
||||
|
||||
|
||||
|
||||
|
||||
@ -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"
|
||||
}
|
||||
|
||||
@ -172,7 +172,7 @@
|
||||
})
|
||||
},
|
||||
onPayFee: function() {
|
||||
if(isWxOrAli == 'ALIPAY'){
|
||||
if(isWxOrAli() == 'ALIPAY'){
|
||||
this.onAliPayPayFee();
|
||||
}else{
|
||||
this.onWxPayFee();
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user