Просмотр исходного кода

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

zhangbing лет назад: 2
Родитель
Сommit
5e818c987c

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

@@ -8,8 +8,10 @@ public class HttpUrl {
8
     public static boolean IS_RELEASE = false;
8
     public static boolean IS_RELEASE = false;
9
     //生成·
9
     //生成·
10
     public static String BASE_URL_RELEASE = "https://app.bjtdba.com/";
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
     public static String BASE_URL_DEBUG="https://test.bjtdba.com/";
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
 //    public static String BASE_URL_DEBUG = "https://pre.bjtdba.com/";
16
 //    public static String BASE_URL_DEBUG = "https://pre.bjtdba.com/";
15
     public static String CHANNEL_NAME = "友盟";
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
     private MineFragment mineFragment;
72
     private MineFragment mineFragment;
73
     private ShoppingFragment shoppingFragment;
73
     private ShoppingFragment shoppingFragment;
74
 //    private NearbyFragment nearbyFragment;
74
 //    private NearbyFragment nearbyFragment;
75
-    private AnnuityFragment nearbyFragment;
75
+    private NearbyFragment nearbyFragment;
76
     private BigWarehouseFragment bigWarehouseFragment;
76
     private BigWarehouseFragment bigWarehouseFragment;
77
 
77
 
78
     private ActivityMainBinding binding;
78
     private ActivityMainBinding binding;
@@ -575,7 +575,7 @@ public class MainActivity extends BaseActivity implements View.OnClickListener {
575
         FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
575
         FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
576
         //判断Fragment是否为空
576
         //判断Fragment是否为空
577
         if (nearbyFragment == null) {
577
         if (nearbyFragment == null) {
578
-            nearbyFragment = new AnnuityFragment();
578
+            nearbyFragment = new NearbyFragment();
579
             //添加Fragmet1到事务中
579
             //添加Fragmet1到事务中
580
             transaction.add(R.id.content_layout, nearbyFragment);
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
             android:layout_height="match_parent"
54
             android:layout_height="match_parent"
55
             android:layout_weight="1"
55
             android:layout_weight="1"
56
             android:gravity="center"
56
             android:gravity="center"
57
+            android:visibility="gone"
57
             android:orientation="vertical">
58
             android:orientation="vertical">
58
 
59
 
59
             <ImageView
60
             <ImageView
@@ -92,7 +93,7 @@
92
                 android:layout_height="wrap_content"
93
                 android:layout_height="wrap_content"
93
                 android:textColor="@color/gray_999999"
94
                 android:textColor="@color/gray_999999"
94
                 android:gravity="center"
95
                 android:gravity="center"
95
-                android:text="养老金"
96
+                android:text="创客"
96
                 android:textSize="10sp" />
97
                 android:textSize="10sp" />
97
         </LinearLayout>
98
         </LinearLayout>
98
 
99
 

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

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

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

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

BIN
app/src/main/res/mipmap-xxxhdpi/icon_mine_jf.png


BIN
app/src/main/res/mipmap-xxxhdpi/icon_mine_ylj.png


BIN
app/src/main/res/mipmap-xxxhdpi/icon_mine_yq_new.png