优化样式

master
rongweikang 2 years ago
parent 724482ca63
commit b7b1d4a055

@ -2,6 +2,11 @@ page {
background: #f3f3f3;
}
.mb10{
margin-bottom: 20rpx;
font-size: 32rpx;
}
/* 隐藏横向滚动条 */
::-webkit-scrollbar {
width: 0;

@ -138,6 +138,8 @@ class Index extends Component<any, any> {
}
async onLoad() {
console.log(1123131233);
// 仅非扫码进入页面时,校验跳转欢迎页
if (!this.$instance.router?.params?.q) {
const isFirst = Taro.getStorageSync("isWelcome");
@ -145,9 +147,15 @@ class Index extends Component<any, any> {
go("/pages/initiate/initiate");
}
}
if (Taro.getStorageSync("skip")) {
this.setState({ showEquipment: true })
Taro.removeStorageSync('skip');
}
}
componentDidMount() { }
componentDidMount() {
}
componentWillUnmount() { }
@ -638,7 +646,12 @@ class Index extends Component<any, any> {
go("/pages/iotCarePlan/iotCarePlan"); // 画页面直接跳转
// return;
}
onUnloginConfirm() {
this.setState({ showEquipment: false })
}
onUnloginClose() {
this.setState({ showEquipment: false })
}
//连接完成时数据的回调
offlineChange = async (e) => {
console.log("offlineChange", e);
@ -854,16 +867,16 @@ class Index extends Component<any, any> {
title='提示'
content={
<Block>
<View></View>
<View>uniquie14231</View>
<View></View>
<View className='mb10'></View>
<View className='mb10'>uniquie14231</View>
<View className='mb10'></View>
</Block>
}
confirmButtonText='知道了'
textAlgin='center'
isClose={false}
close={this.onBindErrorClose}
confirm={this.onBindErrorConfirm}
close={this.onUnloginClose.bind(this)}
confirm={this.onUnloginConfirm.bind(this)}
></PopupAlert>
{/* <PopupPrivacyTest

Loading…
Cancel
Save