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