|
|
@ -11,13 +11,14 @@ |
|
|
|
<!-- #ifdef APP-PLUS --> |
|
|
|
<!-- #ifdef APP-PLUS --> |
|
|
|
<!-- <button class='item grant' @click="setUserInfo">去授权</button> --> |
|
|
|
<!-- <button class='item grant' @click="setUserInfo">去授权</button> --> |
|
|
|
<!-- #endif --> |
|
|
|
<!-- #endif --> |
|
|
|
<!-- #ifdef H5 --> |
|
|
|
|
|
|
|
<button class='item grant' @click="setUserInfo">去授权</button> |
|
|
|
|
|
|
|
<!-- #endif --> |
|
|
|
|
|
|
|
<!-- #ifdef MP --> |
|
|
|
<!-- #ifdef MP --> |
|
|
|
<button class='item grant' type="primary" @click="getuserinfo" lang="zh_CN" |
|
|
|
<button class='item grant' type="primary" @click="getuserinfo" lang="zh_CN" |
|
|
|
withCredentials="true">去授权</button> |
|
|
|
withCredentials="true">去授权</button> |
|
|
|
<!-- #endif --> |
|
|
|
<!-- #endif --> |
|
|
|
|
|
|
|
<!-- #ifdef H5 --> |
|
|
|
|
|
|
|
<button class='item grant' type="primary" @click="getH5userinfo" lang="zh_CN" |
|
|
|
|
|
|
|
withCredentials="true">微信授权</button> |
|
|
|
|
|
|
|
<!-- #endif --> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class='mask' v-if='isShowAuth' @click='close'></view> |
|
|
|
<view class='mask' v-if='isShowAuth' @click='close'></view> |
|
|
@ -125,6 +126,9 @@ |
|
|
|
// }) |
|
|
|
// }) |
|
|
|
that.isShowAuth = false |
|
|
|
that.isShowAuth = false |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
getH5userinfo(){ |
|
|
|
|
|
|
|
console.log('[=========]') |
|
|
|
|
|
|
|
}, |
|
|
|
close() { |
|
|
|
close() { |
|
|
|
uni.reLaunch({ |
|
|
|
uni.reLaunch({ |
|
|
|
url: '/pages/tabBar/home/home' |
|
|
|
url: '/pages/tabBar/home/home' |
|
|
|