소스 검색

bug修复

master
suizhijia 5 년 전
부모
커밋
b1c842ffa5
2개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  1. +3
    -1
      496_dongfengqichen/pages/scout/register/register.js
  2. +2
    -2
      496_dongfengqichen/pages/scout/scout.js

+ 3
- 1
496_dongfengqichen/pages/scout/register/register.js 파일 보기

console.log(res) console.log(res)
if (res.code == 200) { if (res.code == 200) {
if(res.data!=null){ if(res.data!=null){
app.globalData.isStar = res.data;
app.globalData.authenticationStatus = res.data;
app.globalData.certificationState=res.data.certificationState; app.globalData.certificationState=res.data.certificationState;
wx.navigateTo({url: '/pages/scout/scout'})
wx.redirectTo({url: '/pages/scout/scout'})
}else{ }else{
this.setData({isbtn: true}) this.setData({isbtn: true})
wx.showToast({icon:'none',title: '认证失败'}) wx.showToast({icon:'none',title: '认证失败'})

+ 2
- 2
496_dongfengqichen/pages/scout/scout.js 파일 보기

* 海报页 * 海报页
*/ */
getPoster:function(){ getPoster:function(){
console.log(this.data.authenticationStatus);
// console.log(this.data.authenticationStatus);
// return; // return;
if (this.data.authenticationStatus) { if (this.data.authenticationStatus) {
wx.navigateTo({ wx.navigateTo({
}else if(app.globalData.certificationState==4){ }else if(app.globalData.certificationState==4){
this.setData({titleContent:'尊敬的星探顾问'}) this.setData({titleContent:'尊敬的星探顾问'})
} }
console.log(app.globalData.userInfoData);
// console.log(app.globalData.userInfoData);


if(app.globalData.userInfoData && app.globalData.userInfoData.avatarUrl){ if(app.globalData.userInfoData && app.globalData.userInfoData.avatarUrl){
this.setData({iconShow:false}) this.setData({iconShow:false})

Loading…
취소
저장