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