|
@ -5158,30 +5158,41 @@ public class MainMapActivity extends Activity implements LocationSource, AMapLoc
|
5158
|
5158
|
}
|
5159
|
5159
|
}
|
5160
|
5160
|
|
5161
|
|
int count = Integer.valueOf(charge_record_cnt);
|
5162
|
|
// 成功充电次数
|
5163
|
|
if (count == 0) {
|
|
5161
|
if (charge_record_cnt != null) {
|
|
5162
|
int count = Integer.parseInt(charge_record_cnt);
|
|
5163
|
// 成功充电次数
|
|
5164
|
if (count == 0) {
|
|
5165
|
windowChargeRecordCnt.setText("");
|
|
5166
|
windowChargeRecordCntLine.setVisibility(View.GONE);
|
|
5167
|
} else {
|
|
5168
|
windowChargeRecordCntLine.setVisibility(View.VISIBLE);
|
|
5169
|
|
|
5170
|
if (count < 1000) {
|
|
5171
|
windowChargeRecordCnt.setText(count + "次充电");
|
|
5172
|
} else if (count < 10000) {
|
|
5173
|
windowChargeRecordCnt.setText(count / 1000 + "k+次充电");
|
|
5174
|
} else {
|
|
5175
|
windowChargeRecordCnt.setText(count / 10000 + "w+次充电");
|
|
5176
|
}
|
|
5177
|
}
|
|
5178
|
} else {
|
5164
|
5179
|
windowChargeRecordCnt.setText("");
|
5165
|
5180
|
windowChargeRecordCntLine.setVisibility(View.GONE);
|
5166
|
|
} else {
|
5167
|
|
windowChargeRecordCntLine.setVisibility(View.VISIBLE);
|
|
5181
|
}
|
|
5182
|
|
5168
|
5183
|
|
5169
|
|
if (count < 1000) {
|
5170
|
|
windowChargeRecordCnt.setText(count + "次充电");
|
5171
|
|
} else if (count < 10000) {
|
5172
|
|
windowChargeRecordCnt.setText(count / 1000 + "k+次充电");
|
|
5184
|
if (zongjia != null) {
|
|
5185
|
double zongjiaValue = Double.parseDouble(zongjia);
|
|
5186
|
if (zongjiaValue == 0) {
|
|
5187
|
windowZongjiaLayout.setVisibility(View.GONE);
|
5173
|
5188
|
} else {
|
5174
|
|
windowChargeRecordCnt.setText(count / 10000 + "w+次充电");
|
|
5189
|
windowZongjiaLayout.setVisibility(View.VISIBLE);
|
|
5190
|
windowZongjia.setText(String.format("%.2f", zongjiaValue));
|
5175
|
5191
|
}
|
5176
|
|
}
|
5177
|
|
|
5178
|
|
double zongjiaValue = Double.valueOf(zongjia);
|
5179
|
|
if (zongjiaValue == 0) {
|
5180
|
|
windowZongjiaLayout.setVisibility(View.GONE);
|
5181
|
5192
|
} else {
|
5182
|
|
windowZongjiaLayout.setVisibility(View.VISIBLE);
|
5183
|
|
windowZongjia.setText(String.format("%.2f", zongjiaValue));
|
|
5193
|
windowZongjiaLayout.setVisibility(View.GONE);
|
5184
|
5194
|
}
|
|
5195
|
|
5185
|
5196
|
// 气泡红包显示
|
5186
|
5197
|
windowRedPaperBag.setVisibility("1".equals(own_pay) ? View.VISIBLE : View.GONE);
|
5187
|
5198
|
windowLabelPublic.setText("0".equals(belong_attribute) ? "公共" : "私人");
|