Browse Source

1.添加禁用注销功能的逻辑判断。

20241218TB223FC(测试jar包)
wangwanlei 9 months ago
parent
commit
56b01efa30

+ 7
- 1
app/src/main/java/com/xhly/manageapp/ui/main/activity/MainActivity.kt View File

227
 
227
 
228
         }
228
         }
229
         mBinding.loginoutIv.setOnClickListener {
229
         mBinding.loginoutIv.setOnClickListener {
230
-            showEditDialog()
230
+            val schoolDeviceSetBean = StrategyUtils.getSchoolDeviceSetBean(this@MainActivity)
231
+            if (schoolDeviceSetBean !=null&&schoolDeviceSetBean.logout==1){
232
+                //禁用注销
233
+                return@setOnClickListener
234
+            }else{
235
+                showEditDialog()
236
+            }
231
         }
237
         }
232
         mBinding.codeenterCv.setOnClickListener {
238
         mBinding.codeenterCv.setOnClickListener {
233
             //如果密码一致,则解锁
239
             //如果密码一致,则解锁

Loading…
Cancel
Save