| | |
| | | import com.igo.user.network.entity.Function |
| | | import com.igo.user.network.entity.UserInfo |
| | | import com.igo.user.network.request |
| | | import com.igo.user.ui.mine.ChangePwdActivity |
| | | import com.igo.user.ui.mine.FeedbackActivity |
| | | import com.igo.user.ui.mine.InvokeListActivity |
| | | import com.igo.user.ui.mine.MsgActivity |
| | |
| | | |
| | | private val func by lazy { |
| | | arrayListOf<Function>() |
| | | } |
| | | |
| | | private val isSetPassword by lazy { |
| | | intent.getStringExtra("isSetPassword") |
| | | } |
| | | |
| | | override fun setContentView(): View { |
| | |
| | | |
| | | //显示提示设置密码弹窗 |
| | | private fun showNoticeSetPasswordDialog() { |
| | | if (SPUtils.instance().getString(Const.User.NEED_SET_PASSWORD) == "1") { |
| | | if (isSetPassword == "1") { |
| | | HttpManager.queryUserInfo().request(this) { _, data -> |
| | | data?.also { |
| | | SPUtils.instance().put(Const.User.PHONE, it.phone).apply() |
| | |
| | | ) |
| | | tipDialog.setCallback(object : TipDialog.OnClickCallback { |
| | | override fun onOk() { |
| | | startActivity<VerifyPhoneForUpdatePwdActivity>( |
| | | "phone" to it.phone, |
| | | "title" to getString(R.string.set_password) |
| | | ) |
| | | startActivity<ChangePwdActivity>("phone" to Const.User.PHONE) |
| | | } |
| | | |
| | | override fun onCancel() { |