lsc 1 天之前
父节点
当前提交
fdd3eec8d9

文件差异内容过多而无法显示
+ 0 - 0
dist/index.html


文件差异内容过多而无法显示
+ 1 - 1
dist/report.html


+ 1 - 1
dist/static/css/chunk-0891e049.78a4dfb2.css → dist/static/css/chunk-172ebed4.1603773b.css

@@ -1 +1 @@
-.wechat-auth-container[data-v-1d162a20]{min-height:100vh;background:-webkit-linear-gradient(315deg,#667eea,#764ba2);background:linear-gradient(135deg,#667eea,#764ba2);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;padding:.53333rem}.wechat-auth-container .auth-content[data-v-1d162a20]{background:#fff;border-radius:.42667rem;padding:1.06667rem .8rem;text-align:center;box-shadow:0 .26667rem .8rem rgba(0,0,0,.1);max-width:10.66667rem;width:100%}.wechat-auth-container .auth-content .logo[data-v-1d162a20]{margin-bottom:.8rem}.wechat-auth-container .auth-content .logo img[data-v-1d162a20]{width:2.13333rem;height:2.13333rem;border-radius:50%}.wechat-auth-container .auth-content .auth-status .van-icon[data-v-1d162a20],.wechat-auth-container .auth-content .auth-status .van-loading[data-v-1d162a20]{margin-bottom:.53333rem}.wechat-auth-container .auth-content .auth-status p[data-v-1d162a20]{margin:.26667rem 0;font-size:.42667rem;color:#333}.wechat-auth-container .auth-content .auth-status p.user-info[data-v-1d162a20]{font-size:.37333rem;color:#666;margin-top:.26667rem}.wechat-auth-container .auth-content .auth-status p.auth-desc[data-v-1d162a20]{font-size:.37333rem;color:#999;margin:.4rem 0 .66667rem}.wechat-auth-container .auth-content .auth-status p.error-message[data-v-1d162a20]{font-size:.37333rem;color:#ee0a24;margin:.4rem 0 .66667rem}.wechat-auth-container .auth-content .auth-status .van-button[data-v-1d162a20]{margin-top:.53333rem;width:5.33333rem;height:1.17333rem;border-radius:.58667rem}@media (max-width:480px){.wechat-auth-container[data-v-1d162a20]{padding:.26667rem}.wechat-auth-container .auth-content[data-v-1d162a20]{padding:.8rem .53333rem}.wechat-auth-container .auth-content .auth-status .van-button[data-v-1d162a20]{width:100%}}
+.wechat-auth-container[data-v-325faf0c]{min-height:100vh;background:-webkit-linear-gradient(315deg,#667eea,#764ba2);background:linear-gradient(135deg,#667eea,#764ba2);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;padding:.53333rem}.wechat-auth-container .auth-content[data-v-325faf0c]{background:#fff;border-radius:.42667rem;padding:1.06667rem .8rem;text-align:center;box-shadow:0 .26667rem .8rem rgba(0,0,0,.1);max-width:10.66667rem;width:100%}.wechat-auth-container .auth-content .logo[data-v-325faf0c]{margin-bottom:.8rem}.wechat-auth-container .auth-content .logo img[data-v-325faf0c]{width:2.13333rem;height:2.13333rem;border-radius:50%}.wechat-auth-container .auth-content .auth-status .van-icon[data-v-325faf0c],.wechat-auth-container .auth-content .auth-status .van-loading[data-v-325faf0c]{margin-bottom:.53333rem}.wechat-auth-container .auth-content .auth-status p[data-v-325faf0c]{margin:.26667rem 0;font-size:.42667rem;color:#333}.wechat-auth-container .auth-content .auth-status p.user-info[data-v-325faf0c]{font-size:.37333rem;color:#666;margin-top:.26667rem}.wechat-auth-container .auth-content .auth-status p.auth-desc[data-v-325faf0c]{font-size:.37333rem;color:#999;margin:.4rem 0 .66667rem}.wechat-auth-container .auth-content .auth-status p.error-message[data-v-325faf0c]{font-size:.37333rem;color:#ee0a24;margin:.4rem 0 .66667rem}.wechat-auth-container .auth-content .auth-status .van-button[data-v-325faf0c]{margin-top:.53333rem;width:5.33333rem;height:1.17333rem;border-radius:.58667rem}@media (max-width:480px){.wechat-auth-container[data-v-325faf0c]{padding:.26667rem}.wechat-auth-container .auth-content[data-v-325faf0c]{padding:.8rem .53333rem}.wechat-auth-container .auth-content .auth-status .van-button[data-v-325faf0c]{width:100%}}

文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/app.99828f3c.js


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/chunk-0891e049.66020c71.js


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/chunk-172ebed4.dde759bb.js


+ 1 - 1
src/api/wechat.js

@@ -5,7 +5,7 @@ const api = 'https://pbl.cocorobo.cn/api/cocoflow/'
 // 微信授权 - 用code换取access_token和用户信息
 export function wechatAuth(data) {
   return request({
-    url: api + 'wechat-callback',
+    url: api + 'wechat-get-user-info',
     method: 'POST',
     data,
     hideloading: false

+ 3 - 3
src/views/wechatAuth/index.vue

@@ -52,8 +52,8 @@ export default {
     // 微信授权配置
     wechatConfig() {
       return {
-        appId: 'wx2d69589899b7ecd6',
-        // appId: 'wx3a8dd28881c2c41f',
+        // appId: 'wx2d69589899b7ecd6',
+        appId: 'wx3a8dd28881c2c41f',
         scope: 'snsapi_userinfo', // snsapi_base 或 snsapi_userinfo
         redirectUri: encodeURIComponent(window.location.origin + '/wechat-auth'),
         state: 'wechat_auth'
@@ -120,7 +120,7 @@ export default {
           this.userInfo = result
           this.authStatus = 'success'
           const res = await wechatRegister({
-            username: result.openid,
+            username: result.userInfo.nickname,
             mail: result.openid + '@wechat.com'
           })
           console.log(res)

部分文件因为文件数量过多而无法显示