Commit 35780f10 authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 311f61d7
...@@ -21,12 +21,6 @@ android { ...@@ -21,12 +21,6 @@ android {
//语言资源,只支持中文 //语言资源,只支持中文
resConfigs "zh" resConfigs "zh"
// ndk {
// //选择要添加的对应cpu类型的.so库。
// abiFilters 'armeabi', 'armeabi-v8a', 'x86'
// // 还可以添加 'x86', 'x86_64', 'mips', 'mips64', 'armeabi-v7a'
// }
//配置so文件 //配置so文件
ndk { ndk {
abiFilters "armeabi", "armeabi-v7a", "x86", "mips" abiFilters "armeabi", "armeabi-v7a", "x86", "mips"
......
...@@ -156,17 +156,17 @@ public class FriendsTaskBean { ...@@ -156,17 +156,17 @@ public class FriendsTaskBean {
*/ */
private String head; private String head;
private int sumCoin; private int coin;
private String nickName; private String nickName;
private String mobile; private String mobile;
private String idcode; private String idcode;
public int getSumCoin() { public int getSumCoin() {
return sumCoin; return coin;
} }
public void setSumCoin(int sumCoin) { public void setSumCoin(int sumCoin) {
this.sumCoin = sumCoin; this.coin = sumCoin;
} }
public String getIdcode() { public String getIdcode() {
......
...@@ -59,7 +59,7 @@ class CoinRecordActivity : BaseActivity(), View.OnClickListener, OnRefreshListen ...@@ -59,7 +59,7 @@ class CoinRecordActivity : BaseActivity(), View.OnClickListener, OnRefreshListen
} }
private fun initRecy() { private fun initRecy() {
recy_drawcash.addItemDecoration(DividerItemDecoration(mContext, DividerItemDecoration.VERTICAL)) // recy_drawcash.addItemDecoration(DividerItemDecoration(mContext, DividerItemDecoration.VERTICAL))
coinRecordAdapter = CoinRecordAdapter(this, mCoinData) coinRecordAdapter = CoinRecordAdapter(this, mCoinData)
recy_drawcash.adapter = coinRecordAdapter recy_drawcash.adapter = coinRecordAdapter
} }
......
...@@ -89,13 +89,7 @@ class DrawcashActivity : BaseActivity(), ...@@ -89,13 +89,7 @@ class DrawcashActivity : BaseActivity(),
readyGo(DrawcashRecordActivity::class.java) readyGo(DrawcashRecordActivity::class.java)
} }
R.id.iv_coin -> { R.id.rl_coin -> {
// 是否登录
if (!userManager.userIsLogin()) {
readyGo(LoginActivity::class.java)
return
}
readyGo(CoinRecordActivity::class.java) readyGo(CoinRecordActivity::class.java)
} }
R.id.tvDrawcashWx -> { R.id.tvDrawcashWx -> {
...@@ -229,7 +223,7 @@ class DrawcashActivity : BaseActivity(), ...@@ -229,7 +223,7 @@ class DrawcashActivity : BaseActivity(),
private fun initListener() { private fun initListener() {
iv_left_icon.setOnClickListener(this) iv_left_icon.setOnClickListener(this)
tv_right_subtitle.setOnClickListener(this) tv_right_subtitle.setOnClickListener(this)
iv_coin.setOnClickListener(this) rl_coin.setOnClickListener(this)
tvDrawcashWx.setOnClickListener(this) tvDrawcashWx.setOnClickListener(this)
tvDrawcashNext.setOnClickListener(this) tvDrawcashNext.setOnClickListener(this)
} }
......
...@@ -110,7 +110,7 @@ class EraseActivity : BaseActivity(), View.OnClickListener{ ...@@ -110,7 +110,7 @@ class EraseActivity : BaseActivity(), View.OnClickListener{
*/ */
private fun getTurnUrl() { private fun getTurnUrl() {
val tokenID: String = userManager.getTokenID() val tokenID: String = userManager.getTokenID()
val url: String = BuildConfig.MainIp.toString() + "hang/card.html?carrierType=" + carrierType + "&token=" + tokenID val url: String = BuildConfig.MainIp+ "hang/card.html?carrierType=" + carrierType + "&token=" + tokenID
blEarseWebview.loadUrl(url) blEarseWebview.loadUrl(url)
} }
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
android:orientation="vertical"> android:orientation="vertical">
<RelativeLayout <RelativeLayout
android:id="@+id/rl_coin"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="20dp"> android:layout_margin="20dp">
......
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