|
|
@@ -74,9 +74,11 @@ public class BusinessHoursSetting extends BaseActivity implements View.OnClickLi
|
|
|
timpoint_tv.setOnClickListener(this);
|
|
|
|
|
|
if (setType == 1){
|
|
|
+ getSupportActionBar().setTitle("设置营业时间");
|
|
|
set_hour_ll.setVisibility(View.VISIBLE);
|
|
|
set_booktype_ll.setVisibility(View.GONE);
|
|
|
}else if (setType == 2){
|
|
|
+ getSupportActionBar().setTitle("设置预约时间类型");
|
|
|
set_hour_ll.setVisibility(View.GONE);
|
|
|
set_booktype_ll.setVisibility(View.VISIBLE);
|
|
|
}
|
|
|
@@ -110,12 +112,12 @@ public class BusinessHoursSetting extends BaseActivity implements View.OnClickLi
|
|
|
, 0x24);
|
|
|
}else if (v.getId() == R.id.period_tv){
|
|
|
sc_booktype = 1;
|
|
|
- period_tv.setBackgroundResource(R.color.blue);
|
|
|
+ period_tv.setBackgroundResource(R.color.aqua);
|
|
|
timpoint_tv.setBackgroundResource(R.color.white);
|
|
|
}else if (v.getId() == R.id.timpoint_tv){
|
|
|
sc_booktype = 0;
|
|
|
period_tv.setBackgroundResource(R.color.white);
|
|
|
- timpoint_tv.setBackgroundResource(R.color.blue);
|
|
|
+ timpoint_tv.setBackgroundResource(R.color.aqua);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -172,6 +174,7 @@ public class BusinessHoursSetting extends BaseActivity implements View.OnClickLi
|
|
|
|
|
|
//获取是否之前有设置的时间
|
|
|
private void initData() {
|
|
|
+ if (setType == 2) return;
|
|
|
HttpClient httpClient = new HttpClient.Builder(Constant.BASE_BOOKING_SETTING_URL).isDebug(true).build(true);
|
|
|
httpClient.Api().send(new HttpClient.Builder()
|
|
|
.url("user/appCompanyAdmin")
|