修改相关bug,修改充电站,充电桩

This commit is contained in:
wangdongsheng
2021-10-19 09:53:16 +08:00
parent f2fddaa0e7
commit 3ede202a30
43 changed files with 806 additions and 422 deletions

View File

@@ -273,7 +273,7 @@ public class FragmentManagement extends BaseActivity {
fragmentTransaction.show(taskExplainFragment2); fragmentTransaction.show(taskExplainFragment2);
} }
break; break;
case 11://发现-能力测评fragment - case 11://发现-能力测评fragment
if (capacityEvaluationFragment == null) { if (capacityEvaluationFragment == null) {
capacityEvaluationFragment = CapacityEvaluationFragment.newInstance(new Bundle()); capacityEvaluationFragment = CapacityEvaluationFragment.newInstance(new Bundle());
fragmentTransaction.add(R.id.frame_layout, capacityEvaluationFragment); fragmentTransaction.add(R.id.frame_layout, capacityEvaluationFragment);
@@ -281,7 +281,7 @@ public class FragmentManagement extends BaseActivity {
fragmentTransaction.show(capacityEvaluationFragment); fragmentTransaction.show(capacityEvaluationFragment);
} }
break; break;
case 12://发现-能力测评2的fragment - case 12://发现-能力测评2的fragment
if (capacityEvaluationFragment2 == null) { if (capacityEvaluationFragment2 == null) {
capacityEvaluationFragment2 =CapacityEvaluationFragment2.newInstance(new Bundle()); capacityEvaluationFragment2 =CapacityEvaluationFragment2.newInstance(new Bundle());
fragmentTransaction.add(R.id.frame_layout, capacityEvaluationFragment2); fragmentTransaction.add(R.id.frame_layout, capacityEvaluationFragment2);
@@ -499,7 +499,6 @@ public class FragmentManagement extends BaseActivity {
fragmentTransaction.commit(); fragmentTransaction.commit();
} }
private void setZtlTextColor() { private void setZtlTextColor() {
ImmersionBar.with(this) ImmersionBar.with(this)
.statusBarDarkFont(true, 0.2f) .statusBarDarkFont(true, 0.2f)

View File

@@ -163,7 +163,7 @@ public class HomeActivity extends BaseActivity{
Toast.makeText(this, "双击退出程序", Toast.LENGTH_SHORT).show(); Toast.makeText(this, "双击退出程序", Toast.LENGTH_SHORT).show();
handler.sendEmptyMessageDelayed(0x100, 2000); handler.sendEmptyMessageDelayed(0x100, 2000);
} else { } else {
this.finish(); finish();
} }
} }
} }

View File

@@ -89,8 +89,8 @@ public class MainActivity extends BaseActivity {
protected void initData() { protected void initData() {
super.initData(); super.initData();
//必须全局才可以改变样式 //必须全局才可以改变样式
DialogSettings.style = DialogSettings.STYLE.STYLE_IOS; /* DialogSettings.style = DialogSettings.STYLE.STYLE_IOS;
DialogSettings.init();//初始化清空 BaseDialog 队列 DialogSettings.init();//初始化清空 BaseDialog 队列*/
} }
private void initPermission() { private void initPermission() {

View File

@@ -158,12 +158,11 @@ public class PhotographActivity extends BaseActivity implements View.OnClickList
photographBuilder.append("cameraView 用户横屏拍摄 ,"); photographBuilder.append("cameraView 用户横屏拍摄 ,");
} }
} }
File file = new File(photo_path); File file = new File(photo_path);
File destFolder = new File(file.getParentFile().getAbsolutePath()+"aaa"); /* File destFolder = new File(file.getParentFile().getAbsolutePath()+"aaa");
if (!destFolder.exists()) { if (!destFolder.exists()) {
destFolder.mkdirs(); destFolder.mkdirs();
} }*/
result.toFile(file, new FileCallback() { result.toFile(file, new FileCallback() {
@Override @Override
public void onFileReady(@Nullable File file) { public void onFileReady(@Nullable File file) {
@@ -173,24 +172,19 @@ public class PhotographActivity extends BaseActivity implements View.OnClickList
setResult(0x104, intent); setResult(0x104, intent);
SystemTTS.getInstance(PhotographActivity.this).stopSpeak(); SystemTTS.getInstance(PhotographActivity.this).stopSpeak();
PhotographActivity.this.finish(); PhotographActivity.this.finish();
/* /* CompressImageTask.get().compressImage(ImageConfig.getDefaultConfig(file.getAbsolutePath(), file.getAbsolutePath()), new AsyncImageTask.OnImageResult(){
CompressImageTask.get().compressImage(ImageConfig.getDefaultConfig(file.getAbsolutePath(), file.getAbsolutePath()+"a.jpg"), new AsyncImageTask.OnImageResult(){
@Override @Override
public void startCompress() { public void startCompress() {
} }
@Override @Override
public void resultError() { public void resultError() {
} }
@Override @Override
public void resultFileSucceed(File file) { public void resultFileSucceed(File file) {
} }
}); });*/
*/
} }
}); });

View File

@@ -182,6 +182,7 @@ public class PicturesActivity extends BaseActivity implements View.OnClickListen
imageView.setOnClickListener(this); imageView.setOnClickListener(this);
capturePicture = findViewById(R.id.capture_picture); capturePicture = findViewById(R.id.capture_picture);
if (poi_video_type == 2) { if (poi_video_type == 2) {
isOration = true;
capturePicture.setText("拍摄"); capturePicture.setText("拍摄");
} else { } else {
capturePicture.setText("开始采集"); capturePicture.setText("开始采集");
@@ -190,8 +191,8 @@ public class PicturesActivity extends BaseActivity implements View.OnClickListen
@Override @Override
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
if (isChecked) { if (isChecked) {
isOration = true;
if (poi_video_type != 2) { if (poi_video_type != 2) {
isOration = true;
capturePicture.setText("暂停采集"); capturePicture.setText("暂停采集");
picturesBuilder.append("capturePicture 点击了开始采集 ,"); picturesBuilder.append("capturePicture 点击了开始采集 ,");
}else { }else {
@@ -199,8 +200,8 @@ public class PicturesActivity extends BaseActivity implements View.OnClickListen
} }
startTimer(); startTimer();
} else { } else {
isOration = false;
if (poi_video_type != 2) { if (poi_video_type != 2) {
isOration = false;
capturePicture.setText("开始采集"); capturePicture.setText("开始采集");
picturesBuilder.append("capturePicture 点击了暂停采集 ,"); picturesBuilder.append("capturePicture 点击了暂停采集 ,");
} }
@@ -373,7 +374,6 @@ public class PicturesActivity extends BaseActivity implements View.OnClickListen
break; break;
case R.id.image_view: case R.id.image_view:
picturesBuilder.append("onClick 点击了切换的窗口 ,"); picturesBuilder.append("onClick 点击了切换的窗口 ,");
benSwitch();
break; break;
case R.id.btn_switch: case R.id.btn_switch:
picturesBuilder.append("onClick 点击了切换按钮 ,"); picturesBuilder.append("onClick 点击了切换按钮 ,");
@@ -401,7 +401,6 @@ public class PicturesActivity extends BaseActivity implements View.OnClickListen
0)); //目标旋转角 0~360° (正北方为0) 0)); //目标旋转角 0~360° (正北方为0)
tencentMap.animateCamera(cameraSigma); tencentMap.animateCamera(cameraSigma);
} }
break; break;
} }

View File

