|
|
|
@ -198,7 +198,7 @@ class HomeFragment : BaseViewBindingFragment<FragmentHomeBinding>() {
|
|
|
|
private fun initLists() {
|
|
|
|
private fun initLists() {
|
|
|
|
val titles = arrayOf(
|
|
|
|
val titles = arrayOf(
|
|
|
|
// "来访管理",
|
|
|
|
// "来访管理",
|
|
|
|
// "会议管理",
|
|
|
|
"会议录音",
|
|
|
|
"用餐管理",
|
|
|
|
"用餐管理",
|
|
|
|
"车辆管理",
|
|
|
|
"车辆管理",
|
|
|
|
// "办公领用",
|
|
|
|
// "办公领用",
|
|
|
|
@ -214,7 +214,7 @@ class HomeFragment : BaseViewBindingFragment<FragmentHomeBinding>() {
|
|
|
|
)
|
|
|
|
)
|
|
|
|
val imgIds = intArrayOf(
|
|
|
|
val imgIds = intArrayOf(
|
|
|
|
// R.drawable.icon_visit,
|
|
|
|
// R.drawable.icon_visit,
|
|
|
|
// R.drawable.icon_meet,
|
|
|
|
R.drawable.icon_meet,
|
|
|
|
R.drawable.icon_dinner,
|
|
|
|
R.drawable.icon_dinner,
|
|
|
|
R.drawable.icon_vehicle,
|
|
|
|
R.drawable.icon_vehicle,
|
|
|
|
// R.drawable.icon_office,
|
|
|
|
// R.drawable.icon_office,
|
|
|
|
@ -258,12 +258,19 @@ class HomeFragment : BaseViewBindingFragment<FragmentHomeBinding>() {
|
|
|
|
binding.gv.setAdapter(adapter)
|
|
|
|
binding.gv.setAdapter(adapter)
|
|
|
|
binding.gv.onItemClickListener =
|
|
|
|
binding.gv.onItemClickListener =
|
|
|
|
AdapterView.OnItemClickListener { parent: AdapterView<*>?, view: View?, position: Int, id: Long ->
|
|
|
|
AdapterView.OnItemClickListener { parent: AdapterView<*>?, view: View?, position: Int, id: Long ->
|
|
|
|
if (position == 1) {
|
|
|
|
if (position == 0) {
|
|
|
|
|
|
|
|
if (resultList.contains("ApplyVehicle")) {
|
|
|
|
|
|
|
|
val intent = Intent(getContext(), ConferenceAudioActivity::class.java)
|
|
|
|
|
|
|
|
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP or Intent.FLAG_ACTIVITY_SINGLE_TOP)
|
|
|
|
|
|
|
|
startActivity(intent)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}else if (position == 2) {
|
|
|
|
if (resultList.contains("ApplyVehicle")) {
|
|
|
|
if (resultList.contains("ApplyVehicle")) {
|
|
|
|
val intent = Intent(getContext(), ApplyVehicleActivity::class.java)
|
|
|
|
val intent = Intent(getContext(), ApplyVehicleActivity::class.java)
|
|
|
|
|
|
|
|
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP or Intent.FLAG_ACTIVITY_SINGLE_TOP)
|
|
|
|
startActivity(intent)
|
|
|
|
startActivity(intent)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}else if (position == 7) {
|
|
|
|
}else if (position == 8) {
|
|
|
|
val intent = Intent(getContext(), WeatherActivity::class.java)
|
|
|
|
val intent = Intent(getContext(), WeatherActivity::class.java)
|
|
|
|
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP or Intent.FLAG_ACTIVITY_SINGLE_TOP)
|
|
|
|
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP or Intent.FLAG_ACTIVITY_SINGLE_TOP)
|
|
|
|
startActivity(intent)
|
|
|
|
startActivity(intent)
|
|
|
|
@ -285,15 +292,15 @@ class HomeFragment : BaseViewBindingFragment<FragmentHomeBinding>() {
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
when (position) {
|
|
|
|
when (position) {
|
|
|
|
// 0 -> TAG = GridViewDialog.TAG_MEET
|
|
|
|
// 0 -> TAG = GridViewDialog.TAG_MEET
|
|
|
|
0 -> TAG = GridViewDialog.TAG_DINNER
|
|
|
|
1 -> TAG = GridViewDialog.TAG_DINNER
|
|
|
|
// 3 -> TAG = GridViewDialog.TAG_OFFICE
|
|
|
|
// 3 -> TAG = GridViewDialog.TAG_OFFICE
|
|
|
|
// 4 -> TAG = GridViewDialog.TAG_TASK
|
|
|
|
// 4 -> TAG = GridViewDialog.TAG_TASK
|
|
|
|
// 5 -> TAG = GridViewDialog.TAG_SCHEDULE
|
|
|
|
// 5 -> TAG = GridViewDialog.TAG_SCHEDULE
|
|
|
|
2 -> TAG = GridViewDialog.TAG_CHECK
|
|
|
|
3 -> TAG = GridViewDialog.TAG_CHECK
|
|
|
|
3 -> TAG = GridViewDialog.TAG_PEIXUN
|
|
|
|
4 -> TAG = GridViewDialog.TAG_PEIXUN
|
|
|
|
4 -> TAG = GridViewDialog.TAG_PDANGJIAN
|
|
|
|
5 -> TAG = GridViewDialog.TAG_PDANGJIAN
|
|
|
|
5 -> TAG = GridViewDialog.TAG_JD
|
|
|
|
6 -> TAG = GridViewDialog.TAG_JD
|
|
|
|
6 -> TAG = GridViewDialog.TAG_AF
|
|
|
|
7 -> TAG = GridViewDialog.TAG_AF
|
|
|
|
}
|
|
|
|
}
|
|
|
|
val dialog = GridViewDialog(context, TAG)
|
|
|
|
val dialog = GridViewDialog(context, TAG)
|
|
|
|
dialog.show()
|
|
|
|
dialog.show()
|
|
|
|
|