|
|
@@ -11,14 +11,25 @@ import android.widget.ArrayAdapter;
|
|
|
import android.widget.Toast;
|
|
|
|
|
|
import com.kfzs.duanduan.BaseCompatFragment;
|
|
|
+import com.kfzs.libs.di.http.HttpService;
|
|
|
import com.kfzs.libs.widget.CompleteCommitEditText;
|
|
|
import com.kfzs.libs.widget.alpha.AlphaButton;
|
|
|
import com.sheep.jiuyan.samllsheep.R;
|
|
|
+import com.sheep.jiuyan.samllsheep.SheepApp;
|
|
|
+import com.sheep.jiuyan.samllsheep.utils.SpUtils;
|
|
|
+
|
|
|
+import java.util.HashMap;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
import butterknife.BindView;
|
|
|
import butterknife.ButterKnife;
|
|
|
import butterknife.OnClick;
|
|
|
import butterknife.Unbinder;
|
|
|
+import rx.Observable;
|
|
|
+import rx.Observer;
|
|
|
+import rx.Scheduler;
|
|
|
+import rx.android.schedulers.AndroidSchedulers;
|
|
|
+import rx.schedulers.Schedulers;
|
|
|
|
|
|
/**
|
|
|
* Created by zhanghai on 2018/4/4.
|
|
|
@@ -126,7 +137,41 @@ public class CiticStepThreeFragment extends BaseCompatFragment {
|
|
|
//电话
|
|
|
String urgentTel = edtCiticUrgentTel.getText().toString();
|
|
|
|
|
|
+ //亲属
|
|
|
+ Map<String,String> map = new HashMap<>();
|
|
|
+ map.put("token", SpUtils.getOpenId(SheepApp.mContext));
|
|
|
+ map.put("r_name",familyName);
|
|
|
+ map.put("r_relation",strFamily);
|
|
|
+ map.put("r_mobile",familyMobile);
|
|
|
+ map.put("r_tel_1",familyZoneCode);
|
|
|
+ map.put("r_tel_2",familyTel);
|
|
|
|
|
|
+ //紧急联系人
|
|
|
+ map.put("m_name",urgentName);
|
|
|
+ map.put("m_relation",strUrgent);
|
|
|
+ map.put("m_mobile",urgentMobile);
|
|
|
+ map.put("m_tel_1",urgentZoneCode);
|
|
|
+ map.put("m_tel_2",urgentTel);
|
|
|
+
|
|
|
+ HttpService httpService = SheepApp.getInstance().getHttpComponent().getHttpService();
|
|
|
+ httpService.zxRelative(map).subscribeOn(Schedulers.io())
|
|
|
+ .observeOn(AndroidSchedulers.mainThread())
|
|
|
+ .subscribe(new Observer<String>() {
|
|
|
+ @Override
|
|
|
+ public void onCompleted() {
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void onError(Throwable throwable) {
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void onNext(String s) {
|
|
|
+ /// ??? 提交完成后,去哪儿????
|
|
|
+
|
|
|
+ }
|
|
|
+ });
|
|
|
|
|
|
|
|
|
}
|