2 次代碼提交 05819bfe08 ... 24c8216721

作者 SHA1 備註 提交日期
  zhaojing 24c8216721 merge master 1 年之前
  zhaojing 8510c9eaaa 首页用户更新 1 年之前
共有 2 個文件被更改,包括 11 次插入5 次删除
  1. 1 1
      src/packagesEnv/pages/administration/chooseIdentity.wpy
  2. 10 4
      src/packagesEnv/pages/home/index.wpy

+ 1 - 1
src/packagesEnv/pages/administration/chooseIdentity.wpy

@@ -135,7 +135,7 @@ wepy.page({
   },
   methods: {
     loginAdmin() {
-      confirmLogin({ qrCodeId: '1792589efd114af5a1493f1b05a22378' })
+      confirmLogin({ qrCodeId: this.qrCodeId })
         .then((res) => {
           if (res.result == 'success') {
             wx.navigateTo({

+ 10 - 4
src/packagesEnv/pages/home/index.wpy

@@ -301,8 +301,12 @@ import {
   switchCompany,
   getWeather,
 } from '@/api/home.js';
-import { getCompanyDataByPhone, wxLogin , checkHasUserInfo, checkLoginNew } from '@/service/user.js';
-
+import {
+  getCompanyDataByPhone,
+  wxLogin,
+  checkHasUserInfo,
+  checkLoginNew,
+} from '@/service/user.js';
 
 wepy.page({
   store,
@@ -318,6 +322,7 @@ wepy.page({
     showCard: {},
     spaceParam: {},
     weather: {},
+    iii: 1,
   },
   computed: {
     ...mapState({
@@ -462,7 +467,7 @@ wepy.page({
     console.log("home----onLoad");
     checkLoginNew()
       .then(() => {
-        console.log("触发了")
+    
         checkHasUserInfo();
         //获取项目list
         getCompanyDataByPhone()
@@ -503,7 +508,8 @@ wepy.page({
   },
   onShow() {
     console.log("home----onShow");
-    // checkHasUserInfo();
+    this.loadData();
+
   },
 });
 </script>