修改功能
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<view class="content">
|
||||
<view class="contop">
|
||||
<view class="">
|
||||
<image class="userimg" :src="userinfo.avatar==''||userinfo.avatar==null||userinfo.avatar=='null'?'/static/image/mine/user.png':userinfo.avatar" mode=""></image>
|
||||
<image class="userimg" :src="userinfo.avatar" mode=""></image>
|
||||
<!-- <image class="userimg" src="/static/image/mine/user.png" mode=""></image> -->
|
||||
</view>
|
||||
<view class="right">
|
||||
|
||||
+25
-12
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user