| | |
| | | refresh.forEach { refresh -> |
| | | refresh.postValue(false) |
| | | } |
| | | } else { |
| | | refresh.forEach { refresh -> |
| | | refresh.postValue(true) |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | SpanUtils.with(binding.tvFloatNotice) |
| | | .append("您已到达") |
| | | .setForegroundColor(getResColor(com.xw.common.R.color.gray_9)) |
| | | .append(it.message ?: nextPoint.address ?: "") |
| | | .append("【${it.message ?: nextPoint.address ?: ""}】") |
| | | .setForegroundColor(getResColor(com.xw.common.R.color.blue_5)) |
| | | .append("打卡点,是否立即打卡?") |
| | | .setForegroundColor(getResColor(com.xw.common.R.color.gray_9)) |
| | |
| | | |
| | | companion object { |
| | | //获取跳转此页面参数 |
| | | fun getParms(id: String, point: CheckInMissionPointInfo): Bundle { |
| | | fun getParams(id: String, point: CheckInMissionPointInfo): Bundle { |
| | | return bundleOf( |
| | | Key.ID to id, |
| | | Key.DATA to point |
| | |
| | | val workRepository: WorkRepository by inject() |
| | | var id: String = "" |
| | | val model = MutableLiveData<CheckInMissionPointInfo>() |
| | | val working = MutableLiveData<Boolean>() |
| | | val working = MutableLiveData<Boolean>(true) |
| | | val maxLength = MutableLiveData(200) |
| | | val desc = MutableLiveData("") |
| | | val countNotice: MutableLiveData<String> = |
| | |
| | | fun jumpToCheckInPage(info: CheckInMissionPointInfo) { |
| | | startActivity( |
| | | CruiseCheckInOperationActivity::class.java, |
| | | CruiseCheckInOperationActivity.getParms(id, info) |
| | | CruiseCheckInOperationActivity.getParams(id, info) |
| | | ) |
| | | } |
| | | |
| | |
| | | android:layout_height="@dimen/dp_36" |
| | | android:layout_marginTop="@dimen/dp_40" |
| | | android:gravity="center" |
| | | android:background="@drawable/shape_gray_3_bg_4" |
| | | android:orientation="horizontal"> |
| | | |
| | | <ImageView |
| | |
| | | android:textSize="@dimen/sp_14" |
| | | android:textStyle="bold" |
| | | tools:text="蜀山区华侨中心A座2301" /> |
| | | |
| | | <androidx.appcompat.widget.AppCompatImageView |
| | | android:id="@+id/nav" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:layout_gravity="end|center_vertical" |
| | | android:layout_margin="@dimen/dp_12" |
| | | android:src="@drawable/svg_map_nav" /> |
| | | </LinearLayout> |
| | | </LinearLayout> |
| | | |
| | |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:text="该点位已成功打卡" |
| | | android:layout_marginStart="@dimen/dp_11" |
| | | android:textColor="@color/gray_8" |
| | | android:textSize="@dimen/sp_18" |
| | | android:textStyle="bold" /> |