|
@@ -6,13 +6,18 @@ let curUrl = ref("")
|
|
let reUrl = ref("https://yixuefrp.cxhy.cn/test")
|
|
let reUrl = ref("https://yixuefrp.cxhy.cn/test")
|
|
let reUri = ref("")
|
|
let reUri = ref("")
|
|
let fullUrl = ref("")
|
|
let fullUrl = ref("")
|
|
|
|
+let isToUri = ref(true)
|
|
|
|
|
|
onMounted(function () {
|
|
onMounted(function () {
|
|
curUrl.value = document.URL
|
|
curUrl.value = document.URL
|
|
})
|
|
})
|
|
|
|
|
|
function calcURI() {
|
|
function calcURI() {
|
|
- reUri.value = encodeURIComponent(reUrl.value)
|
|
|
|
|
|
+ if (isToUri.value == true) {
|
|
|
|
+ reUri.value = encodeURIComponent(reUrl.value)
|
|
|
|
+ } 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=snsapi_base&state=999#wechat_redirect"
|
|
}
|
|
}
|
|
|
|
|
|
@@ -30,6 +35,9 @@ function goto() {
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
<el-row style="width: 100%">
|
|
<el-row style="width: 100%">
|
|
|
|
+ <el-checkbox v-model="isToUri">转换成URI</el-checkbox>
|
|
|
|
+ </el-row>
|
|
|
|
+ <el-row style="width: 100%">
|
|
<el-col :span="4">URI</el-col>
|
|
<el-col :span="4">URI</el-col>
|
|
<el-col :span="16">
|
|
<el-col :span="16">
|
|
<el-text>{{ reUri }}</el-text>
|
|
<el-text>{{ reUri }}</el-text>
|