瀏覽代碼

2024-5-12 代码备份
启动页导航调整
首页个人信息排版调整
创客页面UI调整、开发完成
商品列表itemview开发完成
我的页面UI调整完成
首页365专区接口调试完成

zhangbing 2 年之前
父節點
當前提交
5e818c987c

+ 2 - 0
app/src/main/java/com/yihucha/hbyhc/config/HttpUrl.java

@@ -8,8 +8,10 @@ public class HttpUrl {
8 8
     public static boolean IS_RELEASE = false;
9 9
     //生成·
10 10
     public static String BASE_URL_RELEASE = "https://app.bjtdba.com/";
11
+//    public static String BASE_URL_RELEASE = "https://api.hebeiyhc.com";
11 12
     //测试
12 13
     public static String BASE_URL_DEBUG="https://test.bjtdba.com/";
14
+//    public static String BASE_URL_DEBUG="https://test.hebeiyhc.com";
13 15
     //预生产
14 16
 //    public static String BASE_URL_DEBUG = "https://pre.bjtdba.com/";
15 17
     public static String CHANNEL_NAME = "友盟";

+ 2 - 2
app/src/main/java/com/yihucha/hbyhc/presentation/MainActivity.java

@@ -72,7 +72,7 @@ public class MainActivity extends BaseActivity implements View.OnClickListener {
72 72
     private MineFragment mineFragment;
73 73
     private ShoppingFragment shoppingFragment;
74 74
 //    private NearbyFragment nearbyFragment;
75
-    private AnnuityFragment nearbyFragment;
75
+    private NearbyFragment nearbyFragment;
76 76
     private BigWarehouseFragment bigWarehouseFragment;
77 77
 
78 78
     private ActivityMainBinding binding;
@@ -575,7 +575,7 @@ public class MainActivity extends BaseActivity implements View.OnClickListener {
575 575
         FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
576 576
         //判断Fragment是否为空
577 577
         if (nearbyFragment == null) {
578
-            nearbyFragment = new AnnuityFragment();
578
+            nearbyFragment = new NearbyFragment();
579 579
             //添加Fragmet1到事务中
580 580
             transaction.add(R.id.content_layout, nearbyFragment);
581 581
         }

+ 2 - 1
app/src/main/res/layout/activity_main.xml

@@ -54,6 +54,7 @@
54 54
             android:layout_height="match_parent"
55 55
             android:layout_weight="1"
56 56
             android:gravity="center"
57
+            android:visibility="gone"
57 58
             android:orientation="vertical">
58 59
 
59 60
             <ImageView
@@ -92,7 +93,7 @@
92 93
                 android:layout_height="wrap_content"
93 94
                 android:textColor="@color/gray_999999"
94 95
                 android:gravity="center"
95
-                android:text="养老金"
96
+                android:text="创客"
96 97
                 android:textSize="10sp" />
97 98
         </LinearLayout>
98 99
 

+ 2 - 4
app/src/main/res/layout/fragment_home.xml

@@ -8,8 +8,6 @@
8 8
     android:orientation="vertical"
9 9
     tools:context="com.yihucha.hbyhc.presentation.home.HomeFragment">
10 10
 
11
-
12
-
13 11
     <com.lcodecore.tkrefreshlayout.TwinklingRefreshLayout
14 12
         android:id="@+id/refreshLayout"
15 13
         android:layout_width="match_parent"
@@ -37,8 +35,7 @@
37 35
                 <com.youth.banner.Banner
38 36
                     android:id="@+id/banner_home"
39 37
                     android:layout_width="match_parent"
40
-                    android:layout_height="240dp"
41
-                    />
38
+                    android:layout_height="240dp" />
42 39
 
43 40
                 <LinearLayout
44 41
                     android:layout_width="match_parent"
@@ -295,6 +292,7 @@
295 292
                     android:layout_width="match_parent"
296 293
                     android:layout_height="wrap_content"
297 294
                     android:layout_marginTop="22dp"
295
+                    android:visibility="gone"
298 296
                     android:orientation="horizontal">
299 297
 
300 298
                     <LinearLayout

+ 18 - 11
app/src/main/res/layout/fragment_mine.xml

@@ -106,31 +106,28 @@
106 106
                     android:paddingTop="13dp"
107 107
                     android:paddingBottom="13dp"
108 108
                     app:layout_constraintTop_toBottomOf="@+id/layout_member">
109
-
110 109
                     <TextView
111
-                        android:id="@+id/tv_mine_yj"
110
+                        android:id="@+id/tv_mine_ylj"
112 111
                         android:layout_width="wrap_content"
113 112
                         android:layout_height="wrap_content"
114 113
                         android:layout_weight="1"
115
-                        android:drawableTop="@mipmap/icon_mine_yj"
114
+                        android:drawableTop="@mipmap/icon_mine_ylj"
116 115
                         android:drawablePadding="8dp"
117 116
                         android:gravity="center"
118
-                        android:text="我的金"
117
+                        android:text="我的养老金"
119 118
                         android:textColor="@color/black_333333"
120 119
                         android:textSize="12sp" />
121
-
122 120
                     <TextView
123
-                        android:id="@+id/tv_mine_ljf"
121
+                        android:id="@+id/tv_mine_yj"
124 122
                         android:layout_width="wrap_content"
125 123
                         android:layout_height="wrap_content"
126 124
                         android:layout_weight="1"
127
-                        android:drawableTop="@mipmap/icon_mine_hjf"
125
+                        android:drawableTop="@mipmap/icon_mine_yj"
128 126
                         android:drawablePadding="8dp"
129 127
                         android:gravity="center"
130
-                        android:text="我的红积分"
128
+                        android:text="我的佣金"
131 129
                         android:textColor="@color/black_333333"
132 130
                         android:textSize="12sp" />
133
-
134 131
                     <TextView
135 132
                         android:id="@+id/tv_mine_td"
136 133
                         android:layout_width="wrap_content"
@@ -142,13 +139,23 @@
142 139
                         android:text="我的团队"
143 140
                         android:textColor="@color/black_333333"
144 141
                         android:textSize="12sp" />
145
-
142
+                    <TextView
143
+                        android:id="@+id/tv_mine_ljf"
144
+                        android:layout_width="wrap_content"
145
+                        android:layout_height="wrap_content"
146
+                        android:layout_weight="1"
147
+                        android:drawableTop="@mipmap/icon_mine_jf"
148
+                        android:drawablePadding="8dp"
149
+                        android:gravity="center"
150
+                        android:text="积分"
151
+                        android:textColor="@color/black_333333"
152
+                        android:textSize="12sp" />
146 153
                     <TextView
147 154
                         android:id="@+id/tv_mine_yq"
148 155
                         android:layout_width="wrap_content"
149 156
                         android:layout_height="wrap_content"
150 157
                         android:layout_weight="1"
151
-                        android:drawableTop="@mipmap/icon_mine_yq"
158
+                        android:drawableTop="@mipmap/icon_mine_yq_new"
152 159
                         android:drawablePadding="8dp"
153 160
                         android:gravity="center"
154 161
                         android:text="分享邀请"

二進制
app/src/main/res/mipmap-xxxhdpi/icon_mine_jf.png


二進制
app/src/main/res/mipmap-xxxhdpi/icon_mine_ylj.png


二進制
app/src/main/res/mipmap-xxxhdpi/icon_mine_yq_new.png