Explorar el Código

浏览商品列表,重新进行筛选;我的订单界面只保留淘宝和拼多多

kaijia hace 5 meses
padre
commit
d1b28f2610

+ 2 - 2
app/build.gradle

@@ -17,8 +17,8 @@ android {
17 17
         applicationId "com.kx.liedouYX"
18 18
         minSdkVersion 19
19 19
         targetSdkVersion 30
20
-        versionCode 115
21
-        versionName "1.0.15"
20
+        versionCode 116
21
+        versionName "1.0.16"
22 22
 
23 23
         ndk.abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
24 24
         multiDexEnabled true

+ 1 - 1
app/src/main/java/com/kx/liedouYX/ui/activity/mine/BalanceActivity.java

@@ -249,7 +249,7 @@ public class BalanceActivity extends BaseActivity implements IMoneyView, IRealNa
249 249
         //加一个实名认证的提示弹框
250 250
         TipsDialog dialog = new TipsDialog(this);
251 251
         dialog.setTipsMsg("提现属于公民个人收入,按照税法需要完成实名后进行个税申报。");
252
-        dialog.setConfirmButton("去填写", R.color.red);
252
+        dialog.setConfirmButton("去填写", getResources().getColor(R.color.red));
253 253
         dialog.setButtonClick(new TipsDialog.ButtonClick() {
254 254
             @Override
255 255
             public void buttonClick(boolean confirm) {

+ 13 - 13
app/src/main/java/com/kx/liedouYX/ui/activity/mine/MyOrderActivity.java

@@ -184,7 +184,7 @@ public class MyOrderActivity extends BaseActivity implements IOrderView {
184 184
     }
185 185
 
186 186
     private void initScrollTab() {
187
-        String[] strings = new String[]{"全部", "淘宝", "京东", "拼多多", "抖音", "唯品会"};
187
+        String[] strings = new String[]{"全部", "淘宝", "拼多多"};
188 188
         TabCreateUtils.setOrangeTab(this, indicator, strings, new TabCreateUtils.onTitleClickListener() {
189 189
             @Override
190 190
             public void onTitleClick(int index) {
@@ -198,22 +198,22 @@ public class MyOrderActivity extends BaseActivity implements IOrderView {
198 198
                         pType = 1;
199 199
                         pIndex = 1;
200 200
                         break;
201
+//                    case 2:
202
+//                        pType = 4;
203
+//                        pIndex = 2;
204
+//                        break;
201 205
                     case 2:
202
-                        pType = 4;
203
-                        pIndex = 2;
204
-                        break;
205
-                    case 3:
206 206
                         pType = 6;
207 207
                         pIndex = 4;
208 208
                         break;
209
-                    case 4:
210
-                        pType = 5;
211
-                        pIndex = 3;
212
-                        break;
213
-                    case 5:
214
-                        pType = 7;
215
-                        pIndex = 5;
216
-                        break;
209
+//                    case 4:
210
+//                        pType = 5;
211
+//                        pIndex = 3;
212
+//                        break;
213
+//                    case 5:
214
+//                        pType = 7;
215
+//                        pIndex = 5;
216
+//                        break;
217 217
                 }
218 218
                 if (action == 1) {
219 219
                     presenter.incomeListNew(pType, 1, detailType, yearMonthDay, selectDate ? 1 : 2);

+ 1 - 1
app/src/main/java/com/kx/liedouYX/ui/activity/welcome/WelcomeActivity.java

@@ -96,7 +96,7 @@ public class WelcomeActivity extends AppCompatActivity implements IHomePageSubVi
96 96
         LogUtil.e("程序启动 " + activitySize);
97 97
         MyCrashHandler.getInstance().init(this);
98 98
         //是不是华为的设备
99
-        Constants.isHuaWeiPhone = true;
99
+        Constants.isHuaWeiPhone = false;
100 100
 
101 101
         boolean initSDK = SPUtils.getInstance().getBoolean("initSDK", false);
102 102
         if (initSDK) {

+ 12 - 9
app/src/main/java/com/kx/liedouYX/ui/adapter/RecordDateAdapter.java

@@ -16,6 +16,7 @@ import com.kx.liedouYX.R;
16 16
 import com.kx.liedouYX.entity.StockBean;
17 17
 import com.kx.liedouYX.utils.RecycleViewUtils;
18 18
 
19
+import java.util.ArrayList;
19 20
 import java.util.List;
20 21
 
21 22
 import butterknife.BindView;
@@ -48,18 +49,20 @@ public class RecordDateAdapter extends RecyclerView.Adapter<RecordDateAdapter.My
48 49
     public void onBindViewHolder(@NonNull MyViewHolder holder, int position) {
49 50
         RecycleViewUtils.setListRecycleGood(context, holder.recordList);
50 51
         List<StockBean> stockBeans = data.get(position);
52
+        List<StockBean> newStockBeans = new ArrayList<>();
51 53
         for (StockBean stockBean : stockBeans) {
52
-            if (TextUtils.isEmpty(stockBean.getGoods_id())) {
53
-//                stockBeans.remove(stockBean);
54
-                LogUtil.e("失效的商品:" + stockBean.toString());
54
+            if (!TextUtils.isEmpty(stockBean.getGoods_id())) {
55
+                newStockBeans.add(stockBean);
55 56
             }
56 57
         }
57
-        holder.recordDate.setText(stockBeans.get(0).getAdd_time());
58
-        LinearLayoutManager manager = new LinearLayoutManager(context);
59
-        manager.setOrientation(RecyclerView.VERTICAL);
60
-        RecordListAdapter adapter = new RecordListAdapter(context, stockBeans);
61
-        holder.recordList.setLayoutManager(manager);
62
-        holder.recordList.setAdapter(adapter);
58
+        if (newStockBeans.size() > 0) {
59
+            holder.recordDate.setText(newStockBeans.get(0).getAdd_time());
60
+            LinearLayoutManager manager = new LinearLayoutManager(context);
61
+            manager.setOrientation(RecyclerView.VERTICAL);
62
+            RecordListAdapter adapter = new RecordListAdapter(context, newStockBeans);
63
+            holder.recordList.setLayoutManager(manager);
64
+            holder.recordList.setAdapter(adapter);
65
+        }
63 66
     }
64 67
 
65 68
     @Override

+ 1 - 1
app/src/main/java/com/kx/liedouYX/ui/fragment/mine/scll/LljlFragment.java

@@ -113,7 +113,7 @@ public class LljlFragment extends LazyFragment implements IYhfkView {
113 113
                             }
114 114
                             beanList1.add(beanList2);
115 115
                         }
116
-                        initAdapter(beanList1);
116
+                        initAdapter(data);
117 117
                     }
118 118
                 }
119 119
             }