Commit 35780f10 authored by mengcuiguang's avatar mengcuiguang

代码优化

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