This commit is contained in:
fengjignqi
2026-07-04 10:47:05 +08:00
parent 01e4f0aefa
commit d8d546c90a
13 changed files with 220 additions and 201 deletions

View File

@@ -306,7 +306,7 @@ public class EspProvisionManager {
mainHandler.postDelayed(provisionTimeoutTask, ProvisionConfig.PROVISION_TIMEOUT);
notifyProvisioning(0);
startProvisionProgressTask();
//wifi 密码 回调
espDevice.provision(ssid, password == null ? "" : password, new ProvisionListener() {
@Override
public void createSessionFailed(Exception e) {

View File

@@ -309,10 +309,10 @@ public class LoginActivity extends BaseActivity<LoginLayoutBinding, LoginPresent
}
}
if (!mYinsiConfirm) {
ToastUtil.showShort(mContext, getString(R.string.login_error_agreement));
return;
}
// if (!mYinsiConfirm) {
// ToastUtil.showShort(mContext, getString(R.string.login_error_agreement));
// return;
// }
showLoadingDialog();
mPresenter.loginBySmsCode(loginType,

View File

@@ -75,7 +75,7 @@ public class WaterConfigFragment extends BaseFragment<WaterConfigFragmentLayoutC
timeDataList.add(timeData);
bean.setTimeData(timeDataList);
bean.setWeekday(i + 1);
bean.setStatus("1");
bean.setStatus("0");
bean.setWeekName(ZYTimeUtils.getWeekName(i,mContext));
bean.setTriggerType("0");
list.add(bean);
@@ -92,6 +92,7 @@ public class WaterConfigFragment extends BaseFragment<WaterConfigFragmentLayoutC
List<WaterPlanWeekEntity.TimeDataBean> timeList = weekList.get(0).getTimeData();
mTimeAdapter = new WaterPlanTimeDataAdapter(mContext,R.layout.include_plan_time_item_layout,timeList);
viewBinding.rvTimes.setAdapter(mTimeAdapter);
viewBinding.switchButton.setChecked(weekList.get(0).getStatus().equals("1"));
initListener();
}
@@ -264,8 +265,12 @@ public class WaterConfigFragment extends BaseFragment<WaterConfigFragmentLayoutC
// 更新周配置列表的显示,使用 mConfigEntity.getDetails() 保证数据一致
if (mLocalEntity.getDetails() != null) {
weekList = mLocalEntity.getDetails();
mWeekAdapter.setNewData(mLocalEntity.getDetails());
mTimeAdapter.setNewData(weekList.get(mWeekAdapter.getmPos()).getTimeData());
if(!weekList.isEmpty()){
viewBinding.switchButton.setChecked(weekList.get(0).getStatus().equals("1"));
mWeekAdapter.setNewData(mLocalEntity.getDetails());
mTimeAdapter.setNewData(weekList.get(mWeekAdapter.getmPos()).getTimeData());
}
}
}

View File

@@ -59,7 +59,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="@dimen/sp_14"
android:textColor="@color/color_2E2E2E"
android:textColor="@color/textPrimaryColor"
android:lineSpacingExtra="@dimen/dp_4"
android:text="1.优化布局\n2.修复已知bug优化用户体验\n3.测试内容测试内容测试内容测试内容测试内容"/>
</LinearLayout>

View File

@@ -1,232 +1,246 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/color_F9F9F9"
android:orientation="vertical">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:src="@mipmap/icon_launch_icon"
android:layout_marginTop="160dp"/>
android:background="@color/color_F9F9F9">
<LinearLayout
android:id="@+id/ll_info"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<Button
android:id="@+id/btn_133"
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="133"
android:visibility="gone"/>
<Button
android:id="@+id/btn_151"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="151"
android:visibility="gone"/>
android:layout_gravity="center_horizontal"
android:src="@mipmap/icon_launch_icon"
android:layout_marginTop="80dp"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="@dimen/dp_30"
android:orientation="horizontal"
android:layout_marginTop="96dp">
<LinearLayout
android:id="@+id/tab_code"
android:orientation="vertical">
<Button
android:id="@+id/btn_133"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/tv_login_by_code"
android:text="133"
android:visibility="visible"/>
<Button
android:id="@+id/btn_151"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="151"
android:visibility="visible"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="@dimen/dp_30"
android:orientation="horizontal"
android:layout_marginTop="96dp">
<LinearLayout
android:id="@+id/tab_code"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/login_by_code"
android:textColor="@color/color_333333"
android:orientation="vertical">
<TextView
android:id="@+id/tv_login_by_code"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/login_by_code"
android:textColor="@color/color_333333"
android:textSize="14sp"
android:textStyle="bold"/>
<View
android:id="@+id/view_line_code"
android:layout_width="match_parent"
android:layout_height="3dp"
android:layout_marginHorizontal="15dp"
android:layout_marginTop="-6dp"
android:background="@color/color_8000CA9D"/>
</LinearLayout>
<LinearLayout
android:id="@+id/tab_psd"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginLeft="40dp">
<TextView
android:id="@+id/tv_login_by_psd"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/login_by_psd"
android:textColor="@color/color_333333"
android:textSize="14sp"/>
<View
android:id="@+id/view_line_psd"
android:layout_width="match_parent"
android:layout_height="3dp"
android:layout_marginHorizontal="15dp"
android:layout_marginTop="-6dp"
android:background="@color/color_8000CA9D"
android:visibility="invisible"/>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="50dp"
android:orientation="horizontal"
android:layout_marginHorizontal="20dp"
android:background="@drawable/shape_round_corner_100"
android:layout_marginTop="@dimen/dp_25"
android:gravity="center_vertical"
android:paddingHorizontal="@dimen/dp_20">
<ImageView
android:layout_width="24dp"
android:layout_height="24dp"
android:src="@mipmap/icon_phone"/>
<EditText
android:id="@+id/et_account"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="5dp"
android:background="@null"
android:textSize="14sp"
android:textStyle="bold"/>
<View
android:id="@+id/view_line_code"
android:layout_width="match_parent"
android:layout_height="3dp"
android:layout_marginHorizontal="15dp"
android:layout_marginTop="-6dp"
android:background="@color/color_8000CA9D"/>
android:textColor="@color/color_222222"
android:hint="@string/hint_input_account"/>
</LinearLayout>
<LinearLayout
android:id="@+id/tab_psd"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginLeft="40dp">
android:id="@+id/linear_verfi_code"
android:layout_width="match_parent"
android:layout_height="50dp"
android:orientation="horizontal"
android:layout_marginHorizontal="20dp"
android:background="@drawable/shape_round_corner_100"
android:layout_marginTop="20dp"
android:gravity="center_vertical"
android:paddingHorizontal="@dimen/dp_20">
<ImageView
android:layout_width="24dp"
android:layout_height="24dp"
android:src="@mipmap/icon_phone_code"/>
<EditText
android:id="@+id/ed_code_input"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="2"
android:layout_marginLeft="5dp"
android:background="@null"
android:textSize="14sp"
android:textColor="@color/color_222222"
android:hint="@string/hint_input_verifi"/>
<TextView
android:id="@+id/tv_login_by_psd"
android:layout_width="wrap_content"
android:id="@+id/tv_get_verifi_code"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:text="@string/login_by_psd"
android:textColor="@color/color_333333"
android:textSize="14sp"/>
<View
android:id="@+id/view_line_psd"
android:layout_width="match_parent"
android:layout_height="3dp"
android:layout_marginHorizontal="15dp"
android:layout_marginTop="-6dp"
android:background="@color/color_8000CA9D"
android:visibility="invisible"/>
android:layout_weight="1.2"
android:background="@drawable/shape_green_50"
android:paddingVertical="8dp"
android:gravity="center"
android:textSize="13sp"
android:textColor="@color/white"
android:text="@string/get_verifi_code"/>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="50dp"
android:orientation="horizontal"
android:layout_marginHorizontal="20dp"
android:background="@drawable/shape_round_corner_100"
android:layout_marginTop="@dimen/dp_25"
android:gravity="center_vertical"
android:paddingHorizontal="@dimen/dp_20">
<ImageView
android:layout_width="24dp"
android:layout_height="24dp"
android:src="@mipmap/icon_phone"/>
<EditText
android:id="@+id/et_account"
<LinearLayout
android:id="@+id/linear_psd"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="5dp"
android:background="@null"
android:textSize="14sp"
android:textColor="@color/color_222222"
android:hint="@string/hint_input_account"/>
</LinearLayout>
<LinearLayout
android:id="@+id/linear_verfi_code"
android:layout_width="match_parent"
android:layout_height="50dp"
android:orientation="horizontal"
android:layout_marginHorizontal="20dp"
android:background="@drawable/shape_round_corner_100"
android:layout_marginTop="20dp"
android:gravity="center_vertical"
android:paddingHorizontal="@dimen/dp_20">
<ImageView
android:layout_width="24dp"
android:layout_height="24dp"
android:src="@mipmap/icon_phone_code"/>
<EditText
android:id="@+id/ed_code_input"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="2"
android:layout_marginLeft="5dp"
android:background="@null"
android:textSize="14sp"
android:textColor="@color/color_222222"
android:hint="@string/hint_input_verifi"/>
android:layout_height="50dp"
android:orientation="horizontal"
android:layout_marginHorizontal="20dp"
android:background="@drawable/shape_round_corner_100"
android:layout_marginTop="20dp"
android:gravity="center_vertical"
android:paddingHorizontal="@dimen/dp_20"
android:visibility="gone">
<ImageView
android:layout_width="24dp"
android:layout_height="24dp"
android:src="@mipmap/icon_psd"/>
<EditText
android:id="@+id/et_input_psd"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="8"
android:layout_marginLeft="5dp"
android:background="@null"
android:textSize="14sp"
android:textColor="@color/color_222222"
android:hint="@string/hint_input_psd"
android:inputType="textPassword"/>
<ImageView
android:id="@+id/img_psd_show_hide"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_weight="0.5"
android:src="@mipmap/icon_psd_show"/>
</LinearLayout>
<TextView
android:id="@+id/tv_get_verifi_code"
android:layout_width="0dp"
android:id="@+id/tv_login"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1.2"
android:background="@drawable/shape_green_50"
android:paddingVertical="8dp"
android:gravity="center"
android:textSize="13sp"
android:textSize="14sp"
android:textColor="@color/white"
android:text="@string/get_verifi_code"/>
</LinearLayout>
<LinearLayout
android:id="@+id/linear_psd"
android:layout_width="match_parent"
android:layout_height="50dp"
android:orientation="horizontal"
android:layout_marginHorizontal="20dp"
android:background="@drawable/shape_round_corner_100"
android:layout_marginTop="20dp"
android:gravity="center_vertical"
android:paddingHorizontal="@dimen/dp_20"
android:visibility="gone">
<ImageView
android:layout_width="24dp"
android:layout_height="24dp"
android:src="@mipmap/icon_psd"/>
<EditText
android:id="@+id/et_input_psd"
android:text="@string/btn_login"
android:background="@drawable/shape_green_button_bg"
android:paddingVertical="10dp"
android:layout_marginHorizontal="20dp"
android:layout_marginTop="40dp"
android:gravity="center"/>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:background="@null"
android:textSize="14sp"
android:textColor="@color/color_222222"
android:hint="@string/hint_input_psd"/>
</LinearLayout>
<TextView
android:id="@+id/tv_login"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="14sp"
android:textColor="@color/white"
android:text="@string/btn_login"
android:background="@drawable/shape_green_button_bg"
android:paddingVertical="10dp"
android:layout_marginHorizontal="20dp"
android:layout_marginTop="40dp"
android:gravity="center"/>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginTop="20dp"
android:layout_marginHorizontal="20dp">
<TextView
android:id="@+id/tv_go_register"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="14sp"
android:textColor="@color/color_zhu"
android:text="@string/go_register"/>
<TextView
android:id="@+id/tv_language"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:textSize="14sp"
android:textColor="@color/color_zhu"
android:text="@string/change_language"/>
<TextView
android:id="@+id/tv_reset_psd"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:textSize="14sp"
android:textColor="@color/color_zhu"
android:text="@string/reset_psd"
android:visibility="invisible"/>
</RelativeLayout>
android:orientation="horizontal"
android:layout_marginTop="20dp"
android:layout_marginHorizontal="20dp">
<TextView
android:id="@+id/tv_go_register"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="14sp"
android:textColor="@color/color_zhu"
android:text="@string/go_register"/>
<TextView
android:id="@+id/tv_language"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:textSize="14sp"
android:textColor="@color/color_zhu"
android:text="@string/change_language"/>
<TextView
android:id="@+id/tv_reset_psd"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:textSize="14sp"
android:textColor="@color/color_zhu"
android:text="@string/reset_psd"
android:visibility="invisible"/>
</RelativeLayout>
</LinearLayout>
</LinearLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="@dimen/dp_100">
android:layout_height="@dimen/dp_100"
android:layout_alignParentBottom="true">
<RelativeLayout
android:id="@+id/realtive_read_finish"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_alignParentBottom="true"
android:layout_marginHorizontal="@dimen/dp_15"
android:layout_marginBottom="@dimen/dp_30">
<RadioButton
@@ -251,4 +265,4 @@
android:textSize="11sp" />
</RelativeLayout>
</RelativeLayout>
</LinearLayout>
</RelativeLayout>

View File

@@ -109,7 +109,7 @@
android:layout_centerVertical="true"
android:layout_alignParentRight="true"
app:kswThumbColor="@android:color/white"
android:checked="true"
android:checked="false"
app:kswBackDrawable="@drawable/switch_bg"
app:kswFadeBack="true"/>
</LinearLayout>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB