22285461@qq.com 5 miesięcy temu
rodzic
commit
4012f9eacd
3 zmienionych plików z 37 dodań i 1 usunięć
  1. 0 0
      dist/assets/index-CA03Oew1.js
  2. 1 1
      dist/index.html
  3. 36 0
      src/components/Test.vue

Plik diff jest za duży
+ 0 - 0
dist/assets/index-CA03Oew1.js


+ 1 - 1
dist/index.html

@@ -5,7 +5,7 @@
     <link rel="icon" type="image/svg+xml" href="/vite.svg"/>
     <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"/>
     <title>桢禧文化</title>
-  <script type="module" crossorigin src="/assets/index-BXpLfHR2.js"></script>
+  <script type="module" crossorigin src="/assets/index-CA03Oew1.js"></script>
   <link rel="stylesheet" crossorigin href="/assets/index-FrvreMPU.css">
 </head>
 <body>

+ 36 - 0
src/components/Test.vue

@@ -3,14 +3,50 @@
 import {onMounted, ref} from "vue";
 
 let curUrl = ref("")
+let reUrl = ref("https://yixuefrp.cxhy.cn/test")
+let reUri = ref("")
+let fullUrl = ref("")
 
 onMounted(function () {
   curUrl.value = document.URL
 })
+
+function calcURI() {
+  reUri.value = encodeURIComponent(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"
+}
+
+function goto() {
+  window.location.href = fullUrl.value
+}
 </script>
 
 <template>
   {{ curUrl }}
+  <el-row style="width: 100%">
+    <el-col :span="4">回调URL</el-col>
+    <el-col :span="18">
+      <el-input v-model="reUrl"></el-input>
+    </el-col>
+  </el-row>
+  <el-row style="width: 100%">
+    <el-col :span="4">URI</el-col>
+    <el-col :span="16">
+      <el-text>{{ reUri }}</el-text>
+    </el-col>
+    <el-col :span="4">
+      <el-button @click="calcURI">计算</el-button>
+    </el-col>
+  </el-row>
+  <el-row style="width: 100%">
+    <el-col :span="4">完整URL</el-col>
+    <el-col :span="18">
+      <el-text>{{ fullUrl }}</el-text>
+    </el-col>
+  </el-row>
+  <el-row style="width: 100%">
+    <el-button @click="goto">访问</el-button>
+  </el-row>
 </template>
 
 <style scoped>

Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików