优化样式

master
rongweikang 2 years ago
parent 724482ca63
commit b7b1d4a055

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

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

Loading…
Cancel
Save