Commit 386e47859fe680d912870e3f0c0327d6a2df6e2a
1 parent
1c1190fa
Exists in
yxb_dev
and in
1 other branch
no message
Showing
3 changed files
with
1 additions
and
6 deletions
Show diff stats
app/src/main/java/com/shunzhi/parent/model/consult/ConsultModel.java
| ... | ... | @@ -51,7 +51,6 @@ public class ConsultModel extends BaseModel implements ConsultContract.IConsultM |
| 51 | 51 | public Observable<String> loginVote(String phoneNum, String password) { |
| 52 | 52 | return RetrofitCreateHelper.getInstance().createStringApi(Consult.class, AppConfig.BASE_URL_VOTE) |
| 53 | 53 | .loginVote(phoneNum,password).compose(RxHelper.<String>rxSchedulerHelper()); |
| 54 | -// return null; | |
| 55 | 54 | } |
| 56 | 55 | |
| 57 | 56 | public static ConsultContract.IConsultModel newInstance() { | ... | ... |
app/src/main/java/com/shunzhi/parent/presenter/consult/ConsultPresenter.java
| ... | ... | @@ -137,13 +137,11 @@ public class ConsultPresenter extends ConsultContract.ConsultPresenter { |
| 137 | 137 | mRxManager.register(mIModel.loginVote(phoneNum, password).subscribe(new Consumer<String>() { |
| 138 | 138 | @Override |
| 139 | 139 | public void accept(String str) throws Exception { |
| 140 | - Log.e("111111",str); | |
| 141 | 140 | mIView.showVote(position,str); |
| 142 | 141 | } |
| 143 | 142 | }, new Consumer<Throwable>() { |
| 144 | 143 | @Override |
| 145 | 144 | public void accept(Throwable throwable) throws Exception { |
| 146 | - Log.e("111111",throwable.getMessage()); | |
| 147 | 145 | mIView.showVote(position,""); |
| 148 | 146 | } |
| 149 | 147 | })); | ... | ... |
app/src/main/java/com/shunzhi/parent/ui/fragment/ConsultFragment.java
| ... | ... | @@ -11,7 +11,6 @@ import android.support.annotation.Nullable; |
| 11 | 11 | import android.support.annotation.RequiresApi; |
| 12 | 12 | import android.support.v4.widget.NestedScrollView; |
| 13 | 13 | import android.text.TextUtils; |
| 14 | -import android.util.Log; | |
| 15 | 14 | import android.view.View; |
| 16 | 15 | import android.widget.EditText; |
| 17 | 16 | import android.widget.ImageView; |
| ... | ... | @@ -231,7 +230,6 @@ public class ConsultFragment extends BaseMVPCompatFragment<ConsultContract.Consu |
| 231 | 230 | |
| 232 | 231 | @Override |
| 233 | 232 | public void showVote(int position,String token) { |
| 234 | - Log.e("000000",imgWebUrl.get(position).toString()); | |
| 235 | 233 | if(imgWebUrl.get(position).startsWith(AppConfig.BASE_URL_VOTE)) { |
| 236 | 234 | WebViewActivity.getInstance(getContext(), imgWebUrl.get(position), -1, token); |
| 237 | 235 | }else{ |
| ... | ... | @@ -243,11 +241,11 @@ public class ConsultFragment extends BaseMVPCompatFragment<ConsultContract.Consu |
| 243 | 241 | public void showBanners(List<GuangGaoBean> guangGaoBeanList) { |
| 244 | 242 | describeList.clear(); |
| 245 | 243 | imgesUrl.clear(); |
| 244 | + imgWebUrl.clear(); | |
| 246 | 245 | guanggaoList = guangGaoBeanList; |
| 247 | 246 | for (int i = 0; i < guangGaoBeanList.size(); i++) { |
| 248 | 247 | imgesUrl.add(AppConfig.BASE_URL_FILE + guangGaoBeanList.get(i).fileSrc); |
| 249 | 248 | describeList.add(guangGaoBeanList.get(i).describe); |
| 250 | - Log.e("aaaa",guangGaoBeanList.get(i).url); | |
| 251 | 249 | imgWebUrl.add(guangGaoBeanList.get(i).url); |
| 252 | 250 | } |
| 253 | 251 | initBanners(); | ... | ... |