sun2511 %!s(int64=2) %!d(string=hai) anos
pai
achega
0d239b8296
Modificáronse 2 ficheiros con 28 adicións e 30 borrados
  1. 27 29
      pages/index/index.js
  2. 1 1
      project.private.config.json

+ 27 - 29
pages/index/index.js

@@ -319,7 +319,7 @@ Page({
                 // 获取用户权限
             this.getHelpAuth()
             if (!res.data.data.grade) {
-                // 没有年级的老用户
+                /* // 没有年级的老用户
                 if (res.data.data.nickName) {
                     this.setData({
                         isGradeShow: true,
@@ -328,11 +328,11 @@ Page({
                         oldUser: true
                     })
                     return;
-                }
+                } */
                 this.setData({
                     isGradeShow: true,
                     options,
-                    isLogin: false,
+                    isLogin: true,
                     workId: options.scene ? options.scene : options.readId ? options.readId : undefined
                 })
                 return
@@ -942,33 +942,31 @@ Page({
             isGradeShow: false,
             grade
         })
-        if (this.data.oldUser) {
-            let data = {
-                grade: e.target.dataset.code
-            };
-            httpRequestApi.settingUserInfo(data).success(res => {})
-            return;
+        let data = {
+            grade
         };
-        getOpenidNoLogin((res) => {
-            console.log('getOpenidNoLogin', res)
-                // 登录或注册完成 展示页面
-            if (res.data.data.nickName) {
-                this.setData({
-                    isLogin: true
-                })
-            } else {
-                this.setData({
-                    isLogin: false
-                })
-            }
-            this.showPage()
-        }, (error) => {
-            console.log('获取失败')
-            wx.setStorageSync('userSourseType', 'normal')
-            this.setData({
-                hide: !this.data.hide
-            })
-        }, grade);
+        httpRequestApi.settingUserInfo(data).success(res => {})
+        return;
+        /*  getOpenidNoLogin((res) => {
+             console.log('getOpenidNoLogin', res)
+                 // 登录或注册完成 展示页面
+             if (res.data.data.nickName) {
+                 this.setData({
+                     isLogin: true
+                 })
+             } else {
+                 this.setData({
+                     isLogin: false
+                 })
+             }
+             this.showPage()
+         }, (error) => {
+             console.log('获取失败')
+             wx.setStorageSync('userSourseType', 'normal')
+             this.setData({
+                 hide: !this.data.hide
+             })
+         }, grade); */
     },
 
     getFollowData: function() {

+ 1 - 1
project.private.config.json

@@ -8,7 +8,7 @@
                 {
                     "name": "/pages/index/index",
                     "pathName": "/pages/index/index",
-                    "query": "readId=103127012&uid=4cb6ca9f5d7f45f6ad5429f3de080d2d",
+                    "query": "readId=103127012&uid=621993583e41481fbf7af7b355387eca",
                     "launchMode": "default",
                     "scene": null
                 },