2021-02-07 10:58:03.828 772-772/? E/Thermal-daemon: [charger_ic] temp_new :37 temp_old :36
2021-02-07 10:58:03.830 772-772/? E/Thermal-daemon: Report temperature: [charger_ic] temp :37 report_threshold:1
2021-02-07 10:58:03.830 772-772/? E/Thermal-daemon: [flash_led] temp_new :35 temp_old :34
2021-02-07 10:58:03.832 772-772/? E/Thermal-daemon: Report temperature: [flash_led] temp :35 report_threshold:1
2021-02-07 10:58:03.832 772-772/? E/Thermal-daemon: [ap] temp_new :37 temp_old :36
2021-02-07 10:58:03.834 772-772/? E/Thermal-daemon: Report temperature: [ap] temp :37 report_threshold:1
2021-02-07 10:58:04.125 1162-1371/? E/WificondControl: Noise: -95, Snr: 0, Chload: -1
2021-02-07 10:58:04.545 1577-1577/? E/HwNotchUtils: setIconForView iconId is not found
2021-02-07 10:58:04.546 1577-1577/? E/HwNotchUtils: setIconForView iconId is not found
2021-02-07 10:58:06.090 12694-12694/? E/weex: setType=text
2021-02-07 10:58:06.106 12694-12694/? E/weex: setType=text
2021-02-07 10:58:06.144 12694-12694/? E/weex: Argument Warning ! value is And default Value:NaN
2021-02-07 10:58:06.145 12694-12694/? E/BasicGraphicAction: SafeRunnable run throw expection:Attempt to invoke virtual method 'boolean com.taobao.weex.WXSDKInstance.isLayerTypeEnabled()' on a null object reference
2021-02-07 10:58:06.148 12694-12694/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.yuhouyi.yy.debug, PID: 12694
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.taobao.weex.WXSDKInstance.isLayerTypeEnabled()' on a null object reference
at com.taobao.weex.ui.component.WXComponent.isLayerTypeEnabled(WXComponent.java:2335)
at com.taobao.weex.ui.component.WXComponent.setOpacity(WXComponent.java:1833)
at com.taobao.weex.ui.component.WXComponent.setProperty(WXComponent.java:835)
at com.taobao.weex.ui.component.WXComponent.updateProperties(WXComponent.java:761)
at com.taobao.weex.ui.component.WXComponent.updateStyles(WXComponent.java:280)
at com.taobao.weex.ui.action.GraphicActionUpdateStyle.executeAction(GraphicActionUpdateStyle.java:135)
at com.taobao.weex.ui.action.BasicGraphicAction.run(BasicGraphicAction.java:68)
at android.os.Handler.handleCallback(Handler.java:808)
at android.os.Handler.dispatchMessage(Handler.java:101)
at android.os.Looper.loop(Looper.java:166)
at android.app.ActivityThread.main(ActivityThread.java:7529)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
2021-02-07 10:58:06.780 552-552/? E/WifiHAL: enter wifi_get_link_stats
2021-02-07 10:58:06.795 773-773/? E/wificond: Failed to get NL80211_STA_INFO_CNAHLOAD
2021-02-07 10:58:06.796 1162-1371/? E/WificondControl: Noise: -95, Snr: 0, Chload: -1
<template>
<view class="content">
<view class="logoBox" @click="open(['fade'])">
<image class="logo" src="/static/login_logo.png"></image>
</view>
<view class="loginBox">
<view class="loginBtnBox" v-if="!phoneLoginStatus">
<button class="wxlogin btncommon" @click="wxlogin">
<text class="wxText">微信登录</text>
</button>
<button class="phonelogin btncommon" @click="phoneLogin">
<text class="phoneText">手机登录</text>
</button>
</view>
<view class="phoneLoginBox" v-else>
<view class="closeBox">
<image class="closeImg" src="@/static/close.png" @tap="close"></image>
</view>
<view class="phoneForm">
<form>
<view class="numberBox">
<image class="numberImg" src="@/static/close.png" @tap="close"></image>
<input class="numberInput" v-model="mobile" placeholder="手机号" name="input"></input>
</view>
<view class="codeBox">
<image class="codeImg" src="@/static/close.png" @tap="close"></image>
<input class="codeInput" v-model="code" placeholder="验证码" name="input"></input>
</view>
</form>
</view>
<view class="submitBox">
<view class="submitCode" @tap="sendcode()">
<text class="submitCodeText">{{sendcodetext}}</text>
</view>
<view class="submitLogin" @tap="onLogin()">
<text class="submitLoginText">立即登录</text>
</view>
</view>
</view>
</view>
<view class="footer">
<text class="footerText">V.1.0.1</text>
</view>
</view>
</template>
<script>
import httpService from "../../lib/httpService.js"
export default {
data() {
return {
phoneLoginStatus:false,
sendcodetext:'发送验证码',
mobile:'',
code:'',
countdown:60,
timer:null,
state:1
}
},
onShow() {
if(uni.getStorageSync("currentUser")) {
uni.redirectTo({
url: '../conversations/conversations',
});
}
},
methods: {
open(mode) {
this.modeClass = mode
this.transShow = !this.transShow
},
wxlogin(e){
uni.showToast({
title: "暂未开放微信登录",
icon:"none"
});
},
phoneLogin(){
this.phoneLoginStatus = !this.phoneLoginStatus;
},
close(){
this.phoneLoginStatus = !this.phoneLoginStatus;
},
sendcode(){
console.log(this.state);
if(this.state == 1) {
if(this.mobile == "") {
uni.showToast({
title: "手机号未输入",
mask:true,
icon:"none"
});
return;
}
this.timer = setInterval(() => {
this.state = false;
-- this.countdown;
this.sendcodetext = this.countdown+"秒后获取";
console.log(this.countdown,"当前数字",this.sendcodetext);
if (this.countdown == 0){
this.state = true;
this.sendcodetext = '获取验证码';
clearInterval(this.timer);
this.countdown = 60;
}
},1000);
httpService.getWithLoading("/v1/sms/send",{
phone:this.mobile
}).then((res)=>{
console.log('返回信息',res.data["message"]);
uni.showToast({
title: res.data["message"],
mask:true,
icon:"none"
});
});
}
},
onLogin(e) {
if(this.mobile == "") {
uni.showToast({
title: "手机号未输入",
mask:true,
icon:"none"
});
return;
}
if(this.code == "") {
uni.showToast({
title: "验证码未输入",
mask:true,
icon:"none"
});
return;
}
console.log(this.mobile,this.code)
httpService.getWithLoading("/v1/login",{
type:1,
phone: this.mobile,
code:this.code
}).then((res)=>{
console.log(res);
if(res["data"]["code"] == 200){
uni.setStorage({
key:'currentUser',
data:{
phone:res.data.data["phone"],
uuid:res.data.data["uid"],
username:res.data.data["username"],
headimg:res.data.data["headimg"],
token:res.data.data["token"],
},
success:function(){
console.log("数据保存成功");
}
});
uni.showToast({
title: "欢迎:"+res["data"]["data"]["phone"],
mask:true,
icon:"none",
duration:2000,
});
uni.redirectTo({
url: '../conversations/conversations',
});
}else{
uni.showToast({
title: res["data"]["message"],
mask:true,
icon:"none",
});
}
});
}
}
}
</script>
<style>
@import url("@/static/style/phoneLogin.css");
/* #ifndef APP-NVUE */
page {
display: flex;
height: 100%;
flex: 1;
}
/* #endif */
.content {
/* #ifndef APP-NVUE */
display: flex;
/* #endif */
flex-direction: column;
align-items: center;
justify-content: center;
flex:2;
background-image:linear-gradient(to bottom right,#FDAFD8,#FEBEDD);
}
.logoBox{
flex: 1;
}
.logo {
height: 200rpx;
width: 200rpx;
margin-top: 200rpx;
margin-bottom: 50rpx;
border-radius: 20%;
}
.loginBox{
flex: 1;
justify-content: flex-start;
}
.btncommon{
border-radius: 50upx;
height: 90rpx;
width: 450rpx;
font-size: 36upx;
}
.wxlogin{
background-image:linear-gradient(to bottom right,#F76BBE,#FD76A2);
border-width: 0rpx;
}
.phonelogin{
border-width: 4rpx;
border-style: solid;
border-color: #FA6CA6;
margin-top: 90upx;
/* #ifndef APP-NVUE */
background-color: unset;
/* #endif */
background-color: rgba(0,0,0,0);
}
.wxText{
color: #FFFFFF;
}
.phoneText{
color: #FD74A2;
}
.footerText{
color: #FFFFFF;
font-size: 12px;
margin-bottom: 10px;
}
</style>
makeit
去提交bug, 按照模版把环境,设备,系统版本等等写上,就会有人处理了
2021-11-28 16:40