Browse Source

页面样式修改

name 6 năm trước cách đây
mục cha
commit
22676b6d28
2 tập tin đã thay đổi với 24 bổ sung23 xóa
  1. 1 0
      src/assets/css/element_amend.css
  2. 23 23
      src/pages/Login.vue

+ 1 - 0
src/assets/css/element_amend.css

@@ -3,6 +3,7 @@
 body {
   overflow-x: hidden;
   overflow-y: auto;
+  font-size: 16px !important;
 }
 
 /* for Chrome */

+ 23 - 23
src/pages/Login.vue

@@ -27,32 +27,32 @@ export default {
   },
   watch: {},
   created() {
-    // this.getTKByUnionid()
+    this.getTKByUnionid()
   },
   methods: {
-    WxLoginCtl() {
-      // this.$util.messageMethod("success", "前去微信登陆扫码授权");
-      this.$router.push({
-        path: "/aikmt/Redirect_uri",
-        query: {
-          unionid: "oPHg8wXraekgH5YKVHvD3H7Ujynw",
-          prince: "6666666666666"
-        }
-      });
-    },
-    // async getTKByUnionid() {
-    //   if (window.location.href.indexOf("unionid") >= 0) {
-    //     // 如果url中包含code,则保存到store中
-    //     let unionid = window.location.href.split("?")[1];
-    //     unionid = unionid.substring(8, code.indexOf("&"));
-    //     let WxCode = unionid;
-    //     this.WxCode = WxCode;
-    //     this.$store.dispatch("UnionidLogin", {
-    //      unionid: this.WxCode
+    // WxLoginCtl() {
+    //   // this.$util.messageMethod("success", "前去微信登陆扫码授权");
+    //   this.$router.push({
+    //     path: "/aikmt/Redirect_uri",
+    //     query: {
+    //       unionid: "oPHg8wXraekgH5YKVHvD3H7Ujynw",
+    //       prince: "6666666666666"
+    //     }
     //   });
-    //   }
-    //  return
-    // }
+    // },
+    async getTKByUnionid() {
+      if (window.location.href.indexOf("unionid") >= 0) {
+        // 如果url中包含code,则保存到store中
+        let unionid = window.location.href.split("?")[1];
+        unionid = unionid.substring(8);
+        let WxCode = unionid;
+        this.WxCode = WxCode;
+        this.$store.dispatch("UnionidLogin", {
+         unionid: this.WxCode
+      });
+      }
+     return
+    }
   },
   mounted() {
     var obj = new WxLogin({