Commit 0cc9ff92 by 霍志良

feat:countrycode修改

parent 260c5fa2
...@@ -280,6 +280,7 @@ class RegisterAndLoginActivity : BaseMvpActivity<ILoginContract.View, ILoginCont ...@@ -280,6 +280,7 @@ class RegisterAndLoginActivity : BaseMvpActivity<ILoginContract.View, ILoginCont
if (!TextUtils.isEmpty(YDLCacheUtils.getCountryPhoneCode())) { if (!TextUtils.isEmpty(YDLCacheUtils.getCountryPhoneCode())) {
countryCode = YDLCacheUtils.getCountryPhoneCode() countryCode = YDLCacheUtils.getCountryPhoneCode()
country_code.text = "+" + countryCode?.replace("00", "") country_code.text = "+" + countryCode?.replace("00", "")
LogUtil.e("aaa"+countryCode?.replace("00", ""))
} }
setCountryIcon(countryCode) setCountryIcon(countryCode)
...@@ -652,7 +653,7 @@ class RegisterAndLoginActivity : BaseMvpActivity<ILoginContract.View, ILoginCont ...@@ -652,7 +653,7 @@ class RegisterAndLoginActivity : BaseMvpActivity<ILoginContract.View, ILoginCont
* 根据国家个地区号设置国旗 * 根据国家个地区号设置国旗
*/ */
private fun setCountryIcon(code: String?) { private fun setCountryIcon(code: String?) {
country_code.text= "+$code" country_code.text= "+"+countryCode?.replace("00", "")
/* when (code) { /* when (code) {
"0086" -> iv_country_icon.setImageResource(R.drawable.user_ic_china) "0086" -> iv_country_icon.setImageResource(R.drawable.user_ic_china)
"001" -> iv_country_icon.setImageResource(R.drawable.user_country_usa) "001" -> iv_country_icon.setImageResource(R.drawable.user_country_usa)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment