} catch (Exception e) { 5905
                                    e.printStackTrace();
5906
                                    Toast.makeText(getApplication(), "请您确认是否安装高德地图APP", Toast.LENGTH_SHORT).show();
5907
                                }
5908
5909
                            }
5910
                        });
5911
                        popupWindow.showAtLocation(cancleButton, Gravity.CENTER, 0, 0);
5912
                    } else {
5913
                        Toast.makeText(getApplication(), "没有定位到您的当前位置", Toast.LENGTH_SHORT).show();
5914
                    }
5788 5915
                }
5916
5789 5917
            }
5918
5919
5790 5920
        } else if (remind.equals("2")) {
5791 5921
            new com.electric.chargingpile.view.AlertDialog(MainMapActivity.this).builder()
5792 5922
                    .setTitle("暂时未营业")
@ -5800,9 +5930,7 @@ public class MainMapActivity extends Activity implements LocationSource, AMapLoc
5800 5930
                                intent.putExtra("start_jing", center.longitude + "");
5801 5931
                                intent.putExtra("start_wei", center.latitude + "");
5802 5932
                                intent.putExtra("stop_jing", ll.longitude + "");
5803
//                    Log.e("123", ll.longitude + "");
5804 5933
                                intent.putExtra("stop_wei", ll.latitude + "");
5805
//                    Log.e("123", ll.latitude + "");
5806 5934
                                startActivity(intent);
5807 5935
                                detailsBack = true;
5808 5936
                                HashMap<String, String> map = new HashMap<String, String>();
@ -5834,7 +5962,6 @@ public class MainMapActivity extends Activity implements LocationSource, AMapLoc
5834 5962
                                    cancleButton.setOnClickListener(new View.OnClickListener() {
5835 5963
                                        @Override
5836 5964
                                        public void onClick(View view) {
5837
//                        Toast.makeText(ZhanDetailsNew.this, "NO", Toast.LENGTH_SHORT).show();
5838 5965
                                            popupWindow.dismiss();
5839 5966
                                        }
5840 5967
                                    });
@ -5873,12 +6000,7 @@ public class MainMapActivity extends Activity implements LocationSource, AMapLoc
5873 6000
                                            }
5874 6001
                                            getBaidu(center.longitude, center.latitude);
5875 6002
                                            try {
5876
                                                String s = "intent://map/direction?" +
5877
                                                        "origin=" + bd_lat + "," + bd_lon + "&" +
5878
                                                        "destination=" + bd_wei + "," + bd_jing +
5879
                                                        "&mode=driving&" +
5880
                                                        "src=充电桩#Intent;scheme=bdapp;package=com.baidu.BaiduMap;end";
5881
//                                    Log.e("sss", s);
6003
                                                String s = "intent://map/direction?" + "origin=" + bd_lat + "," + bd_lon + "&" + "destination=" + bd_wei + "," + bd_jing + "&mode=driving&" + "src=充电桩#Intent;scheme=bdapp;package=com.baidu.BaiduMap;end";
5882 6004
                                                intent = Intent.getIntent(s);
5883 6005
                                                detailsBack = true;
5884 6006
                                                HashMap<String, String> map = new HashMap<String, String>();
@ -5892,7 +6014,6 @@ public class MainMapActivity extends Activity implements LocationSource, AMapLoc
5892 6014
                                            }
5893 6015
                                            startActivity(intent);
5894 6016
                                            popupWindow.dismiss();
5895
5896 6017
                                        }
5897 6018
5898 6019
                                    });
@ -5921,7 +6042,6 @@ public class MainMapActivity extends Activity implements LocationSource, AMapLoc
5921 6042
                                        }
5922 6043
                                    });
5923 6044
                                    popupWindow.showAtLocation(cancleButton, Gravity.CENTER, 0, 0);
5924
//                                            startNavi(center, ll);
5925 6045
                                } else {
5926 6046
                                    ToastUtil.showToast(getApplicationContext(), "请检查您当前网络或定位权限是否开启", Toast.LENGTH_SHORT);
5927 6047
                                }

+ 3 - 6
app/src/main/java/com/electric/chargingpile/activity/RecommendZhanActivity.java

