22285461@qq.com 5 mēneši atpakaļ
vecāks
revīzija
109fa14e5c
3 mainītis faili ar 9 papildinājumiem un 2 dzēšanām
  1. 0 0
      dist/assets/index-qObuI44o.js
  2. 1 1
      dist/index.html
  3. 8 1
      src/components/Test.vue

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
dist/assets/index-qObuI44o.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-BO5j1jll.js"></script>
+  <script type="module" crossorigin src="/assets/index-qObuI44o.js"></script>
   <link rel="stylesheet" crossorigin href="/assets/index-FrvreMPU.css">
 </head>
 <body>

+ 8 - 1
src/components/Test.vue

@@ -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>

Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels