Browse Source

修改bug

hy 2 years ago
parent
commit
b6e106d04c

+ 1 - 1
app/src/main/java/com/electric/chargingpile/fragment/MonthListFragment.java

133
                            sort= TextUtils.isEmpty(sort)?"":sort;
133
                            sort= TextUtils.isEmpty(sort)?"":sort;
134
                            String userpic = JsonUtils.getKeyResult(own, "userpic");
134
                            String userpic = JsonUtils.getKeyResult(own, "userpic");
135
135
136
                            if (power.equals("") && nickname.equals("") && tel.equals("") && sort.equals("") && userpic.equals("")) {
136
                            if (TextUtils.isEmpty(user_id)) {
137
                                tv_no_login.setVisibility(View.VISIBLE);
137
                                tv_no_login.setVisibility(View.VISIBLE);
138
                                tv_login.setVisibility(View.VISIBLE);
138
                                tv_login.setVisibility(View.VISIBLE);
139
                                rl_monthList.setOnClickListener(new View.OnClickListener() {
139
                                rl_monthList.setOnClickListener(new View.OnClickListener() {

+ 3 - 1
app/src/main/java/com/electric/chargingpile/fragment/TotalListFragment.java

54
import okhttp3.Call;
54
import okhttp3.Call;
55
55
56
public class TotalListFragment extends Fragment implements View.OnClickListener {
56
public class TotalListFragment extends Fragment implements View.OnClickListener {
57
    private TextView  tv_notice;
57
    private TextView  tv_notice,selectQuarter;
58
    private ListView lv_total;
58
    private ListView lv_total;
59
59
60
60
83
83
84
        tv_notice = (TextView) v.findViewById(R.id.tv_notice);
84
        tv_notice = (TextView) v.findViewById(R.id.tv_notice);
85
        lv_total = (ListView) v.findViewById(R.id.lv_total);
85
        lv_total = (ListView) v.findViewById(R.id.lv_total);
86
        selectQuarter = (TextView) v.findViewById(R.id.selectQuarter);
86
        layoutQuarter = (LinearLayout) v.findViewById(R.id.layoutQuarter);
87
        layoutQuarter = (LinearLayout) v.findViewById(R.id.layoutQuarter);
87
        layoutQuarter.setOnClickListener(this);
88
        layoutQuarter.setOnClickListener(this);
88
    }
89
    }
241
        QuarterAdapter adapter = new QuarterAdapter(requireContext());
242
        QuarterAdapter adapter = new QuarterAdapter(requireContext());
242
        adapter.setItemOnClick((posistion,name) -> {
243
        adapter.setItemOnClick((posistion,name) -> {
243
            mQuarter=String.valueOf( posistion + 1);
244
            mQuarter=String.valueOf( posistion + 1);
245
            selectQuarter.setText(name);
244
            getData(null);
246
            getData(null);
245
            mPopupWindow.dismiss();
247
            mPopupWindow.dismiss();
246
        });
248
        });