@@ -100,8 +100,6 @@ public class WebActivity extends BaseActivity implements View.OnClickListener {
} }
} }
// 监听 // 监听
private static class MyWebViewClient extends WebViewClient { private static class MyWebViewClient extends WebViewClient {
@Override @Override

View File

@@ -47,7 +47,17 @@ public class ChargingPileAdapter extends RecyclerView.Adapter<ChargingPileAdapte
public void onBindViewHolder(@NonNull ViewHolder holder, int position) { public void onBindViewHolder(@NonNull ViewHolder holder, int position) {
ChargingPileEntity chargingPileEntity = chargingPileEntities.get(position); ChargingPileEntity chargingPileEntity = chargingPileEntities.get(position);
holder.textView.setText(chargingPileEntity.getName()); holder.textView.setText(chargingPileEntity.getName());
if (chargingPileEntity.getPhotos()!=null){
if (chargingPileEntity.getPhotos().size()>0){
holder.rlItem.setBackgroundColor(Color.parseColor("#BDBDBD")); holder.rlItem.setBackgroundColor(Color.parseColor("#BDBDBD"));
}else {
holder.rlItem.setBackgroundColor(Color.parseColor("#4CEF6F"));
}
}else {
holder.rlItem.setBackgroundColor(Color.parseColor("#4CEF6F"));
}
holder.itemView.setOnClickListener(new View.OnClickListener() { holder.itemView.setOnClickListener(new View.OnClickListener() {
@Override @Override
public void onClick(View v) { public void onClick(View v) {

View File

@@ -85,7 +85,9 @@ public class MarkerAdapter extends RecyclerView.Adapter<MarkerAdapter.ViewHolder
holder.itemView.setOnClickListener(new View.OnClickListener() { holder.itemView.setOnClickListener(new View.OnClickListener() {
@Override @Override
public void onClick(View v) { public void onClick(View v) {
onBankClick.onClick(poiEntity); if (onBankClick!=null){
onBankClick.onClick(poiEntities.get(position));
}
} }
}); });
} }

View File

@@ -51,7 +51,7 @@ public class WithdrawalAdapter extends RecyclerView.Adapter<WithdrawalAdapter.On
public void onBindViewHolder(@NonNull @NotNull OnViewHolder holder, int position) { public void onBindViewHolder(@NonNull @NotNull OnViewHolder holder, int position) {
if (dataBeans != null && dataBeans.size() > position) { if (dataBeans != null && dataBeans.size() > position) {
WithdrawalBean.BodyBean.ListBean listBean = dataBeans.get(position); WithdrawalBean.BodyBean.ListBean listBean = dataBeans.get(position);
holder.tvTitle.setText(listBean.getExchangePrice()+""); holder.tvTitle.setText(listBean.getExchangePrice()+"");
holder.tvTime.setText(listBean.getCommitDate()); holder.tvTime.setText(listBean.getCommitDate());
holder.tvDec.setText(listBean.getAdminConfirm() == 0 ? "未审核" : "已审核"); holder.tvDec.setText(listBean.getAdminConfirm() == 0 ? "未审核" : "已审核");
} }

View File

@@ -183,7 +183,7 @@ public class Constant {
public static SlidingUpPanelLayout SLIDING_LAYOUT = null;//設置 public static SlidingUpPanelLayout SLIDING_LAYOUT = null;//設置
public static boolean IS_FILTER_LIST_ITEM = true;//poi页面的查重 public static boolean IS_FILTER_LIST_ITEM = true;//poi页面的查重
public static TencentMap.OnMarkerClickListener markerClickListener = null; public static TencentMap.OnMarkerClickListener markerClickListener = null;
public static final String NAVIN_FO = "10.15";//版本日期 public static final String NAVIN_FO = "10.18";//版本日期
/* /*
*联系我们的QQ群名称和QQ群号 *联系我们的QQ群名称和QQ群号
*/ */

View File

@@ -37,16 +37,16 @@ public class UserApplication extends Application {
UMConfigure.setLogEnabled(true); UMConfigure.setLogEnabled(true);
String e ="测试自定义异常代码是否运行!!!!!!"; String e ="测试自定义异常代码是否运行!!!!!!";
UMCrash.generateCustomLog(e,"UmengException"); UMCrash.generateCustomLog(e,"UmengException");
initOkGo(); initOkGo();
TalentLocationUtils.getInstance(this).startLocation(this); TalentLocationUtils.getInstance(this).startLocation(this);
} }
public static UserApplication getUserApplication() { public static UserApplication getUserApplication() {
return userApplication; return userApplication;
} }
private void initOkGo() { private void initOkGo() {
OkHttpClient.Builder builder = new OkHttpClient.Builder(); OkHttpClient.Builder builder = new OkHttpClient.Builder();
//log相关 //log相关
@@ -89,7 +89,5 @@ public class UserApplication extends Application {
StrictMode.VmPolicy.Builder picBuilder = new StrictMode.VmPolicy.Builder(); StrictMode.VmPolicy.Builder picBuilder = new StrictMode.VmPolicy.Builder();
StrictMode.setVmPolicy(picBuilder.build()); StrictMode.setVmPolicy(picBuilder.build());
picBuilder.detectFileUriExposure(); picBuilder.detectFileUriExposure();
} }
} }

View File

@@ -58,6 +58,15 @@ public class ReceivedPoiBean {
private int isExclusive; private int isExclusive;
private String memo; private String memo;
private String endDate; private String endDate;
private String telephone;
public String getTelephone() {
return telephone;
}
public void setTelephone(String telephone) {
this.telephone = telephone;
}
public String getMemo() { public String getMemo() {
return memo; return memo;

View File

@@ -197,7 +197,7 @@ public class CapacityMeasurementFragment extends BaseFragment implements View.On
message = "通过"; message = "通过";
} }
DialogSettings.style = DialogSettings.STYLE.STYLE_IOS; DialogSettings.style = DialogSettings.STYLE.STYLE_IOS;
MessageDialog.show((AppCompatActivity) Objects.requireNonNull(getActivity()), "提示", message, "确定").setOkButton(new OnDialogButtonClickListener() { MessageDialog.show((AppCompatActivity) Objects.requireNonNull(getActivity()), "提示", message+"", "确定").setOkButton(new OnDialogButtonClickListener() {
@Override @Override
public boolean onClick(BaseDialog baseDialog, View v) { public boolean onClick(BaseDialog baseDialog, View v) {
return false; return false;

View File

@@ -17,6 +17,7 @@ import android.widget.CheckBox;
import android.widget.CompoundButton; import android.widget.CompoundButton;
import android.widget.EditText; import android.widget.EditText;
import android.widget.ImageView; import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout; import android.widget.RelativeLayout;
import android.widget.Spinner; import android.widget.Spinner;
import android.widget.TextView; import android.widget.TextView;
@@ -82,10 +83,12 @@ public class ChargingPileFragment extends BaseDrawerFragment implements View.OnC
private Spinner spinnerType, spinnerScutcheon, spinnerStake; private Spinner spinnerType, spinnerScutcheon, spinnerStake;
String[] type = new String[]{"地上五层", "地上四层", "地上三层", "地上二层", "地上一层", "地下一层", "地下二层", "地下三层", "地下四层", "地下五层"}; String[] type = new String[]{"地上五层", "地上四层", "地上三层", "地上二层", "地上一层", "地下一层", "地下二层", "地下三层", "地下四层", "地下五层"};
String[] scutcheon = new String[]{"存在", "不存在"}; String[] scutcheon = new String[]{"存在", "不存在"};
String[] spanner = new String[]{"存在", "不存在"};
String[] stake = new String[]{"可以使用", "不可使用", "维修中", "建设中", "规划中"}; String[] stake = new String[]{"可以使用", "不可使用", "维修中", "建设中", "规划中"};
private RelativeLayout rlPanorama, rlCoding, rlEquipment, rlFacility, rlUsable, rlAvailable, rlParking, rlNumber, rlScutcheon, rlDevice; private RelativeLayout rlPanorama, rlCoding, rlEquipment, rlFacility, rlUsable, rlAvailable, rlParking, rlNumber, rlScutcheon, rlDevice;
private ImageView ivPanorama, ivCoding, ivEquipment, ivFacility, ivUsable, ivAvailable, ivParking, ivNumber, ivScutcheon, ivDevice; private ImageView ivPanorama, ivCoding, ivEquipment, ivFacility, ivUsable, ivAvailable, ivParking, ivNumber, ivScutcheon, ivDevice;
private TextView tvPanorama, tvCoding, tvEquipment, tvFacility, tvUsable, tvAvailable, tvParking, tvNumber, tvScutcheon, tvDevice; private TextView tvPanorama, tvCoding, tvEquipment, tvFacility, tvUsable, tvAvailable, tvParking, tvNumber, tvScutcheon, tvDevice;
private int exist = 0;
private int cp_floor = 1; private int cp_floor = 1;
private int sign_exist = 0; private int sign_exist = 0;
private int cp_availableState = 0; private int cp_availableState = 0;
@@ -100,6 +103,14 @@ public class ChargingPileFragment extends BaseDrawerFragment implements View.OnC
private ChargingPileEntity chargingPileEntity; private ChargingPileEntity chargingPileEntity;
private File logFile; private File logFile;
private StringBuilder chargingPileBuilder; private StringBuilder chargingPileBuilder;
private Spinner spinnerExist;
private RelativeLayout relative_exist;
private TextView tvText;
private LinearLayout llCharging;
private RelativeLayout linearType;
private RelativeLayout linearScutcheon;
private RelativeLayout linearStake;
private RelativeLayout linearRelative;
public static ChargingPileFragment newInstance(Bundle bundle) { public static ChargingPileFragment newInstance(Bundle bundle) {
ChargingPileFragment fragment = new ChargingPileFragment(); ChargingPileFragment fragment = new ChargingPileFragment();
@@ -272,6 +283,33 @@ public class ChargingPileFragment extends BaseDrawerFragment implements View.OnC
} }
} }
}); });
relative_exist = findViewById(R.id.linear_exist);
spinnerExist = findViewById(R.id.spinner_exist);
ArrayAdapter<String> adapterExist = new ArrayAdapter<>(Objects.requireNonNull(getContext()), android.R.layout.simple_spinner_item, spanner);
adapterExist.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); //设置下拉列表框的下拉选项样式
spinnerExist.setAdapter(adapterExist);
spinnerExist.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
@Override
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
switch (position) {
case 0:
exist = 0;//存在
pileDisables(View.VISIBLE);
break;
case 1:
exist = 1;//不存在
pileDisables(View.GONE);
rlDevice.setVisibility(View.GONE);
rlScutcheon.setVisibility(View.GONE);
break;
}
}
@Override
public void onNothingSelected(AdapterView<?> parent) {
}
});
spinnerType = findViewById(R.id.spinner_type); spinnerType = findViewById(R.id.spinner_type);
ArrayAdapter<String> adapterType = new ArrayAdapter<>(Objects.requireNonNull(getContext()), android.R.layout.simple_spinner_item, type); ArrayAdapter<String> adapterType = new ArrayAdapter<>(Objects.requireNonNull(getContext()), android.R.layout.simple_spinner_item, type);
adapterType.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); //设置下拉列表框的下拉选项样式 adapterType.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); //设置下拉列表框的下拉选项样式
@@ -313,8 +351,10 @@ public class ChargingPileFragment extends BaseDrawerFragment implements View.OnC
break; break;
} }
} }
@Override @Override
public void onNothingSelected(AdapterView<?> parent) {} public void onNothingSelected(AdapterView<?> parent) {
}
}); });
spinnerScutcheon = findViewById(R.id.spinner_scutcheon); spinnerScutcheon = findViewById(R.id.spinner_scutcheon);
ArrayAdapter<String> adapterScutcheon = new ArrayAdapter<>(getContext(), android.R.layout.simple_spinner_item, scutcheon); ArrayAdapter<String> adapterScutcheon = new ArrayAdapter<>(getContext(), android.R.layout.simple_spinner_item, scutcheon);
@@ -332,8 +372,11 @@ public class ChargingPileFragment extends BaseDrawerFragment implements View.OnC
break; break;
case 1: case 1:
rlFacility.setBackgroundColor(Color.parseColor("#03A9F4")); rlFacility.setBackgroundColor(Color.parseColor("#03A9F4"));
if (exist==0){
rlScutcheon.setVisibility(View.VISIBLE); rlScutcheon.setVisibility(View.VISIBLE);
rlDevice.setVisibility(View.VISIBLE); rlDevice.setVisibility(View.VISIBLE);
}
sign_exist = 1; sign_exist = 1;
break; break;
} }
@@ -380,6 +423,13 @@ public class ChargingPileFragment extends BaseDrawerFragment implements View.OnC
if (slidingPaneLayout != null) { if (slidingPaneLayout != null) {
slidingPaneLayout.setScrollableView(nestedScrollView); slidingPaneLayout.setScrollableView(nestedScrollView);
} }
tvText = findViewById(R.id.text);
llCharging = findViewById(R.id.ll_charging);
linearType = findViewById(R.id.linear_type);
linearScutcheon = findViewById(R.id.linear_scutcheon);
linearStake = findViewById(R.id.linear_stake);
linearRelative = findViewById(R.id.relative_linear);
rlPanorama = findViewById(R.id.rl_panorama); rlPanorama = findViewById(R.id.rl_panorama);
rlPanorama.setOnClickListener(this); rlPanorama.setOnClickListener(this);
ivPanorama = findViewById(R.id.iv_panorama); ivPanorama = findViewById(R.id.iv_panorama);
@@ -587,6 +637,18 @@ public class ChargingPileFragment extends BaseDrawerFragment implements View.OnC
String name = chargingPileEntity.getName();//名称 String name = chargingPileEntity.getName();//名称
if (name != null) { if (name != null) {
tvNameContent.setText(name); tvNameContent.setText(name);
relative_exist.setVisibility(View.VISIBLE);
exist = chargingPileEntity.getExist();
spinnerExist.setSelection(exist, true);
if (exist == 0) {
pileDisables(View.VISIBLE);
} else if (exist == 1) {
pileDisables(View.GONE);
rlDevice.setVisibility(View.GONE);
rlScutcheon.setVisibility(View.GONE);
}
} else {
relative_exist.setVisibility(View.GONE);
} }
String p = chargingPileEntity.getP(); String p = chargingPileEntity.getP();
if (p != null) { if (p != null) {
@@ -606,6 +668,7 @@ public class ChargingPileFragment extends BaseDrawerFragment implements View.OnC
if (fid != null) { if (fid != null) {
pid = fid; pid = fid;
} }
int sign_exist = chargingPileEntity.getSign_exist(); int sign_exist = chargingPileEntity.getSign_exist();
spinnerScutcheon.setSelection(sign_exist, true); spinnerScutcheon.setSelection(sign_exist, true);
if (sign_exist == 0) { if (sign_exist == 0) {
@@ -613,9 +676,16 @@ public class ChargingPileFragment extends BaseDrawerFragment implements View.OnC
rlScutcheon.setVisibility(View.GONE); rlScutcheon.setVisibility(View.GONE);
rlDevice.setVisibility(View.GONE); rlDevice.setVisibility(View.GONE);
} else if (sign_exist == 1) { } else if (sign_exist == 1) {
int exist = chargingPileEntity.getExist();
if (exist == 0) {
rlFacility.setBackgroundColor(Color.parseColor("#03A9F4")); rlFacility.setBackgroundColor(Color.parseColor("#03A9F4"));
rlScutcheon.setVisibility(View.VISIBLE); rlScutcheon.setVisibility(View.VISIBLE);
rlDevice.setVisibility(View.VISIBLE); rlDevice.setVisibility(View.VISIBLE);
} else {
rlScutcheon.setVisibility(View.GONE);
rlDevice.setVisibility(View.GONE);
}
} }
int cp_availableState = chargingPileEntity.getCp_availableState(); int cp_availableState = chargingPileEntity.getCp_availableState();
spinnerStake.setSelection(cp_availableState, true); spinnerStake.setSelection(cp_availableState, true);
@@ -819,6 +889,34 @@ public class ChargingPileFragment extends BaseDrawerFragment implements View.OnC
btnSaveLocal.setEnabled(false);//保存 btnSaveLocal.setEnabled(false);//保存
} }
private void pileDisables(int aEnabled) {
tvText.setVisibility(aEnabled);
llCharging.setVisibility(aEnabled);
linearType.setVisibility(aEnabled);
linearScutcheon.setVisibility(aEnabled);
linearStake.setVisibility(aEnabled);
linearRelative.setVisibility(aEnabled);
checkButton1.setVisibility(aEnabled);//开放状态1
checkButton2.setVisibility(aEnabled);//开放状态2
checkButton3.setVisibility(aEnabled);//开放状态3
checkButton4.setVisibility(aEnabled);//开放状态4
checkButton5.setVisibility(aEnabled);//开放状态5
spinnerType.setVisibility(aEnabled);//充电地面层
spinnerScutcheon.setVisibility(aEnabled);//设备标牌下拉框
rlEquipment.setVisibility(aEnabled);//(蓝色色)设备标牌
rlFacility.setVisibility(aEnabled);//(白色)设备标牌
spinnerStake.setVisibility(aEnabled);//桩可用状态
rlUsable.setVisibility(aEnabled);//(蓝色)可用状态
rlAvailable.setVisibility(aEnabled);//(白色)可用状态
rlParking.setVisibility(aEnabled);//(蓝色)停车位编号
rlNumber.setVisibility(aEnabled);//(白色)停车位编号
if (aEnabled == View.VISIBLE) {
tvCoding.setText("*充电桩编码");
} else if (aEnabled == View.GONE) {
tvCoding.setText("*全景照片");
}
}
@Override @Override
protected void initData() { protected void initData() {
super.initData(); super.initData();
@@ -1222,6 +1320,7 @@ public class ChargingPileFragment extends BaseDrawerFragment implements View.OnC
if (cp_floor != 0) { if (cp_floor != 0) {
chargingPileEntity.setCp_floor(cp_floor); chargingPileEntity.setCp_floor(cp_floor);
} }
String tagPanorama = (String) tvPanorama.getTag(); String tagPanorama = (String) tvPanorama.getTag();
if (tagPanorama != null && !tagPanorama.equals("")) { if (tagPanorama != null && !tagPanorama.equals("")) {
photo.add(tagPanorama); photo.add(tagPanorama);
@@ -1264,6 +1363,7 @@ public class ChargingPileFragment extends BaseDrawerFragment implements View.OnC
} }
chargingPileEntity.setPhotos(photo); chargingPileEntity.setPhotos(photo);
chargingPileEntity.setSign_exist(sign_exist); chargingPileEntity.setSign_exist(sign_exist);
chargingPileEntity.setExist(exist);
chargingPileEntity.setCp_availableState(cp_availableState); chargingPileEntity.setCp_availableState(cp_availableState);
String describe = editDescribe.getText().toString().trim(); String describe = editDescribe.getText().toString().trim();
if (!describe.equals("")) { if (!describe.equals("")) {
@@ -1303,11 +1403,6 @@ public class ChargingPileFragment extends BaseDrawerFragment implements View.OnC
poiCheckResult.setMsg("请输入 名称"); poiCheckResult.setMsg("请输入 名称");
return poiCheckResult; return poiCheckResult;
} }
if (entity.getCp_openType() == null) {
poiCheckResult.setCode(1);
poiCheckResult.setMsg("开放状态未勾选");
return poiCheckResult;
}
if (tvPanorama.getTag() == null) { if (tvPanorama.getTag() == null) {
poiCheckResult.setCode(1); poiCheckResult.setCode(1);
poiCheckResult.setMsg("请拍照 全景图"); poiCheckResult.setMsg("请拍照 全景图");
@@ -1318,6 +1413,13 @@ public class ChargingPileFragment extends BaseDrawerFragment implements View.OnC
poiCheckResult.setMsg("请拍照 充电桩编码"); poiCheckResult.setMsg("请拍照 充电桩编码");
return poiCheckResult; return poiCheckResult;
} }
if (exist == 0) {
if (entity.getCp_openType() == null) {
poiCheckResult.setCode(1);
poiCheckResult.setMsg("开放状态未勾选");
return poiCheckResult;
}
if (tvEquipment.getTag() == null) { if (tvEquipment.getTag() == null) {
poiCheckResult.setCode(1); poiCheckResult.setCode(1);
poiCheckResult.setMsg("请拍照 设备标牌"); poiCheckResult.setMsg("请拍照 设备标牌");
@@ -1352,6 +1454,8 @@ public class ChargingPileFragment extends BaseDrawerFragment implements View.OnC
poiCheckResult.setMsg("请拍照 停车位编号"); poiCheckResult.setMsg("请拍照 停车位编号");
return poiCheckResult; return poiCheckResult;
} }
}
return poiCheckResult; return poiCheckResult;
} }

