Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
android
/
dayu
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
6faa6c8a
authored
May 26, 2018
by
罗翻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增多任务
parent
493772ab
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
125 additions
and
78 deletions
app/release/app-release.apk
app/release/output.json
baseSDK/src/main/java/com/dayu/common/Constants.java
orderCenter/src/main/java/com/dayu/order/presenter/multiprocessorder/MultiProcessOrderPresenter.java
orderCenter/src/main/java/com/dayu/order/presenter/serverlist/ServerListContract.java
orderCenter/src/main/java/com/dayu/order/presenter/serverlist/ServerListPresenter.java
orderCenter/src/main/java/com/dayu/order/ui/activity/OrderDetailsActivity.java
orderCenter/src/main/java/com/dayu/order/ui/activity/ServerListActivity.java
orderCenter/src/main/java/com/dayu/order/ui/adapter/OrderAdapter.java
orderCenter/src/main/java/com/dayu/order/ui/adapter/OrderFourTabAdapter.java
orderCenter/src/main/java/com/dayu/order/ui/adapter/OrderThreeTabAdapter.java
orderCenter/src/main/res/layout/activity_server_list_recycle.xml
orderCenter/src/main/res/layout/fragment_multi_detail.xml
orderCenter/src/main/res/layout/fragment_order_cancle_item.xml
orderCenter/src/main/res/layout/fragment_order_error_item.xml
orderCenter/src/main/res/layout/recycler_server_info_header.xml
userCenter/src/main/java/com/dayu/usercenter/presenter/login/LoginPresenter.java
app/release/app-release.apk
View file @
6faa6c8a
No preview for this file type
app/release/output.json
View file @
6faa6c8a
[{
"outputType"
:{
"type"
:
"APK"
},
"apkInfo"
:{
"type"
:
"MAIN"
,
"splits"
:[],
"versionCode"
:
10
},
"path"
:
"app-release.apk"
,
"properties"
:{
"packageId"
:
"com.dayu.bigfish"
,
"split"
:
""
,
"minSdkVersion"
:
"16"
}}]
\ No newline at end of file
[{
"outputType"
:{
"type"
:
"APK"
},
"apkInfo"
:{
"type"
:
"MAIN"
,
"splits"
:[],
"versionCode"
:
10
},
"path"
:
"app-release.apk"
,
"properties"
:{
"packageId"
:
"com.dayu.bigfis"
,
"split"
:
""
,
"minSdkVersion"
:
"16"
}}]
\ No newline at end of file
baseSDK/src/main/java/com/dayu/common/Constants.java
View file @
6faa6c8a
...
...
@@ -17,8 +17,8 @@ public class Constants {
public
static
final
String
BASE_URL
=
"http://47.94.101.239:3112"
;
public
final
static
String
UP_PHOTO
=
"/file/uploadMore?targetPath=test/sp/mobile/android/business/checkApply"
;
public
final
static
String
WEB_SOP
=
"http://47.94.101.239:9004/#/sop"
;
public
final
static
String
CHECK_MULTI_WEB_SOP
=
"http://
192.168.2.181:8080
/#/manyServiceResult"
;
public
final
static
String
MULTI_WEB_SOP
=
"http://
192.168.2.181:8080
/#/manySop"
;
public
final
static
String
CHECK_MULTI_WEB_SOP
=
"http://
47.94.101.239:9004
/#/manyServiceResult"
;
public
final
static
String
MULTI_WEB_SOP
=
"http://
47.94.101.239:9004
/#/manySop"
;
public
final
static
String
WEB_SOP_DETAIL
=
"http://47.94.101.239:9004/#/sopdetail"
;
public
final
static
String
WEB_ZHI_SHI
=
"http://47.94.101.239:9004/#/detail"
;
public
static
final
boolean
IS_DEBUG
=
true
;
...
...
@@ -45,6 +45,8 @@ public class Constants {
// public final static String WEB_SOP = "https://sop.kf.ai/#/sop";
// public final static String WEB_SOP_DETAIL = "https://sop.kf.ai/#/sopdetail";
// public final static String WEB_ZHI_SHI = "https://sop.kf.ai/#/detail";
// public final static String CHECK_MULTI_WEB_SOP = "http://192.168.2.181:8080/#/manyServiceResult";
// public final static String MULTI_WEB_SOP = "http://192.168.2.181:8080/#/manySop";
// public static final boolean IS_DEBUG = false;
/**
...
...
orderCenter/src/main/java/com/dayu/order/presenter/multiprocessorder/MultiProcessOrderPresenter.java
View file @
6faa6c8a
...
...
@@ -166,6 +166,8 @@ public class MultiProcessOrderPresenter extends MultiProcessOrderContract.Presen
commitOrder
(
list
);
}));
}
}
else
{
commitOrder
(
null
);
}
}
...
...
orderCenter/src/main/java/com/dayu/order/presenter/serverlist/ServerListContract.java
View file @
6faa6c8a
...
...
@@ -15,5 +15,7 @@ public interface ServerListContract {
abstract
class
Presenter
extends
BaseListPresenter
<
View
>
{
public
abstract
void
getServerList
();
public
abstract
void
dumpToProcess
();
}
}
orderCenter/src/main/java/com/dayu/order/presenter/serverlist/ServerListPresenter.java
View file @
6faa6c8a
package
com
.
dayu
.
order
.
presenter
.
serverlist
;
import
android.databinding.ObservableField
;
import
android.os.Bundle
;
import
com.dayu.common.Constants
;
import
com.dayu.order.api.OrderApiFactory
;
import
com.dayu.order.api.protocol.Spu
;
import
com.dayu.order.common.OrderConstant
;
import
com.dayu.order.ui.activity.MultipleProcessActivity
;
import
java.util.ArrayList
;
/**
* Created by luofan
...
...
@@ -49,6 +53,13 @@ public class ServerListPresenter extends ServerListContract.Presenter {
}
@Override
public
void
dumpToProcess
()
{
Bundle
bundle
=
new
Bundle
();
bundle
.
putParcelableArrayList
(
OrderConstant
.
SPUS
,(
ArrayList
<
Spu
>)
mDatas
.
get
());
mView
.
startActivity
(
MultipleProcessActivity
.
class
,
bundle
);
}
@Override
public
void
refresh
()
{
getServerList
();
}
...
...
orderCenter/src/main/java/com/dayu/order/ui/activity/OrderDetailsActivity.java
View file @
6faa6c8a
...
...
@@ -48,6 +48,7 @@ public class OrderDetailsActivity extends BaseActivity<OrderDetailPresenter, Act
@Override
public
void
setPresenter
()
{
getPackageName
();
}
@Override
...
...
orderCenter/src/main/java/com/dayu/order/ui/activity/ServerListActivity.java
View file @
6faa6c8a
...
...
@@ -68,6 +68,7 @@ public class ServerListActivity extends BaseActivity<ServerListPresenter, Activi
@Override
public
void
onResume
()
{
super
.
onResume
();
showDialog
();
mPresenter
.
getServerList
();
}
}
orderCenter/src/main/java/com/dayu/order/ui/adapter/OrderAdapter.java
View file @
6faa6c8a
...
...
@@ -359,9 +359,11 @@ public class OrderAdapter extends CoreAdapter<Order, FragmentOrderdoingItemBindi
if
(
order
.
getSpus
().
size
()
>
1
)
{
intent
=
new
Intent
(
mContext
,
ServerInfoActivity
.
class
);
bundle
.
putInt
(
Constants
.
ID
,
order
.
getId
());
}
else
{
}
else
if
(
order
.
getSpus
().
size
()
==
1
)
{
intent
=
new
Intent
(
mContext
,
ServerListActivity
.
class
);
bundle
.
putInt
(
Constants
.
ID
,
order
.
getSpus
().
get
(
0
).
getId
());
bundle
.
putInt
(
Constants
.
ID
,
order
.
getSpus
().
get
(
0
).
getId
());
}
else
{
return
;
}
intent
.
putExtra
(
Constants
.
BUNDLE
,
bundle
);
mContext
.
startActivity
(
intent
);
...
...
orderCenter/src/main/java/com/dayu/order/ui/adapter/OrderFourTabAdapter.java
View file @
6faa6c8a
...
...
@@ -6,7 +6,9 @@ import android.view.View;
import
com.dayu.base.ui.adapter.CoreAdapter
;
import
com.dayu.order.R
;
import
com.dayu.order.api.protocol.Order
;
import
com.dayu.order.api.protocol.Spu
;
import
com.dayu.order.databinding.FragmentOrderCancleItemBinding
;
import
com.dayu.utils.UIUtils
;
import
com.dayu.utils.UtilsDate
;
import
static
com
.
dayu
.
utils
.
UtilsDate
.
FORMAT_ONE
;
...
...
@@ -54,6 +56,27 @@ public class OrderFourTabAdapter extends CoreAdapter<Order, FragmentOrderCancleI
helper
.
itemTextDizhi
.
setText
(
item
.
getProvinceName
()
+
item
.
getCityName
()
+
item
.
getDistrictName
()
+
item
.
getAddress
());
helper
.
errorState
.
setText
(
mContext
.
getString
(
R
.
string
.
order_cancle
));
if
(
item
.
getCreatedSource
()
==
4
)
{
if
(
item
.
getSpus
().
size
()
<
1
)
{
return
;
}
helper
.
itemTextWeixiu
.
setText
(
item
.
getSpus
().
get
(
0
).
getProviderTypeName
());
helper
.
itemTextWeixiuLeixing
.
setText
(
item
.
getSpus
().
get
(
0
).
getKaSpuName
());
Spu
spu
=
item
.
getSpus
().
get
(
0
);
if
(
item
.
getSpus
().
size
()
>
1
)
{
String
str
=
UIUtils
.
getString
(
R
.
string
.
server_num
);
String
result
=
String
.
format
(
str
,
item
.
getSpus
().
size
());
helper
.
serverStyle
.
setText
(
result
);
}
else
{
String
str
=
UIUtils
.
getString
(
R
.
string
.
single_server_num
);
String
result
=
String
.
format
(
str
,
spu
.
getFinNum
(),
spu
.
getFinNum
());
helper
.
serverStyle
.
setText
(
result
);
}
helper
.
serverStyle
.
setVisibility
(
View
.
VISIBLE
);
}
else
{
helper
.
serverStyle
.
setVisibility
(
View
.
GONE
);
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
...
...
orderCenter/src/main/java/com/dayu/order/ui/adapter/OrderThreeTabAdapter.java
View file @
6faa6c8a
...
...
@@ -29,7 +29,7 @@ public class OrderThreeTabAdapter extends CoreAdapter<ErrorOrder, FragmentOrderE
@Override
protected
void
onBind
(
FragmentOrderErrorItemBinding
holder
,
ErrorOrder
item
,
int
position
)
{
super
.
onBind
(
holder
,
item
,
position
);
super
.
onBind
(
holder
,
item
,
position
);
initData
(
holder
,
item
);
}
...
...
@@ -56,9 +56,6 @@ public class OrderThreeTabAdapter extends CoreAdapter<ErrorOrder, FragmentOrderE
helper
.
itemTextWeixiuLeixing
.
setText
(
item
.
getCategoryName
());
helper
.
itemTextDizhi
.
setText
(
item
.
getProvinceName
()
+
item
.
getCityName
()
+
item
.
getDistrictName
()
+
item
.
getAddress
());
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
int
errorState
=
item
.
getExcptionCode
();
if
(
errorState
==
1
)
{
...
...
@@ -70,13 +67,18 @@ public class OrderThreeTabAdapter extends CoreAdapter<ErrorOrder, FragmentOrderE
}
else
if
(
errorState
==
4
)
{
helper
.
errorState
.
setText
(
mContext
.
getString
(
R
.
string
.
delivery_time_out
));
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
if
(
item
.
getCreatedSource
()
==
4
)
{
if
(
item
.
getSpus
().
size
()
<
1
)
{
return
;
}
helper
.
itemTextWeixiu
.
setText
(
item
.
getSpus
().
get
(
0
).
getProviderTypeName
());
helper
.
itemTextWeixiuLeixing
.
setText
(
item
.
getSpus
().
get
(
0
).
getKaSpuName
());
Spu
spu
=
item
.
getSpus
().
get
(
0
);
if
(
item
.
getSpus
().
size
()
>
1
)
{
String
str
=
UIUtils
.
getString
(
R
.
string
.
server_n
ame
);
String
str
=
UIUtils
.
getString
(
R
.
string
.
server_n
um
);
String
result
=
String
.
format
(
str
,
item
.
getSpus
().
size
());
helper
.
serverStyle
.
setText
(
result
);
}
else
{
...
...
@@ -84,8 +86,10 @@ public class OrderThreeTabAdapter extends CoreAdapter<ErrorOrder, FragmentOrderE
String
result
=
String
.
format
(
str
,
spu
.
getFinNum
(),
spu
.
getFinNum
());
helper
.
serverStyle
.
setText
(
result
);
}
helper
.
serverStyle
.
setVisibility
(
View
.
VISIBLE
);
}
else
{
helper
.
serverStyle
.
setVisibility
(
View
.
GONE
);
}
}
}
orderCenter/src/main/res/layout/activity_server_list_recycle.xml
View file @
6faa6c8a
...
...
@@ -46,6 +46,7 @@
android:background=
"#f5f5f5"
app:itemType=
"@layout/activity_server_list"
app:needCoreAdapter=
"true"
android:layout_marginBottom=
"50dp"
app:needFoot=
"false"
/>
</LinearLayout>
...
...
@@ -56,6 +57,7 @@
android:layout_alignParentBottom=
"true"
android:background=
'@{presenter.mCanProcess?@color/bg_button:@color/cl_selector_hui}'
android:clickable=
'@{presenter.mCanProcess?true:true}'
android:onClick=
"@{()->presenter.dumpToProcess()}"
android:gravity=
"center"
android:text=
"提交验收"
android:textColor=
"@color/white"
...
...
orderCenter/src/main/res/layout/fragment_multi_detail.xml
View file @
6faa6c8a
<?xml version="1.0" encoding="utf-8"?>
<layout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
>
<layout
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<data>
...
...
@@ -295,6 +294,8 @@
android:layout_marginLeft=
"19dp"
android:layout_marginTop=
"@dimen/dp_15"
android:layout_toRightOf=
"@+id/tv_address"
android:ellipsize=
"end"
android:maxLines=
"2"
android:text=
'@{item.provinceName+item.cityName+item.districtName+item.address}'
android:textColor=
"@color/cl_home_title_text_color"
android:textSize=
"14sp"
/>
...
...
orderCenter/src/main/res/layout/fragment_order_cancle_item.xml
View file @
6faa6c8a
<?xml version="1.0" encoding="utf-8"?>
<layout>
<layout
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<data>
<variable
name=
"item"
type=
"com.dayu.order.api.protocol.Order"
/>
</data>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"10dp"
android:layout_marginLeft=
"@dimen/dp_13.3"
android:layout_marginRight=
"@dimen/dp_13.3"
android:layout_marginTop=
"5dp"
android:background=
"@drawable/item_shape"
android:orientation=
"vertical"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
android:layout_marginBottom=
"@dimen/dp_13.3"
android:layout_weight=
"1"
android:orientation=
"horizontal"
>
android:background=
"@drawable/item_shape"
>
<LinearLayout
android:id=
"@+id/ll_left"
android:layout_width=
"wrap_content"
android:layout_height=
"match_parent"
android:layout_centerVertical=
"true"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
>
<TextView
...
...
@@ -35,7 +22,7 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"25.3dp"
android:layout_marginTop=
"@dimen/dp_16.7
"
android:layout_marginTop=
"10dp
"
android:text=
"@string/tv_home_tab_one_subscribe_time"
android:textColor=
"@color/cl_order_item_line_bg"
android:textSize=
"13.3sp"
...
...
@@ -61,24 +48,37 @@
android:textSize=
"@dimen/size_order_item_data_text"
android:typeface=
"@{@string/tv_fonts}"
/>
<TextView
android:id=
"@+id/error_state"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"right"
android:layout_marginBottom=
"10dp"
android:text=
"接单超时"
android:textColor=
"@color/cl_order_item_line_bg"
android:textSize=
"@dimen/size_login_hint_text"
android:visibility=
"visible"
/>
</LinearLayout>
<ImageView
android:id=
"@+id/item_line"
android:layout_width=
"@dimen/size_order_item_line_width"
android:layout_height=
"match_parent
"
android:layout_marginBottom=
"13.3dp
"
android:layout_height=
"80dp
"
android:layout_centerInParent=
"true
"
android:layout_marginLeft=
"10dp"
android:layout_marginTop=
"@dimen/dp_21.3
"
android:layout_toRightOf=
"@+id/ll_left
"
android:background=
"@color/cl_order_item_line_bg"
/>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"9.3dp"
android:layout_centerInParent=
"true"
android:layout_toRightOf=
"@id/item_line"
android:orientation=
"vertical"
>
<LinearLayout
android:id=
"@+id/ll_right"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
>
...
...
@@ -108,8 +108,8 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/dp_16.7"
android:text=
" - "
android:textColor=
"@color/cl_order_item_line_bg"
android:text=
" - "
android:textStyle=
"bold"
/>
<TextView
...
...
@@ -127,7 +127,7 @@
</LinearLayout>
<TextView
android:id=
"@+id/error_stat
e"
android:id=
"@+id/server_styl
e"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginRight=
"10dp"
...
...
@@ -141,10 +141,12 @@
android:id=
"@+id/item_text_dizhi"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_below=
"@+id/ll_right"
android:layout_marginBottom=
"13.3dp"
android:layout_marginLeft=
"@dimen/size_order_item_tool_ml"
android:layout_marginRight=
"40dp"
android:layout_marginTop=
"10dp"
android:layout_toRightOf=
"@id/item_line"
android:ellipsize=
"end"
android:maxLines=
"2"
android:text=
"@string/tv_order_item_gps_text"
...
...
@@ -152,8 +154,5 @@
android:textSize=
"@dimen/size_login_hint_text"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</RelativeLayout>
</layout>
\ No newline at end of file
orderCenter/src/main/res/layout/fragment_order_error_item.xml
View file @
6faa6c8a
<?xml version="1.0" encoding="utf-8"?>
<layout>
<layout
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<data>
<variable
name=
"item"
type=
"com.dayu.order.api.protocol.ErrorOrder"
/>
</data>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"10dp"
android:layout_marginLeft=
"@dimen/dp_13.3"
android:layout_marginRight=
"@dimen/dp_13.3"
android:layout_marginTop=
"5dp"
android:background=
"@drawable/item_shape"
android:orientation=
"vertical"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
android:layout_marginBottom=
"@dimen/dp_13.3"
android:layout_weight=
"1"
android:orientation=
"horizontal"
>
android:background=
"@drawable/item_shape"
>
<LinearLayout
android:id=
"@+id/ll_left"
android:layout_width=
"wrap_content"
android:layout_height=
"match_parent"
android:layout_centerVertical=
"true"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
>
<TextView
...
...
@@ -35,7 +22,7 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"25.3dp"
android:layout_marginTop=
"@dimen/dp_16.7
"
android:layout_marginTop=
"10dp
"
android:text=
"@string/tv_home_tab_one_subscribe_time"
android:textColor=
"#3a3a3a"
android:textSize=
"13.3sp"
...
...
@@ -65,10 +52,11 @@
android:id=
"@+id/error_state"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"right"
android:layout_marginBottom=
"10dp"
android:text=
"接单超时"
android:textColor=
"@color/cl_tab_read"
android:textSize=
"@dimen/size_login_hint_text"
android:text=
"服务超市"
android:layout_gravity=
"right"
android:visibility=
"visible"
/>
</LinearLayout>
...
...
@@ -76,18 +64,21 @@
<ImageView
android:id=
"@+id/item_line"
android:layout_width=
"@dimen/size_order_item_line_width"
android:layout_height=
"match_parent"
android:layout_height=
"80dp"
android:layout_centerInParent=
"true"
android:layout_marginLeft=
"10dp"
android:layout_marginTop=
"@dimen/dp_21.3
"
android:layout_toRightOf=
"@+id/ll_left
"
android:background=
"@color/cl_order_item_line_bg"
/>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"9.3dp"
android:layout_centerInParent=
"true"
android:layout_toRightOf=
"@id/item_line"
android:orientation=
"vertical"
>
<LinearLayout
android:id=
"@+id/ll_right"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
>
...
...
@@ -140,7 +131,7 @@
android:layout_height=
"wrap_content"
android:layout_marginRight=
"10dp"
android:layout_marginTop=
"@dimen/dp_16.7"
android:textColor=
"@color/cl_tab_read
"
android:textColor=
"@color/cl_tab_init
"
android:textSize=
"@dimen/size_login_hint_text"
android:visibility=
"visible"
/>
</LinearLayout>
...
...
@@ -149,10 +140,12 @@
android:id=
"@+id/item_text_dizhi"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_below=
"@+id/ll_right"
android:layout_marginBottom=
"13.3dp"
android:layout_marginLeft=
"@dimen/size_order_item_tool_ml"
android:layout_marginRight=
"40dp"
android:layout_marginTop=
"10dp"
android:layout_toRightOf=
"@id/item_line"
android:ellipsize=
"end"
android:maxLines=
"2"
android:text=
"@string/tv_order_item_gps_text"
...
...
@@ -160,8 +153,5 @@
android:textSize=
"@dimen/size_login_hint_text"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</RelativeLayout>
</layout>
\ No newline at end of file
orderCenter/src/main/res/layout/recycler_server_info_header.xml
View file @
6faa6c8a
...
...
@@ -6,6 +6,7 @@
<variable
name=
"item"
type=
"com.dayu.order.api.protocol.Order"
/>
<import
type=
"android.text.TextUtils"
/>
</data>
...
...
@@ -66,7 +67,7 @@
android:layout_alignParentRight=
"true"
android:layout_below=
"@+id/tv_type"
android:layout_marginTop=
"14dp"
android:text=
"@{item.customerName}"
android:text=
'@{!TextUtils.isEmpty(item.customerName)?item.customerMobile:@string/no_data}'
android:textColor=
"@color/tv_cl"
android:textSize=
"14sp"
/>
...
...
@@ -87,7 +88,7 @@
android:layout_alignParentRight=
"true"
android:layout_below=
"@+id/tv_name"
android:layout_marginTop=
"14dp"
android:text=
"@{item.customerMobile}"
android:text=
'@{!TextUtils.isEmpty(item.customerMobile)?item.customerMobile:@string/no_data}'
android:textColor=
"@color/tv_cl"
android:textSize=
"14sp"
/>
...
...
@@ -107,7 +108,7 @@
android:layout_alignParentRight=
"true"
android:layout_below=
"@+id/tv_mobile"
android:layout_marginTop=
"14dp"
android:text=
"@{item.customerTelphome}"
android:text=
'@{!TextUtils.isEmpty(item.customerTelphome)?item.customerMobile:@string/no_data}'
android:textColor=
"@color/tv_cl"
android:textSize=
"14sp"
/>
...
...
userCenter/src/main/java/com/dayu/usercenter/presenter/login/LoginPresenter.java
View file @
6faa6c8a
...
...
@@ -12,6 +12,8 @@ import com.dayu.usercenter.api.UserApiFactory;
import
com.dayu.usercenter.ui.activity.AgreementActivity
;
import
com.dayu.usercenter.ui.activity.IdentityCertificationActivity
;
import
com.dayu.utils.LogUtils
;
import
com.dayu.utils.ToastUtils
;
import
com.dayu.utils.UIUtils
;
import
com.dayu.utils.UserManager
;
import
com.dayu.utils.UtilsUserAccountMatcher
;
import
com.hyphenate.EMCallBack
;
...
...
@@ -79,6 +81,8 @@ public class LoginPresenter extends LoginContract.Presenter {
else
if
(
userInfo
.
getDetectStatus
()
==
2
||
userInfo
.
getDetectStatus
()
==
3
)
{
showLoginDialog
();
UserManager
.
getInstance
().
saveUser
(
userInfo
);
}
else
{
ToastUtils
.
showShortToast
(
UIUtils
.
getString
(
R
.
string
.
login_faile
));
}
}));
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment