Zhou.xiaoning 3 年之前
父節點
當前提交
94f6dd2c74
共有 1 個文件被更改,包括 5 次插入7 次删除
  1. 5 7
      RMA/app/src/main/java/cn/muchinfo/rma/view/base/home/xhcp/XhcpHomeFragment.kt

+ 5 - 7
RMA/app/src/main/java/cn/muchinfo/rma/view/base/home/xhcp/XhcpHomeFragment.kt

@@ -76,9 +76,6 @@ class XhcpHomeFragment : BaseFragment<XhcpHomeViewModel>(){
 
     lateinit var dataRecyclerview : RecyclerView
 
-    lateinit var chartView : AAChartView
-    lateinit var chartModel : AAChartModel
-
     private val xhcpAnnouncementUI: XhcpAnnouncementUI by lazy {
         XhcpAnnouncementUI(
             this,
@@ -101,10 +98,11 @@ class XhcpHomeFragment : BaseFragment<XhcpHomeViewModel>(){
     private val uiMessageList: ArrayList<_FrameLayout> = arrayListOf()
 
     fun initMessageMenuData() {
-        tabsArray.add("资讯")
-        uiMessageList.add(informationUI.root)
-        tabsArray.add("公告")
+
+        tabsArray.add("通知公告")
         uiMessageList.add(xhcpAnnouncementUI.root)
+        tabsArray.add("新闻资讯")
+        uiMessageList.add(informationUI.root)
 
         pagerAdapter = object : PagerAdapter() {
 
@@ -271,6 +269,7 @@ class XhcpHomeFragment : BaseFragment<XhcpHomeViewModel>(){
 
                             tabSegment {
                                 segment = this
+
                                 background = resources.getDrawable(R.color.white)
                                 addOnTabSelectedListener(object :
                                     QMUITabSegment.OnTabSelectedListener {
@@ -281,7 +280,6 @@ class XhcpHomeFragment : BaseFragment<XhcpHomeViewModel>(){
                                         selectedTabIndex = index
                                     }
                                 })
-                                mode = QMUITabSegment.MODE_FIXED
                                 setIndicator(
                                     QMUITabIndicator(
                                         QMUIDisplayHelper.dp2px(context, 2),