View File

@@ -1,5 +1,4 @@
package com.navinfo.outdoor.fragment; package com.navinfo.outdoor.fragment;
import android.annotation.SuppressLint; import android.annotation.SuppressLint;
import android.content.Context; import android.content.Context;
import android.content.Intent; import android.content.Intent;
@@ -94,7 +93,6 @@ import java.util.List;
import java.util.Objects; import java.util.Objects;
import okhttp3.Response; import okhttp3.Response;
/** /**
* 充电站的Fragment * 充电站的Fragment
* 2021-5-25 * 2021-5-25
@@ -125,7 +123,6 @@ public class ChargingStationFragment extends BaseDrawerFragment implements View.
private ContactView contactView; private ContactView contactView;
private ArrayList<File> chargingStationList; private ArrayList<File> chargingStationList;
String str = ""; String str = "";
//private ArrayList<File> fileList;
private NestedScrollView nestedScrollView; private NestedScrollView nestedScrollView;
private Marker markerStation; private Marker markerStation;
private Point screenStationPositions; private Point screenStationPositions;
@@ -249,13 +246,11 @@ public class ChargingStationFragment extends BaseDrawerFragment implements View.
tvInternal = findViewById(R.id.tv_internal); tvInternal = findViewById(R.id.tv_internal);
tvNamePic = findViewById(R.id.tv_name_pic); tvNamePic = findViewById(R.id.tv_name_pic);
tvScutcheon = findViewById(R.id.tv_scutcheon); tvScutcheon = findViewById(R.id.tv_scutcheon);
/* recyclerPhone = findViewById(R.id.recycler_phone); /* recyclerPhone = findViewById(R.id.recycler_phone);
recyclerPhone.setLayoutManager(new LinearLayoutManager(getContext())); recyclerPhone.setLayoutManager(new LinearLayoutManager(getContext()));
recyclerPhone.addItemDecoration(new DividerItemDecoration(getContext(), DividerItemDecoration.VERTICAL)); recyclerPhone.addItemDecoration(new DividerItemDecoration(getContext(), DividerItemDecoration.VERTICAL));
poiRecycleAdapter = new PoiRecycleAdapter(getContext()); poiRecycleAdapter = new PoiRecycleAdapter(getContext());
recyclerPhone.setAdapter(poiRecycleAdapter);*/ recyclerPhone.setAdapter(poiRecycleAdapter);*/
RecyclerView recyclerStation = findViewById(R.id.recycler_station); RecyclerView recyclerStation = findViewById(R.id.recycler_station);
recyclerStation.setLayoutManager(new GridLayoutManager(getContext(), 3)); recyclerStation.setLayoutManager(new GridLayoutManager(getContext(), 3));
chargingPileAdapter = new ChargingPileAdapter(getContext()); chargingPileAdapter = new ChargingPileAdapter(getContext());
@@ -1057,6 +1052,7 @@ public class ChargingStationFragment extends BaseDrawerFragment implements View.
} }
}); });
*/ */
private void initRoadSaveLocal(boolean isLocal) { private void initRoadSaveLocal(boolean isLocal) {
XXPermissions.with(this) XXPermissions.with(this)
//读写权限 //读写权限
@@ -1090,7 +1086,6 @@ public class ChargingStationFragment extends BaseDrawerFragment implements View.
Toast.makeText(getActivity(), "没有申请权限,请手动申请", Toast.LENGTH_SHORT).show(); Toast.makeText(getActivity(), "没有申请权限,请手动申请", Toast.LENGTH_SHORT).show();
} }
} }
@Override @Override
public void onDenied(List<String> permissions, boolean never) { public void onDenied(List<String> permissions, boolean never) {
if (never) { if (never) {
@@ -1405,6 +1400,7 @@ public class ChargingStationFragment extends BaseDrawerFragment implements View.
new Thread(new Runnable() { new Thread(new Runnable() {
@Override @Override
public void run() { public void run() {
if (showPoiEntity != null) {
if (showPoiEntity.getId()!=null){ if (showPoiEntity.getId()!=null){
List<ChargingPileEntity> chargingPileEntityList = PoiDatabase.getInstance(getActivity()).getChargingPileDao().getChargingPileByStationId(showPoiEntity.getId()); List<ChargingPileEntity> chargingPileEntityList = PoiDatabase.getInstance(getActivity()).getChargingPileDao().getChargingPileByStationId(showPoiEntity.getId());
if (chargingPileEntityList != null && !chargingPileEntityList.isEmpty()) { if (chargingPileEntityList != null && !chargingPileEntityList.isEmpty()) {
@@ -1421,10 +1417,15 @@ public class ChargingStationFragment extends BaseDrawerFragment implements View.
} }
} }
} }
chargingPileDao.deleteChargingFidPileEntity(showPoiEntity.getId()); }
} }
} }
}).start(); }).start();
Message obtain = Message.obtain();
obtain.what = Constant.JOB_WORD_MONITOR;
obtain.obj = true;
EventBus.getDefault().post(obtain);
} else { } else {
Message obtain = Message.obtain(); Message obtain = Message.obtain();
obtain.what = Constant.JOB_WORD_MONITOR; obtain.what = Constant.JOB_WORD_MONITOR;
@@ -1515,6 +1516,7 @@ public class ChargingStationFragment extends BaseDrawerFragment implements View.
new Thread(new Runnable() { new Thread(new Runnable() {
@Override @Override
public void run() { public void run() {
if (showPoiEntity!=null){
List<ChargingPileEntity> chargingPileEntityList = PoiDatabase.getInstance(getActivity()).getChargingPileDao().getChargingPileByStationId(showPoiEntity.getId()); List<ChargingPileEntity> chargingPileEntityList = PoiDatabase.getInstance(getActivity()).getChargingPileDao().getChargingPileByStationId(showPoiEntity.getId());
if (chargingPileEntityList != null && !chargingPileEntityList.isEmpty()) { if (chargingPileEntityList != null && !chargingPileEntityList.isEmpty()) {
for (ChargingPileEntity chargingPileEntity : chargingPileEntityList) { for (ChargingPileEntity chargingPileEntity : chargingPileEntityList) {
@@ -1530,8 +1532,8 @@ public class ChargingStationFragment extends BaseDrawerFragment implements View.
} }
} }
} }
}
poiDao.deletePoiEntity(poiEntity); poiDao.deletePoiEntity(poiEntity);
chargingPileDao.deleteChargingFidPileEntity(poiEntity.getId());
} }
}).start(); }).start();
initList(); initList();

View File

@@ -7,6 +7,7 @@ import android.content.SharedPreferences;
import android.os.Bundle; import android.os.Bundle;
import android.view.View; import android.view.View;
import android.widget.LinearLayout; import android.widget.LinearLayout;
import android.widget.Toast;
import com.github.lazylibrary.util.FileUtils; import com.github.lazylibrary.util.FileUtils;
@@ -35,7 +36,9 @@ public class FindFragment extends BaseFragment implements View.OnClickListener{
FindFragment fragment = new FindFragment(); FindFragment fragment = new FindFragment();
fragment.setArguments(bundle); fragment.setArguments(bundle);
return fragment; return fragment;
} @Override }
@Override
protected int getLayout() { protected int getLayout() {
return R.layout.find_fragment; return R.layout.find_fragment;
} }
@@ -104,10 +107,11 @@ public class FindFragment extends BaseFragment implements View.OnClickListener{
startActivity(eventIntent); startActivity(eventIntent);
break; break;
case R.id.linear_end: case R.id.linear_end:
findBuilder.append("点击了帮助中心:能力测评 跳转 ,"); findBuilder.append("点击了帮助中心:能力测评 ,");
Intent endIntent = new Intent(getActivity(), FragmentManagement.class); Toast.makeText(getContext(), "该功能以后上新,敬请期待", Toast.LENGTH_SHORT).show();
/*Intent endIntent = new Intent(getActivity(), FragmentManagement.class);
endIntent.putExtra("tag", 11); endIntent.putExtra("tag", 11);
startActivity(endIntent); startActivity(endIntent);*/
break; break;
} }
@@ -132,4 +136,5 @@ public class FindFragment extends BaseFragment implements View.OnClickListener{
findBuilder.append("\r\n"); findBuilder.append("\r\n");
FileUtils.writeFile(logFile.getAbsolutePath(), findBuilder.toString(), true); FileUtils.writeFile(logFile.getAbsolutePath(), findBuilder.toString(), true);
} }
} }

View File

