Commit e929885a by sunchao

获取微信openid

parent c240afd8
...@@ -105,9 +105,7 @@ ...@@ -105,9 +105,7 @@
...this.applyParam, ...this.applyParam,
applyType:2, applyType:2,
operatStep:5, operatStep:5,
// userId:uni.getStorageSync('cffp_userId'), userId:uni.getStorageSync('cffp_userId'),
userId:42,
id:17
} }
api.saveApplyInfo(this.applyParam).then((res)=>{ api.saveApplyInfo(this.applyParam).then((res)=>{
if(res['success']){ if(res['success']){
......
...@@ -301,10 +301,8 @@ ...@@ -301,10 +301,8 @@
...this.applyParam, ...this.applyParam,
applyType:2, applyType:2,
operatStep:1, operatStep:1,
// userId:uni.getStorageSync('cffp_userId'), userId:uni.getStorageSync('cffp_userId'),
userId:42, hasCrossDistrict:0
hasCrossDistrict:0,
id:17
} }
api.saveApplyInfo(this.applyParam).then((res)=>{ api.saveApplyInfo(this.applyParam).then((res)=>{
if(res['success']){ if(res['success']){
......
...@@ -161,9 +161,7 @@ ...@@ -161,9 +161,7 @@
...this.applyParam, ...this.applyParam,
applyType:2, applyType:2,
operatStep:4, operatStep:4,
// userId:uni.getStorageSync('cffp_userId'), userId:uni.getStorageSync('cffp_userId'),
userId:42,
id:17,
} }
api.saveApplyInfo(this.applyParam).then((res)=>{ api.saveApplyInfo(this.applyParam).then((res)=>{
if(res['success']){ if(res['success']){
......
...@@ -138,9 +138,7 @@ ...@@ -138,9 +138,7 @@
...this.applyParam, ...this.applyParam,
applyType:2, applyType:2,
operatStep:3, operatStep:3,
// userId:uni.getStorageSync('cffp_userId'), userId:uni.getStorageSync('cffp_userId'),
userId:42,
id:17,
} }
api.saveApplyInfo(this.applyParam).then((res)=>{ api.saveApplyInfo(this.applyParam).then((res)=>{
if(res['success']){ if(res['success']){
......
...@@ -170,9 +170,7 @@ ...@@ -170,9 +170,7 @@
...this.applyParam, ...this.applyParam,
applyType:2, applyType:2,
operatStep:2, operatStep:2,
// userId:uni.getStorageSync('cffp_userId'), userId:uni.getStorageSync('cffp_userId'),
userId:42,
id:17,
certificate:this.picList.join(',') certificate:this.picList.join(',')
} }
console.log(this.applyParam) console.log(this.applyParam)
......
...@@ -129,18 +129,26 @@ ...@@ -129,18 +129,26 @@
}, },
//微信去提现 //微信去提现
wxWithdrawal(){ wxWithdrawal(){
debugger; // APP:
// #ifdef APP-PLUS
uni.login({ uni.login({
provider: 'weixin', provider: 'weixin',
success: function (loginRes) { success: function (loginRes) {
// 登录成功 // 登录成功
alert(JSON.stringify(loginRes)) // alert(JSON.stringify(loginRes))
uni.getUserInfo({ uni.getUserInfo({
provider: 'weixin', provider: 'weixin',
success: function(info) { success: function(info) {
// 获取用户信息成功, info.authResult保存用户信息 // 获取用户信息成功, info.authResult保存用户信息
console.log(info) console.log(info)
alert(JSON.stringify(info)) this.wxWithdrawalResVO.openId=info.openId;
const wxWithdrawalResVO = {
...this.wxWithdrawalResVO,
userId:uni.getStorageSync('cffp_userId'),
}
api.wxWithdrawal(wxWithdrawalResVO).then((res)=>{
console.log(res)
})
} }
}) })
}, },
...@@ -149,6 +157,7 @@ ...@@ -149,6 +157,7 @@
// err.code是错误码 // err.code是错误码
} }
}) })
// #endif
}, },
confirmWithdrawal(){ confirmWithdrawal(){
if(this.paymentMethod == 1){ if(this.paymentMethod == 1){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment