卸货地优化
This commit is contained in:
parent
908b30a305
commit
36078df8b6
@ -91,11 +91,11 @@ public class TagAliasOperatorHelper {
|
|||||||
init(context);
|
init(context);
|
||||||
if(jPushMessage.getErrorCode() == 0){
|
if(jPushMessage.getErrorCode() == 0){
|
||||||
Log.i(TAG,"action - set mobile number Success,sequence:"+sequence);
|
Log.i(TAG,"action - set mobile number Success,sequence:"+sequence);
|
||||||
ToastUtils.showToast(context,"modify success");
|
// ToastUtils.showToast(context,"modify success");
|
||||||
}else{
|
}else{
|
||||||
String logs = "Failed to set mobile number, errorCode:" + jPushMessage.getErrorCode();
|
String logs = "Failed to set mobile number, errorCode:" + jPushMessage.getErrorCode();
|
||||||
Log.e(TAG, logs);
|
Log.e(TAG, logs);
|
||||||
ToastUtils.showToast(context,logs);
|
// ToastUtils.showToast(context,logs);
|
||||||
// MMKV.defaultMMKV().putString(AdvActivity.MN_DATA, "");
|
// MMKV.defaultMMKV().putString(AdvActivity.MN_DATA, "");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -128,7 +128,7 @@ class WaybillAppraiseActivity : BaseActivity<ActivityWaybillUnloadBinding>() {
|
|||||||
if (::gdLatLng.isInitialized) {
|
if (::gdLatLng.isInitialized) {
|
||||||
distance = LocationUtils.getInstance().getDistance(
|
distance = LocationUtils.getInstance().getDistance(
|
||||||
gdLatLng,
|
gdLatLng,
|
||||||
loadPos
|
unLoadPos
|
||||||
) + "km"
|
) + "km"
|
||||||
}
|
}
|
||||||
var goods =
|
var goods =
|
||||||
@ -277,10 +277,10 @@ class WaybillAppraiseActivity : BaseActivity<ActivityWaybillUnloadBinding>() {
|
|||||||
it.getLongitude()//经 度
|
it.getLongitude()//经 度
|
||||||
it.getLatitude()//纬 度
|
it.getLatitude()//纬 度
|
||||||
gdLatLng = LatLng(it.latitude, it.longitude)
|
gdLatLng = LatLng(it.latitude, it.longitude)
|
||||||
if (::loadPos.isInitialized) {
|
if (::unLoadPos.isInitialized) {
|
||||||
var distance = LocationUtils.getInstance().getDistance(
|
var distance = LocationUtils.getInstance().getDistance(
|
||||||
gdLatLng,
|
gdLatLng,
|
||||||
loadPos
|
unLoadPos
|
||||||
) + "km"
|
) + "km"
|
||||||
binding.tvLoadDis.text = distance
|
binding.tvLoadDis.text = distance
|
||||||
}
|
}
|
||||||
|
@ -136,7 +136,7 @@ class WaybillUnlLoadActivity : BaseActivity<ActivityWaybillUnloadBinding>() {
|
|||||||
if (::gdLatLng.isInitialized) {
|
if (::gdLatLng.isInitialized) {
|
||||||
distance = LocationUtils.getInstance().getDistance(
|
distance = LocationUtils.getInstance().getDistance(
|
||||||
gdLatLng,
|
gdLatLng,
|
||||||
loadPos
|
unLoadPos
|
||||||
) + "km"
|
) + "km"
|
||||||
}
|
}
|
||||||
var goods =
|
var goods =
|
||||||
@ -290,10 +290,10 @@ class WaybillUnlLoadActivity : BaseActivity<ActivityWaybillUnloadBinding>() {
|
|||||||
it.getLongitude()//经 度
|
it.getLongitude()//经 度
|
||||||
it.getLatitude()//纬 度
|
it.getLatitude()//纬 度
|
||||||
gdLatLng = LatLng(it.latitude, it.longitude)
|
gdLatLng = LatLng(it.latitude, it.longitude)
|
||||||
if (::loadPos.isInitialized) {
|
if (::unLoadPos.isInitialized) {
|
||||||
var distance = LocationUtils.getInstance().getDistance(
|
var distance = LocationUtils.getInstance().getDistance(
|
||||||
gdLatLng,
|
gdLatLng,
|
||||||
loadPos
|
unLoadPos
|
||||||
) + "km"
|
) + "km"
|
||||||
binding.tvLoadDis.text = distance
|
binding.tvLoadDis.text = distance
|
||||||
}
|
}
|
||||||
|
@ -82,6 +82,9 @@ class WaybillUpPicActivity : BaseActivity<ActivityWaybillUppicBinding>() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
binding.run {
|
binding.run {
|
||||||
|
ivBack.setOnClickListener {
|
||||||
|
finish()
|
||||||
|
}
|
||||||
tvPosi.setOnClickListener {
|
tvPosi.setOnClickListener {
|
||||||
getLocation()
|
getLocation()
|
||||||
}
|
}
|
||||||
|
@ -251,7 +251,7 @@
|
|||||||
android:layout_below="@+id/tvLoadDis"
|
android:layout_below="@+id/tvLoadDis"
|
||||||
android:layout_marginTop="@dimen/dp_5"
|
android:layout_marginTop="@dimen/dp_5"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:text="距装货地约"
|
android:text="距卸货地约"
|
||||||
android:textColor="@color/color_9"
|
android:textColor="@color/color_9"
|
||||||
android:textSize="@dimen/sp_12"
|
android:textSize="@dimen/sp_12"
|
||||||
android:textStyle="bold" />
|
android:textStyle="bold" />
|
||||||
@ -275,7 +275,7 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="@dimen/dp_6"
|
android:layout_marginTop="@dimen/dp_6"
|
||||||
android:text="去装货地"
|
android:text="去卸货地"
|
||||||
android:textColor="@color/main_blue"
|
android:textColor="@color/main_blue"
|
||||||
android:textSize="@dimen/dp_9" />
|
android:textSize="@dimen/dp_9" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
android:textSize="@dimen/sp_17" />
|
android:textSize="@dimen/sp_17" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
|
android:id="@+id/ivBack"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginLeft="@dimen/dp_16"
|
android:layout_marginLeft="@dimen/dp_16"
|
||||||
|
Loading…
Reference in New Issue
Block a user