d
This commit is contained in:
30
.idea/jarRepositories.xml
generated
Normal file
30
.idea/jarRepositories.xml
generated
Normal file
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="RemoteRepositoriesConfiguration">
|
||||
<remote-repository>
|
||||
<option name="id" value="central" />
|
||||
<option name="name" value="Maven Central repository" />
|
||||
<option name="url" value="https://repo1.maven.org/maven2" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="jboss.community" />
|
||||
<option name="name" value="JBoss Community repository" />
|
||||
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="BintrayJCenter" />
|
||||
<option name="name" value="BintrayJCenter" />
|
||||
<option name="url" value="https://jcenter.bintray.com/" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="maven" />
|
||||
<option name="name" value="maven" />
|
||||
<option name="url" value="https://jitpack.io" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="Google" />
|
||||
<option name="name" value="Google" />
|
||||
<option name="url" value="https://dl.google.com/dl/android/maven2/" />
|
||||
</remote-repository>
|
||||
</component>
|
||||
</project>
|
||||
8
.idea/modules.xml
generated
8
.idea/modules.xml
generated
@@ -2,10 +2,10 @@
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/July.iml" filepath="$PROJECT_DIR$/July.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/app/app.iml" filepath="$PROJECT_DIR$/app/app.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/baselibs/baselibs.iml" filepath="$PROJECT_DIR$/baselibs/baselibs.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/citypicker/citypicker.iml" filepath="$PROJECT_DIR$/citypicker/citypicker.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/July.iml" filepath="$PROJECT_DIR$/July.iml" group="July" />
|
||||
<module fileurl="file://$PROJECT_DIR$/app/app.iml" filepath="$PROJECT_DIR$/app/app.iml" group="July/app" />
|
||||
<module fileurl="file://$PROJECT_DIR$/baselibs/baselibs.iml" filepath="$PROJECT_DIR$/baselibs/baselibs.iml" group="July/baselibs" />
|
||||
<module fileurl="file://$PROJECT_DIR$/citypicker/citypicker.iml" filepath="$PROJECT_DIR$/citypicker/citypicker.iml" group="July/citypicker" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
||||
@@ -44,7 +44,6 @@
|
||||
android:roundIcon="@mipmap/ic_launcher_round"
|
||||
android:supportsRtl="true"
|
||||
android:theme="@style/AppTheme">
|
||||
<activity android:name=".main.kehu.activity.FpOrderInfoActivitytwo"></activity>
|
||||
<activity android:name=".main.kehu.activity.FpOrderInfoActivity"></activity>
|
||||
<activity android:name=".main.kehu.activity.MoActivity" />
|
||||
<activity android:name=".main.activity.ForgetPasActivity" />
|
||||
|
||||
@@ -4,7 +4,7 @@ import android.os.Bundle;
|
||||
|
||||
import com.fenghoo.seven.R;
|
||||
import com.fenghoo.seven.base.BaseActivity;
|
||||
import com.fenghoo.seven.main.Fragment.XikeInfoFragment;
|
||||
import com.fenghoo.seven.main.my.fragment.XikeInfoFragment;
|
||||
import com.fenghoo.seven.utils.StatusBarUtil;
|
||||
|
||||
public class Main2Activity extends BaseActivity {
|
||||
|
||||
@@ -8,8 +8,8 @@ import android.widget.TextView;
|
||||
import com.chad.library.adapter.base.BaseQuickAdapter;
|
||||
import com.fenghoo.seven.R;
|
||||
import com.fenghoo.seven.base.BaseActivity;
|
||||
import com.fenghoo.seven.main.adapter.mine.InboundHistoryAdapter;
|
||||
import com.fenghoo.seven.main.entity.mine.InboundHistoryResBean;
|
||||
import com.fenghoo.seven.main.my.adapter.InboundHistoryAdapter;
|
||||
import com.fenghoo.seven.main.my.entity.InboundHistoryResBean;
|
||||
import com.fenghoo.seven.utils.SpaceItemDecoration;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
@@ -8,8 +8,8 @@ import android.widget.TextView;
|
||||
import com.chad.library.adapter.base.BaseQuickAdapter;
|
||||
import com.fenghoo.seven.R;
|
||||
import com.fenghoo.seven.base.BaseActivity;
|
||||
import com.fenghoo.seven.main.adapter.mine.MessageNoticeAdapter;
|
||||
import com.fenghoo.seven.main.entity.mine.MessageNoticeResBean;
|
||||
import com.fenghoo.seven.main.my.adapter.MessageNoticeAdapter;
|
||||
import com.fenghoo.seven.main.my.entity.MessageNoticeResBean;
|
||||
import com.fenghoo.seven.utils.SpaceItemDecoration;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
package com.fenghoo.seven.main.entity.mine;
|
||||
|
||||
public class InboundHistoryResBean {
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
package com.fenghoo.seven.main.entity.mine;
|
||||
|
||||
|
||||
public class MessageNoticeResBean {
|
||||
|
||||
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
package com.fenghoo.seven.main.entity.mine;
|
||||
|
||||
public class OutboundHistoryResBean {
|
||||
}
|
||||
@@ -1,68 +0,0 @@
|
||||
package com.fenghoo.seven.main.entity.mine;
|
||||
|
||||
/**
|
||||
* UserHeadEntity
|
||||
* (๑• . •๑)
|
||||
* 类描述: 修改头像成功后返回的实体类
|
||||
* Created by LeiXiaoXing on 2017/4/28 11:20
|
||||
*/
|
||||
|
||||
public class UserHeadEntity {
|
||||
|
||||
/**
|
||||
* 图片原图路径
|
||||
* origin : /Uploads/app_user_head_img/origin/20170428/5902b4f7c2b69.png
|
||||
* 主页使用的尺寸路径
|
||||
* Home_Page_Size : /Uploads/app_user_head_img/Home_Page_Size/20170428/5902b4f7c2b69.png
|
||||
* 个人信息使用尺寸路径
|
||||
* info_page_size : /Uploads/app_user_head_img/info_page_size/20170428/5902b4f7c2b69.png
|
||||
* 通讯录头像使用尺寸路径
|
||||
* user_list_size : /Uploads/app_user_head_img/user_list_size/20170428/5902b4f7c2b69.png
|
||||
*/
|
||||
|
||||
private String origin;
|
||||
private String Home_Page_Size;
|
||||
private String info_page_size;
|
||||
private String user_list_size;
|
||||
private String classThumb;//班级头像
|
||||
|
||||
public String getOrigin() {
|
||||
return origin;
|
||||
}
|
||||
|
||||
public void setOrigin(String origin) {
|
||||
this.origin = origin;
|
||||
}
|
||||
|
||||
public String getHome_Page_Size() {
|
||||
return Home_Page_Size;
|
||||
}
|
||||
|
||||
public void setHome_Page_Size(String Home_Page_Size) {
|
||||
this.Home_Page_Size = Home_Page_Size;
|
||||
}
|
||||
|
||||
public String getInfo_page_size() {
|
||||
return info_page_size;
|
||||
}
|
||||
|
||||
public void setInfo_page_size(String info_page_size) {
|
||||
this.info_page_size = info_page_size;
|
||||
}
|
||||
|
||||
public String getUser_list_size() {
|
||||
return user_list_size;
|
||||
}
|
||||
|
||||
public void setUser_list_size(String user_list_size) {
|
||||
this.user_list_size = user_list_size;
|
||||
}
|
||||
|
||||
public String getClassThumb() {
|
||||
return classThumb;
|
||||
}
|
||||
|
||||
public void setClassThumb(String classThumb) {
|
||||
this.classThumb = classThumb;
|
||||
}
|
||||
}
|
||||
@@ -1,16 +1,24 @@
|
||||
package com.fenghoo.seven.main.find;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.util.Log;
|
||||
import android.view.View;
|
||||
import android.widget.ImageView;
|
||||
|
||||
import com.fenghoo.seven.R;
|
||||
import com.fenghoo.seven.base.BaseActivity;
|
||||
import com.fenghoo.seven.dialog.BaseTipsDialog;
|
||||
import com.fenghoo.seven.main.find.entity.SixEvent;
|
||||
import com.fenghoo.seven.widget.TitleBar;
|
||||
|
||||
import de.greenrobot.event.EventBus;
|
||||
|
||||
/**
|
||||
* 会话
|
||||
*/
|
||||
public class ConversationActivity extends BaseActivity {
|
||||
private TitleBar mTitleBar;
|
||||
private String issuccess="1";
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
@@ -18,8 +26,53 @@ public class ConversationActivity extends BaseActivity {
|
||||
setContentView(R.layout.activity_conversation);
|
||||
mTitleBar = findViewById(R.id.title_bar);
|
||||
initNormalBack();
|
||||
EventBus.getDefault().register(this);
|
||||
String private_id = getIntent().getStringExtra("private_id");
|
||||
mTitleBar.setTitle("抖音昵称"+"**");
|
||||
getSupportFragmentManager().beginTransaction().replace(R.id.container,new QuestionsFragment(private_id)).commit();
|
||||
}
|
||||
|
||||
public void onEvent(SixEvent event) {
|
||||
if (null != event ) {
|
||||
issuccess = event.getIssuccess();
|
||||
Log.e("添加客户成功了==",issuccess);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 初始化一般返回按钮事件
|
||||
*/
|
||||
public void initNormalBack() {
|
||||
|
||||
ImageView iv_back = (ImageView) findViewById(R.id.iv_left_btn);
|
||||
if (iv_back != null) {
|
||||
iv_back.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
if(!issuccess.equals("0")) {
|
||||
//弹出对话框
|
||||
new BaseTipsDialog().showDownloadDialog(ConversationActivity.this, "您没有完成添加客户<br />返回将不保存您添加的信息<br />确定返回吗?", "确定", new BaseTipsDialog.ClickListener() {
|
||||
@Override
|
||||
public void confirm() {
|
||||
finish();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void cancle() {
|
||||
|
||||
}
|
||||
});
|
||||
}else {
|
||||
finish();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDestroy() {
|
||||
super.onDestroy();
|
||||
EventBus.getDefault().unregister(this);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,8 +16,11 @@ import com.fenghoo.seven.base.BaseFragment;
|
||||
import com.fenghoo.seven.main.find.ui.PrivateletterFragment;
|
||||
import com.fenghoo.seven.main.kehu.Bean.industryBean;
|
||||
import com.fenghoo.seven.main.kehu.Dialog.HangyeSelectDialog;
|
||||
import com.fenghoo.seven.okgonet.HttpConstants;
|
||||
import com.fenghoo.seven.okgonet.NetApi;
|
||||
import com.fenghoo.seven.okgonet.Observer;
|
||||
import com.fenghoo.seven.utils.checkVersionsUtils.ProfileSpUtils;
|
||||
import com.lzy.okgo.model.HttpParams;
|
||||
import com.lzy.okgo.model.Response;
|
||||
import com.zaaach.citypicker.CityPicker;
|
||||
import com.zaaach.citypicker.adapter.OnPickListener;
|
||||
@@ -70,7 +73,8 @@ public class PriLetFragment extends BaseFragment {
|
||||
view = inflater.inflate(R.layout.findfragment, container, false);
|
||||
initView(view);
|
||||
HotCity();
|
||||
new NetApi().industry().subscribe(new Observer<Response>() {
|
||||
final HttpParams paramsPost = new HttpParams();
|
||||
new NetApi().getPostData(paramsPost, HttpConstants.URi_device_AppCustomer_industry).subscribe(new Observer<Response>() {
|
||||
@Override
|
||||
public void onNext(Response response) {
|
||||
String body = (String) response.body();
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.fenghoo.seven.main.find.entity;
|
||||
|
||||
/**
|
||||
* Time: 2020/8/28
|
||||
* Author: jianbo
|
||||
* Description:
|
||||
*/
|
||||
public class SixEvent {
|
||||
private String issuccess;//是否添加客户成功
|
||||
|
||||
public SixEvent(String msg) {
|
||||
// TODO Auto-generated constructor stub
|
||||
issuccess = msg;
|
||||
|
||||
}
|
||||
public String getIssuccess(){
|
||||
return issuccess;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -22,7 +22,6 @@ public class AddCustomerActivity extends BaseActivity {
|
||||
private String search="";
|
||||
private String pagetype="";
|
||||
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
@@ -30,15 +29,11 @@ public class AddCustomerActivity extends BaseActivity {
|
||||
mTitleBar = (TitleBar) findViewById(R.id.title_bar);
|
||||
mTitleBar.setTitle("信息完善");
|
||||
initNormalBack();
|
||||
// search = getIntent().getStringExtra("search");
|
||||
// pagetype = getIntent().getStringExtra("pagetype");
|
||||
CustomerListBean.ResultBean.DataBean dataBean = (CustomerListBean.ResultBean.DataBean) getIntent().getSerializableExtra("dataBean");
|
||||
customer_id = dataBean.getCustomer_id();
|
||||
source = dataBean.getSource();
|
||||
|
||||
customer_id = dataBean.getCustomer_id();
|
||||
source = dataBean.getSource();
|
||||
addCusFragment = new AddCusFragment(this.customer_id, this.source,search,pagetype,dataBean);
|
||||
getSupportFragmentManager().beginTransaction().replace(R.id.containerrr,addCusFragment).commit();
|
||||
|
||||
findViewById(R.id.btn_comit).setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
|
||||
@@ -16,9 +16,11 @@ import com.fenghoo.seven.main.find.entity.ThreeEvent;
|
||||
import com.fenghoo.seven.main.kehu.Bean.FourEvent;
|
||||
import com.fenghoo.seven.main.kehu.Bean.customerFPListBean;
|
||||
import com.fenghoo.seven.main.kehu.adapter.AllocationAdapter;
|
||||
import com.fenghoo.seven.okgonet.HttpConstants;
|
||||
import com.fenghoo.seven.okgonet.NetApi;
|
||||
import com.fenghoo.seven.okgonet.Observer;
|
||||
import com.fenghoo.seven.utils.checkVersionsUtils.ProfileSpUtils;
|
||||
import com.lzy.okgo.model.HttpParams;
|
||||
import com.lzy.okgo.model.Response;
|
||||
|
||||
import java.util.ArrayList;
|
||||
@@ -113,7 +115,9 @@ public class AllocationActivity extends BaseActivity implements View.OnClickList
|
||||
}
|
||||
|
||||
public void getData() {
|
||||
new NetApi().customerFPList(ProfileSpUtils.getInstance().getUserProfie().getData().getUuid()).subscribe(new Observer<Response>() {
|
||||
final HttpParams paramsPost = new HttpParams();
|
||||
paramsPost.put("uid", ProfileSpUtils.getInstance().getUserProfie().getData().getUuid());
|
||||
new NetApi().getPostData(paramsPost, HttpConstants.URi_device_AppCustomer_customerFPList).subscribe(new Observer<Response>() {
|
||||
@Override
|
||||
public void onNext(Response response) {
|
||||
String body = (String) response.body();
|
||||
|
||||
@@ -18,7 +18,7 @@ import androidx.recyclerview.widget.LinearLayoutManager;
|
||||
import de.greenrobot.event.EventBus;
|
||||
|
||||
/**
|
||||
*
|
||||
*选择预算
|
||||
*/
|
||||
public class BudgetActivity extends MoActivity {
|
||||
|
||||
|
||||
@@ -8,14 +8,17 @@ import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.TypeReference;
|
||||
import com.fenghoo.seven.R;
|
||||
import com.fenghoo.seven.base.BaseActivity;
|
||||
import com.fenghoo.seven.okgonet.HttpConstants;
|
||||
import com.fenghoo.seven.okgonet.NetApi;
|
||||
import com.fenghoo.seven.okgonet.Observer;
|
||||
import com.fenghoo.seven.utils.GlideTools;
|
||||
import com.fenghoo.seven.utils.ToastUtils;
|
||||
import com.fenghoo.seven.utils.ToolsText;
|
||||
import com.fenghoo.seven.utils.WidgetTools;
|
||||
import com.fenghoo.seven.utils.checkVersionsUtils.ProfileSpUtils;
|
||||
import com.fenghoo.seven.widget.CircleImageView;
|
||||
import com.fenghoo.seven.widget.TitleBar;
|
||||
import com.lzy.okgo.model.HttpParams;
|
||||
import com.lzy.okgo.model.Response;
|
||||
|
||||
import org.json.JSONException;
|
||||
@@ -56,7 +59,9 @@ public class CustomerDetailActivity extends BaseActivity {
|
||||
mTvDraInfo06 = (TextView) findViewById(R.id.tv_dra_info06);
|
||||
}
|
||||
public void getData(String customer_id) {
|
||||
new NetApi().customerDetail(customer_id).subscribe(new Observer<Response>() {
|
||||
final HttpParams paramsPost = new HttpParams();
|
||||
paramsPost.put("customer_id", customer_id);
|
||||
new NetApi().getPostData(paramsPost, HttpConstants.URi_device_AppCustomer_customerDetail).subscribe(new Observer<Response>() {
|
||||
@Override
|
||||
public void onNext(Response response) {
|
||||
String body = (String) response.body();
|
||||
|
||||
@@ -31,12 +31,14 @@ import com.fenghoo.seven.main.kehu.Bean.industryBean;
|
||||
import com.fenghoo.seven.main.kehu.activity.mvp.contract.CommitDesignContract;
|
||||
import com.fenghoo.seven.main.kehu.activity.mvp.presenter.CommitDesignPresenter;
|
||||
import com.fenghoo.seven.main.kehu.adapter.DesignAdapter;
|
||||
import com.fenghoo.seven.okgonet.HttpConstants;
|
||||
import com.fenghoo.seven.okgonet.NetApi;
|
||||
import com.fenghoo.seven.okgonet.Observer;
|
||||
import com.fenghoo.seven.utils.StringUtils;
|
||||
import com.fenghoo.seven.utils.ToastUtils;
|
||||
import com.fenghoo.seven.widget.TitleBar;
|
||||
import com.google.gson.Gson;
|
||||
import com.lzy.okgo.model.HttpParams;
|
||||
import com.lzy.okgo.model.Response;
|
||||
|
||||
import org.json.JSONArray;
|
||||
@@ -90,7 +92,8 @@ public class DesignActivity extends BaseTreeActivity<CommitDesignContract.View,
|
||||
mLabelRvList = (RecyclerView) findViewById(R.id.label_rv_list);
|
||||
//获得行业数据
|
||||
// getPresenter().getindustry();
|
||||
new NetApi().industry().subscribe(new Observer<Response>() {
|
||||
final HttpParams paramsPost = new HttpParams();
|
||||
new NetApi().getPostData(paramsPost, HttpConstants.URi_device_AppCustomer_industry).subscribe(new Observer<Response>() {
|
||||
@Override
|
||||
public void onNext(Response response) {
|
||||
String body = (String) response.body();
|
||||
@@ -294,7 +297,7 @@ public class DesignActivity extends BaseTreeActivity<CommitDesignContract.View,
|
||||
case MSG_LOAD_DATA:
|
||||
if (thread == null) {//如果已创建就不再重新创建子线程了
|
||||
|
||||
Toast.makeText(DesignActivity.this, "Begin Parse Data", Toast.LENGTH_SHORT).show();
|
||||
// Toast.makeText(DesignActivity.this, "Begin Parse Data", Toast.LENGTH_SHORT).show();
|
||||
thread = new Thread(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
@@ -307,12 +310,12 @@ public class DesignActivity extends BaseTreeActivity<CommitDesignContract.View,
|
||||
break;
|
||||
|
||||
case MSG_LOAD_SUCCESS:
|
||||
Toast.makeText(DesignActivity.this, "Parse Succeed", Toast.LENGTH_SHORT).show();
|
||||
// Toast.makeText(DesignActivity.this, "Parse Succeed", Toast.LENGTH_SHORT).show();
|
||||
isLoaded = true;
|
||||
break;
|
||||
|
||||
case MSG_LOAD_FAILED:
|
||||
Toast.makeText(DesignActivity.this, "Parse Failed", Toast.LENGTH_SHORT).show();
|
||||
// Toast.makeText(DesignActivity.this, "Parse Failed", Toast.LENGTH_SHORT).show();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -57,7 +57,8 @@ public class FpOrderInfoActivity extends BaseActivity implements View.OnClickLis
|
||||
markquestionsone.setAddress(address);
|
||||
//获得行业数据
|
||||
// getPresenter().getindustry();
|
||||
new NetApi().industry().subscribe(new Observer<Response>() {
|
||||
final HttpParams paramsPost = new HttpParams();
|
||||
new NetApi().getPostData(paramsPost, HttpConstants.URi_device_AppCustomer_industry).subscribe(new Observer<Response>() {
|
||||
@Override
|
||||
public void onNext(Response response) {
|
||||
String body = (String) response.body();
|
||||
|
||||
@@ -1,98 +0,0 @@
|
||||
package com.fenghoo.seven.main.kehu.activity;
|
||||
|
||||
import android.os.Bundle;
|
||||
|
||||
import com.fenghoo.seven.JsonUtils;
|
||||
import com.fenghoo.seven.R;
|
||||
import com.fenghoo.seven.main.find.adapter.FpOrderInfoAdapter;
|
||||
import com.fenghoo.seven.main.kehu.Bean.CustomerListBean;
|
||||
import com.fenghoo.seven.main.kehu.Dialog.RreplyDialog;
|
||||
import com.fenghoo.seven.okgonet.NetApi;
|
||||
import com.fenghoo.seven.okgonet.Observer;
|
||||
import com.fenghoo.seven.utils.checkVersionsUtils.ProfileSpUtils;
|
||||
import com.lzy.okgo.model.Response;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||
|
||||
|
||||
public class FpOrderInfoActivitytwo extends MoActivity {
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_fp_order_info);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void initAdapter() {
|
||||
mMarkingFragmentRecyclerView.setLayoutManager(new LinearLayoutManager(FpOrderInfoActivitytwo.this));
|
||||
FpOrderInfoAdapter markingtwoAdapter = new FpOrderInfoAdapter(FpOrderInfoActivitytwo.this, null);
|
||||
getAdpter(markingtwoAdapter);
|
||||
mMarkingFragmentRecyclerView.setAdapter(markingtwoAdapter);
|
||||
markingtwoAdapter.operationListenner(new FpOrderInfoAdapter.OnViewClickListener() {
|
||||
@Override
|
||||
public void reply(CustomerListBean.ResultBean.DataBean item) {
|
||||
new RreplyDialog(FpOrderInfoActivitytwo.this, R.style.dialog, new RreplyDialog.OnCloseListener() {
|
||||
//回复
|
||||
@Override
|
||||
public void reply(String content) {
|
||||
|
||||
}
|
||||
|
||||
}).show();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void enterCusDetail(CustomerListBean.ResultBean.DataBean item) {
|
||||
//进入查看评论
|
||||
ShowAty.CustomerDetailActivity(FpOrderInfoActivitytwo.this,item);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public void requestData() {
|
||||
new NetApi().customerList(ProfileSpUtils.getInstance().getUserProfie().getData().getUuid(),"").subscribe(new Observer<Response>() {
|
||||
@Override
|
||||
public void onNext(Response response) {
|
||||
String body = (String) response.body();
|
||||
CustomerListBean.ResultBean result = JsonUtils.fromJson(body, CustomerListBean.class).getResult();
|
||||
mSwl.setRefreshing(false);
|
||||
if (result != null && String.valueOf(result.getSuccess()).equals("0")) {
|
||||
|
||||
List<CustomerListBean.ResultBean.DataBean> data = result.getData();
|
||||
if (data.size() == 0) {
|
||||
markingtwoAdapter.setEmptyView(notDataView);
|
||||
return;
|
||||
}
|
||||
if (mNextRequestPage == 1) {
|
||||
setData(true, data);
|
||||
} else {
|
||||
setData(false, data);
|
||||
}
|
||||
} else {
|
||||
setData(true, null);
|
||||
markingtwoAdapter.setEmptyView(notDataView);
|
||||
mSwl.setRefreshing(false);
|
||||
}
|
||||
}
|
||||
@Override
|
||||
public void onError(Exception e) {
|
||||
e.printStackTrace();
|
||||
markingtwoAdapter.setEmptyView(errorView);
|
||||
mSwl.setRefreshing(false);
|
||||
}
|
||||
});
|
||||
}
|
||||
@Override
|
||||
public void onDestroy() {
|
||||
super.onDestroy();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 列表有5种类型 1.分配 2.回收 3.成交 4.被抢 5进店
|
||||
*/
|
||||
@@ -13,7 +13,7 @@ import android.widget.TextView;
|
||||
import com.chad.library.adapter.base.BaseQuickAdapter;
|
||||
import com.fenghoo.seven.R;
|
||||
import com.fenghoo.seven.base.BaseActivity;
|
||||
import com.fenghoo.seven.main.entity.Savaselect;
|
||||
import com.fenghoo.seven.main.my.entity.Savaselect;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -136,8 +136,6 @@ public abstract class MoActivity extends BaseActivity {
|
||||
markingtwoAdapter.loadMoreComplete();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public abstract void requestData();
|
||||
|
||||
public void getAdpter(BaseQuickAdapter markingtwoAdapter){
|
||||
@@ -146,6 +144,5 @@ public abstract class MoActivity extends BaseActivity {
|
||||
@Override
|
||||
public void onDestroy() {
|
||||
super.onDestroy();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,9 +7,11 @@ import com.fenghoo.seven.R;
|
||||
import com.fenghoo.seven.main.find.adapter.StyleAdapter;
|
||||
import com.fenghoo.seven.main.find.entity.StyleBean;
|
||||
import com.fenghoo.seven.main.kehu.Bean.FirstEvent;
|
||||
import com.fenghoo.seven.okgonet.HttpConstants;
|
||||
import com.fenghoo.seven.okgonet.NetApi;
|
||||
import com.fenghoo.seven.okgonet.Observer;
|
||||
import com.fenghoo.seven.widget.TitleBar;
|
||||
import com.lzy.okgo.model.HttpParams;
|
||||
import com.lzy.okgo.model.Response;
|
||||
|
||||
import java.util.List;
|
||||
@@ -51,7 +53,8 @@ public class StyleActivity extends MoActivity {
|
||||
|
||||
@Override
|
||||
public void requestData() {
|
||||
new NetApi().style().subscribe(new Observer<Response>() {
|
||||
final HttpParams paramsPost = new HttpParams();
|
||||
new NetApi().getPostData(paramsPost, HttpConstants.URi_device_AppCustomer_style).subscribe(new Observer<Response>() {
|
||||
@Override
|
||||
public void onNext(Response response) {
|
||||
String body = (String) response.body();
|
||||
|
||||
@@ -6,7 +6,7 @@ import android.widget.TextView;
|
||||
import com.chad.library.adapter.base.BaseQuickAdapter;
|
||||
import com.chad.library.adapter.base.BaseViewHolder;
|
||||
import com.fenghoo.seven.R;
|
||||
import com.fenghoo.seven.main.entity.XikeInfoBean;
|
||||
import com.fenghoo.seven.main.my.entity.XikeInfoBean;
|
||||
import com.fenghoo.seven.utils.WidgetTools;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -9,8 +9,6 @@ import android.widget.TextView;
|
||||
import com.chad.library.adapter.base.BaseQuickAdapter;
|
||||
import com.chad.library.adapter.base.BaseViewHolder;
|
||||
import com.fenghoo.seven.R;
|
||||
import com.fenghoo.seven.main.entity.XikeInfoBean;
|
||||
import com.fenghoo.seven.main.kehu.Bean.CustomerListBean;
|
||||
import com.fenghoo.seven.main.kehu.Bean.orderListBean;
|
||||
import com.fenghoo.seven.utils.GlideTools;
|
||||
import com.fenghoo.seven.utils.WidgetTools;
|
||||
|
||||
@@ -19,6 +19,7 @@ import com.chad.library.adapter.base.BaseViewHolder;
|
||||
import com.fenghoo.seven.JsonUtils;
|
||||
import com.fenghoo.seven.R;
|
||||
import com.fenghoo.seven.base.BaseBean;
|
||||
import com.fenghoo.seven.main.find.entity.SixEvent;
|
||||
import com.fenghoo.seven.main.find.entity.ThreeEvent;
|
||||
import com.fenghoo.seven.main.kehu.Bean.CustomerListBean;
|
||||
import com.fenghoo.seven.main.kehu.Bean.FirstEvent;
|
||||
@@ -34,6 +35,7 @@ import com.fenghoo.seven.utils.AbImageUtil;
|
||||
import com.fenghoo.seven.utils.AbStrUtil;
|
||||
import com.fenghoo.seven.utils.GlideTools;
|
||||
import com.fenghoo.seven.utils.ImageUtils;
|
||||
import com.fenghoo.seven.utils.PhonenNumUtil;
|
||||
import com.fenghoo.seven.utils.ToastUtils;
|
||||
import com.fenghoo.seven.utils.WidgetTools;
|
||||
import com.fenghoo.seven.utils.checkVersionsUtils.ProfileSpUtils;
|
||||
@@ -205,6 +207,11 @@ public class AddCusFragment extends MobanFragment implements View.OnClickListene
|
||||
ToastUtils.showToast(mContext, "请输入客户电话");
|
||||
return;
|
||||
}
|
||||
boolean mobile = PhonenNumUtil.isMobile(addCustomerBean.getPhone());
|
||||
if (!mobile) {
|
||||
ToastUtils.showToast(mContext, "请输入正确的电话号码");
|
||||
return;
|
||||
}
|
||||
// if( AbStrUtil.isEmpty(addCustomerBean.getWechat())){
|
||||
// ToastUtils.showToast(mContext, "请输入客户微信");
|
||||
// return;
|
||||
@@ -231,6 +238,8 @@ public class AddCusFragment extends MobanFragment implements View.OnClickListene
|
||||
if(result.getSuccess()==0){
|
||||
//通知客户列表刷新数据
|
||||
EventBus.getDefault().post(new ThreeEvent(pagetype,search));
|
||||
//通知会话页面添加客户是否成功
|
||||
EventBus.getDefault().post(new SixEvent("0"));
|
||||
getActivity().finish();
|
||||
}else {
|
||||
String msg = result.getMsg();
|
||||
|
||||
@@ -70,7 +70,6 @@ public class CustomerFragment extends MobanFragment {
|
||||
new BaseTipsDialog().showDownloadDialog(getActivity(), "确认删除该客户吗?", "确定", new BaseTipsDialog.ClickListener() {
|
||||
@Override
|
||||
public void confirm() {
|
||||
//Toast.makeText(getActivity(), "还没调接口", Toast.LENGTH_SHORT).show();
|
||||
deleteCus(item.getCustomer_id());
|
||||
}
|
||||
|
||||
@@ -141,10 +140,10 @@ public class CustomerFragment extends MobanFragment {
|
||||
Log.e("刷新页面==",pagetype);
|
||||
Log.d("客户调拨--","刷新列表页面");
|
||||
if(pagetype.equals("0")){
|
||||
|
||||
search = event.getSearch();
|
||||
IS_LOADED=false;
|
||||
sendMessage();
|
||||
// IS_LOADED=false;
|
||||
// sendMessage();
|
||||
newrefresh();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -210,8 +209,7 @@ public class CustomerFragment extends MobanFragment {
|
||||
String body = (String) response.body();
|
||||
BaseBean.ResultBean result = JsonUtils.fromJson(body, BaseBean.class).getResult();
|
||||
if(result.getSuccess()==0){
|
||||
requestData();
|
||||
ToastUtils.showToast(getActivity(),"执行了刷新方法");
|
||||
newrefresh();
|
||||
}else {
|
||||
ToastUtils.showToast(getActivity(),result.getMsg());
|
||||
}
|
||||
|
||||
@@ -64,8 +64,9 @@ public class DealFragment extends MobanFragment {
|
||||
Log.e("刷新页面==",pagetype);
|
||||
if(pagetype.equals("2")){
|
||||
search = event.getSearch();
|
||||
IS_LOADED=false;
|
||||
sendMessage();
|
||||
// IS_LOADED=false;
|
||||
// sendMessage();
|
||||
newrefresh();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -109,12 +110,6 @@ public class DealFragment extends MobanFragment {
|
||||
mSwl.setRefreshing(false);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
@Override
|
||||
public void onDestroy() {
|
||||
super.onDestroy();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -63,8 +63,9 @@ public class DistriFragment extends MobanFragment {
|
||||
Log.e("刷新页面==",pagetype);
|
||||
if(pagetype.equals("1")){
|
||||
search = event.getSearch();
|
||||
IS_LOADED=false;
|
||||
sendMessage();
|
||||
// IS_LOADED=false;
|
||||
// sendMessage();
|
||||
newrefresh();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,14 +8,11 @@ import android.util.Log;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.RelativeLayout;
|
||||
import android.widget.TextView;
|
||||
import android.widget.Toast;
|
||||
|
||||
import com.chad.library.adapter.base.BaseQuickAdapter;
|
||||
import com.fenghoo.seven.R;
|
||||
import com.fenghoo.seven.base.BaseFragment;
|
||||
import com.fenghoo.seven.main.entity.Savaselect;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -165,4 +162,23 @@ public abstract class MobanFragment extends BaseFragment {
|
||||
EventBus.getDefault().unregister(this);
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 列表刷新的方法(不用new适配器)
|
||||
* @param
|
||||
* @return
|
||||
*/
|
||||
public void newrefresh(){
|
||||
mNextRequestPage=1;
|
||||
requestData();
|
||||
}
|
||||
/**
|
||||
* @description 列表刷新的方法(new适配器)
|
||||
* @param
|
||||
* @return
|
||||
*/
|
||||
public void newrefreshtwo(){
|
||||
IS_LOADED=false;
|
||||
sendMessage();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ import android.widget.RelativeLayout;
|
||||
import android.widget.TextView;
|
||||
|
||||
import com.fenghoo.seven.R;
|
||||
import com.fenghoo.seven.main.entity.Savaselect;
|
||||
import com.fenghoo.seven.main.my.entity.Savaselect;
|
||||
import com.fenghoo.seven.main.kehu.activity.ShowAty;
|
||||
import com.fenghoo.seven.test.BaseFragment;
|
||||
import com.google.android.material.tabs.TabLayout;
|
||||
@@ -25,7 +25,6 @@ import androidx.fragment.app.Fragment;
|
||||
import androidx.fragment.app.FragmentManager;
|
||||
import androidx.fragment.app.FragmentPagerAdapter;
|
||||
import androidx.viewpager.widget.ViewPager;
|
||||
import de.greenrobot.event.EventBus;
|
||||
|
||||
/**
|
||||
* 功能:客户列表
|
||||
@@ -161,7 +160,7 @@ public class TraceFragment extends BaseFragment implements View.OnClickListener
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
//进入添加客户和完善信息
|
||||
ShowAty.AddCustDialogActivity(getActivity(),"","","","");
|
||||
ShowAty.AddCustDialogActivity(getActivity(),"","1","","");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -9,8 +9,8 @@ import android.widget.TextView;
|
||||
import com.fenghoo.seven.R;
|
||||
import com.fenghoo.seven.base.BaseTreeFragment;
|
||||
import com.fenghoo.seven.dialog.BaseTipsDialog;
|
||||
import com.fenghoo.seven.main.Fragment.mvp.contract.MyContract;
|
||||
import com.fenghoo.seven.main.Fragment.mvp.presenter.MyPresenterImpl;
|
||||
import com.fenghoo.seven.main.my.fragment.mvp.contract.MyContract;
|
||||
import com.fenghoo.seven.main.my.fragment.mvp.presenter.MyPresenterImpl;
|
||||
import com.fenghoo.seven.main.activity.LoginPasswordActivity;
|
||||
import com.fenghoo.seven.main.activity.Main2Activity;
|
||||
import com.fenghoo.seven.main.my.activity.PersonalProfileActivity;
|
||||
@@ -18,7 +18,6 @@ import com.fenghoo.seven.main.my.entity.loginInfoBean;
|
||||
import com.fenghoo.seven.utils.GlideTools;
|
||||
import com.fenghoo.seven.utils.ToolsUtils;
|
||||
import com.fenghoo.seven.utils.checkVersionsUtils.ProfileSpUtils;
|
||||
import com.fenghoo.seven.view.webview.WebActivitytwo;
|
||||
import com.fenghoo.seven.view.webview.XfiveWebActivity;
|
||||
import com.fenghoo.seven.widget.CircleImageView;
|
||||
import com.fenghoo.seven.widget.ItemView;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.fenghoo.seven.main.adapter;
|
||||
package com.fenghoo.seven.main.my.adapter;
|
||||
|
||||
import android.content.Context;
|
||||
import android.view.View;
|
||||
@@ -1,12 +1,12 @@
|
||||
package com.fenghoo.seven.main.adapter.mine;
|
||||
package com.fenghoo.seven.main.my.adapter;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import com.chad.library.adapter.base.BaseQuickAdapter;
|
||||
import com.chad.library.adapter.base.BaseViewHolder;
|
||||
import com.fenghoo.seven.R;
|
||||
import com.fenghoo.seven.main.entity.mine.InboundHistoryResBean;
|
||||
import com.fenghoo.seven.main.entity.mine.MessageNoticeResBean;
|
||||
import com.fenghoo.seven.main.my.entity.InboundHistoryResBean;
|
||||
import com.fenghoo.seven.main.my.entity.MessageNoticeResBean;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
package com.fenghoo.seven.main.adapter.mine;
|
||||
package com.fenghoo.seven.main.my.adapter;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import com.chad.library.adapter.base.BaseQuickAdapter;
|
||||
import com.chad.library.adapter.base.BaseViewHolder;
|
||||
import com.fenghoo.seven.R;
|
||||
import com.fenghoo.seven.main.entity.mine.MessageNoticeResBean;
|
||||
import com.fenghoo.seven.main.my.entity.MessageNoticeResBean;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.fenghoo.seven.main.adapter.mine;
|
||||
package com.fenghoo.seven.main.my.adapter;
|
||||
|
||||
import android.content.Context;
|
||||
import android.widget.TextView;
|
||||
@@ -6,7 +6,7 @@ import android.widget.TextView;
|
||||
import com.chad.library.adapter.base.BaseQuickAdapter;
|
||||
import com.chad.library.adapter.base.BaseViewHolder;
|
||||
import com.fenghoo.seven.R;
|
||||
import com.fenghoo.seven.main.entity.XikeInfoBean;
|
||||
import com.fenghoo.seven.main.my.entity.XikeInfoBean;
|
||||
import com.fenghoo.seven.utils.WidgetTools;
|
||||
|
||||
import java.util.List;
|
||||
@@ -0,0 +1,4 @@
|
||||
package com.fenghoo.seven.main.my.entity;
|
||||
|
||||
public class InboundHistoryResBean {
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package com.fenghoo.seven.main.my.entity;
|
||||
|
||||
|
||||
public class MessageNoticeResBean {
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package com.fenghoo.seven.main.my.entity;
|
||||
|
||||
public class OutboundHistoryResBean {
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.fenghoo.seven.main.entity;
|
||||
package com.fenghoo.seven.main.my.entity;
|
||||
|
||||
public class Savaselect {
|
||||
private String serchuid="";
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.fenghoo.seven.main.entity;
|
||||
package com.fenghoo.seven.main.my.entity;
|
||||
|
||||
public class SendSmsBean {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.fenghoo.seven.main.entity.mine;
|
||||
package com.fenghoo.seven.main.my.entity;
|
||||
|
||||
/**
|
||||
* WeChatLoginEntity
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.fenghoo.seven.main.entity.mine;
|
||||
package com.fenghoo.seven.main.my.entity;
|
||||
|
||||
/**
|
||||
* WeChatLoginResultEntity
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.fenghoo.seven.main.entity;
|
||||
package com.fenghoo.seven.main.my.entity;
|
||||
|
||||
import com.fenghoo.seven.test.BaseModel;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.fenghoo.seven.main.Fragment;
|
||||
package com.fenghoo.seven.main.my.fragment;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.os.Bundle;
|
||||
@@ -14,7 +14,7 @@ import android.widget.TextView;
|
||||
import com.chad.library.adapter.base.BaseQuickAdapter;
|
||||
import com.fenghoo.seven.R;
|
||||
import com.fenghoo.seven.base.BaseFragment;
|
||||
import com.fenghoo.seven.main.entity.Savaselect;
|
||||
import com.fenghoo.seven.main.my.entity.Savaselect;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.fenghoo.seven.main.Fragment;
|
||||
package com.fenghoo.seven.main.my.fragment;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.util.Log;
|
||||
@@ -6,13 +6,9 @@ import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.TextView;
|
||||
|
||||
import com.fenghoo.seven.JsonUtils;
|
||||
import com.fenghoo.seven.R;
|
||||
import com.fenghoo.seven.main.adapter.mine.XikeInfoAdapter;
|
||||
import com.fenghoo.seven.main.entity.XikeInfoBean;
|
||||
import com.fenghoo.seven.okgonet.NetApi;
|
||||
import com.fenghoo.seven.okgonet.Observer;
|
||||
import com.lzy.okgo.model.Response;
|
||||
import com.fenghoo.seven.main.my.adapter.XikeInfoAdapter;
|
||||
import com.fenghoo.seven.main.my.entity.XikeInfoBean;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@@ -98,53 +94,6 @@ public class XikeInfoFragment extends MoFragment {
|
||||
|
||||
@Override
|
||||
public void requestData() {
|
||||
// new NetApi().xikeInfo("b886798bdce09746a787651013f2c6e6").subscribe(new Observer<Response>() {
|
||||
// @Override
|
||||
// public void onNext(Response response) {
|
||||
// String body = (String) response.body();
|
||||
// XikeInfoBean.ResultBean esdv = JsonUtils.fromJson(body, XikeInfoBean.class).getResult();
|
||||
// mSwl.setRefreshing(false);
|
||||
// if (esdv != null && String.valueOf(esdv.getSuccess()).equals("0")) {
|
||||
// xike = esdv.getXike();
|
||||
// // WidgetTools.setTextfive(xike_01, "", xike);
|
||||
// // List<XikeInfoBean.ResultBean.DataBean> data = esdv.getData();
|
||||
//
|
||||
//
|
||||
// List<XikeInfoBean.ResultBean.DataBean> data = new ArrayList<XikeInfoBean.ResultBean.DataBean>();
|
||||
// for (int i = 0; i < 20; i++)
|
||||
// {
|
||||
// XikeInfoBean.ResultBean.DataBean dataBean = new XikeInfoBean.ResultBean.DataBean();
|
||||
// dataBean.setTime("2020-07-01 12:00:00");
|
||||
// dataBean.setXike_num("+89.00");
|
||||
// dataBean.setXike_remark("收益账户转入");
|
||||
// data.add(dataBean);
|
||||
// }
|
||||
//
|
||||
// if (data.size() == 0) {
|
||||
// //markingtwoAdapter.setEmptyView(notDataView);
|
||||
// return;
|
||||
// }
|
||||
// if (mNextRequestPage == 1) {
|
||||
// setData(true, data);
|
||||
// } else {
|
||||
// setData(false, data);
|
||||
// }
|
||||
// } else {
|
||||
// setData(true, null);
|
||||
// markingtwoAdapter.setEmptyView(notDataView);
|
||||
// mSwl.setRefreshing(false);
|
||||
// }
|
||||
//
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void onError(Exception e) {
|
||||
// e.printStackTrace();
|
||||
// markingtwoAdapter.setEmptyView(errorView);
|
||||
// mSwl.setRefreshing(false);
|
||||
// }
|
||||
// });
|
||||
|
||||
List<XikeInfoBean.ResultBean.DataBean> data = new ArrayList<XikeInfoBean.ResultBean.DataBean>();
|
||||
for (int i = 0; i < 20; i++)
|
||||
{
|
||||
@@ -154,9 +103,7 @@ public class XikeInfoFragment extends MoFragment {
|
||||
dataBean.setXike_remark("收益账户转入");
|
||||
data.add(dataBean);
|
||||
}
|
||||
|
||||
if (data.size() == 0) {
|
||||
//markingtwoAdapter.setEmptyView(notDataView);
|
||||
return;
|
||||
}
|
||||
if (mNextRequestPage == 1) {
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.fenghoo.seven.main.Fragment.mvp.contract;
|
||||
package com.fenghoo.seven.main.my.fragment.mvp.contract;
|
||||
|
||||
import com.fenghoo.seven.base.BaseTreeView;
|
||||
import com.fenghoo.seven.main.my.entity.loginInfoBean;
|
||||
@@ -1,6 +1,6 @@
|
||||
package com.fenghoo.seven.main.Fragment.mvp.model;
|
||||
package com.fenghoo.seven.main.my.fragment.mvp.model;
|
||||
|
||||
import com.fenghoo.seven.main.Fragment.mvp.contract.MyContract;
|
||||
import com.fenghoo.seven.main.my.fragment.mvp.contract.MyContract;
|
||||
import com.fenghoo.seven.main.my.entity.loginInfoBean;
|
||||
import com.fenghoo.seven.network.ApiCallBack;
|
||||
import com.fenghoo.seven.network.http.ApiUtils;
|
||||
@@ -1,7 +1,7 @@
|
||||
package com.fenghoo.seven.main.Fragment.mvp.presenter;
|
||||
package com.fenghoo.seven.main.my.fragment.mvp.presenter;
|
||||
|
||||
import com.fenghoo.seven.main.Fragment.mvp.contract.MyContract;
|
||||
import com.fenghoo.seven.main.Fragment.mvp.model.MyModelImpl;
|
||||
import com.fenghoo.seven.main.my.fragment.mvp.contract.MyContract;
|
||||
import com.fenghoo.seven.main.my.fragment.mvp.model.MyModelImpl;
|
||||
import com.fenghoo.seven.main.my.entity.loginInfoBean;
|
||||
import com.fenghoo.seven.network.ApiCallBack;
|
||||
import com.hannesdorfmann.mosby3.mvp.MvpBasePresenter;
|
||||
@@ -1,7 +1,7 @@
|
||||
package com.fenghoo.seven.network;
|
||||
|
||||
import com.fenghoo.seven.main.entity.mine.WeChatLoginEntity;
|
||||
import com.fenghoo.seven.main.entity.mine.WeChatLoginResultEntity;
|
||||
import com.fenghoo.seven.main.my.entity.WeChatLoginEntity;
|
||||
import com.fenghoo.seven.main.my.entity.WeChatLoginResultEntity;
|
||||
|
||||
import io.reactivex.Observable;
|
||||
import retrofit2.http.GET;
|
||||
|
||||
@@ -20,11 +20,6 @@ public class HttpConstants {
|
||||
* 七月七
|
||||
*/
|
||||
|
||||
/**
|
||||
* 惜客指数详情
|
||||
*/
|
||||
public static String URi_device_DevPerManager_xikeInfo = URiBase + "/device/DevPerManager/xikeInfo";
|
||||
|
||||
/**
|
||||
* 分配列表
|
||||
*/
|
||||
@@ -49,11 +44,6 @@ public class HttpConstants {
|
||||
*/
|
||||
public static String URi_device_AppCustomer_customerDetail = URiBase + "/device/AppCustomer/customerDetail";
|
||||
|
||||
/**
|
||||
* 确认分配
|
||||
*/
|
||||
public static String URi_device_AppCustomer_sureFP = URiBase + "/device/AppCustomer/sureFP";
|
||||
|
||||
/**
|
||||
* 行业
|
||||
*/
|
||||
|
||||
@@ -15,9 +15,6 @@ import io.reactivex.schedulers.Schedulers;
|
||||
|
||||
public class NetApi {
|
||||
|
||||
// final HttpParams paramsPost = new HttpParams();
|
||||
// paramsPost.put("customer_id", customer_id);
|
||||
// paramsPost.put("industry_id", industry_id);
|
||||
/**
|
||||
* @description 简单的封装OkGo
|
||||
*/
|
||||
@@ -60,315 +57,6 @@ public class NetApi {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 惜客指数详情
|
||||
*/
|
||||
public Observable<Response> xikeInfo(final String uid) {
|
||||
|
||||
return new Observable<Response>() {
|
||||
@Override
|
||||
public void subscribe(final Observer<Response> observer) {
|
||||
|
||||
OkGo.<String>post(HttpConstants.URi_device_DevPerManager_xikeInfo)//
|
||||
.params("uid", uid)
|
||||
.converter(new StringConvert())//
|
||||
.cacheMode(CacheMode.NO_CACHE) //无缓存模式 CacheMode.NO_CACHE
|
||||
.adapt(new ObservableResponse<String>())//
|
||||
.subscribeOn(Schedulers.io())//
|
||||
.observeOn(AndroidSchedulers.mainThread())//
|
||||
.subscribe(new io.reactivex.Observer<Response<String>>() {
|
||||
|
||||
@Override
|
||||
public void onSubscribe(@NonNull Disposable d) {
|
||||
// addDisposable(d);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onNext(@NonNull Response<String> response) {
|
||||
observer.onNext(response);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(@NonNull Throwable e) {
|
||||
e.printStackTrace();
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onComplete() {
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 客户列表
|
||||
*/
|
||||
public Observable<Response> customerList(final String uid, final String search) {
|
||||
|
||||
return new Observable<Response>() {
|
||||
@Override
|
||||
public void subscribe(final Observer<Response> observer) {
|
||||
|
||||
OkGo.<String>post(HttpConstants.URi_device_AppCustomer_customerList)//
|
||||
.params("uid", uid)
|
||||
.params("search", search)
|
||||
.converter(new StringConvert())//
|
||||
.cacheMode(CacheMode.NO_CACHE) //无缓存模式 CacheMode.NO_CACHE
|
||||
.adapt(new ObservableResponse<String>())//
|
||||
.subscribeOn(Schedulers.io())//
|
||||
.observeOn(AndroidSchedulers.mainThread())//
|
||||
.subscribe(new io.reactivex.Observer<Response<String>>() {
|
||||
|
||||
@Override
|
||||
public void onSubscribe(@NonNull Disposable d) {
|
||||
// addDisposable(d);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onNext(@NonNull Response<String> response) {
|
||||
observer.onNext(response);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(@NonNull Throwable e) {
|
||||
e.printStackTrace();
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onComplete() {
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 客户分配
|
||||
*/
|
||||
public Observable<Response> customerFPList(final String uid) {
|
||||
|
||||
return new Observable<Response>() {
|
||||
@Override
|
||||
public void subscribe(final Observer<Response> observer) {
|
||||
|
||||
OkGo.<String>post(HttpConstants.URi_device_AppCustomer_customerFPList)//
|
||||
.params("uid", uid)
|
||||
.converter(new StringConvert())//
|
||||
.cacheMode(CacheMode.NO_CACHE) //无缓存模式 CacheMode.NO_CACHE
|
||||
.adapt(new ObservableResponse<String>())//
|
||||
.subscribeOn(Schedulers.io())//
|
||||
.observeOn(AndroidSchedulers.mainThread())//
|
||||
.subscribe(new io.reactivex.Observer<Response<String>>() {
|
||||
|
||||
@Override
|
||||
public void onSubscribe(@NonNull Disposable d) {
|
||||
// addDisposable(d);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onNext(@NonNull Response<String> response) {
|
||||
observer.onNext(response);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(@NonNull Throwable e) {
|
||||
e.printStackTrace();
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onComplete() {
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 客户详情
|
||||
*/
|
||||
public Observable<Response> customerDetail(final String customer_id) {
|
||||
|
||||
return new Observable<Response>() {
|
||||
@Override
|
||||
public void subscribe(final Observer<Response> observer) {
|
||||
|
||||
OkGo.<String>post(HttpConstants.URi_device_AppCustomer_customerDetail)//
|
||||
.params("customer_id", customer_id)
|
||||
.converter(new StringConvert())//
|
||||
.cacheMode(CacheMode.NO_CACHE) //无缓存模式 CacheMode.NO_CACHE
|
||||
.adapt(new ObservableResponse<String>())//
|
||||
.subscribeOn(Schedulers.io())//
|
||||
.observeOn(AndroidSchedulers.mainThread())//
|
||||
.subscribe(new io.reactivex.Observer<Response<String>>() {
|
||||
|
||||
@Override
|
||||
public void onSubscribe(@NonNull Disposable d) {
|
||||
// addDisposable(d);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onNext(@NonNull Response<String> response) {
|
||||
observer.onNext(response);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(@NonNull Throwable e) {
|
||||
e.printStackTrace();
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onComplete() {
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 确认分配device/AppCustomer/sureFP
|
||||
*/
|
||||
public Observable<Response> sureFP(final String uid, final String content) {
|
||||
|
||||
return new Observable<Response>() {
|
||||
@Override
|
||||
public void subscribe(final Observer<Response> observer) {
|
||||
|
||||
OkGo.<String>post(HttpConstants.URi_device_AppCustomer_sureFP)//
|
||||
.params("uid", uid)
|
||||
.params("content", content)
|
||||
.converter(new StringConvert())//
|
||||
.cacheMode(CacheMode.NO_CACHE) //无缓存模式 CacheMode.NO_CACHE
|
||||
.adapt(new ObservableResponse<String>())//
|
||||
.subscribeOn(Schedulers.io())//
|
||||
.observeOn(AndroidSchedulers.mainThread())//
|
||||
.subscribe(new io.reactivex.Observer<Response<String>>() {
|
||||
|
||||
@Override
|
||||
public void onSubscribe(@NonNull Disposable d) {
|
||||
// addDisposable(d);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onNext(@NonNull Response<String> response) {
|
||||
observer.onNext(response);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(@NonNull Throwable e) {
|
||||
e.printStackTrace();
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onComplete() {
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 行业
|
||||
*/
|
||||
public Observable<Response> industry() {
|
||||
|
||||
return new Observable<Response>() {
|
||||
@Override
|
||||
public void subscribe(final Observer<Response> observer) {
|
||||
|
||||
OkGo.<String>post(HttpConstants.URi_device_AppCustomer_industry)//
|
||||
.converter(new StringConvert())//
|
||||
.cacheMode(CacheMode.NO_CACHE) //无缓存模式 CacheMode.NO_CACHE
|
||||
.adapt(new ObservableResponse<String>())//
|
||||
.subscribeOn(Schedulers.io())//
|
||||
.observeOn(AndroidSchedulers.mainThread())//
|
||||
.subscribe(new io.reactivex.Observer<Response<String>>() {
|
||||
|
||||
@Override
|
||||
public void onSubscribe(@NonNull Disposable d) {
|
||||
// addDisposable(d);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onNext(@NonNull Response<String> response) {
|
||||
observer.onNext(response);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(@NonNull Throwable e) {
|
||||
e.printStackTrace();
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onComplete() {
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* style
|
||||
*/
|
||||
public Observable<Response> style() {
|
||||
|
||||
return new Observable<Response>() {
|
||||
@Override
|
||||
public void subscribe(final Observer<Response> observer) {
|
||||
|
||||
OkGo.<String>post(HttpConstants.URi_device_AppCustomer_style)
|
||||
.converter(new StringConvert())//
|
||||
.cacheMode(CacheMode.NO_CACHE) //无缓存模式 CacheMode.NO_CACHE
|
||||
.adapt(new ObservableResponse<String>())//
|
||||
.subscribeOn(Schedulers.io())//
|
||||
.observeOn(AndroidSchedulers.mainThread())//
|
||||
.subscribe(new io.reactivex.Observer<Response<String>>() {
|
||||
|
||||
@Override
|
||||
public void onSubscribe(@NonNull Disposable d) {
|
||||
// addDisposable(d);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onNext(@NonNull Response<String> response) {
|
||||
observer.onNext(response);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(@NonNull Throwable e) {
|
||||
e.printStackTrace();
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onComplete() {
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
public Observable<Response> addCustomer(final String uid, final String headimg, final String name, final String phone, final String wechat, final String address, final String decoration, final String style_id, final String budget, final String source, final String customer_id) {
|
||||
|
||||
|
||||
@@ -13,8 +13,8 @@ import android.os.Bundle;
|
||||
import android.widget.Toast;
|
||||
|
||||
import com.fenghoo.seven.main.my.entity.loginInfoBean;
|
||||
import com.fenghoo.seven.main.entity.mine.WeChatLoginEntity;
|
||||
import com.fenghoo.seven.main.entity.mine.WeChatLoginResultEntity;
|
||||
import com.fenghoo.seven.main.my.entity.WeChatLoginEntity;
|
||||
import com.fenghoo.seven.main.my.entity.WeChatLoginResultEntity;
|
||||
import com.fenghoo.seven.network.ApiUtils;
|
||||
import com.fenghoo.seven.network.LifeTreeAPIException;
|
||||
import com.fenghoo.seven.network.http.ResponseBean;
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context="com.fenghoo.seven.main.kehu.activity.FpOrderInfoActivitytwo">
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="109dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:orientation="vertical">
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:layout_marginTop="15dp"
|
||||
android:layout_marginBottom="15dp"
|
||||
android:layout_marginLeft="20dp"
|
||||
android:gravity="center"
|
||||
android:autoLink = "web"
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
android:ellipsize="end"
|
||||
android:gravity="center"
|
||||
android:lines="1"
|
||||
android:maxLength="11"
|
||||
android:maxLength="20"
|
||||
android:textColor="@color/colorBlack"
|
||||
android:textSize="18sp"
|
||||
tools:text="标题"/>
|
||||
|
||||
Reference in New Issue
Block a user