|
@@ -7,6 +7,7 @@ let reUrl = ref("https://yixuefrp.cxhy.cn/test")
|
|
|
let reUri = ref("")
|
|
|
let fullUrl = ref("")
|
|
|
let isToUri = ref(true)
|
|
|
+let sns = ref("snsapi_base")
|
|
|
|
|
|
onMounted(function () {
|
|
|
curUrl.value = document.URL
|
|
@@ -18,7 +19,7 @@ function calcURI() {
|
|
|
} else {
|
|
|
reUri.value = reUrl.value
|
|
|
}
|
|
|
- fullUrl.value = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxf01ec97b45a4bc49&redirect_uri=" + reUri.value + "&response_type=code&scope=snsapi_base&state=999#wechat_redirect"
|
|
|
+ fullUrl.value = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxf01ec97b45a4bc49&redirect_uri=" + reUri.value + "&response_type=code&scope=" + sns.value + "&state=999#wechat_redirect"
|
|
|
}
|
|
|
|
|
|
function goto() {
|
|
@@ -38,6 +39,12 @@ function goto() {
|
|
|
<el-checkbox v-model="isToUri">转换成URI</el-checkbox>
|
|
|
</el-row>
|
|
|
<el-row style="width: 100%">
|
|
|
+ <el-radio-group v-model="sns">
|
|
|
+ <el-radio value="snsapi_base">base</el-radio>
|
|
|
+ <el-radio value="snsapi_userinfo">info</el-radio>
|
|
|
+ </el-radio-group>
|
|
|
+ </el-row>
|
|
|
+ <el-row style="width: 100%">
|
|
|
<el-col :span="4">URI</el-col>
|
|
|
<el-col :span="16">
|
|
|
<el-text>{{ reUri }}</el-text>
|