@ -193,7 +193,6 @@ public class RecommendZhanActivity extends Activity implements View.OnClickListe
193 193
        switch (v.getId()) {
194 194
            case R.id.tv_help:
195 195
                Intent intentt = new Intent(getApplication(), RoutePlanSelectAddressActivity.class);
196
//                intentt.putExtra("url", "http://evcharge.cc/cdz/recomment-descr.html");
197 196
                startActivity(intentt);
198 197
                break;
199 198
            case R.id.iv_back:
@ -731,8 +730,7 @@ public class RecommendZhanActivity extends Activity implements View.OnClickListe
731 730
            } else if (i + 1 == 3) {
732 731
                item_zhan_num.setImageResource(R.drawable.re_three);
733 732
                bitmap = BitmapDescriptorFactory.fromResource(R.drawable.icon_recommend_three);
734
                MarkerOptions recommend_marker = new MarkerOptions().position(ll).icon(bitmap)
735
                        .anchor(0.5f, 1.0f).zIndex(3);
733
                MarkerOptions recommend_marker = new MarkerOptions().position(ll).icon(bitmap).anchor(0.5f, 1.0f).zIndex(3);
736 734
                Zhan z = new Zhan();
737 735
                z.setId(3);
738 736
                recommend_marker_three = (Marker) aMap.addMarker(recommend_marker);
@ -886,9 +884,8 @@ public class RecommendZhanActivity extends Activity implements View.OnClickListe
886 884
                @Override
887 885
                public void onClick(View view) {
888 886
                    MobclickAgent.onEvent(getApplicationContext(), "0402");
889
                    Intent intent = new Intent(getApplication(),
890
                            NewZhanDetailsActivity.class);
891
                    intent.putExtra("zhan_id", rz.getZhan_id());
887
                    Intent intent = new Intent(getApplication(), NewZhanDetailsActivity.class);
888
                    intent.putExtra("zhan_id", rz.getId());
892 889
                    startActivity(intent);
893 890
                }
894 891
            });

+ 1 - 1
app/src/main/res/layout/activity_main_map.xml

@ -93,7 +93,7 @@
93 93
                android:background="#f1f1f1"
94 94
                android:ellipsize="end"
95 95
                android:singleLine="true"
96
                android:text="@string/chargingpile_search"
96
                android:text="请输入地址/关键字"
97 97
                android:textColor="@color/ui_68"
98 98
                android:textSize="14sp" />
99 99

+ 1 - 3
app/src/main/res/layout/activity_private_zhuang_info.xml

@ -476,7 +476,6 @@
476 476
                    android:layout_toLeftOf="@+id/imageView2"
477 477
                    android:layout_weight="1"
478 478
                    android:background="@color/white"
479
                    android:editable="true"
480 479
                    android:gravity="center"
481 480
                    android:hint="桩数"
482 481
                    android:inputType="number"
@ -798,10 +797,9 @@
798 797
                    android:layout_marginRight="44px"
799 798
                    android:layout_weight="5"
800 799
                    android:background="@color/white"
801
                    android:editable="true"
802 800
                    android:gravity="center|right"
803 801
                    android:hint="请输入手机号码"
804
                    android:inputType="text"
802
                    android:inputType="number"
805 803
                    android:text=""
806 804
                    android:textColor="@color/ui_62"
807 805
                    android:textColorHint="@color/ui_68"

+ 0 - 6
app/src/main/res/layout/activity_recommend_zhan.xml

@ -156,12 +156,6 @@
156 156
            android:textSize="13sp"
157 157
            android:visibility="gone"/>
158 158
159
160
161
162
163
164
165 159
        <RelativeLayout
166 160
            android:layout_width="match_parent"
167 161
            android:layout_height="36dp"

dudu/cdzApp - Gogs: Go Git Service

7 Commits (a0fb2d2be7aad4a88cd9e43cd1fe6b84f006641a)

Author SHA1 Message Date
  huyuguo 2ccff5dbe6 配置优化 6 years ago
  huyuguo b98aa2e34f 代码修改 6 years ago
  huyuguo 96b718ad72 添加新站点 6 years ago
  huyuguo 84eab5f732 h5页面拍照问题修改 6 years ago
  huyuguo 67341aa295 下线话题处理 7 years ago
  1145873331@qq.com 2fa5ae59bf remove 7 years ago
  dxh 06bd894653 init 7 years ago