Commit 6314c153 authored by maxiaoliang's avatar maxiaoliang

添加体现页面

parent 8da58e26
...@@ -206,7 +206,7 @@ interface RounterApi { ...@@ -206,7 +206,7 @@ interface RounterApi {
@RounterUri(Constant.scheme + "://zero_buy") @RounterUri(Constant.scheme + "://zero_buy")
fun getIntentZeroBuyList(): Intent fun getIntentZeroBuyList(): Intent
@RounterUri(Constant.scheme + "://tb_goods_detail") @RounterUri(Constant.scheme + "://tb_goods_detail")
fun getIntentTbGoodsDetail(): Intent fun getIntentTbGoodsDetail(): Intent
@RounterUri(Constant.scheme + "://after_login") @RounterUri(Constant.scheme + "://after_login")
...@@ -255,4 +255,7 @@ interface RounterApi { ...@@ -255,4 +255,7 @@ interface RounterApi {
@RounterUri(Constant.scheme + "://flashsale") @RounterUri(Constant.scheme + "://flashsale")
fun getIntentFlashSale(): Intent fun getIntentFlashSale(): Intent
@RounterUri(Constant.scheme + "://withdrawal")
fun getIntentWithdrawal(): Intent
} }
\ No newline at end of file
...@@ -378,4 +378,13 @@ public class JumpUtils { ...@@ -378,4 +378,13 @@ public class JumpUtils {
Utils.showToast(AppContext.get(), "该版本暂不支持,请更新版本!"); Utils.showToast(AppContext.get(), "该版本暂不支持,请更新版本!");
} }
} }
public static void WithdrawalJump() {
try {
Intent intent = RounterBus.getRounter(RounterApi.class).getIntentWithdrawal();
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
AppContext.get().startActivity(intent);
} catch (Exception e) {
Utils.showToast(AppContext.get(), "该版本暂不支持,请更新版本!");
}
}
} }
...@@ -68,7 +68,17 @@ ...@@ -68,7 +68,17 @@
android:scheme="xxsq" /> android:scheme="xxsq" />
</intent-filter> </intent-filter>
</activity> </activity>
<activity android:name=".activity.WithDrawalActivity">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data
android:host="withdrawal"
android:scheme="xxsq" />
</intent-filter>
</activity>
<activity android:name=".activity.RightsDetailActivity"> <activity android:name=".activity.RightsDetailActivity">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.VIEW" /> <action android:name="android.intent.action.VIEW" />
......
package com.zxbw.modulemain.activity
import android.view.View
import com.zxbw.modulemain.R
import com.zxhl.cms.AppContext
import com.zxhl.cms.common.base.BaseActivity
class WithDrawalActivity:BaseActivity() {
override fun onClick(v: View?) {
}
override fun before() {
super.before()
setStatusBarBackground(AppContext.get().resources.getColor(R.color.transparent))
}
override fun layoutID(): Int {
return R.layout.activity_layout_withdrawal
}
override fun init() {
}
}
\ No newline at end of file
...@@ -32,7 +32,7 @@ class UserCenterFragment : BaseFragment(), AdCallback<String> { ...@@ -32,7 +32,7 @@ class UserCenterFragment : BaseFragment(), AdCallback<String> {
JumpUtils.webJump("关于我们", NetConfig.H5.WEB_URL_ABOUT_US) JumpUtils.webJump("关于我们", NetConfig.H5.WEB_URL_ABOUT_US)
} }
id_ll_login_out?.setOnClickListener { id_ll_login_out?.setOnClickListener {
showToast("1")
} }
id_ll_xieyi_zhengze?.setOnClickListener { id_ll_xieyi_zhengze?.setOnClickListener {
JumpUtils.webJump("隐私政策", NetConfig.H5.WEB_URL_PRIVACY) JumpUtils.webJump("隐私政策", NetConfig.H5.WEB_URL_PRIVACY)
...@@ -44,7 +44,7 @@ class UserCenterFragment : BaseFragment(), AdCallback<String> { ...@@ -44,7 +44,7 @@ class UserCenterFragment : BaseFragment(), AdCallback<String> {
JumpUtils.FlashSaleJump() JumpUtils.FlashSaleJump()
} }
id_ll_shangwu_hezuo?.setOnClickListener { id_ll_shangwu_hezuo?.setOnClickListener {
JumpUtils.WithdrawalJump()
} }
} }
......
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#ff333333" />
<corners
android:bottomLeftRadius="14dp"
android:bottomRightRadius="14dp"
android:topLeftRadius="14dp"
android:topRightRadius="14dp" />
</shape>
\ No newline at end of file
This diff is collapsed.
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