修改功能

This commit is contained in:
浅念
2025-03-24 11:13:13 +08:00
parent 0a0ab4d160
commit f7ff9d65a5
10 changed files with 65 additions and 29 deletions
+25 -12
View File
@@ -36,19 +36,32 @@
url:'feishu/getinfo',
method:'post',
}).then(res => {
var data = res.data.data;
this.datas = data
console.log(data)
code_url += 'https://open.feishu.cn/open-apis/authen/v1/authorize'
code_url += '?app_id=' + data.app_id
code_url += '&redirect_uri=' + data.redirect_uri
code_url += '&scope=' + data.scope
code_url += '&state=' + data.state;
uni.showToast({
title: res.data.message,
icon: 'none'
});
if(res.data.code ==0){
var data = res.data.data;
this.datas = data
console.log(data)
code_url += 'https://open.feishu.cn/open-apis/authen/v1/authorize'
code_url += '?app_id=' + data.app_id
code_url += '&redirect_uri=' + data.redirect_uri
code_url += '&scope=' + data.scope
code_url += '&state=' + data.state;
console.log(code_url)
// return;
window.location.href = code_url;
}else{
setTimeout(() => {
uni.reLaunch({
url: '/pages/index/mine',// 替换为你要跳转的页面路径
});
}, 1000);
}
console.log(code_url)
// return;
window.location.href = code_url;
})
} else {
this.getOpenId(code,state)