|
|
@@ -13,6 +13,7 @@ import com.kfzs.duanduan.fragment.FgtCreditCardProgressQuery;
|
|
|
import com.kfzs.duanduan.fragment.FgtCreditCardTaskList;
|
|
|
import com.kfzs.duanduan.mine.GiftpackListAdapter;
|
|
|
import com.sheep.gamegroup.model.entity.BaseMessage;
|
|
|
+import com.sheep.gamegroup.model.entity.CreditCardProgressQuery;
|
|
|
import com.sheep.gamegroup.model.entity.TaskEty;
|
|
|
import com.sheep.gamegroup.model.util.SheepSubscriber;
|
|
|
import com.sheep.gamegroup.util.UMConfigUtils;
|
|
|
@@ -20,6 +21,7 @@ import com.sheep.jiuyan.samllsheep.R;
|
|
|
import com.sheep.jiuyan.samllsheep.SheepApp;
|
|
|
import com.sheep.jiuyan.samllsheep.base.AbsChooseImageActivity;
|
|
|
import com.sheep.jiuyan.samllsheep.base.BaseActivity;
|
|
|
+import com.sheep.jiuyan.samllsheep.base.BaseFragment;
|
|
|
import com.sheep.jiuyan.samllsheep.utils.G;
|
|
|
import com.sheep.jiuyan.samllsheep.utils.TitleBarUtils;
|
|
|
|
|
|
@@ -103,17 +105,17 @@ public class ActCreditCardTaskList extends AbsChooseImageActivity {
|
|
|
|
|
|
@Override
|
|
|
protected void onNotGetImage(String msg) {
|
|
|
-
|
|
|
+ G.showToast(msg);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
protected void onGetImage(String path) {
|
|
|
|
|
|
}
|
|
|
- private TaskEty taskEty;
|
|
|
+ private CreditCardProgressQuery creditCardProgressQuery;
|
|
|
|
|
|
- public void setTaskEty(TaskEty taskEty) {
|
|
|
- this.taskEty = taskEty;
|
|
|
+ public void setCreditCardProgressQuery(CreditCardProgressQuery creditCardProgressQuery) {
|
|
|
+ this.creditCardProgressQuery = creditCardProgressQuery;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
@@ -121,8 +123,7 @@ public class ActCreditCardTaskList extends AbsChooseImageActivity {
|
|
|
setLoaddingText("提交中");
|
|
|
JSONObject jsonObject = new JSONObject();
|
|
|
jsonObject.put("screenshots", url);
|
|
|
- releaseTaskCreditCard(taskEty.getAcceptedTaskId(), jsonObject);
|
|
|
- taskEty.setScreenshots(url);
|
|
|
+ releaseTaskCreditCard(creditCardProgressQuery.getId(), jsonObject);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
@@ -134,6 +135,10 @@ public class ActCreditCardTaskList extends AbsChooseImageActivity {
|
|
|
setLoaddingText("完成");
|
|
|
dismissLoaddingDialog();
|
|
|
G.showToast("提交成功,等待审核!");
|
|
|
+ Fragment fragment = mAdapter.getItem(1);
|
|
|
+ if(fragment instanceof FgtCreditCardProgressQuery){
|
|
|
+ ((FgtCreditCardProgressQuery) fragment).initData();
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
public void releaseTaskCreditCard(int id, JSONObject jsonObject) {
|