|
@@ -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() {
|