Commit f14c45c8 authored by jyx's avatar jyx

首页添加客服入口

parent 5124b093
...@@ -10,8 +10,8 @@ android { ...@@ -10,8 +10,8 @@ android {
applicationId "com.duben.amusingtheateru" applicationId "com.duben.amusingtheateru"
minSdkVersion rootProject.ext.androidMinSdkVersion minSdkVersion rootProject.ext.androidMinSdkVersion
targetSdkVersion rootProject.ext.androidTargetSdkVersion targetSdkVersion rootProject.ext.androidTargetSdkVersion
versionCode 720 versionCode 721
versionName "7.2.0" versionName "7.2.1"
flavorDimensions "default" flavorDimensions "default"
// dex突破65535的限制 // dex突破65535的限制
......
...@@ -151,12 +151,24 @@ class MainFragment : LazyLoadBaseFragment(), HomeView, View.OnClickListener, OnR ...@@ -151,12 +151,24 @@ class MainFragment : LazyLoadBaseFragment(), HomeView, View.OnClickListener, OnR
iv_main_watching_close.setOnClickListener(this) iv_main_watching_close.setOnClickListener(this)
tv_main_watching_goto.setOnClickListener(this) tv_main_watching_goto.setOnClickListener(this)
ll_lucky.setOnClickListener(this) ll_lucky.setOnClickListener(this)
iv_kefu_main.setOnClickListener(this)
context?.let {
GlideUtils.loadImageViewGifForCenterCrop(
it,
"https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/ic_kefu_main.png",
iv_kefu_main,
1
)
}
} }
override fun onClick(v: View?) { override fun onClick(v: View?) {
if (AntiShake.check(v?.id)) return if (AntiShake.check(v?.id)) return
when (v?.id) { when (v?.id) {
R.id.iv_kefu_main -> {
(requireActivity() as MainActivity).backPhoneDialog()
}
R.id.iv_main_watching_close -> { R.id.iv_main_watching_close -> {
LocalVedioManager.closeCacheVedio() LocalVedioManager.closeCacheVedio()
ll_main_watching_root.visibility = View.GONE ll_main_watching_root.visibility = View.GONE
......
...@@ -243,15 +243,26 @@ ...@@ -243,15 +243,26 @@
</RelativeLayout> </RelativeLayout>
</LinearLayout> </LinearLayout>
<ImageView
android:id="@+id/iv_kefu_main"
android:layout_width="80dp"
android:layout_height="88dp"
android:layout_marginEnd="5dp"
android:layout_marginBottom="90dp"
android:gravity="center"
android:orientation="vertical"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" />
<LinearLayout <LinearLayout
android:id="@+id/ll_lucky" android:id="@+id/ll_lucky"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:visibility="gone"
android:layout_marginEnd="10dp" android:layout_marginEnd="10dp"
android:layout_marginBottom="120dp" android:layout_marginBottom="120dp"
android:gravity="center" android:gravity="center"
android:orientation="vertical" android:orientation="vertical"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"> app:layout_constraintEnd_toEndOf="parent">
......
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