@@ -282,8 +282,9 @@ public class GatherGetFragment extends BaseFragment implements View.OnClickListe
LatLng endLatLng = new LatLng(Double.parseDouble(poiEntity.getY()), Double.parseDouble(poiEntity.getX())); LatLng endLatLng = new LatLng(Double.parseDouble(poiEntity.getY()), Double.parseDouble(poiEntity.getX()));
double geometry = GeometryTools.distanceToDouble(startLatLng, endLatLng); double geometry = GeometryTools.distanceToDouble(startLatLng, endLatLng);
if (geometry > 5000) { if (geometry > 5000) {
initGather();
Toast.makeText(getActivity(), "作业不在领取范围内,无法领取", Toast.LENGTH_SHORT).show(); Toast.makeText(getActivity(), "作业不在领取范围内,无法领取", Toast.LENGTH_SHORT).show();
return; // return;
}else { }else {
if (geometry>50){ if (geometry>50){
// Voice.sprat("注意在附近50米范围内进行采集",0); // Voice.sprat("注意在附近50米范围内进行采集",0);
@@ -763,6 +764,14 @@ public class GatherGetFragment extends BaseFragment implements View.OnClickListe
poiListEntity.setAddress(listBean.getAddress()); poiListEntity.setAddress(listBean.getAddress());
poiListEntity.setType(listBean.getType()); poiListEntity.setType(listBean.getType());
poiListEntity.setIsExclusive(listBean.getIsExclusive()); poiListEntity.setIsExclusive(listBean.getIsExclusive());
if (listBean.getType()==1){
if(listBean.getTelephone()==null||listBean.getTelephone().equals("")||listBean.getTelephone().equals("null")){
poiListEntity.setTelPhone(null);
}else {
poiListEntity.setTelPhone(listBean.getTelephone());
}
}
poiListEntity.setTaskStatus(statusId); poiListEntity.setTaskStatus(statusId);
poiListEntity.setGeoWkt(listBean.getGeo()); poiListEntity.setGeoWkt(listBean.getGeo());
String encodeStr = listBean.getGeo(); String encodeStr = listBean.getGeo();

View File

@@ -23,6 +23,8 @@ import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.DividerItemDecoration; import androidx.recyclerview.widget.DividerItemDecoration;
import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView; import androidx.recyclerview.widget.RecyclerView;
import com.github.lazylibrary.util.FileUtils;
import com.github.lazylibrary.util.StringUtils; import com.github.lazylibrary.util.StringUtils;
import com.google.gson.Gson; import com.google.gson.Gson;
import com.kongzue.dialog.interfaces.OnDialogButtonClickListener; import com.kongzue.dialog.interfaces.OnDialogButtonClickListener;
@@ -46,7 +48,10 @@ import com.navinfo.outdoor.util.GetJsonDataUtil;
import com.navinfo.outdoor.util.PhotoUtils; import com.navinfo.outdoor.util.PhotoUtils;
import org.json.JSONArray; import org.json.JSONArray;
import java.io.File; import java.io.File;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Date;
import java.util.Objects; import java.util.Objects;
/*收款信息 /*收款信息
@@ -58,6 +63,8 @@ public class GatheringFragment extends BaseFragment implements View.OnClickListe
private ArrayList<BankPathBean> jsonBean; private ArrayList<BankPathBean> jsonBean;
private String value; private String value;
private SharedPreferences.Editor navInfoEditor; private SharedPreferences.Editor navInfoEditor;
private File logFile;
private StringBuilder gatheringBuilder;
public static GatheringFragment newInstance(Bundle bundle) { public static GatheringFragment newInstance(Bundle bundle) {
GatheringFragment fragment = new GatheringFragment(); GatheringFragment fragment = new GatheringFragment();
@@ -109,17 +116,43 @@ public class GatheringFragment extends BaseFragment implements View.OnClickListe
@Override @Override
protected void initData() { protected void initData() {
super.initData(); super.initData();
SharedPreferences sharedPreferences = Objects.requireNonNull(getActivity()).getSharedPreferences(Constant.MESSAGE_TYPE, Context.MODE_PRIVATE);
SharedPreferences.Editor sharedEdit = sharedPreferences.edit();
@SuppressLint("SimpleDateFormat")
DateFormat formatter = new SimpleDateFormat("yyyyMMdd");
String newFormat = formatter.format(new Date(System.currentTimeMillis()));
String pictures_time = sharedPreferences.getString("pictures_time", null);
if (pictures_time==null){
sharedEdit.putString("pictures_time",newFormat);
sharedEdit.apply();
logFile = new File(Constant.LOG_FOLDER + "/" + newFormat + ".txt");
}else {
if (pictures_time.equals(newFormat)){
logFile = new File(Constant.LOG_FOLDER + "/" + pictures_time + ".txt");
}else {
logFile = new File(Constant.LOG_FOLDER + "/" + newFormat + ".txt");
}
}
gatheringBuilder = new StringBuilder();
gatheringBuilder.append("GatheringFragment-onCreate-initData ,");
if (Constant.USHERED!=null){
gatheringBuilder.append("userId:").append(Constant.USHERED).append(",");
}
} }
@Override @Override
public void onClick(View v) { public void onClick(View v) {
switch (v.getId()) { switch (v.getId()) {
case R.id.iv_gathering: case R.id.iv_gathering:
gatheringBuilder.append("点击返回的按钮 ,");
Objects.requireNonNull(getActivity()).finish(); Objects.requireNonNull(getActivity()).finish();
break; break;
case R.id.et_bank_num: case R.id.et_bank_num:
gatheringBuilder.append("输入银行卡号 ,");
break; break;
case R.id.iv_bank: case R.id.iv_bank:
gatheringBuilder.append("点击弹窗 ,");
String bankJson = new GetJsonDataUtil().getJson(Objects.requireNonNull(getContext()), "bank.json");//获取assets目录下的json文件数据 String bankJson = new GetJsonDataUtil().getJson(Objects.requireNonNull(getContext()), "bank.json");//获取assets目录下的json文件数据
//用Gabon 转成实体 //用Gabon 转成实体
jsonBean = parseData(bankJson); jsonBean = parseData(bankJson);
@@ -186,6 +219,7 @@ public class GatheringFragment extends BaseFragment implements View.OnClickListe
dialog.show(); dialog.show();
break; break;
case R.id.btn_bank: case R.id.btn_bank:
gatheringBuilder.append("点击绑定银行卡 ,");
if (etBankNum.getText().toString().equals("")) { if (etBankNum.getText().toString().equals("")) {
Toast.makeText(getActivity(), "银行卡号不能为空", Toast.LENGTH_SHORT).show(); Toast.makeText(getActivity(), "银行卡号不能为空", Toast.LENGTH_SHORT).show();
Log.e("TAG", "onClick: " + etBankNum); Log.e("TAG", "onClick: " + etBankNum);
@@ -194,6 +228,7 @@ public class GatheringFragment extends BaseFragment implements View.OnClickListe
gatheringNetWork(); gatheringNetWork();
break; break;
case R.id.gathering_camera: case R.id.gathering_camera:
gatheringBuilder.append("点击拍照 ,");
Intent gatheringNumberIntent = new Intent(getActivity(), PhotographActivity.class); Intent gatheringNumberIntent = new Intent(getActivity(), PhotographActivity.class);
File file = PhotoUtils.showPhotoFile("a", null); File file = PhotoUtils.showPhotoFile("a", null);
gatheringNumberIntent.putExtra(Constant.INTENT_PHOTO_PATH, file.getPath()); gatheringNumberIntent.putExtra(Constant.INTENT_PHOTO_PATH, file.getPath());
@@ -249,6 +284,7 @@ public class GatheringFragment extends BaseFragment implements View.OnClickListe
MessageDialog.show((AppCompatActivity) Objects.requireNonNull(getActivity()), "提示", "绑定成功", "确定").setOkButton(new OnDialogButtonClickListener() { MessageDialog.show((AppCompatActivity) Objects.requireNonNull(getActivity()), "提示", "绑定成功", "确定").setOkButton(new OnDialogButtonClickListener() {
@Override @Override
public boolean onClick(BaseDialog baseDialog, View v) { public boolean onClick(BaseDialog baseDialog, View v) {
gatheringBuilder.append("绑定成功 ,");
Constant.BACKGROUND = value; Constant.BACKGROUND = value;
Constant.BACKGROUND_NAME = bank; Constant.BACKGROUND_NAME = bank;
Constant.ID_NUMBER = etBankAccount; Constant.ID_NUMBER = etBankAccount;
@@ -311,7 +347,6 @@ public class GatheringFragment extends BaseFragment implements View.OnClickListe
//所属银行解析 //所属银行解析
public ArrayList<BankPathBean> parseData(String result) {//Gao 解析 public ArrayList<BankPathBean> parseData(String result) {//Gao 解析
ArrayList<BankPathBean> detail = new ArrayList<>(); ArrayList<BankPathBean> detail = new ArrayList<>();
try { try {
JSONArray data = new JSONArray(result); JSONArray data = new JSONArray(result);
Gson gson = new Gson(); Gson gson = new Gson();
@@ -322,8 +357,27 @@ public class GatheringFragment extends BaseFragment implements View.OnClickListe
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }
return detail; return detail;
} }
@Override
public void onPause() {
super.onPause();
gatheringBuilder.append("onPause ,");
}
@Override
public void onStop() {
super.onStop();
gatheringBuilder.append("onStop ,");
}
@Override
public void onDestroy() {
super.onDestroy();
gatheringBuilder.append("onDestroy ,");
gatheringBuilder.append("\r\n");
FileUtils.writeFile(logFile.getAbsolutePath(), gatheringBuilder.toString(), true);
}
} }

View File

@@ -30,7 +30,6 @@ public class GradeFragment extends BaseFragment implements View.OnClickListener{
@Override @Override
protected void initView() { protected void initView() {
ImageView ivGrade = findViewById(R.id.iv_grade); ImageView ivGrade = findViewById(R.id.iv_grade);
super.initView(); super.initView();
ivGrade.setOnClickListener(this); ivGrade.setOnClickListener(this);

View File

@@ -84,7 +84,6 @@ public class MessageFragment extends BaseFragment implements View.OnClickListen
} }
}); });
messageRecycler.getDefaultFootView().setNoMoreHint("已全部加载完毕"); messageRecycler.getDefaultFootView().setNoMoreHint("已全部加载完毕");
messageRecycler.setLoadingListener(new XRecyclerView.LoadingListener() { messageRecycler.setLoadingListener(new XRecyclerView.LoadingListener() {
@Override @Override
public void onRefresh() { } public void onRefresh() { }
@@ -97,7 +96,7 @@ public class MessageFragment extends BaseFragment implements View.OnClickListen
showLoadingDialog(); showLoadingDialog();
HttpParams httpParams = new HttpParams(); HttpParams httpParams = new HttpParams();
httpParams.put("fid", "5"); httpParams.put("fid", "5");
httpParams.put("pageNum", messagePage); httpParams.put("pageNum", messagePage+"");
httpParams.put("pageSize", "10"); httpParams.put("pageSize", "10");
OkGoBuilder.getInstance() OkGoBuilder.getInstance()
.Builder(getActivity()) .Builder(getActivity())
@@ -130,7 +129,6 @@ public class MessageFragment extends BaseFragment implements View.OnClickListen
protected void initData() { protected void initData() {
super.initData(); super.initData();
initNetwork(); initNetwork();
SharedPreferences sharedPreferences = Objects.requireNonNull(getActivity()).getSharedPreferences(Constant.MESSAGE_TYPE, Context.MODE_PRIVATE); SharedPreferences sharedPreferences = Objects.requireNonNull(getActivity()).getSharedPreferences(Constant.MESSAGE_TYPE, Context.MODE_PRIVATE);
SharedPreferences.Editor sharedEdit = sharedPreferences.edit(); SharedPreferences.Editor sharedEdit = sharedPreferences.edit();
@SuppressLint("SimpleDateFormat") @SuppressLint("SimpleDateFormat")

View File

@@ -29,12 +29,15 @@ import com.navinfo.outdoor.bean.GetPriceBean;
import com.navinfo.outdoor.http.Callback; import com.navinfo.outdoor.http.Callback;
import com.navinfo.outdoor.http.HttpInterface; import com.navinfo.outdoor.http.HttpInterface;
import com.navinfo.outdoor.http.OkGoBuilder; import com.navinfo.outdoor.http.OkGoBuilder;
import com.navinfo.outdoor.util.DoubleUtil;
import org.greenrobot.eventbus.EventBus; import org.greenrobot.eventbus.EventBus;
import org.greenrobot.eventbus.Subscribe; import org.greenrobot.eventbus.Subscribe;
import java.io.File; import java.io.File;
import java.math.RoundingMode;
import java.text.DateFormat; import java.text.DateFormat;
import java.text.DecimalFormat;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.Date; import java.util.Date;
import java.util.Objects; import java.util.Objects;
@@ -63,7 +66,6 @@ public class MineFragment extends BaseFragment implements View.OnClickListener {
} }
} }
@Override @Override
protected int getLayout() { protected int getLayout() {
return R.layout.mine_fragment; return R.layout.mine_fragment;
@@ -136,6 +138,7 @@ public class MineFragment extends BaseFragment implements View.OnClickListener {
GetPriceBean.BodyBean body = response.getBody(); GetPriceBean.BodyBean body = response.getBody();
if (body != null) { if (body != null) {
Double userPrice = body.getUserPrice(); Double userPrice = body.getUserPrice();
/*String format2 = DoubleUtil.format2(userPrice);*/
tvMoney.setText(userPrice+""); tvMoney.setText(userPrice+"");
} }
} else { } else {
@@ -264,4 +267,5 @@ public class MineFragment extends BaseFragment implements View.OnClickListener {
FileUtils.writeFile(logFile.getAbsolutePath(), mainBuilder.toString(), true); FileUtils.writeFile(logFile.getAbsolutePath(), mainBuilder.toString(), true);
} }
} }

View File

