Commit e929885a by sunchao

获取微信openid

parent c240afd8
......@@ -105,9 +105,7 @@
...this.applyParam,
applyType:2,
operatStep:5,
// userId:uni.getStorageSync('cffp_userId'),
userId:42,
id:17
userId:uni.getStorageSync('cffp_userId'),
}
api.saveApplyInfo(this.applyParam).then((res)=>{
if(res['success']){
......
......@@ -301,10 +301,8 @@
...this.applyParam,
applyType:2,
operatStep:1,
// userId:uni.getStorageSync('cffp_userId'),
userId:42,
hasCrossDistrict:0,
id:17
userId:uni.getStorageSync('cffp_userId'),
hasCrossDistrict:0
}
api.saveApplyInfo(this.applyParam).then((res)=>{
if(res['success']){
......
......@@ -161,9 +161,7 @@
...this.applyParam,
applyType:2,
operatStep:4,
// userId:uni.getStorageSync('cffp_userId'),
userId:42,
id:17,
userId:uni.getStorageSync('cffp_userId'),
}
api.saveApplyInfo(this.applyParam).then((res)=>{
if(res['success']){
......
......@@ -138,9 +138,7 @@
...this.applyParam,
applyType:2,
operatStep:3,
// userId:uni.getStorageSync('cffp_userId'),
userId:42,
id:17,
userId:uni.getStorageSync('cffp_userId'),
}
api.saveApplyInfo(this.applyParam).then((res)=>{
if(res['success']){
......
......@@ -170,9 +170,7 @@
...this.applyParam,
applyType:2,
operatStep:2,
// userId:uni.getStorageSync('cffp_userId'),
userId:42,
id:17,
userId:uni.getStorageSync('cffp_userId'),
certificate:this.picList.join(',')
}
console.log(this.applyParam)
......
......@@ -129,18 +129,26 @@
},
//微信去提现
wxWithdrawal(){
debugger;
// APP:
// #ifdef APP-PLUS
uni.login({
provider: 'weixin',
success: function (loginRes) {
// 登录成功
alert(JSON.stringify(loginRes))
// alert(JSON.stringify(loginRes))
uni.getUserInfo({
provider: 'weixin',
success: function(info) {
// 获取用户信息成功, info.authResult保存用户信息
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 @@
// err.code是错误码
}
})
// #endif
},
confirmWithdrawal(){
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