常见问题
This commit is contained in:
parent
f42435dd60
commit
613c04b0a6
@ -295,6 +295,16 @@
|
|||||||
android:configChanges="keyboardHidden|orientation|locale"
|
android:configChanges="keyboardHidden|orientation|locale"
|
||||||
android:screenOrientation="portrait"
|
android:screenOrientation="portrait"
|
||||||
android:windowSoftInputMode="adjustPan|stateHidden" />
|
android:windowSoftInputMode="adjustPan|stateHidden" />
|
||||||
|
<activity
|
||||||
|
android:name=".ui.mine.activity.ComProActivity"
|
||||||
|
android:configChanges="keyboardHidden|orientation|locale"
|
||||||
|
android:screenOrientation="portrait"
|
||||||
|
android:windowSoftInputMode="adjustPan|stateHidden" />
|
||||||
|
<activity
|
||||||
|
android:name=".ui.mine.activity.ComProDetailActivity"
|
||||||
|
android:configChanges="keyboardHidden|orientation|locale"
|
||||||
|
android:screenOrientation="portrait"
|
||||||
|
android:windowSoftInputMode="adjustPan|stateHidden" />
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.account.authperson.AuthPartyActivity"
|
android:name=".ui.account.authperson.AuthPartyActivity"
|
||||||
android:configChanges="keyboardHidden|orientation|locale"
|
android:configChanges="keyboardHidden|orientation|locale"
|
||||||
|
31
app/src/main/java/com/dahe/gldriver/adapter/ComProAdatper.kt
Normal file
31
app/src/main/java/com/dahe/gldriver/adapter/ComProAdatper.kt
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
package com.dahe.gldriver.adapter
|
||||||
|
|
||||||
|
import android.content.Context
|
||||||
|
import android.view.ViewGroup
|
||||||
|
import com.chad.library.adapter4.BaseQuickAdapter
|
||||||
|
import com.chad.library.adapter4.viewholder.QuickViewHolder
|
||||||
|
import com.dahe.gldriver.R
|
||||||
|
import com.dahe.gldriver.bean.CarBean
|
||||||
|
import com.dahe.gldriver.bean.ProBean
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ClassName ComProAdatper
|
||||||
|
* @Author john
|
||||||
|
* @Date 2024/3/25 17:04
|
||||||
|
* @Description TODO
|
||||||
|
*/
|
||||||
|
class ComProAdatper : BaseQuickAdapter<ProBean, QuickViewHolder>() {
|
||||||
|
override fun onBindViewHolder(holder: QuickViewHolder, position: Int, item: ProBean?) {
|
||||||
|
holder.run {
|
||||||
|
setText(R.id.tvProTitle, item?.problemName)
|
||||||
|
setText(R.id.tvContent, item?.problemDesc)
|
||||||
|
setText(R.id.tvNum, """${position + 1}""")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun onCreateViewHolder(
|
||||||
|
context: Context,
|
||||||
|
parent: ViewGroup,
|
||||||
|
viewType: Int
|
||||||
|
) = QuickViewHolder(R.layout.item_com_pro, parent)
|
||||||
|
}
|
@ -10,6 +10,7 @@ object AppConfig {
|
|||||||
const val BUGLY_APP_ID = "0487c49b52"
|
const val BUGLY_APP_ID = "0487c49b52"
|
||||||
const val TIME = "DA_HE_TIME"
|
const val TIME = "DA_HE_TIME"
|
||||||
const val ID = "DA_HE_ID"
|
const val ID = "DA_HE_ID"
|
||||||
|
const val DATA = "DA_HE_DATA"
|
||||||
const val PHONE = "DA_HE_PHONE"
|
const val PHONE = "DA_HE_PHONE"
|
||||||
const val ORDER_ID = "DA_HE_ORDER_ID"
|
const val ORDER_ID = "DA_HE_ORDER_ID"
|
||||||
const val CAR_ID = "DA_HE_CAR_ID"
|
const val CAR_ID = "DA_HE_CAR_ID"
|
||||||
|
@ -142,6 +142,11 @@ class WebActivity : BaseActivity<ActivityWebBinding>() {
|
|||||||
super.onDestroy()
|
super.onDestroy()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun onBackPressed() {
|
||||||
|
// super.onBackPressed()
|
||||||
|
if (!mAgentWeb!!.back()) finish()
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// internal class AndroidInterfaceWeb {
|
// internal class AndroidInterfaceWeb {
|
||||||
// @JavascriptInterface
|
// @JavascriptInterface
|
||||||
|
@ -29,3 +29,27 @@ data class RateBean(
|
|||||||
val updateBy: String
|
val updateBy: String
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 常见问题bean
|
||||||
|
* @property isRecommend String
|
||||||
|
* @property isTop String
|
||||||
|
* @property problemDesc String
|
||||||
|
* @property problemId Int
|
||||||
|
* @property problemName String
|
||||||
|
* @property problemUrl String
|
||||||
|
* @property sortValue String
|
||||||
|
* @property status String
|
||||||
|
* @constructor
|
||||||
|
*/
|
||||||
|
data class ProBean(
|
||||||
|
val isRecommend: String,
|
||||||
|
val isTop: String,
|
||||||
|
val problemDesc: String,
|
||||||
|
val problemId: String,
|
||||||
|
val problemName: String,
|
||||||
|
val problemUrl: String,
|
||||||
|
val sortValue: String,
|
||||||
|
val status: String,
|
||||||
|
val contentData: String
|
||||||
|
)
|
||||||
|
@ -13,6 +13,7 @@ import com.dahe.gldriver.bean.OcrPersonBean
|
|||||||
import com.dahe.gldriver.bean.OrderChild
|
import com.dahe.gldriver.bean.OrderChild
|
||||||
import com.dahe.gldriver.bean.OrderDetailBean
|
import com.dahe.gldriver.bean.OrderDetailBean
|
||||||
import com.dahe.gldriver.bean.OssBean
|
import com.dahe.gldriver.bean.OssBean
|
||||||
|
import com.dahe.gldriver.bean.ProBean
|
||||||
import com.dahe.gldriver.bean.RateBean
|
import com.dahe.gldriver.bean.RateBean
|
||||||
import com.dahe.gldriver.bean.UpBankInfoBean
|
import com.dahe.gldriver.bean.UpBankInfoBean
|
||||||
import com.dahe.gldriver.bean.UpCaptain
|
import com.dahe.gldriver.bean.UpCaptain
|
||||||
@ -458,6 +459,23 @@ interface Api {
|
|||||||
fun orderPhoto(@Query("orderId") orderId: String): Observable<CommonResponseBean<MutableList<OrderChild>>>
|
fun orderPhoto(@Query("orderId") orderId: String): Observable<CommonResponseBean<MutableList<OrderChild>>>
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 常见问题列表
|
||||||
|
* @return Observable<CommonResponseBean<MutableList<ProBean>>>
|
||||||
|
*/
|
||||||
|
@GET(BASE_URL + "driver/app/info/commonProblemList")
|
||||||
|
fun commonProblemList():Observable<CommonResponseBean<MutableList<ProBean>>>
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 常见问题详情
|
||||||
|
* @param problemId String
|
||||||
|
* @return Observable<CommonResponseBean<MutableList<ProBean>>>
|
||||||
|
*/
|
||||||
|
@GET(BASE_URL + "driver/app/info/commonProblemDetail")
|
||||||
|
fun commonProblemDetail(@Query("problemId") problemId :String):Observable<CommonResponseBean<ProBean>>
|
||||||
|
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
// String BASE_URL = "https://tmstest.dahehuoyun.com/";
|
// String BASE_URL = "https://tmstest.dahehuoyun.com/";
|
||||||
const val BASE_URL = BuildConfig.BASE_URL
|
const val BASE_URL = BuildConfig.BASE_URL
|
||||||
|
@ -85,7 +85,7 @@ abstract class RxHttpCallBack<T> {
|
|||||||
dialog!!.dismiss()
|
dialog!!.dismiss()
|
||||||
}
|
}
|
||||||
if (t.code == 401) {
|
if (t.code == 401) {
|
||||||
instance.loginOut(mContext!!)
|
// instance.loginOut(mContext!!)
|
||||||
// Intent intent = new Intent(mContext, LoginActivity.class);
|
// Intent intent = new Intent(mContext, LoginActivity.class);
|
||||||
// intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK);
|
// intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||||
// mContext.startActivity(intent);
|
// mContext.startActivity(intent);
|
||||||
|
@ -7,24 +7,35 @@ import com.dahe.gldriver.adapter.GridItemAdapter
|
|||||||
import com.dahe.gldriver.base.WebActivity
|
import com.dahe.gldriver.base.WebActivity
|
||||||
import com.dahe.gldriver.bean.GridBean
|
import com.dahe.gldriver.bean.GridBean
|
||||||
import com.dahe.gldriver.databinding.FragmentMineBinding
|
import com.dahe.gldriver.databinding.FragmentMineBinding
|
||||||
|
import com.dahe.gldriver.net.BaseObserver
|
||||||
|
import com.dahe.gldriver.net.DataManager
|
||||||
|
import com.dahe.gldriver.net.RxHttpCallBack
|
||||||
import com.dahe.gldriver.ui.account.authperson.AuthPartyActivity
|
import com.dahe.gldriver.ui.account.authperson.AuthPartyActivity
|
||||||
import com.dahe.gldriver.ui.mine.activity.CarTeamActivity
|
import com.dahe.gldriver.ui.mine.activity.CarTeamActivity
|
||||||
import com.dahe.gldriver.ui.mine.activity.CarsManActivity
|
import com.dahe.gldriver.ui.mine.activity.CarsManActivity
|
||||||
|
import com.dahe.gldriver.ui.mine.activity.ComProActivity
|
||||||
import com.dahe.gldriver.ui.mine.activity.DriverTeamsActivity
|
import com.dahe.gldriver.ui.mine.activity.DriverTeamsActivity
|
||||||
import com.dahe.gldriver.ui.mine.activity.PersonInfoActivity
|
import com.dahe.gldriver.ui.mine.activity.PersonInfoActivity
|
||||||
import com.dahe.gldriver.ui.mine.activity.RateManActivity
|
import com.dahe.gldriver.ui.mine.activity.RateManActivity
|
||||||
|
import com.dahe.gldriver.ui.mine.activity.RulesActivity
|
||||||
import com.dahe.gldriver.ui.mine.activity.WalletActivity
|
import com.dahe.gldriver.ui.mine.activity.WalletActivity
|
||||||
import com.dahe.gldriver.utils.SPUtils
|
import com.dahe.gldriver.utils.SPUtils
|
||||||
|
import com.dahe.gldriver.utils.UserUtils
|
||||||
|
import com.dahe.glex.bean.UserBean
|
||||||
import com.dahe.mylibrary.base.BaseFragment
|
import com.dahe.mylibrary.base.BaseFragment
|
||||||
|
import com.dahe.mylibrary.callback.RefreshCallBack
|
||||||
|
import com.dahe.mylibrary.net.CommonResponseBean
|
||||||
import com.dahe.mylibrary.utils.ActivityUtils
|
import com.dahe.mylibrary.utils.ActivityUtils
|
||||||
import com.dahe.mylibrary.utils.BaseUtils
|
import com.dahe.mylibrary.utils.BaseUtils
|
||||||
import com.dahe.mylibrary.utils.ImageLoader
|
import com.dahe.mylibrary.utils.ImageLoader
|
||||||
import com.dahe.mylibrary.utils.PhoneFormatCheckUtils
|
import com.dahe.mylibrary.utils.PhoneFormatCheckUtils
|
||||||
import com.dahe.mylibrary.utils.ToastUtils
|
import com.dahe.mylibrary.utils.ToastUtils
|
||||||
import com.tencent.bugly.crashreport.CrashReport
|
import com.tencent.bugly.crashreport.CrashReport
|
||||||
|
import io.reactivex.rxjava3.android.schedulers.AndroidSchedulers
|
||||||
|
import io.reactivex.rxjava3.schedulers.Schedulers
|
||||||
import kotlin.system.exitProcess
|
import kotlin.system.exitProcess
|
||||||
|
|
||||||
class MineFragment : BaseFragment<FragmentMineBinding>(), View.OnClickListener {
|
class MineFragment : BaseFragment<FragmentMineBinding>(), View.OnClickListener, RefreshCallBack {
|
||||||
private val tools = mutableListOf(
|
private val tools = mutableListOf(
|
||||||
GridBean("车队管理", R.drawable.car_team),
|
GridBean("车队管理", R.drawable.car_team),
|
||||||
GridBean("车辆管理", R.drawable.car_manage),
|
GridBean("车辆管理", R.drawable.car_manage),
|
||||||
@ -51,7 +62,7 @@ class MineFragment : BaseFragment<FragmentMineBinding>(), View.OnClickListener {
|
|||||||
|
|
||||||
|
|
||||||
override fun onFragmentFirstVisible() {
|
override fun onFragmentFirstVisible() {
|
||||||
|
setRefresh(binding.refresh, this)
|
||||||
val userInfo = SPUtils.instance.getUserInfo(mContext)
|
val userInfo = SPUtils.instance.getUserInfo(mContext)
|
||||||
if (userInfo != null) {
|
if (userInfo != null) {
|
||||||
binding.run {
|
binding.run {
|
||||||
@ -138,7 +149,7 @@ class MineFragment : BaseFragment<FragmentMineBinding>(), View.OnClickListener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
3 -> {
|
3 -> {
|
||||||
ActivityUtils.startActivity(mContext,RateManActivity::class.java)
|
ActivityUtils.startActivity(mContext, RateManActivity::class.java)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -150,11 +161,11 @@ class MineFragment : BaseFragment<FragmentMineBinding>(), View.OnClickListener {
|
|||||||
private fun goPlats(pos: Int) {
|
private fun goPlats(pos: Int) {
|
||||||
when (pos) {
|
when (pos) {
|
||||||
0 -> {
|
0 -> {
|
||||||
ActivityUtils.startActivity(mContext, CarTeamActivity::class.java)
|
ActivityUtils.startActivity(mContext, RulesActivity::class.java)
|
||||||
}
|
}
|
||||||
|
|
||||||
1 -> {
|
1 -> {
|
||||||
ActivityUtils.startActivity(mContext, CarsManActivity::class.java)
|
ActivityUtils.startActivity(mContext, ComProActivity::class.java)
|
||||||
}
|
}
|
||||||
|
|
||||||
2 -> {
|
2 -> {
|
||||||
@ -187,5 +198,18 @@ class MineFragment : BaseFragment<FragmentMineBinding>(), View.OnClickListener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun getRefreshDate(stat: Int, page: Int, count: Int) {
|
||||||
|
DataManager.getInstance().getUserInfo()
|
||||||
|
.subscribeOn(Schedulers.io())
|
||||||
|
.observeOn(AndroidSchedulers.mainThread())
|
||||||
|
.subscribe(BaseObserver(mContext, object : RxHttpCallBack<UserBean>() {
|
||||||
|
override fun onSuccess(t: CommonResponseBean<UserBean>) {
|
||||||
|
super.onSuccess(t)
|
||||||
|
UserUtils.instance.updateUser(mContext, t.data)
|
||||||
|
binding.refresh.finishRefresh()
|
||||||
|
}
|
||||||
|
}))
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
@ -0,0 +1,74 @@
|
|||||||
|
package com.dahe.gldriver.ui.mine.activity
|
||||||
|
|
||||||
|
import android.graphics.Color
|
||||||
|
import android.os.Bundle
|
||||||
|
import android.widget.LinearLayout
|
||||||
|
import androidx.recyclerview.widget.LinearLayoutManager
|
||||||
|
import androidx.recyclerview.widget.RecyclerView
|
||||||
|
import com.dahe.gldriver.R
|
||||||
|
import com.dahe.gldriver.adapter.CarsAdapter
|
||||||
|
import com.dahe.gldriver.adapter.ComProAdatper
|
||||||
|
import com.dahe.gldriver.base.AppConfig
|
||||||
|
import com.dahe.gldriver.bean.ProBean
|
||||||
|
import com.dahe.gldriver.databinding.ActivityComProBinding
|
||||||
|
import com.dahe.gldriver.net.BaseObserver
|
||||||
|
import com.dahe.gldriver.net.DataManager
|
||||||
|
import com.dahe.gldriver.net.RxHttpCallBack
|
||||||
|
import com.dahe.mylibrary.base.BaseActivity
|
||||||
|
import com.dahe.mylibrary.net.CommonResponseBean
|
||||||
|
import com.dahe.mylibrary.recycleviewswipe.RecycleViewDivider
|
||||||
|
import com.dahe.mylibrary.utils.ActivityUtils
|
||||||
|
import com.dahe.mylibrary.utils.ConvertUtils
|
||||||
|
import com.google.gson.Gson
|
||||||
|
import io.reactivex.rxjava3.android.schedulers.AndroidSchedulers
|
||||||
|
import io.reactivex.rxjava3.schedulers.Schedulers
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ClassName ComProActivity
|
||||||
|
* @Author john
|
||||||
|
* @Date 2024/3/25 16:42
|
||||||
|
* @Description 常见问题
|
||||||
|
*/
|
||||||
|
class ComProActivity : BaseActivity<ActivityComProBinding>() {
|
||||||
|
|
||||||
|
lateinit var adapter: ComProAdatper
|
||||||
|
override fun initView(savedInstanceState: Bundle?) {
|
||||||
|
setStatusBarColor(R.color.white)
|
||||||
|
setTitleBar("常见问题", true)
|
||||||
|
binding.run {
|
||||||
|
adapter = recycler.run {
|
||||||
|
layoutManager = LinearLayoutManager(mContext, RecyclerView.VERTICAL, false)
|
||||||
|
addItemDecoration(
|
||||||
|
RecycleViewDivider(
|
||||||
|
LinearLayout.VERTICAL,
|
||||||
|
ConvertUtils.dp2px(10.0f),
|
||||||
|
Color.TRANSPARENT
|
||||||
|
)
|
||||||
|
)
|
||||||
|
adapter = ComProAdatper()
|
||||||
|
adapter as ComProAdatper
|
||||||
|
}.apply {
|
||||||
|
setOnItemClickListener { _, _, position ->
|
||||||
|
ActivityUtils.startActivity(
|
||||||
|
mContext,
|
||||||
|
ComProDetailActivity::class.java,
|
||||||
|
Bundle().apply {
|
||||||
|
putString(AppConfig.DATA, Gson().toJson(items[position]))
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun initDate() {
|
||||||
|
DataManager.getInstance().commonProblemList()
|
||||||
|
.subscribeOn(Schedulers.io())
|
||||||
|
.observeOn(AndroidSchedulers.mainThread())
|
||||||
|
.subscribe(BaseObserver(mContext, object : RxHttpCallBack<MutableList<ProBean>>() {
|
||||||
|
override fun onSuccess(t: CommonResponseBean<MutableList<ProBean>>) {
|
||||||
|
super.onSuccess(t)
|
||||||
|
adapter.submitList(t.data)
|
||||||
|
}
|
||||||
|
}))
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,50 @@
|
|||||||
|
package com.dahe.gldriver.ui.mine.activity
|
||||||
|
|
||||||
|
import android.os.Bundle
|
||||||
|
import android.text.Html
|
||||||
|
import com.dahe.gldriver.R
|
||||||
|
import com.dahe.gldriver.base.AppConfig.DATA
|
||||||
|
import com.dahe.gldriver.bean.ProBean
|
||||||
|
import com.dahe.gldriver.databinding.ActivityComProDetailBinding
|
||||||
|
import com.dahe.gldriver.net.BaseObserver
|
||||||
|
import com.dahe.gldriver.net.DataManager
|
||||||
|
import com.dahe.gldriver.net.RxHttpCallBack
|
||||||
|
import com.dahe.mylibrary.base.BaseActivity
|
||||||
|
import com.dahe.mylibrary.net.CommonResponseBean
|
||||||
|
import com.google.gson.Gson
|
||||||
|
import io.reactivex.rxjava3.android.schedulers.AndroidSchedulers
|
||||||
|
import io.reactivex.rxjava3.schedulers.Schedulers
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ClassName ComProActivity
|
||||||
|
* @Author john
|
||||||
|
* @Date 2024/3/25 16:42
|
||||||
|
* @Description 问题详情
|
||||||
|
*/
|
||||||
|
class ComProDetailActivity : BaseActivity<ActivityComProDetailBinding>() {
|
||||||
|
|
||||||
|
override fun initView(savedInstanceState: Bundle?) {
|
||||||
|
setStatusBarColor(R.color.white)
|
||||||
|
setTitleBar("常见问题", true)
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun initDate() {
|
||||||
|
var proBean = Gson().fromJson<ProBean>(intent.extras?.getString(DATA), ProBean::class.java)
|
||||||
|
|
||||||
|
binding.run {
|
||||||
|
tvTitle.text = proBean.problemName
|
||||||
|
}
|
||||||
|
|
||||||
|
DataManager.getInstance().commonProblemDetail(proBean.problemId)
|
||||||
|
.subscribeOn(Schedulers.io())
|
||||||
|
.observeOn(AndroidSchedulers.mainThread())
|
||||||
|
.subscribe(BaseObserver(mContext, object : RxHttpCallBack<ProBean>() {
|
||||||
|
override fun onSuccess(t: CommonResponseBean<ProBean>) {
|
||||||
|
super.onSuccess(t)
|
||||||
|
binding.run {
|
||||||
|
tvContent.text = Html.fromHtml(t.data.contentData)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}))
|
||||||
|
}
|
||||||
|
}
|
@ -37,7 +37,7 @@ import net.lucode.hackware.magicindicator.buildins.commonnavigator.titles.ColorT
|
|||||||
* @ClassName RateManActivity
|
* @ClassName RateManActivity
|
||||||
* @Author john
|
* @Author john
|
||||||
* @Date 2024/3/18 08:51
|
* @Date 2024/3/18 08:51
|
||||||
* @Description TODO
|
* @Description 评价管理
|
||||||
*/
|
*/
|
||||||
class RateManActivity : BaseActivity<ActivityRateManBinding>() {
|
class RateManActivity : BaseActivity<ActivityRateManBinding>() {
|
||||||
|
|
||||||
|
@ -2,8 +2,10 @@ package com.dahe.gldriver.ui.mine.activity
|
|||||||
|
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import com.dahe.gldriver.R
|
import com.dahe.gldriver.R
|
||||||
|
import com.dahe.gldriver.base.WebActivity
|
||||||
import com.dahe.gldriver.databinding.ActivityRulesBinding
|
import com.dahe.gldriver.databinding.ActivityRulesBinding
|
||||||
import com.dahe.mylibrary.base.BaseActivity
|
import com.dahe.mylibrary.base.BaseActivity
|
||||||
|
import com.dahe.mylibrary.utils.ActivityUtils
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ClassName RulesActivity
|
* @ClassName RulesActivity
|
||||||
@ -15,6 +17,24 @@ class RulesActivity : BaseActivity<ActivityRulesBinding>() {
|
|||||||
override fun initView(savedInstanceState: Bundle?) {
|
override fun initView(savedInstanceState: Bundle?) {
|
||||||
setStatusBarColor(R.color.white)
|
setStatusBarColor(R.color.white)
|
||||||
setTitleBar("平台规则",true)
|
setTitleBar("平台规则",true)
|
||||||
|
binding.run {
|
||||||
|
rlOne.setOnClickListener {
|
||||||
|
ActivityUtils.startActivity(mContext,WebActivity::class.java,Bundle().apply {
|
||||||
|
putString("url","www.baidu.com")
|
||||||
|
putString("title","百度")
|
||||||
|
})
|
||||||
|
}
|
||||||
|
rlTwo.setOnClickListener {
|
||||||
|
ActivityUtils.startActivity(mContext,WebActivity::class.java,Bundle().apply {
|
||||||
|
putString("url","www.baidu.com")
|
||||||
|
})
|
||||||
|
}
|
||||||
|
rlThree.setOnClickListener {
|
||||||
|
ActivityUtils.startActivity(mContext,WebActivity::class.java,Bundle().apply {
|
||||||
|
putString("url","www.baidu.com")
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun initDate() {
|
override fun initDate() {
|
||||||
|
@ -51,6 +51,17 @@ class UserUtils private constructor(){
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
ActivityUtils.finishToActivity(LoginActivity::class.java,true)
|
ActivityUtils.finishToActivity(LoginActivity::class.java,true)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新当前用户
|
||||||
|
* @param context Context
|
||||||
|
* @param userBean UserBean
|
||||||
|
*/
|
||||||
|
fun updateUser(context: Context,userBean: UserBean){
|
||||||
|
SPUtils.instance.setUserInfo(context, Gson().toJson(userBean))
|
||||||
|
//设置推送别名
|
||||||
|
PushHelper.setAlias(context,userBean)
|
||||||
}
|
}
|
||||||
}
|
}
|
BIN
app/src/main/res/drawable-xxhdpi/bg_com_pro.png
Normal file
BIN
app/src/main/res/drawable-xxhdpi/bg_com_pro.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 279 KiB |
BIN
app/src/main/res/drawable-xxhdpi/icon_pro.png
Normal file
BIN
app/src/main/res/drawable-xxhdpi/icon_pro.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.5 KiB |
47
app/src/main/res/layout/activity_com_pro.xml
Normal file
47
app/src/main/res/layout/activity_com_pro.xml
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:background="@color/color_F5"
|
||||||
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
<include layout="@layout/common_toolbar"></include>
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="@dimen/dp_170"
|
||||||
|
android:background="@drawable/bg_com_pro" />
|
||||||
|
|
||||||
|
<androidx.recyclerview.widget.RecyclerView
|
||||||
|
android:id="@+id/recycler"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:layout_marginLeft="@dimen/dp_15"
|
||||||
|
android:layout_marginTop="@dimen/dp_12"
|
||||||
|
android:layout_marginRight="@dimen/dp_15"
|
||||||
|
android:layout_marginBottom="@dimen/dp_15"
|
||||||
|
android:layout_weight="1" />
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
|
||||||
|
android:id="@+id/llBtn"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="@dimen/dp_70"
|
||||||
|
android:background="@color/white"
|
||||||
|
android:gravity="center"
|
||||||
|
android:paddingLeft="@dimen/dp_15"
|
||||||
|
android:paddingRight="@dimen/dp_15">
|
||||||
|
|
||||||
|
<Button
|
||||||
|
android:id="@+id/btnOk"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:background="@drawable/bg_btn"
|
||||||
|
android:text="联系人工客服"
|
||||||
|
android:textColor="@color/white"
|
||||||
|
android:textSize="@dimen/sp_17">
|
||||||
|
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
</LinearLayout>
|
46
app/src/main/res/layout/activity_com_pro_detail.xml
Normal file
46
app/src/main/res/layout/activity_com_pro_detail.xml
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:background="@color/color_F5"
|
||||||
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
<include layout="@layout/common_toolbar"></include>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="@dimen/dp_50"
|
||||||
|
android:background="@color/white"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="@dimen/dp_21"
|
||||||
|
android:layout_height="@dimen/dp_21"
|
||||||
|
android:layout_marginLeft="@dimen/dp_12"
|
||||||
|
android:background="@drawable/icon_pro" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/tvTitle"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginLeft="@dimen/dp_8"
|
||||||
|
android:maxLines="1"
|
||||||
|
android:singleLine="true"
|
||||||
|
android:text="怎么进行实名认证?"
|
||||||
|
android:textColor="@color/black"
|
||||||
|
android:textSize="@dimen/sp_16"
|
||||||
|
|
||||||
|
/>
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/tvContent"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:layout_marginTop="@dimen/dp_12"
|
||||||
|
android:padding="@dimen/dp_12"
|
||||||
|
android:background="@color/white" />
|
||||||
|
|
||||||
|
|
||||||
|
</LinearLayout>
|
@ -14,6 +14,7 @@
|
|||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
|
android:id="@+id/rlOne"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/dp_80"
|
android:layout_height="@dimen/dp_80"
|
||||||
android:paddingLeft="@dimen/dp_15"
|
android:paddingLeft="@dimen/dp_15"
|
||||||
@ -52,6 +53,7 @@
|
|||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
|
android:id="@+id/rlTwo"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/dp_80"
|
android:layout_height="@dimen/dp_80"
|
||||||
android:paddingLeft="@dimen/dp_15"
|
android:paddingLeft="@dimen/dp_15"
|
||||||
@ -90,6 +92,7 @@
|
|||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
|
android:id="@+id/rlThree"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/dp_80"
|
android:layout_height="@dimen/dp_80"
|
||||||
android:paddingLeft="@dimen/dp_15"
|
android:paddingLeft="@dimen/dp_15"
|
||||||
|
@ -154,7 +154,7 @@
|
|||||||
android:marqueeRepeatLimit="marquee_forever"
|
android:marqueeRepeatLimit="marquee_forever"
|
||||||
android:scrollHorizontally="true"
|
android:scrollHorizontally="true"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:text="急啊卡省的JFK垃圾上单克里夫喀什酱豆腐卡拉就圣诞快乐房价爱上了夫卡是考虑到房价爱上了">
|
android:text="好运平台V2.0已成功上线啦!">
|
||||||
|
|
||||||
</TextView>
|
</TextView>
|
||||||
|
|
||||||
|
@ -1,10 +1,16 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
<com.scwang.smart.refresh.layout.SmartRefreshLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
android:id="@+id/refresh"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:fillViewport="true">
|
app:srlEnableLoadMore="false">
|
||||||
|
|
||||||
|
<androidx.core.widget.NestedScrollView
|
||||||
|
android:fillViewport="true"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent">
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
@ -73,15 +79,15 @@
|
|||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/tvCarType"
|
android:id="@+id/tvCarType"
|
||||||
android:layout_marginLeft="@dimen/dp_10"
|
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginLeft="@dimen/dp_10"
|
||||||
|
android:background="@drawable/shape_orange_2"
|
||||||
android:paddingLeft="@dimen/dp_8"
|
android:paddingLeft="@dimen/dp_8"
|
||||||
android:paddingRight="@dimen/dp_8"
|
android:paddingRight="@dimen/dp_8"
|
||||||
android:text="B1"
|
android:text="B1"
|
||||||
android:textSize="@dimen/sp_12"
|
|
||||||
android:textColor="@color/main_red"
|
android:textColor="@color/main_red"
|
||||||
android:background="@drawable/shape_orange_2" />
|
android:textSize="@dimen/sp_12" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/ivPart"
|
android:id="@+id/ivPart"
|
||||||
@ -246,12 +252,12 @@
|
|||||||
|
|
||||||
|
|
||||||
<GridView
|
<GridView
|
||||||
android:listSelector="@color/color_transparent"
|
|
||||||
android:id="@+id/gvTools"
|
android:id="@+id/gvTools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_below="@+id/tvToolsTitle"
|
android:layout_below="@+id/tvToolsTitle"
|
||||||
android:layout_alignParentBottom="true"
|
android:layout_alignParentBottom="true"
|
||||||
|
android:listSelector="@color/color_transparent"
|
||||||
android:numColumns="4"></GridView>
|
android:numColumns="4"></GridView>
|
||||||
|
|
||||||
|
|
||||||
@ -280,12 +286,12 @@
|
|||||||
|
|
||||||
|
|
||||||
<GridView
|
<GridView
|
||||||
android:listSelector="@color/color_transparent"
|
|
||||||
android:id="@+id/gvPlat"
|
android:id="@+id/gvPlat"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_below="@+id/tvplatTitle"
|
android:layout_below="@+id/tvplatTitle"
|
||||||
android:layout_alignParentBottom="true"
|
android:layout_alignParentBottom="true"
|
||||||
|
android:listSelector="@color/color_transparent"
|
||||||
android:numColumns="4"
|
android:numColumns="4"
|
||||||
android:verticalSpacing="@dimen/dp_20"></GridView>
|
android:verticalSpacing="@dimen/dp_20"></GridView>
|
||||||
|
|
||||||
@ -293,6 +299,7 @@
|
|||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
</androidx.core.widget.NestedScrollView>
|
||||||
|
|
||||||
|
|
||||||
</androidx.core.widget.NestedScrollView>
|
</com.scwang.smart.refresh.layout.SmartRefreshLayout>
|
59
app/src/main/res/layout/item_com_pro.xml
Normal file
59
app/src/main/res/layout/item_com_pro.xml
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:background="@drawable/shape_bg8"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:padding="@dimen/dp_12">
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/tvNum"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginLeft="@dimen/dp_12"
|
||||||
|
android:text="01"
|
||||||
|
android:textColor="@color/main_red"
|
||||||
|
android:textSize="@dimen/sp_20" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="/"
|
||||||
|
android:textColor="@color/main_red"
|
||||||
|
android:textSize="@dimen/sp_14" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/tvProTitle"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginLeft="@dimen/dp_6"
|
||||||
|
android:maxLines="1"
|
||||||
|
android:paddingLeft="@dimen/dp_8"
|
||||||
|
android:paddingTop="@dimen/dp_2"
|
||||||
|
android:paddingRight="@dimen/dp_8"
|
||||||
|
android:paddingBottom="@dimen/dp_2"
|
||||||
|
android:singleLine="true"
|
||||||
|
android:text="证件识别不上,怎么处理?"
|
||||||
|
android:textColor="@color/black"
|
||||||
|
android:textSize="@dimen/sp_16" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/tvContent"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginLeft="@dimen/dp_12"
|
||||||
|
android:layout_marginTop="@dimen/dp_10"
|
||||||
|
android:lineSpacingExtra="@dimen/dp_6"
|
||||||
|
android:text="证件无法识别一般有几种情况。证件反光模糊, 不发识别出有效字段,请重新拍摄照片"
|
||||||
|
android:textColor="@color/color_9"
|
||||||
|
android:textSize="@dimen/sp_14" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
Loading…
Reference in New Issue
Block a user