@@ -703,6 +703,10 @@ public class OtherFragment extends BaseDrawerFragment implements View.OnClickLis
initEndReceiveTask(HttpInterface.UNRECEIVED_POLYGON_TASK, showPoiEntity); initEndReceiveTask(HttpInterface.UNRECEIVED_POLYGON_TASK, showPoiEntity);
} else if (showPoiEntity.getTaskStatus() == 0 || showPoiEntity.getTaskStatus() == 1) { } else if (showPoiEntity.getTaskStatus() == 0 || showPoiEntity.getTaskStatus() == 1) {
initList(); initList();
Message obtain = Message.obtain();
obtain.what = Constant.JOB_WORD_MONITOR;
obtain.obj = true;
EventBus.getDefault().post(obtain);
} else { } else {
Message obtain = Message.obtain(); Message obtain = Message.obtain();
obtain.what = Constant.JOB_WORD_MONITOR; obtain.what = Constant.JOB_WORD_MONITOR;

View File

@@ -1003,6 +1003,10 @@ public class PoiFragment extends BaseDrawerFragment implements View.OnClickListe
initEndReceiveTask(HttpInterface.UNRECEIVED_POLYGON_TASK, showPoiEntity); initEndReceiveTask(HttpInterface.UNRECEIVED_POLYGON_TASK, showPoiEntity);
} else if (showPoiEntity.getTaskStatus() == 0 | showPoiEntity.getTaskStatus() == 1) { } else if (showPoiEntity.getTaskStatus() == 0 | showPoiEntity.getTaskStatus() == 1) {
initList(); initList();
Message obtain = Message.obtain();
obtain.what = Constant.JOB_WORD_MONITOR;
obtain.obj = true;
EventBus.getDefault().post(obtain);
} else { } else {
Message obtain = Message.obtain(); Message obtain = Message.obtain();
obtain.what = Constant.JOB_WORD_MONITOR; obtain.what = Constant.JOB_WORD_MONITOR;

View File

@@ -587,10 +587,18 @@ public class PoiVideoFragment extends BaseDrawerFragment implements View.OnClick
if (showPoiEntity.getTaskStatus() == 5) { if (showPoiEntity.getTaskStatus() == 5) {
initEndReceiveTask(HttpInterface.UNRECEIVED_POLYGON_TASK, showPoiEntity);//结束领取 initEndReceiveTask(HttpInterface.UNRECEIVED_POLYGON_TASK, showPoiEntity);//结束领取
} else if (showPoiEntity.getTaskStatus() == 0 || showPoiEntity.getTaskStatus() == 1) { } else if (showPoiEntity.getTaskStatus() == 0 || showPoiEntity.getTaskStatus() == 1) {
if (showPoiEntity.getId()!=null){
List<File> fileListByUUID = AWMp4ParserHelper.getInstance().getFileListByUUID(showPoiEntity.getId()); List<File> fileListByUUID = AWMp4ParserHelper.getInstance().getFileListByUUID(showPoiEntity.getId());
for (int i = 0; i < fileListByUUID.size(); i++) { for (int i = 0; i < fileListByUUID.size(); i++) {
fileListByUUID.get(i).delete(); fileListByUUID.get(i).delete();
} }
File filePath = AWMp4ParserHelper.getInstance().getFilePath(showPoiEntity.getId());
filePath.delete();
}
Message obtain = Message.obtain();
obtain.what = Constant.JOB_WORD_MONITOR;
obtain.obj = true;
EventBus.getDefault().post(obtain);
} else { } else {
Message obtain = Message.obtain(); Message obtain = Message.obtain();
obtain.what = Constant.JOB_WORD_MONITOR; obtain.what = Constant.JOB_WORD_MONITOR;
@@ -656,6 +664,8 @@ public class PoiVideoFragment extends BaseDrawerFragment implements View.OnClick
for (int i = 0; i < fileListByUUID.size(); i++) { for (int i = 0; i < fileListByUUID.size(); i++) {
fileListByUUID.get(i).delete(); fileListByUUID.get(i).delete();
} }
File filePath = AWMp4ParserHelper.getInstance().getFilePath(poiEntity.getId());
filePath.delete();
} }
Message obtain = Message.obtain(); Message obtain = Message.obtain();
obtain.what = Constant.JOB_WORD_MONITOR; obtain.what = Constant.JOB_WORD_MONITOR;

View File

@@ -183,7 +183,6 @@ public class RoadFragment extends BaseDrawerFragment implements View.OnClickList
btnRoadSave.setOnClickListener(this); btnRoadSave.setOnClickListener(this);
Button roadUpload = findViewById(R.id.road_upload); Button roadUpload = findViewById(R.id.road_upload);
roadUpload.setOnClickListener(this); roadUpload.setOnClickListener(this);
//数据展示 //数据展示
initShowPoi(); initShowPoi();
//禁用可操作性控件 //禁用可操作性控件
@@ -594,10 +593,18 @@ public class RoadFragment extends BaseDrawerFragment implements View.OnClickList
if (showPoiEntity.getTaskStatus() == 5) { if (showPoiEntity.getTaskStatus() == 5) {
initEndReceiveTask(HttpInterface.UNRECEIVED_POLYGON_TASK, showPoiEntity); initEndReceiveTask(HttpInterface.UNRECEIVED_POLYGON_TASK, showPoiEntity);
} else if (showPoiEntity.getTaskStatus() == 0 || showPoiEntity.getTaskStatus() == 1) { } else if (showPoiEntity.getTaskStatus() == 0 || showPoiEntity.getTaskStatus() == 1) {
if (showPoiEntity.getId()!=null){
List<File> fileListByUUID = AWMp4ParserHelper.getInstance().getFileListByUUID(showPoiEntity.getId()); List<File> fileListByUUID = AWMp4ParserHelper.getInstance().getFileListByUUID(showPoiEntity.getId());
for (int i = 0; i < fileListByUUID.size(); i++) { for (int i = 0; i < fileListByUUID.size(); i++) {
fileListByUUID.get(i).delete(); fileListByUUID.get(i).delete();
} }
File filePath = AWMp4ParserHelper.getInstance().getFilePath(showPoiEntity.getId());
filePath.delete();
}
Message obtain = Message.obtain();
obtain.what = Constant.JOB_WORD_MONITOR;
obtain.obj = true;
EventBus.getDefault().post(obtain);
} else { } else {
Message obtain = Message.obtain(); Message obtain = Message.obtain();
obtain.what = Constant.JOB_WORD_MONITOR; obtain.what = Constant.JOB_WORD_MONITOR;
@@ -662,8 +669,9 @@ public class RoadFragment extends BaseDrawerFragment implements View.OnClickList
for (int i = 0; i < fileListByUUID.size(); i++) { for (int i = 0; i < fileListByUUID.size(); i++) {
fileListByUUID.get(i).delete(); fileListByUUID.get(i).delete();
} }
File filePath = AWMp4ParserHelper.getInstance().getFilePath(poiEntity.getId());
filePath.delete();
} }
Message obtain = Message.obtain(); Message obtain = Message.obtain();
obtain.what = Constant.JOB_WORD_MONITOR; obtain.what = Constant.JOB_WORD_MONITOR;
obtain.obj = true; obtain.obj = true;
@@ -754,11 +762,13 @@ public class RoadFragment extends BaseDrawerFragment implements View.OnClickList
@Override @Override
protected ChargingPileEntity initChargingPileEntityByUI(ChargingPileEntity entity) { protected ChargingPileEntity initChargingPileEntityByUI(ChargingPileEntity entity) {
return null; return null;
} }
@Override @Override
protected PoiCheckResult checkChargingPileEntity(ChargingPileEntity entity) { protected PoiCheckResult checkChargingPileEntity(ChargingPileEntity entity) {
return null; return null;
} }
} }

View File

