Commit 0e171492 by wukun

1226

parent 0a7085fa
...@@ -47,7 +47,7 @@ public class LearnAdapter extends CoreAdapter<CommonLearnBean, ItemCommonLearnBi ...@@ -47,7 +47,7 @@ public class LearnAdapter extends CoreAdapter<CommonLearnBean, ItemCommonLearnBi
public void onClick(View v) { public void onClick(View v) {
mPresenter.checkPayClick(item); mPresenter.checkPayClick(item);
mHolder = holder; mHolder = holder;
holder.rlClick.setVisibility(View.GONE); // holder.rlClick.setVisibility(View.GONE);
} }
}); });
if (type == 2) { if (type == 2) {
...@@ -99,6 +99,6 @@ public class LearnAdapter extends CoreAdapter<CommonLearnBean, ItemCommonLearnBi ...@@ -99,6 +99,6 @@ public class LearnAdapter extends CoreAdapter<CommonLearnBean, ItemCommonLearnBi
public void startVideo() { public void startVideo() {
mHolder.jzVideo.startVideo(); mHolder.jzVideo.startVideo();
mHolder.rlClick.setVisibility(View.GONE);
} }
} }
...@@ -23,6 +23,7 @@ import com.dayu.usercenter.model.bean.SelfLicenceBean; ...@@ -23,6 +23,7 @@ import com.dayu.usercenter.model.bean.SelfLicenceBean;
import com.dayu.usercenter.model.bean.ServiceBean; import com.dayu.usercenter.model.bean.ServiceBean;
import com.dayu.usercenter.model.bean.ServiceSaveBean; import com.dayu.usercenter.model.bean.ServiceSaveBean;
import com.dayu.usercenter.model.bean.ServiceSaveBean1; import com.dayu.usercenter.model.bean.ServiceSaveBean1;
import com.dayu.usercenter.model.bean.ServiceSaveBeanNew;
import com.dayu.usercenter.model.bean.ServiceTypeBean; import com.dayu.usercenter.model.bean.ServiceTypeBean;
import com.dayu.usercenter.model.bean.StarRatioBean; import com.dayu.usercenter.model.bean.StarRatioBean;
import com.dayu.usercenter.model.bean.TeamInfo; import com.dayu.usercenter.model.bean.TeamInfo;
...@@ -163,7 +164,11 @@ public interface UserService2 { ...@@ -163,7 +164,11 @@ public interface UserService2 {
@POST(Constants.API_7100 + "/engineerRelationCategory/labelAndPrice/batch/accountId/{accountId}") @POST(Constants.API_7100 + "/engineerRelationCategory/labelAndPrice/batch/accountId/{accountId}")
Observable<BaseResponse<Boolean>> saveServiceTypeNew(@Body ServiceSaveBean saveBean, @Path("accountId") int accountId); Observable<BaseResponse<Boolean>> saveServiceTypeNew(@Body ServiceSaveBean saveBean, @Path("accountId") int accountId);
/**
* 批量保存产品类型(新)
*/
@POST(Constants.API_7100 + "/engineerRelationCategory/labelAndPrice/batch/accountId/{accountId}")
Observable<BaseResponse<Boolean>> saveServiceTypeNew2(@Body ServiceSaveBeanNew saveBean, @Path("accountId") int accountId);
/** /**
* 全部认证资质 * 全部认证资质
* *
......
package com.dayu.usercenter.model.bean;
public class ServiceSaveBeanNew {
private String lowestPriceDay;
public ServiceSaveBeanNew(String lowestPriceDay){
this.lowestPriceDay = lowestPriceDay;
}
}
...@@ -38,7 +38,7 @@ import com.dayu.usercenter.event.RefreshUserInfoEvent; ...@@ -38,7 +38,7 @@ import com.dayu.usercenter.event.RefreshUserInfoEvent;
import com.dayu.usercenter.event.RefreshUserPriceEvent; import com.dayu.usercenter.event.RefreshUserPriceEvent;
import com.dayu.usercenter.event.RefreshUserRecordEvent; import com.dayu.usercenter.event.RefreshUserRecordEvent;
import com.dayu.usercenter.model.AddUserCardData; import com.dayu.usercenter.model.AddUserCardData;
import com.dayu.usercenter.model.bean.ServiceSaveBean; import com.dayu.usercenter.model.bean.ServiceSaveBeanNew;
import com.dayu.usercenter.model.bean.UserBankInfoBean; import com.dayu.usercenter.model.bean.UserBankInfoBean;
import com.dayu.usercenter.model.bean.UserIncomeBean; import com.dayu.usercenter.model.bean.UserIncomeBean;
import com.dayu.usercenter.presenter.homeuser.HomeUserContract; import com.dayu.usercenter.presenter.homeuser.HomeUserContract;
...@@ -163,8 +163,8 @@ public class HomeUserFragment extends BaseFragment<HomeUserPresenter, FragmentHo ...@@ -163,8 +163,8 @@ public class HomeUserFragment extends BaseFragment<HomeUserPresenter, FragmentHo
mBind.dayPrice.setSelection(position); mBind.dayPrice.setSelection(position);
String dayPrice = values.get(position); String dayPrice = values.get(position);
ServiceSaveBean serviceSaveBean = new ServiceSaveBean(dayPrice); ServiceSaveBeanNew serviceSaveBean = new ServiceSaveBeanNew(dayPrice);
Api.getService(UserService2.class).saveServiceTypeNew(serviceSaveBean, mUserId).compose(Api.applySchedulers()) Api.getService(UserService2.class).saveServiceTypeNew2(serviceSaveBean, mUserId).compose(Api.applySchedulers())
.subscribe(mPresenter.baseObserver(bool -> { .subscribe(mPresenter.baseObserver(bool -> {
})); }));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment