5 커밋 b79392d5f2 ... 02c2b2085a

작성자 SHA1 메시지 날짜
  poppin_leaf 02c2b2085a Merge branch 'master' into feature/dev-zeyu-2026-3-18 1 개월 전
  Gogs 499c5bfcfa 去掉邀请收益页面虚线框 1 개월 전
  Gogs 61793c1e0e 邀请规则页面换 web页面 1 개월 전
  Gogs 0d46a4388d 邀请收益标题距离与下边调到6dp 1 개월 전
  Gogs 40ba913be9 邀请收益标题与下边内容距离调到6dp 1 개월 전

+ 24 - 0
module_me/src/main/java/com/mita/module_me/view/invite/InviteRulesActivity.kt

@@ -28,9 +28,33 @@ class InviteRulesActivity : BaseActivity<BaseVm>() {
         ViewCompat.requestApplyInsets(rootLayout)
 
         ivBack.setOnClickListener { finish() }
+        webView.setShowProgress(true)
+        webView.settings.setSupportZoom(false)
+        webView.settings.builtInZoomControls = false
+        webView.loadUrl("https://api.whzytkj.online/xinvite/rule/info.html")
     }
 
     override fun ready() {
     }
+
+    override fun onBackPressed() {
+        if (webView.canGoBack()) {
+            webView.goBack()
+            return
+        }
+        super.onBackPressed()
+    }
+
+    override fun onDestroy() {
+        try {
+            webView.stopLoading()
+            webView.loadUrl("about:blank")
+            webView.clearHistory()
+            webView.removeAllViews()
+            webView.destroy()
+        } catch (_: Throwable) {
+        }
+        super.onDestroy()
+    }
 }
 

+ 2 - 3
module_me/src/main/res/layout/module_me_activity_invite_earnings.xml

@@ -21,7 +21,7 @@
         android:id="@+id/clTopBar"
         android:layout_width="0dp"
         android:layout_height="wrap_content"
-        android:paddingBottom="0dp"
+        android:paddingBottom="6dp"
         app:layout_constraintEnd_toEndOf="parent"
         app:layout_constraintStart_toStartOf="parent"
         app:layout_constraintTop_toTopOf="parent">
@@ -87,7 +87,6 @@
                 android:layout_height="wrap_content"
                 android:layout_marginHorizontal="16dp"
                 android:layout_marginTop="0dp"
-                android:background="@drawable/sp_r12_dash_white_60"
                 android:padding="0dp">
 
                 <TextView
@@ -138,7 +137,7 @@
                         android:layout_width="match_parent"
                         android:layout_height="wrap_content"
                         android:layout_gravity="center"
-                        
+
                         android:gravity="center"
                         android:orientation="vertical"
                         android:paddingTop="0dp"

+ 4 - 54
module_me/src/main/res/layout/module_me_activity_invite_rules.xml

@@ -59,67 +59,17 @@
         android:layout_marginBottom="32dp"
         android:background="@drawable/module_me_bg_rules_card"
         android:orientation="vertical"
+        android:padding="20dp"
         app:layout_constraintBottom_toBottomOf="parent"
         app:layout_constraintEnd_toEndOf="parent"
         app:layout_constraintStart_toStartOf="parent"
         app:layout_constraintTop_toBottomOf="@id/clTopBar">
 
-        <androidx.core.widget.NestedScrollView
+        <com.yc.baselibrary.view.X5WebView
+            android:id="@+id/webView"
             android:layout_width="match_parent"
             android:layout_height="match_parent"
-            android:fillViewport="true"
-            android:padding="20dp">
-
-            <LinearLayout
-                android:layout_width="match_parent"
-                android:layout_height="wrap_content"
-                android:orientation="vertical">
-
-                <TextView
-                    android:layout_width="match_parent"
-                    android:layout_height="wrap_content"
-                    android:lineSpacingExtra="8dp"
-                    android:text="点&quot;邀请收益&quot;下角的二维码或者微信等分享链接,别人扫码下载自动绑定你的名下,你额外获得他充值额的4%积分,他的下级充值,你获得其充值额的1%积分。积分满百元可提现。"
-                    android:textColor="#A16850"
-                    android:textSize="15sp" />
-
-                <TextView
-                    android:layout_width="match_parent"
-                    android:layout_height="wrap_content"
-                    android:layout_marginTop="16dp"
-                    android:lineSpacingExtra="8dp"
-                    android:text="用户也可以手动输入邀请码绑定,让用户点&quot;我的&quot;→&quot;账户安全&quot;→&quot;绑定关系&quot;输入邀请码即可。"
-                    android:textColor="#A16850"
-                    android:textSize="15sp" />
-
-                <TextView
-                    android:layout_width="match_parent"
-                    android:layout_height="wrap_content"
-                    android:layout_marginTop="16dp"
-                    android:lineSpacingExtra="8dp"
-                    android:text="每个人的邀请码就是自己的甜咖ID号。"
-                    android:textColor="#A16850"
-                    android:textSize="15sp" />
-
-                <TextView
-                    android:layout_width="match_parent"
-                    android:layout_height="wrap_content"
-                    android:layout_marginTop="16dp"
-                    android:lineSpacingExtra="8dp"
-                    android:text="举例:A邀请B,B邀请C,那么C充值100元,B得一级分享收益4元,A得二级分享收益1元。"
-                    android:textColor="#A16850"
-                    android:textSize="15sp" />
-
-                <TextView
-                    android:layout_width="match_parent"
-                    android:layout_height="wrap_content"
-                    android:layout_marginTop="16dp"
-                    android:lineSpacingExtra="8dp"
-                    android:text="注意:绑定关系一旦生效,暂时无法解除。具体联系官方客服"
-                    android:textColor="#A16850"
-                    android:textSize="15sp" />
-            </LinearLayout>
-        </androidx.core.widget.NestedScrollView>
+            android:background="@android:color/transparent" />
     </LinearLayout>
 
 </androidx.constraintlayout.widget.ConstraintLayout>