@@ -155,6 +155,7 @@ public class TreasureFragment extends BaseFragment implements View.OnClickListen
private AlertDialog.Builder builder; private AlertDialog.Builder builder;
private File logFile; private File logFile;
private StringBuilder treasureBuilder; private StringBuilder treasureBuilder;
private Marker gatherMarker;
public static TreasureFragment newInstance(Bundle bundle) { public static TreasureFragment newInstance(Bundle bundle) {
TreasureFragment fragment = new TreasureFragment(); TreasureFragment fragment = new TreasureFragment();
@@ -1189,6 +1190,9 @@ public class TreasureFragment extends BaseFragment implements View.OnClickListen
if (bigMarker != null) { if (bigMarker != null) {
bigMarker.setVisible(false); bigMarker.setVisible(false);
} }
if (gatherMarker!=null){
gatherMarker.setVisible(false);
}
PoiEntity poiEntity = (PoiEntity) data.obj; PoiEntity poiEntity = (PoiEntity) data.obj;
Bundle bundle = new Bundle(); Bundle bundle = new Bundle();
bundle.putSerializable("poiEntity", poiEntity); bundle.putSerializable("poiEntity", poiEntity);
@@ -1377,7 +1381,7 @@ public class TreasureFragment extends BaseFragment implements View.OnClickListen
} }
private Bitmap getBitMap() { private Bitmap getBitMap() {
Bitmap bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.location); Bitmap bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.location_north_fill);
int width = bitmap.getWidth(); int width = bitmap.getWidth();
int height = bitmap.getHeight(); int height = bitmap.getHeight();
int newWidth = 55; int newWidth = 55;
@@ -1763,7 +1767,7 @@ public class TreasureFragment extends BaseFragment implements View.OnClickListen
case 1: case 1:
case 2: case 2:
case 5: case 5:
marker.remove(); gatherMarker = marker;
break; break;
case 3: case 3:
case 4: case 4:
@@ -1778,31 +1782,31 @@ public class TreasureFragment extends BaseFragment implements View.OnClickListen
initMarker(poiEntity, false); initMarker(poiEntity, false);
PoiFragment poiFragment = PoiFragment.newInstance(bundle); PoiFragment poiFragment = PoiFragment.newInstance(bundle);
showSlidingFragment(poiFragment); showSlidingFragment(poiFragment);
marker.remove(); marker.setVisible(false);
break; break;
case 2: case 2:
initMarker(poiEntity, false); initMarker(poiEntity, false);
ChargingStationFragment chargingStationFragment = ChargingStationFragment.newInstance(bundle); ChargingStationFragment chargingStationFragment = ChargingStationFragment.newInstance(bundle);
showSlidingFragment(chargingStationFragment); showSlidingFragment(chargingStationFragment);
marker.remove(); marker.setVisible(false);
break; break;
case 3: case 3:
initMarker(poiEntity, false); initMarker(poiEntity, false);
PoiVideoFragment poiVideoFragment = PoiVideoFragment.newInstance(bundle); PoiVideoFragment poiVideoFragment = PoiVideoFragment.newInstance(bundle);
showSlidingFragment(poiVideoFragment); showSlidingFragment(poiVideoFragment);
marker.remove(); marker.setVisible(false);
break; break;
case 4: case 4:
initMarker(poiEntity, false); initMarker(poiEntity, false);
RoadFragment roadFragment = RoadFragment.newInstance(bundle); RoadFragment roadFragment = RoadFragment.newInstance(bundle);
showSlidingFragment(roadFragment); showSlidingFragment(roadFragment);
marker.remove(); marker.setVisible(false);
break; break;
case 5: case 5:
initMarker(poiEntity, false); initMarker(poiEntity, false);
OtherFragment otherFragment = OtherFragment.newInstance(bundle); OtherFragment otherFragment = OtherFragment.newInstance(bundle);
showSlidingFragment(otherFragment); showSlidingFragment(otherFragment);
marker.remove(); marker.setVisible(false);
break; break;
case 6: case 6:
initMarker(poiEntity, true); initMarker(poiEntity, true);
@@ -1848,11 +1852,11 @@ public class TreasureFragment extends BaseFragment implements View.OnClickListen
} }
if (isBack) { if (isBack) {
initMarker(poiListEntity, true); initMarker(poiListEntity, true);
switch (listBean.getType()) { switch (poiListEntity.getType()) {
case 1: case 1:
case 2: case 2:
case 5: case 5:
marker.remove(); gatherMarker = marker;
break; break;
case 3: case 3:
case 4: case 4:
@@ -1894,7 +1898,6 @@ public class TreasureFragment extends BaseFragment implements View.OnClickListen
win.setAttributes(lp); win.setAttributes(lp);
dialog.show(); dialog.show();
RecyclerView recyclerView = dialogView.findViewById(R.id.rv_marker_view); RecyclerView recyclerView = dialogView.findViewById(R.id.rv_marker_view);
recyclerView.setLayoutManager(new LinearLayoutManager(getActivity())); recyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));
recyclerView.addItemDecoration(new DividerItemDecoration(Objects.requireNonNull(getActivity()), DividerItemDecoration.VERTICAL)); recyclerView.addItemDecoration(new DividerItemDecoration(Objects.requireNonNull(getActivity()), DividerItemDecoration.VERTICAL));
MarkerAdapter markerAdapter = new MarkerAdapter(list, getActivity()); MarkerAdapter markerAdapter = new MarkerAdapter(list, getActivity());
@@ -1910,7 +1913,7 @@ public class TreasureFragment extends BaseFragment implements View.OnClickListen
case 1: case 1:
case 2: case 2:
case 5: case 5:
marker.remove(); gatherMarker = marker;
break; break;
case 3: case 3:
case 4: case 4:
@@ -1935,7 +1938,7 @@ public class TreasureFragment extends BaseFragment implements View.OnClickListen
case 1: case 1:
case 2: case 2:
case 5: case 5:
marker.remove(); gatherMarker = marker;
break; break;
case 3: case 3:
case 4: case 4:
@@ -1950,31 +1953,31 @@ public class TreasureFragment extends BaseFragment implements View.OnClickListen
initMarker(poiEntity, false); initMarker(poiEntity, false);
PoiFragment poiFragment = PoiFragment.newInstance(bundle); PoiFragment poiFragment = PoiFragment.newInstance(bundle);
showSlidingFragment(poiFragment); showSlidingFragment(poiFragment);
marker.remove(); marker.setVisible(false);
break; break;
case 2: case 2:
initMarker(poiEntity, false); initMarker(poiEntity, false);
ChargingStationFragment chargingStationFragment = ChargingStationFragment.newInstance(bundle); ChargingStationFragment chargingStationFragment = ChargingStationFragment.newInstance(bundle);
showSlidingFragment(chargingStationFragment); showSlidingFragment(chargingStationFragment);
marker.remove(); marker.setVisible(false);
break; break;
case 3: case 3:
initMarker(poiEntity, false); initMarker(poiEntity, false);
PoiVideoFragment poiVideoFragment = PoiVideoFragment.newInstance(bundle); PoiVideoFragment poiVideoFragment = PoiVideoFragment.newInstance(bundle);
showSlidingFragment(poiVideoFragment); showSlidingFragment(poiVideoFragment);
marker.remove(); marker.setVisible(false);
break; break;
case 4: case 4:
initMarker(poiEntity, false); initMarker(poiEntity, false);
RoadFragment roadFragment = RoadFragment.newInstance(bundle); RoadFragment roadFragment = RoadFragment.newInstance(bundle);
showSlidingFragment(roadFragment); showSlidingFragment(roadFragment);
marker.remove(); marker.setVisible(false);
break; break;
case 5: case 5:
initMarker(poiEntity, false); initMarker(poiEntity, false);
OtherFragment otherFragment = OtherFragment.newInstance(bundle); OtherFragment otherFragment = OtherFragment.newInstance(bundle);
showSlidingFragment(otherFragment); showSlidingFragment(otherFragment);
marker.remove(); marker.setVisible(false);
break; break;
case 6: case 6:
initMarker(poiEntity, true); initMarker(poiEntity, true);

View File

@@ -1,6 +1,9 @@
package com.navinfo.outdoor.fragment; package com.navinfo.outdoor.fragment;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.Intent; import android.content.Intent;
import android.content.SharedPreferences;
import android.net.Uri; import android.net.Uri;
import android.os.Bundle; import android.os.Bundle;
import android.provider.MediaStore; import android.provider.MediaStore;
@@ -16,6 +19,7 @@ import android.widget.Toast;
import androidx.annotation.Nullable; import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
import com.github.lazylibrary.util.FileUtils;
import com.google.gson.Gson; import com.google.gson.Gson;
import com.kongzue.dialog.interfaces.OnDialogButtonClickListener; import com.kongzue.dialog.interfaces.OnDialogButtonClickListener;
import com.kongzue.dialog.util.BaseDialog; import com.kongzue.dialog.util.BaseDialog;
@@ -35,7 +39,10 @@ import com.navinfo.outdoor.http.OkGoBuilder;
import com.navinfo.outdoor.util.PhotoUtils; import com.navinfo.outdoor.util.PhotoUtils;
import java.io.File; import java.io.File;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Date;
import java.util.Objects; import java.util.Objects;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
@@ -63,6 +70,8 @@ public class UserAttestationFragment extends BaseFragment implements View.OnC
private LinearLayout linearLayout; private LinearLayout linearLayout;
private View userAttestView;*/ private View userAttestView;*/
private ImageView useCamera; private ImageView useCamera;
private File logFile;
private StringBuilder userAttestationBuilder;
public static UserAttestationFragment newInstance(Bundle bundle) { public static UserAttestationFragment newInstance(Bundle bundle) {
@@ -80,7 +89,29 @@ public class UserAttestationFragment extends BaseFragment implements View.OnC
@Override @Override
protected void initData() { protected void initData() {
super.initData(); super.initData();
ArrayList<NameAuthenticationBean> authenticationBeans = new ArrayList<>(); SharedPreferences sharedPreferences = Objects.requireNonNull(getActivity()).getSharedPreferences(Constant.MESSAGE_TYPE, Context.MODE_PRIVATE);
SharedPreferences.Editor sharedEdit = sharedPreferences.edit();
@SuppressLint("SimpleDateFormat")
DateFormat formatter = new SimpleDateFormat("yyyyMMdd");
String newFormat = formatter.format(new Date(System.currentTimeMillis()));
String pictures_time = sharedPreferences.getString("pictures_time", null);
if (pictures_time==null){
sharedEdit.putString("pictures_time",newFormat);
sharedEdit.apply();
logFile = new File(Constant.LOG_FOLDER + "/" + newFormat + ".txt");
}else {
if (pictures_time.equals(newFormat)){
logFile = new File(Constant.LOG_FOLDER + "/" + pictures_time + ".txt");
}else {
logFile = new File(Constant.LOG_FOLDER + "/" + newFormat + ".txt");
}
}
userAttestationBuilder = new StringBuilder();
userAttestationBuilder.append("UserAttestationFragment-onCreate-initData ,");
if (Constant.USHERED!=null){
userAttestationBuilder.append("userId:").append(Constant.USHERED).append(",");
}
} }
@@ -154,9 +185,11 @@ public class UserAttestationFragment extends BaseFragment implements View.OnC
public void onClick(View v) { public void onClick(View v) {
switch (v.getId()) { switch (v.getId()) {
case R.id.iv_attestation: case R.id.iv_attestation:
userAttestationBuilder.append("点击了进行返回 ,");
Objects.requireNonNull(getActivity()).finish(); Objects.requireNonNull(getActivity()).finish();
break; break;
case R.id.iv_attestation1: case R.id.iv_attestation1:
userAttestationBuilder.append("点击身份证人像面 进行拍照 ,");
Intent ivAttestationIntent1 = new Intent(getActivity(), PhotographActivity.class); Intent ivAttestationIntent1 = new Intent(getActivity(), PhotographActivity.class);
File attestationFile1 = PhotoUtils.showPhotoFile("a", null); File attestationFile1 = PhotoUtils.showPhotoFile("a", null);
ivAttestationIntent1.putExtra(Constant.INTENT_VIDEO_OBLATION, 1); ivAttestationIntent1.putExtra(Constant.INTENT_VIDEO_OBLATION, 1);
@@ -164,6 +197,7 @@ public class UserAttestationFragment extends BaseFragment implements View.OnC
startActivityForResult(ivAttestationIntent1, 121); startActivityForResult(ivAttestationIntent1, 121);
break; break;
case R.id.iv_attestation2: case R.id.iv_attestation2:
userAttestationBuilder.append("点击身份证国徽面 进行拍照 ,");
Intent ivAttestationIntent2 = new Intent(getActivity(), PhotographActivity.class); Intent ivAttestationIntent2 = new Intent(getActivity(), PhotographActivity.class);
File attestationFile2 = PhotoUtils.showPhotoFile("b", null); File attestationFile2 = PhotoUtils.showPhotoFile("b", null);
ivAttestationIntent2.putExtra(Constant.INTENT_VIDEO_OBLATION, 1); ivAttestationIntent2.putExtra(Constant.INTENT_VIDEO_OBLATION, 1);
@@ -171,6 +205,7 @@ public class UserAttestationFragment extends BaseFragment implements View.OnC
startActivityForResult(ivAttestationIntent2, 122); startActivityForResult(ivAttestationIntent2, 122);
break; break;
case R.id.iv_attestation3: case R.id.iv_attestation3:
userAttestationBuilder.append("点击手持身份证 进行拍照 ,");
Intent ivAttestationIntent3 = new Intent(getActivity(), PhotographActivity.class); Intent ivAttestationIntent3 = new Intent(getActivity(), PhotographActivity.class);
File attestationFile3 = PhotoUtils.showPhotoFile("c", null); File attestationFile3 = PhotoUtils.showPhotoFile("c", null);
ivAttestationIntent3.putExtra(Constant.INTENT_VIDEO_OBLATION, 1); ivAttestationIntent3.putExtra(Constant.INTENT_VIDEO_OBLATION, 1);
@@ -193,6 +228,7 @@ public class UserAttestationFragment extends BaseFragment implements View.OnC
nameAuthentication(); nameAuthentication();
break; break;
case R.id.user_attestation_camera: case R.id.user_attestation_camera:
userAttestationBuilder.append("点击认证按钮 ,");
Intent userCameraIntent = new Intent(getActivity(), PhotographActivity.class); Intent userCameraIntent = new Intent(getActivity(), PhotographActivity.class);
File file = PhotoUtils.showPhotoFile("d", null); File file = PhotoUtils.showPhotoFile("d", null);
userCameraIntent.putExtra(Constant.INTENT_VIDEO_OBLATION, 1); userCameraIntent.putExtra(Constant.INTENT_VIDEO_OBLATION, 1);
@@ -280,6 +316,7 @@ public class UserAttestationFragment extends BaseFragment implements View.OnC
MessageDialog.show((AppCompatActivity) Objects.requireNonNull(getActivity()), "提示", "提交成功", "确定").setOkButton(new OnDialogButtonClickListener() { MessageDialog.show((AppCompatActivity) Objects.requireNonNull(getActivity()), "提示", "提交成功", "确定").setOkButton(new OnDialogButtonClickListener() {
@Override @Override
public boolean onClick(BaseDialog baseDialog, View v) { public boolean onClick(BaseDialog baseDialog, View v) {
userAttestationBuilder.append("提交成功 ,");
Constant.NAME = attestationName; Constant.NAME = attestationName;
Constant.ID_NUM = namePhone; Constant.ID_NUM = namePhone;
Constant.AUDIOTAPES = -1; Constant.AUDIOTAPES = -1;
@@ -351,16 +388,20 @@ public class UserAttestationFragment extends BaseFragment implements View.OnC
if (inward != null) { if (inward != null) {
IdCardNumberBean idCardNumberBean = new Gson().fromJson(inward, IdCardNumberBean.class); IdCardNumberBean idCardNumberBean = new Gson().fromJson(inward, IdCardNumberBean.class);
if (idCardNumberBean == null) { if (idCardNumberBean == null) {
userAttestationBuilder.append("识别失败,可以重新识别或则进行手动输入 ,");
Toast.makeText(getActivity(), "识别失败,可以重新识别或则进行手动输入", Toast.LENGTH_SHORT).show(); Toast.makeText(getActivity(), "识别失败,可以重新识别或则进行手动输入", Toast.LENGTH_SHORT).show();
} else { } else {
if (idCardNumberBean.getWords_result().get公民身份号码() != null) { if (idCardNumberBean.getWords_result().get公民身份号码() != null) {
String words = idCardNumberBean.getWords_result().get公民身份号码().getWords(); String words = idCardNumberBean.getWords_result().get公民身份号码().getWords();
etNamePhone.setText(words); etNamePhone.setText(words);
userAttestationBuilder.append("识别成功 ,");
} else { } else {
Toast.makeText(getActivity(), "识别失败,可以重新识别或则进行手动输入", Toast.LENGTH_SHORT).show(); Toast.makeText(getActivity(), "识别失败,可以重新识别或则进行手动输入", Toast.LENGTH_SHORT).show();
userAttestationBuilder.append("识别失败,可以重新识别或则进行手动输入 ,");
} }
} }
} else { } else {
userAttestationBuilder.append("识别失败,可以重新识别或则进行手动输入 ,");
Toast.makeText(getActivity(), "识别失败,可以重新识别或则进行手动输入", Toast.LENGTH_SHORT).show(); Toast.makeText(getActivity(), "识别失败,可以重新识别或则进行手动输入", Toast.LENGTH_SHORT).show();
} }
@@ -371,4 +412,24 @@ public class UserAttestationFragment extends BaseFragment implements View.OnC
} }
} }
@Override
public void onPause() {
super.onPause();
userAttestationBuilder.append("onPause ,");
}
@Override
public void onStop() {
super.onStop();
userAttestationBuilder.append("onStop ,");
}
@Override
public void onDestroy() {
super.onDestroy();
userAttestationBuilder.append("onDestroy ,");
userAttestationBuilder.append("\r\n");
FileUtils.writeFile(logFile.getAbsolutePath(), userAttestationBuilder.toString(), true);
}
} }

View File

@@ -98,7 +98,6 @@ public class WithdrawFragment extends BaseFragment implements View.OnClickListen
if (Constant.USHERED != null) { if (Constant.USHERED != null) {
withdrawBuilder.append("userId:").append(Constant.USHERED).append(","); withdrawBuilder.append("userId:").append(Constant.USHERED).append(",");
} }
} }
@Override @Override
@@ -258,8 +257,16 @@ public class WithdrawFragment extends BaseFragment implements View.OnClickListen
public void onSuccess(UserPriceExchangeBean response, int id) { public void onSuccess(UserPriceExchangeBean response, int id) {
dismissLoadingDialog(); dismissLoadingDialog();
if (response.getCode() == 200) { if (response.getCode() == 200) {
initNetWork(); DialogSettings.style = DialogSettings.STYLE.STYLE_IOS;
DialogSettings.cancelable=false;
MessageDialog.show((AppCompatActivity) getContext(), "提示", "该提现申请已提交", "确定").setOnOkButtonClickListener(new OnDialogButtonClickListener() {
@Override
public boolean onClick(BaseDialog baseDialog, View v) {
withdrawBuilder.append("提现了成功 "); withdrawBuilder.append("提现了成功 ");
initNetWork();
return false;
}
});
} else { } else {
Toast.makeText(getActivity(), response.getMessage() + "", Toast.LENGTH_SHORT).show(); Toast.makeText(getActivity(), response.getMessage() + "", Toast.LENGTH_SHORT).show();
withdrawBuilder.append("提现了失败 "); withdrawBuilder.append("提现了失败 ");

View File

@@ -88,6 +88,7 @@ public class WithdrawalRecordFragment extends BaseFragment implements View.OnCli
showLoadingDialog(); showLoadingDialog();
HttpParams httpParams = new HttpParams(); HttpParams httpParams = new HttpParams();
httpParams.put("pageNum", withPage); httpParams.put("pageNum", withPage);
OkGoBuilder.getInstance() OkGoBuilder.getInstance()
.Builder(getActivity()) .Builder(getActivity())
.url(HttpInterface.PRICE_EXCHANGE) .url(HttpInterface.PRICE_EXCHANGE)

View File

@@ -3,8 +3,9 @@ package com.navinfo.outdoor.http;
import com.navinfo.outdoor.api.Constant; import com.navinfo.outdoor.api.Constant;
public class HttpInterface { public class HttpInterface {
public static final String IP_ = "http://dtxbmaps.navinfo.com/dtxb/m4";//正式接口 public static final String IP= "http://dtxbmaps.navinfo.com/dtxb/m4";//正式接口
public static final String IP= "http://dtxbmaps.navinfo.com/dtxb_test/m4";//测试接口
public static final String IP_= "http://dtxbmaps.navinfo.com/dtxb_test/m4";//测试接口
public static final String USER_PATH ="/user/";//我的 public static final String USER_PATH ="/user/";//我的
public static final String MSG_LIST_PATH ="/msgList/";//发现 public static final String MSG_LIST_PATH ="/msgList/";//发现
@@ -13,7 +14,7 @@ public class HttpInterface {
public static final String TASK_PATH ="/task/";//任务 public static final String TASK_PATH ="/task/";//任务
/* /*
public static final String TEST_GUIDANCE_IP = "http://172.21.98.90:9999/m4";//引导页完成接口 public static final String TEST_GUIDANCE_IP = "http://172.21.98.90:9999/m4";//引导页完成接口
public static final String APKIP = "http://172.23.139.4:8001/"; public static final String APK_IP = "http://172.23.139.4:8001/";
public static String IP1 = "http://dtxbmaps.navinfo.com/dtxb/msg/"; public static String IP1 = "http://dtxbmaps.navinfo.com/dtxb/msg/";
public static final String DATA_IP = "http://172.23.139.4:9999/m4";//接口 public static final String DATA_IP = "http://172.23.139.4:9999/m4";//接口
*/ */
@@ -113,7 +114,7 @@ public class HttpInterface {
public static String ROAD_TASK_SUBMIT;//道路录像-保存本地 public static String ROAD_TASK_SUBMIT;//道路录像-保存本地
//172.23.139.4:8003/roadtask/1/uploadpic //172.23.139.4:8003/roadtask/1/uploadpic
public static String ROAD_TASK_UPLOAD_PIC;//道路录像—上传 public static String ROAD_TASK_UPLOAD_PIC;//道路录像—上传
//http://172.23.139.4:8003/m4/task/1/getPhone?geo=1rn7exd5uhxy //172.23.139.4:8003/m4/task/1/getPhone?geo=1rn7exd5uhxy
public static String GET_PHONES;//电话区号和电话位数 public static String GET_PHONES;//电话区号和电话位数
//172.23.139.4:8003/cstask/1/uploadpic //172.23.139.4:8003/cstask/1/uploadpic
public static String CS_TASK_UP_LOAD_PIC;//充电桩-上传 public static String CS_TASK_UP_LOAD_PIC;//充电桩-上传
@@ -393,7 +394,4 @@ public class HttpInterface {
* public static String COMPLETE = IPm6 + "polygonTask/1/complete";//任务采集 * public static String COMPLETE = IPm6 + "polygonTask/1/complete";//任务采集
* public static String SUBMIT_POLYGON_TASK = IPm6 + "polygonTask/1/submitPolygontask";//结束采集 * public static String SUBMIT_POLYGON_TASK = IPm6 + "polygonTask/1/submitPolygontask";//结束采集
*/ */
} }

View File

@@ -310,6 +310,10 @@ public class AWMp4ParserHelper {
} }
return fileList; return fileList;
} }
public File getFilePath(String uuid){
File folderFile = new File(Constant.PICTURE_FOLDER+"/"+uuid+"/");
return folderFile;
}
public String getVideoFileListStr(List<File> videoFileList) { public String getVideoFileListStr(List<File> videoFileList) {
StringBuilder resultStrBuilder = new StringBuilder(""); StringBuilder resultStrBuilder = new StringBuilder("");

View File

@@ -0,0 +1,38 @@
package com.navinfo.outdoor.util;
import java.math.RoundingMode;
import java.text.DecimalFormat;
import java.text.NumberFormat;
/**
* double 保存小数点后两位
*/
public class DoubleUtil {
public static String format2(double value) {
DecimalFormat df = new DecimalFormat("0.00");
df.setRoundingMode(RoundingMode.HALF_UP);
return df.format(value);
}
public static String format3(double value) {
NumberFormat nf = NumberFormat.getNumberInstance();
nf.setMaximumFractionDigits(2);
/*setMinimumFractionDigits设置成2
* 如果不这么做那么当value的值是100.00的时候返回100
* 而不是100.00
*/
nf.setMinimumFractionDigits(2);
nf.setRoundingMode(RoundingMode.HALF_UP);
/*
如果想输出的格式用逗号隔开可以设置成true
*/
nf.setGroupingUsed(false);
return nf.format(value);
}
public static String format5(double value) {
return String.format("%.2f", value).toString();
}
}

View File

@@ -266,12 +266,14 @@ public class PoiSaveUtils {
} }
} }
} }
if (poiEntity.getType()==3||poiEntity.getType()==4){
List<File> videoFileList = AWMp4ParserHelper.getInstance().getFileListByUUID(poiEntity.getId()); List<File> videoFileList = AWMp4ParserHelper.getInstance().getFileListByUUID(poiEntity.getId());
if (videoFileList != null && !videoFileList.isEmpty()) { if (videoFileList != null && !videoFileList.isEmpty()) {
File fileZip = new File(Constant.PICTURE_FOLDER, "files" + ".zip"); File fileZip = new File(Constant.PICTURE_FOLDER, "files" + ".zip");
ZipUtil.zipFiles(videoFileList, fileZip, null); ZipUtil.zipFiles(videoFileList, fileZip, null);
photoFile.add(fileZip); photoFile.add(fileZip);
} }
}
String url = null; String url = null;
//1 "POI"2 "充电站"3 "POI录像"4 "道路录像"5 "其他"6 "面状任务" //1 "POI"2 "充电站"3 "POI录像"4 "道路录像"5 "其他"6 "面状任务"
if (poiEntity.getType() == 1) { if (poiEntity.getType() == 1) {
@@ -312,9 +314,15 @@ public class PoiSaveUtils {
for (int i = 0; i < photoFile.size(); i++) { for (int i = 0; i < photoFile.size(); i++) {
photoFile.get(i).delete(); photoFile.get(i).delete();
} }
if (videoFileList!=null){ if (poiEntity.getType()==3||poiEntity.getType()==4) {
File file = new File(Objects.requireNonNull(videoFileList.get(0).getParentFile()).getAbsoluteFile() + ""); if (poiEntity.getId() != null) {
file.delete(); List<File> fileListByUUID = AWMp4ParserHelper.getInstance().getFileListByUUID(poiEntity.getId());
for (int i = 0; i < fileListByUUID.size(); i++) {
fileListByUUID.get(i).delete();
}
File filePath = AWMp4ParserHelper.getInstance().getFilePath(poiEntity.getId());
filePath.delete();
}
} }
Log.d("TAGss", "uploadPoiNet: 成功" + anInt); Log.d("TAGss", "uploadPoiNet: 成功" + anInt);
anInt++; anInt++;
@@ -495,7 +503,6 @@ public class PoiSaveUtils {
Gson gson = new Gson(); Gson gson = new Gson();
PoiUploadBean uploadBeanResult = gson.fromJson(pileUpLoadResultStr, PoiUploadBean.class); PoiUploadBean uploadBeanResult = gson.fromJson(pileUpLoadResultStr, PoiUploadBean.class);
if (uploadBeanResult.getCode() == 200) { if (uploadBeanResult.getCode() == 200) {
Log.d("TAGss", "chargingPileUploadNetWork" + 200);
PoiDatabase.getInstance(mContext).getChargingPileDao().deleteChargingPileEntity(chargingPileEntity); PoiDatabase.getInstance(mContext).getChargingPileDao().deleteChargingPileEntity(chargingPileEntity);
for (int i = 0; i < chargingPileFileList.size(); i++) { for (int i = 0; i < chargingPileFileList.size(); i++) {
chargingPileFileList.get(i).delete(); chargingPileFileList.get(i).delete();

View File

@@ -32,6 +32,7 @@ public class UploadUtils {
/** /**
* road * road
*
* @param mContext * @param mContext
* @param showPoiEntity * @param showPoiEntity
* @param fileZip * @param fileZip
@@ -52,13 +53,13 @@ public class UploadUtils {
public void run() { public void run() {
PoiEntity poiDaoPoiEntity = poiDao.getPoiEntity(showPoiEntity.getId()); PoiEntity poiDaoPoiEntity = poiDao.getPoiEntity(showPoiEntity.getId());
poiDao.deletePoiEntity(poiDaoPoiEntity); poiDao.deletePoiEntity(poiDaoPoiEntity);
if (showPoiEntity.getId()!=null){
List<File> fileListByUUID = AWMp4ParserHelper.getInstance().getFileListByUUID(showPoiEntity.getId()); List<File> fileListByUUID = AWMp4ParserHelper.getInstance().getFileListByUUID(showPoiEntity.getId());
for (int i = 0; i < fileListByUUID.size(); i++) { for (int i = 0; i < fileListByUUID.size(); i++) {
fileListByUUID.get(i).delete(); fileListByUUID.get(i).delete();
} }
if (fileListByUUID.size()>0){ File filePath = AWMp4ParserHelper.getInstance().getFilePath(showPoiEntity.getId());
File file = new File(Objects.requireNonNull(fileListByUUID.get(0).getParentFile()).getAbsoluteFile() + ""); filePath.delete();
file.delete();
} }
fileZip.delete(); fileZip.delete();
Objects.requireNonNull(mContext).runOnUiThread(new Runnable() { Objects.requireNonNull(mContext).runOnUiThread(new Runnable() {
@@ -90,8 +91,10 @@ public class UploadUtils {
} }
}; };
} }
/** /**
* poi * poi
*
* @param mContext * @param mContext
* @param showPoiEntity * @param showPoiEntity
* @param poiPicList * @param poiPicList
@@ -147,6 +150,7 @@ public class UploadUtils {
/** /**
* PoiVideo * PoiVideo
*
* @param mContext * @param mContext
* @param showPoiEntity * @param showPoiEntity
* @param fileZip * @param fileZip
@@ -167,13 +171,13 @@ public class UploadUtils {
public void run() { public void run() {
PoiEntity poiDaoPoiEntity = poiDao.getPoiEntity(showPoiEntity.getId()); PoiEntity poiDaoPoiEntity = poiDao.getPoiEntity(showPoiEntity.getId());
poiDao.deletePoiEntity(poiDaoPoiEntity); poiDao.deletePoiEntity(poiDaoPoiEntity);
if (showPoiEntity.getId() != null) {
List<File> fileListByUUID = AWMp4ParserHelper.getInstance().getFileListByUUID(showPoiEntity.getId()); List<File> fileListByUUID = AWMp4ParserHelper.getInstance().getFileListByUUID(showPoiEntity.getId());
for (int i = 0; i < fileListByUUID.size(); i++) { for (int i = 0; i < fileListByUUID.size(); i++) {
fileListByUUID.get(i).delete(); fileListByUUID.get(i).delete();
} }
if (fileListByUUID.size()>0){ File filePath = AWMp4ParserHelper.getInstance().getFilePath(showPoiEntity.getId());
File file = new File(Objects.requireNonNull(fileListByUUID.get(0).getParentFile()).getAbsoluteFile() + ""); filePath.delete();
file.delete();
} }
fileZip.delete(); fileZip.delete();
Objects.requireNonNull(mContext).runOnUiThread(new Runnable() { Objects.requireNonNull(mContext).runOnUiThread(new Runnable() {
@@ -208,6 +212,7 @@ public class UploadUtils {
/** /**
* other * other
*
* @param mContext * @param mContext
* @param showPoiEntity * @param showPoiEntity
* @param otherUploadList * @param otherUploadList
@@ -264,6 +269,7 @@ public class UploadUtils {
/** /**
* charging * charging
*
* @param mContext * @param mContext
* @param showPoiEntity * @param showPoiEntity
* @param chargingStationList * @param chargingStationList

Binary file not shown.

After

Width:  |  Height:  |  Size: 923 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 852 B

View File

@@ -52,6 +52,7 @@
android:id="@+id/image_view" android:id="@+id/image_view"
android:layout_width="300dp" android:layout_width="300dp"
android:layout_height="157dp" android:layout_height="157dp"
android:visibility="gone"
app:layout_constraintHeight_default="percent" app:layout_constraintHeight_default="percent"
app:layout_constraintHeight_percent="0.4" app:layout_constraintHeight_percent="0.4"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"

View File

@@ -37,6 +37,50 @@
android:layout_margin="10dp" android:layout_margin="10dp"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"/> app:layout_constraintTop_toTopOf="parent"/>
<RelativeLayout
android:id="@+id/linear_exist"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:background="@drawable/underline"
android:padding="2dp"
android:visibility="visible"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tv_01">
<TextView
android:id="@+id/tv_exist"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:layout_marginLeft="18dp"
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp"
android:text="是否存在*"
android:textColor="#333" />
<Spinner
android:id="@+id/spinner_exist"
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_centerVertical="true"
android:layout_marginLeft="18dp"
android:layout_marginRight="10dp"
android:layout_toEndOf="@id/tv_exist"
android:layout_toRightOf="@id/tv_exist"
android:background="@color/white"
android:textColor="#333"
android:textSize="15sp" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:background="@drawable/ic_baseline_arrow_drop" />
</RelativeLayout>
<RelativeLayout <RelativeLayout
android:id="@+id/linear_pot" android:id="@+id/linear_pot"
@@ -48,7 +92,7 @@
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="1.0" app:layout_constraintHorizontal_bias="1.0"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tv_01"> app:layout_constraintTop_toBottomOf="@id/linear_exist">
<TextView <TextView
android:id="@+id/tv_pot" android:id="@+id/tv_pot"
@@ -206,11 +250,8 @@
android:text="对除环卫,公交,出租,品牌,之外的其他 特种车辆开放" android:text="对除环卫,公交,出租,品牌,之外的其他 特种车辆开放"
/> />
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>
<!-- <RadioGroup <!-- <RadioGroup
android:id="@+id/radio_group" android:id="@+id/radio_group"
android:layout_width="match_parent" android:layout_width="match_parent"
@@ -261,6 +302,7 @@
/> />
</RadioGroup>--> </RadioGroup>-->
<RelativeLayout <RelativeLayout
android:id="@+id/linear_type" android:id="@+id/linear_type"
android:layout_width="match_parent" android:layout_width="match_parent"
@@ -647,6 +689,7 @@
/> />
</RelativeLayout> </RelativeLayout>
<RelativeLayout <RelativeLayout
android:id="@+id/relative_linear"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_marginTop="10dp" android:layout_marginTop="10dp"
android:layout_height="100dp" android:layout_height="100dp"
@@ -850,7 +893,6 @@
android:text="保存并返回" android:text="保存并返回"
android:textColor="@color/white" /> android:textColor="@color/white" />
</LinearLayout> </LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>
</LinearLayout> </LinearLayout>
</androidx.core.widget.NestedScrollView> </androidx.core.widget.NestedScrollView>

View File

@@ -8,12 +8,12 @@
<Button <Button
android:id="@+id/btn_delete" android:id="@+id/btn_delete"
android:layout_width="20dp" android:layout_width="25dp"
android:layout_height="20dp" android:layout_height="25dp"
android:padding="5dp" android:padding="5dp"
android:layout_marginEnd="20dp" android:layout_marginEnd="20dp"
android:layout_marginTop="10dp" android:layout_marginTop="10dp"
android:background="@drawable/icon_delete" android:background="@drawable/delete"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" /> app:layout_constraintTop_toTopOf="parent" />

View File

@@ -42,13 +42,16 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical" android:orientation="vertical"
android:layout_marginStart="20dp"
android:layout_marginEnd="20dp"
app:layout_constraintLeft_toLeftOf="@id/tv_select_type" app:layout_constraintLeft_toLeftOf="@id/tv_select_type"
app:layout_constraintTop_toBottomOf="@id/tv_select_type"> app:layout_constraintTop_toBottomOf="@id/tv_select_type">
<androidx.constraintlayout.widget.ConstraintLayout <androidx.constraintlayout.widget.ConstraintLayout
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="40dp"
android:layout_margin="20dp"
android:background="@drawable/other_text"> android:background="@drawable/other_text">
<Spinner <Spinner
@@ -56,7 +59,6 @@
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="40dp" android:layout_height="40dp"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:layout_margin="2dp"
android:layout_marginStart="10dp" android:layout_marginStart="10dp"
android:layout_marginEnd="5dp" android:layout_marginEnd="5dp"
android:background="@color/white" android:background="@color/white"
@@ -147,7 +149,7 @@
<androidx.constraintlayout.widget.ConstraintLayout <androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="40dp"
android:layout_marginTop="20dp" android:layout_marginTop="20dp"
android:background="@drawable/other_text"> android:background="@drawable/other_text">
@@ -182,6 +184,7 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginRight="10dp" android:layout_marginRight="10dp"
android:visibility="gone"
android:background="@drawable/icon_location" android:background="@drawable/icon_location"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintRight_toRightOf="parent" app:layout_constraintRight_toRightOf="parent"

View File

@@ -108,7 +108,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="0.0" android:text="0.0"
android:textColor="#000" android:textColor="#000"
android:textSize="30sp" android:textSize="25sp"
android:textStyle="bold" android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="@+id/tv_title" app:layout_constraintStart_toStartOf="@+id/tv_title"

View File

@@ -73,9 +73,9 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="10dp" android:layout_marginTop="10dp"
android:text="0.0" android:text="— —"
android:textColor="#333" android:textColor="#333"
android:textSize="45sp" android:textSize="35sp"
android:textStyle="normal" android:textStyle="normal"
app:layout_constraintStart_toStartOf="@+id/tv_title" app:layout_constraintStart_toStartOf="@+id/tv_title"
app:layout_constraintTop_toBottomOf="@+id/tv_title" /> app:layout_constraintTop_toBottomOf="@+id/tv_title" />
@@ -105,9 +105,9 @@
android:id="@+id/tv_already" android:id="@+id/tv_already"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="0.0" android:text="— —"
android:textColor="#333" android:textColor="#333"
android:textSize="30sp" android:textSize="25sp"
android:textStyle="normal" android:textStyle="normal"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="@+id/tv_already_withdraw" app:layout_constraintEnd_toEndOf="@+id/tv_already_withdraw"
@@ -127,9 +127,9 @@
android:id="@+id/tv_total" android:id="@+id/tv_total"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="0.0" android:text="— —"
android:textColor="#333" android:textColor="#333"
android:textSize="30sp" android:textSize="25sp"
android:textStyle="normal" android:textStyle="normal"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="@+id/tv_total_assets" app:layout_constraintEnd_toEndOf="@+id/tv_total_assets"
@@ -257,7 +257,7 @@
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:layout_marginLeft="20dp" android:layout_marginLeft="20dp"
android:layout_toRightOf="@id/image_poi" android:layout_toRightOf="@id/image_poi"
android:text="POI推送积分" android:text="POI推送金额"
android:textColor="#333" android:textColor="#333"
android:textSize="18sp" /> android:textSize="18sp" />
@@ -297,7 +297,7 @@
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:layout_marginLeft="20dp" android:layout_marginLeft="20dp"
android:layout_toRightOf="@id/image_poi_report" android:layout_toRightOf="@id/image_poi_report"
android:text="POI上报任务积分" android:text="POI上报任务金额"
android:textColor="#333" android:textColor="#333"
android:textSize="18sp" /> android:textSize="18sp" />
@@ -336,7 +336,7 @@
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:layout_marginLeft="20dp" android:layout_marginLeft="20dp"
android:layout_toRightOf="@id/image_poiVideo" android:layout_toRightOf="@id/image_poiVideo"
android:text="POI录像推送积分" android:text="POI录像推送金额"
android:textColor="#333" android:textColor="#333"
android:textSize="18sp" /> android:textSize="18sp" />
@@ -376,7 +376,7 @@
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:layout_marginLeft="20dp" android:layout_marginLeft="20dp"
android:layout_toRightOf="@id/image_poiVideo_report" android:layout_toRightOf="@id/image_poiVideo_report"
android:text="POI录像上报任务积分" android:text="POI录像上报任务金额"
android:textColor="#333" android:textColor="#333"
android:textSize="18sp" /> android:textSize="18sp" />
@@ -412,7 +412,7 @@
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="道路推送积分" android:text="道路推送金额"
android:layout_marginLeft="20dp" android:layout_marginLeft="20dp"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:layout_toRightOf="@id/image_way" android:layout_toRightOf="@id/image_way"
@@ -450,7 +450,7 @@
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="道路上报任务积分" android:text="道路上报任务金额"
android:layout_marginLeft="20dp" android:layout_marginLeft="20dp"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:layout_toRightOf="@id/image_way_report" android:layout_toRightOf="@id/image_way_report"
@@ -488,7 +488,7 @@
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="充电站推送积分" android:text="充电站推送金额"
android:layout_marginLeft="20dp" android:layout_marginLeft="20dp"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:layout_toRightOf="@id/image_charging" android:layout_toRightOf="@id/image_charging"
@@ -526,7 +526,7 @@
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="道路上报任务积分" android:text="道路上报任务金额"
android:layout_marginLeft="20dp" android:layout_marginLeft="20dp"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:layout_toRightOf="@id/image_charge_report" android:layout_toRightOf="@id/image_charge_report"
@@ -564,7 +564,7 @@
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="其他推送积分" android:text="其他推送金额"
android:layout_marginLeft="20dp" android:layout_marginLeft="20dp"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:layout_toRightOf="@id/image_other" android:layout_toRightOf="@id/image_other"
@@ -602,7 +602,7 @@
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="其他上报任务积分" android:text="其他上报任务金额"
android:layout_marginLeft="20dp" android:layout_marginLeft="20dp"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:layout_toRightOf="@id/image_other_report" android:layout_toRightOf="@id/image_other_report"

View File

@@ -5,6 +5,7 @@
<color name="colorPrimaryBlue">#03A9F4</color> <color name="colorPrimaryBlue">#03A9F4</color>
<color name="colormap">#CBC2C5C6</color> <color name="colormap">#CBC2C5C6</color>
<color name="colorBlue">#2196F3</color> <color name="colorBlue">#2196F3</color>
<color name="blue">#8181F7</color> <color name="blue">#8181F7</color>
<color name="colorAccent">#03DAC5</color> <color name="colorAccent">#03DAC5</color>
<color name="colorBack">#000000</color> <color name="colorBack">#000000</color>