登录
This commit is contained in:
		@@ -52,6 +52,13 @@
 | 
			
		||||
        </div>
 | 
			
		||||
      </div>
 | 
			
		||||
    </div>
 | 
			
		||||
    <!-- <div class="login-btn">
 | 
			
		||||
      
 | 
			
		||||
      <img src="./img/question-icon.png" alt="">登录
 | 
			
		||||
    </div> -->
 | 
			
		||||
    <button class="login-btn" open-type="getPhoneNumber" @getphonenumber="handleAdminLogin">
 | 
			
		||||
      <img src="./img/question-icon.png" alt="">登录
 | 
			
		||||
    </button>
 | 
			
		||||
    <AiLogin ref="login"/>
 | 
			
		||||
  </div>
 | 
			
		||||
</template>
 | 
			
		||||
@@ -282,7 +289,14 @@ export default {
 | 
			
		||||
      innerAudioContext.onStop(() => {
 | 
			
		||||
        this.messageList[index].isPlay = false
 | 
			
		||||
      })
 | 
			
		||||
    }
 | 
			
		||||
    },
 | 
			
		||||
    handleAdminLogin({detail: {code: phoneCode}}) {
 | 
			
		||||
      if (!this.token) {
 | 
			
		||||
        this.autoLogin({loginWay: 'admin', phoneCode}).then(() => {
 | 
			
		||||
          this.getUserInfo()
 | 
			
		||||
        })
 | 
			
		||||
      } else this.$u.toast("已登录,无需重新登录!")
 | 
			
		||||
    },
 | 
			
		||||
  },
 | 
			
		||||
}
 | 
			
		||||
</script>
 | 
			
		||||
@@ -438,7 +452,6 @@ page {
 | 
			
		||||
        left: -12px;
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
     
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  .fixed-bottom {
 | 
			
		||||
@@ -502,5 +515,31 @@ page {
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  
 | 
			
		||||
  .login-btn {
 | 
			
		||||
    position: fixed;
 | 
			
		||||
    bottom: 500px;
 | 
			
		||||
    left: 0;
 | 
			
		||||
    width: 144px;
 | 
			
		||||
    height: 64px;
 | 
			
		||||
    background: #B8B8B8;
 | 
			
		||||
    border-top-right-radius: 44px;
 | 
			
		||||
    border-bottom-right-radius: 44px;
 | 
			
		||||
    padding: 12px 16px;
 | 
			
		||||
    box-sizing: border-box;
 | 
			
		||||
    line-height: 40px;
 | 
			
		||||
    font-family: PingFangSC-Medium;
 | 
			
		||||
    font-weight: 500;
 | 
			
		||||
    font-size: 28px;
 | 
			
		||||
    color: #FFF;
 | 
			
		||||
    z-index: 999;
 | 
			
		||||
    img {
 | 
			
		||||
      width: 40px;
 | 
			
		||||
      height: 40px;
 | 
			
		||||
      vertical-align: bottom;
 | 
			
		||||
      margin-right: 8px;
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
</style>
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										
											BIN
										
									
								
								src/project/baiduAI/AppDialogue/img/question-icon.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								src/project/baiduAI/AppDialogue/img/question-icon.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 2.1 KiB  | 
		Reference in New Issue
	
	Block a user