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){
|
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) {
|
||||||
|
|||||||
@ -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,
|
||||||
|
|||||||
@ -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",
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -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"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -172,7 +172,7 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
onPayFee: function() {
|
onPayFee: function() {
|
||||||
if(isWxOrAli == 'ALIPAY'){
|
if(isWxOrAli() == 'ALIPAY'){
|
||||||
this.onAliPayPayFee();
|
this.onAliPayPayFee();
|
||||||
}else{
|
}else{
|
||||||
this.onWxPayFee();
|
this.onWxPayFee();
|
||||||
|
|||||||
@ -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,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user