Commit 0a0f9cef authored by Li's avatar Li

[李俊岐] 优化

parent 1dee3bfe
......@@ -26,13 +26,14 @@ class ClockInWithdrawActitivy : BaseActivity(), ClockInWithdrawContract.View,
private var mPresenter: ClockInWithdrawPresenter? = null
private var mAdapter: ClockInWithdrawAdpater? = null
private var mData: ClockInWithdrawEntity.ClockInItemEntity? = null
private var isClick = false
override fun layoutID(): Int {
return R.layout.activity_clock_in_withdraw
}
override fun init() {
EventUtils.onEvent("tab_imp","attendance_show")
EventUtils.onEvent("attendance_show")
mPresenter = ClockInWithdrawPresenter(this)
iv_clock_in_close?.setOnClickListener {
finish()
......@@ -54,6 +55,8 @@ class ClockInWithdrawActitivy : BaseActivity(), ClockInWithdrawContract.View,
data: ClockInWithdrawEntity.ClockInItemEntity
) {
mData = data
if (!isClick) {
isClick = true
if (data.special == 1) {
EventUtils.onEvent("attendance_task_ordinary_click")
mPresenter?.getFlyBoxReceive(this)
......@@ -61,6 +64,12 @@ class ClockInWithdrawActitivy : BaseActivity(), ClockInWithdrawContract.View,
EventUtils.onEvent("attendance_task_withdraw_click")
mPresenter?.getDoWd(data.id!!)
}
view?.postDelayed({
isClick = false
},1000)
}
}
//任务列表结果
......
......@@ -4,10 +4,8 @@ import android.animation.ObjectAnimator
import android.animation.ValueAnimator
import android.app.Dialog
import android.content.DialogInterface
import android.text.Html
import android.view.View
import android.view.animation.AnimationUtils
import androidx.recyclerview.widget.GridLayoutManager
import androidx.recyclerview.widget.LinearLayoutManager
import com.ym.ddcy.R
import com.ym.game.adapter.WelfareDiamondAdapter
......@@ -33,6 +31,7 @@ class WelfareActivity : BaseActivity(), WelfareContract.View,
private var mDiamonList: MutableList<DiamondEntity> = ArrayList()
private var mData: NewsEntity? = null
private var mDiamondEntity: DiamondEntity? = null
private var isClick = false
override fun layoutID(): Int {
return R.layout.activity_welfare
......@@ -102,6 +101,8 @@ class WelfareActivity : BaseActivity(), WelfareContract.View,
override fun onItemClick(view: View, position: Int, data: NewsEntity) {
mData = data
if (!isClick) {
isClick = true
//0未完成 1已领取 2可领取
when (data.status) {
0 -> {
......@@ -122,6 +123,11 @@ class WelfareActivity : BaseActivity(), WelfareContract.View,
mPresenter?.getTaskReceiveList(data?.sid)
}
}
view?.postDelayed({
isClick = false
}, 1000)
}
}
//钻石列表结果
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -67,7 +67,7 @@ dependencies {
api ("com.bx:adsdk:1.3.3"){
exclude group: 'com.google.code.gson'
}
api 'com.ym.admodule:admodule:1.0.2.15'
api 'com.ym.admodule:admodule:1.0.2.17'
api 'com.airbnb.android:lottie:3.1.0'
/* api 'androidx.appcompat:appcompat:1.2.0-alpha02'
api 'com.android.support:design:28.0.0'
......
......@@ -64,7 +64,7 @@ object VersionClient {
.client(httpClient)
.addCallAdapterFactory(RxJava2CallAdapterFactory.create())
.addConverterFactory(GsonConverterFactory.create())
.baseUrl("https://fsapi.ihuomao.com/")
.baseUrl(com.ym.modulecommon.net.NetConfig.BASE_FEED_URL)
.build()
val userApi by lazy { retrofit.create(IUserApi::class.java) }
......
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