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
5db0dd03
authored
Jan 29, 2018
by
罗翻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加备件列表,物流信息等页面
parent
24f6b543
Show whitespace changes
Inline
Side-by-side
Showing
30 changed files
with
134 additions
and
162 deletions
.idea/runConfigurations.xml
annotation_lib/build/libs/annotation_lib.jar
app/src/main/java/com/dayu/bigfish/Constants.java
app/src/main/java/com/dayu/bigfish/api/APIService.java
app/src/main/java/com/dayu/bigfish/base/BaseActivity.java
app/src/main/java/com/dayu/bigfish/base/BaseFragment.java
app/src/main/java/com/dayu/bigfish/bean/Order.java
app/src/main/java/com/dayu/bigfish/bean/OrderDetail.java
app/src/main/java/com/dayu/bigfish/presenter/logisticsinfo/LogisticsInfoPresenter.java
app/src/main/java/com/dayu/bigfish/presenter/processorder/ProcessOrderPresenter.java
app/src/main/java/com/dayu/bigfish/presenter/returnpart/ReturnPartPresenter.java
app/src/main/java/com/dayu/bigfish/presenter/serverinstruction/ServerInstructionContract.java
app/src/main/java/com/dayu/bigfish/presenter/serverinstruction/ServerInstructionPresenter.java
app/src/main/java/com/dayu/bigfish/presenter/subcribeTime/SubcribeTimePresenter.java
app/src/main/java/com/dayu/bigfish/ui/SopWebViewActivity.java
app/src/main/java/com/dayu/bigfish/ui/WebViewActivity.java
app/src/main/java/com/dayu/bigfish/ui/adapter/OrderAdapter.java
app/src/main/java/com/dayu/bigfish/ui/adapter/OrderPartAdapter.java
app/src/main/java/com/dayu/bigfish/ui/fragment/ReturnOrderPartFragment.java
app/src/main/java/com/dayu/bigfish/utils/SPUtils.java
app/src/main/res/drawable/btn_grey_react.xml
app/src/main/res/layout/activity_instrcution_layout.xml
app/src/main/res/layout/activity_logistics_info.xml
app/src/main/res/layout/activity_order_details.xml
app/src/main/res/layout/activity_return_part.xml
app/src/main/res/layout/fragment_order_part.xml
app/src/main/res/layout/item_apply_part_layout.xml
app/src/main/res/layout/item_order_instruction.xml
app/src/main/res/values/colors.xml
app/src/main/res/values/strings.xml
.idea/runConfigurations.xml
deleted
100755 → 0
View file @
24f6b543
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"RunConfigurationProducerService"
>
<option
name=
"ignoredProducers"
>
<set>
<option
value=
"org.jetbrains.plugins.gradle.execution.test.runner.AllInPackageGradleConfigurationProducer"
/>
<option
value=
"org.jetbrains.plugins.gradle.execution.test.runner.TestClassGradleConfigurationProducer"
/>
<option
value=
"org.jetbrains.plugins.gradle.execution.test.runner.TestMethodGradleConfigurationProducer"
/>
</set>
</option>
</component>
</project>
\ No newline at end of file
annotation_lib/build/libs/annotation_lib.jar
View file @
5db0dd03
No preview for this file type
app/src/main/java/com/dayu/bigfish/Constants.java
View file @
5db0dd03
...
@@ -24,6 +24,7 @@ public class Constants {
...
@@ -24,6 +24,7 @@ public class Constants {
public
static
final
String
BASE_URL
=
"http://47.94.101.239:3112"
;
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
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
WEB_SOP
=
"http://47.94.101.239:9004/#/sop"
;
public
final
static
String
WEB_ZHI_SHI
=
"http://47.94.101.239:9004/#/detail"
;
public
static
final
boolean
UM_DEBUG
=
true
;
public
static
final
boolean
UM_DEBUG
=
true
;
// public final static String WEB_SOP = "http://192.168.1.132:8080/#/sop";
// public final static String WEB_SOP = "http://192.168.1.132:8080/#/sop";
...
@@ -135,7 +136,7 @@ public class Constants {
...
@@ -135,7 +136,7 @@ public class Constants {
/**
/**
* 获取服务说明.
* 获取服务说明.
*/
*/
public
final
static
String
ORDER_INSTRUCTION
=
" /api-
message/"
+
"hXMessage/count/hxAccount/{hxAccount}
"
;
public
final
static
String
ORDER_INSTRUCTION
=
" /api-
ka-base/"
+
"spuServiceDetail
"
;
/**
/**
* 获取厂商收货地址.
* 获取厂商收货地址.
*/
*/
...
@@ -193,7 +194,7 @@ public class Constants {
...
@@ -193,7 +194,7 @@ public class Constants {
/***********************其他配置**********************************/
/***********************其他配置**********************************/
public
final
static
int
PAGESIZE
=
1
0
;
public
final
static
int
PAGESIZE
=
2
0
;
public
final
static
String
BUNDLE
=
"bundle"
;
public
final
static
String
BUNDLE
=
"bundle"
;
public
final
static
String
ID
=
"id"
;
public
final
static
String
ID
=
"id"
;
//订单详情
//订单详情
...
...
app/src/main/java/com/dayu/bigfish/api/APIService.java
View file @
5db0dd03
...
@@ -366,7 +366,8 @@ public interface APIService {
...
@@ -366,7 +366,8 @@ public interface APIService {
* @return
* @return
*/
*/
@GET
(
Constants
.
ORDER_INSTRUCTION
)
@GET
(
Constants
.
ORDER_INSTRUCTION
)
Observable
<
BaseResponse
<
List
<
ServerInstruction
>>>
getInstruction
(
@Path
(
"id"
)
int
id
);
Observable
<
BaseResponse
<
BasePageBean
<
ServerInstruction
>>>
getInstruction
(
@Query
(
"kaSpuId"
)
long
id
,
@Query
(
"page"
)
int
page
,
@Query
(
"pageSize"
)
int
pageSize
);
/**
/**
* 获取厂商收货地址.
* 获取厂商收货地址.
...
...
app/src/main/java/com/dayu/bigfish/base/BaseActivity.java
View file @
5db0dd03
...
@@ -20,15 +20,15 @@ import java.lang.reflect.ParameterizedType;
...
@@ -20,15 +20,15 @@ import java.lang.reflect.ParameterizedType;
/**
/**
* Created by luofan on 17/11/02.
* Created by luofan on 17/11/02.
*/
*/
public
abstract
class
BaseActivity
<
P
extends
BasePresenter
,
B
extends
ViewDataBinding
>
extends
DataBindingActivity
<
B
>
{
public
abstract
class
BaseActivity
<
P
extends
BasePresenter
,
B
extends
ViewDataBinding
>
extends
DataBindingActivity
<
B
>
implements
BaseView
{
public
P
mPresenter
;
public
P
mPresenter
;
private
boolean
isDialogShow
=
false
;
private
boolean
isDialogShow
=
false
;
@Override
@Override
protected
void
initPresenter
()
{
protected
void
initPresenter
()
{
super
.
initPresenter
();
super
.
initPresenter
();
if
(
this
instanceof
BaseView
&&
if
(
this
.
getClass
().
getGenericSuperclass
()
instanceof
ParameterizedType
&&
this
.
getClass
().
getGenericSuperclass
()
instanceof
ParameterizedType
&&
((
ParameterizedType
)
(
this
.
getClass
().
getGenericSuperclass
())).
getActualTypeArguments
().
length
>
0
)
{
((
ParameterizedType
)
(
this
.
getClass
().
getGenericSuperclass
())).
getActualTypeArguments
().
length
>
0
)
{
Class
mPresenterClass
=
(
Class
)
((
ParameterizedType
)
(
this
.
getClass
()
Class
mPresenterClass
=
(
Class
)
((
ParameterizedType
)
(
this
.
getClass
()
.
getGenericSuperclass
())).
getActualTypeArguments
()[
0
];
.
getGenericSuperclass
())).
getActualTypeArguments
()[
0
];
...
@@ -73,8 +73,8 @@ public abstract class BaseActivity<P extends BasePresenter, B extends ViewDataBi
...
@@ -73,8 +73,8 @@ public abstract class BaseActivity<P extends BasePresenter, B extends ViewDataBi
mActivity
.
finish
();
mActivity
.
finish
();
}
}
public
void
dumpBack
(
int
requestCode
,
Intent
intent
)
{
public
void
dumpBack
(
int
requestCode
,
Intent
intent
)
{
mActivity
.
setResult
(
requestCode
,
intent
);
mActivity
.
setResult
(
requestCode
,
intent
);
mActivity
.
finish
();
mActivity
.
finish
();
}
}
...
...
app/src/main/java/com/dayu/bigfish/base/BaseFragment.java
View file @
5db0dd03
...
@@ -20,15 +20,15 @@ import java.lang.reflect.ParameterizedType;
...
@@ -20,15 +20,15 @@ import java.lang.reflect.ParameterizedType;
/**
/**
* Created by luo on 2017/11/14.
* Created by luo on 2017/11/14.
*/
*/
public
abstract
class
BaseFragment
<
P
extends
BasePresenter
,
B
extends
ViewDataBinding
>
extends
DataBindingFragment
<
B
>
{
public
abstract
class
BaseFragment
<
P
extends
BasePresenter
,
B
extends
ViewDataBinding
>
extends
DataBindingFragment
<
B
>
implements
BaseView
{
public
P
mPresenter
;
public
P
mPresenter
;
private
boolean
isDialogShow
=
false
;
private
boolean
isDialogShow
=
false
;
@Override
@Override
protected
void
initPresenter
()
{
protected
void
initPresenter
()
{
super
.
initPresenter
();
super
.
initPresenter
();
if
(
this
instanceof
BaseView
&&
if
(
this
.
getClass
().
getGenericSuperclass
()
instanceof
ParameterizedType
&&
this
.
getClass
().
getGenericSuperclass
()
instanceof
ParameterizedType
&&
((
ParameterizedType
)
(
this
.
getClass
().
getGenericSuperclass
())).
getActualTypeArguments
().
length
>
0
)
{
((
ParameterizedType
)
(
this
.
getClass
().
getGenericSuperclass
())).
getActualTypeArguments
().
length
>
0
)
{
Class
mPresenterClass
=
(
Class
)
((
ParameterizedType
)
(
this
.
getClass
()
Class
mPresenterClass
=
(
Class
)
((
ParameterizedType
)
(
this
.
getClass
()
.
getGenericSuperclass
())).
getActualTypeArguments
()[
0
];
.
getGenericSuperclass
())).
getActualTypeArguments
()[
0
];
...
@@ -50,8 +50,8 @@ public abstract class BaseFragment<P extends BasePresenter, B extends ViewDataBi
...
@@ -50,8 +50,8 @@ public abstract class BaseFragment<P extends BasePresenter, B extends ViewDataBi
mActivity
.
finish
();
mActivity
.
finish
();
}
}
public
void
dumpBack
(
int
requestCode
,
Intent
intent
)
{
public
void
dumpBack
(
int
requestCode
,
Intent
intent
)
{
mActivity
.
setResult
(
requestCode
,
intent
);
mActivity
.
setResult
(
requestCode
,
intent
);
mActivity
.
finish
();
mActivity
.
finish
();
}
}
...
...
app/src/main/java/com/dayu/bigfish/bean/Order.java
View file @
5db0dd03
...
@@ -44,7 +44,7 @@ public class Order {
...
@@ -44,7 +44,7 @@ public class Order {
private
int
subStatus
;
private
int
subStatus
;
private
int
anyContacts
;
private
int
anyContacts
;
private
String
spuName
;
private
String
spuName
;
private
String
spuId
;
private
int
spuId
;
private
int
excptionCode
;
private
int
excptionCode
;
private
String
appointmentTime
;
private
String
appointmentTime
;
private
int
sopStatus
;
private
int
sopStatus
;
...
@@ -201,11 +201,11 @@ public class Order {
...
@@ -201,11 +201,11 @@ public class Order {
this
.
spuName
=
spuName
;
this
.
spuName
=
spuName
;
}
}
public
String
getSpuId
()
{
public
int
getSpuId
()
{
return
spuId
;
return
spuId
;
}
}
public
void
setSpuId
(
String
spuId
)
{
public
void
setSpuId
(
int
spuId
)
{
this
.
spuId
=
spuId
;
this
.
spuId
=
spuId
;
}
}
...
...
app/src/main/java/com/dayu/bigfish/bean/OrderDetail.java
View file @
5db0dd03
...
@@ -66,7 +66,7 @@ public class OrderDetail implements Serializable {
...
@@ -66,7 +66,7 @@ public class OrderDetail implements Serializable {
private
List
<?>
pic
;
private
List
<?>
pic
;
private
String
sn
;
private
String
sn
;
private
String
spuName
;
private
String
spuName
;
private
String
spuId
;
private
int
spuId
;
private
Integer
anyContacts
;
private
Integer
anyContacts
;
private
Integer
kaCompanyId
;
private
Integer
kaCompanyId
;
private
Integer
createdSource
;
//1.服务商自己填写的工单2.厂商系统派3.ka系统4.小程序添加的工单
private
Integer
createdSource
;
//1.服务商自己填写的工单2.厂商系统派3.ka系统4.小程序添加的工单
...
@@ -544,11 +544,11 @@ public class OrderDetail implements Serializable {
...
@@ -544,11 +544,11 @@ public class OrderDetail implements Serializable {
this
.
spuName
=
spuName
;
this
.
spuName
=
spuName
;
}
}
public
String
getSpuId
()
{
public
int
getSpuId
()
{
return
spuId
;
return
spuId
;
}
}
public
void
setSpuId
(
String
spuId
)
{
public
void
setSpuId
(
int
spuId
)
{
this
.
spuId
=
spuId
;
this
.
spuId
=
spuId
;
}
}
...
...
app/src/main/java/com/dayu/bigfish/presenter/logisticsinfo/LogisticsInfoPresenter.java
View file @
5db0dd03
...
@@ -17,6 +17,7 @@ import io.reactivex.functions.Consumer;
...
@@ -17,6 +17,7 @@ import io.reactivex.functions.Consumer;
public
class
LogisticsInfoPresenter
extends
LogisticsInfoContract
.
Presenter
{
public
class
LogisticsInfoPresenter
extends
LogisticsInfoContract
.
Presenter
{
private
ObservableField
<
Object
>
datas
=
new
ObservableField
<>();
private
ObservableField
<
Object
>
datas
=
new
ObservableField
<>();
private
ObservableField
<
Object
>
headData
=
new
ObservableField
<>();
private
ObservableField
<
Object
>
headData
=
new
ObservableField
<>();
public
ObservableField
<
Boolean
>
isShowLine
=
new
ObservableField
<>(
false
);
private
String
mCourierNum
;
private
String
mCourierNum
;
private
String
mShipperCode
;
private
String
mShipperCode
;
...
@@ -51,7 +52,14 @@ public class LogisticsInfoPresenter extends LogisticsInfoContract.Presenter {
...
@@ -51,7 +52,14 @@ public class LogisticsInfoPresenter extends LogisticsInfoContract.Presenter {
logsticsInfo
->
{
logsticsInfo
->
{
datas
.
set
(
logsticsInfo
.
getLogistics
());
datas
.
set
(
logsticsInfo
.
getLogistics
());
headData
.
set
(
logsticsInfo
);
headData
.
set
(
logsticsInfo
);
},
if
(
logsticsInfo
.
getLogistics
().
size
()
==
0
)
{
responeThrowable
->
datas
.
set
(
Constants
.
FAILED
)));
isShowLine
.
set
(
false
);
}
else
{
isShowLine
.
set
(
true
);
}},
responeThrowable
->
{
isShowLine
.
set
(
false
);
datas
.
set
(
Constants
.
FAILED
);
}));
}
}
}
}
app/src/main/java/com/dayu/bigfish/presenter/processorder/ProcessOrderPresenter.java
View file @
5db0dd03
...
@@ -57,12 +57,14 @@ public class ProcessOrderPresenter extends ProcessOrderContract.Presenter {
...
@@ -57,12 +57,14 @@ public class ProcessOrderPresenter extends ProcessOrderContract.Presenter {
private
OrderInfo
mOrderInfo
;
private
OrderInfo
mOrderInfo
;
private
int
isPay
;
//是否支付费用,默认=1 不支付费用
private
int
isPay
;
//是否支付费用,默认=1 不支付费用
private
int
mAnyContacts
;
private
int
mAnyContacts
;
private
int
mSpuId
;
@Override
@Override
public
void
onAttached
()
{
public
void
onAttached
()
{
Bundle
bundle
=
mView
.
getBundle
();
Bundle
bundle
=
mView
.
getBundle
();
mOrderId
=
bundle
.
getInt
(
Constants
.
ORDER_ID
,
0
);
mOrderId
=
bundle
.
getInt
(
Constants
.
ORDER_ID
,
0
);
mPosition
=
bundle
.
getInt
(
Constants
.
ORDER_POSTION
,
0
);
mPosition
=
bundle
.
getInt
(
Constants
.
ORDER_POSTION
,
0
);
mSpuId
=
bundle
.
getInt
(
Constants
.
ID
,
0
);
UserInfo
userInfo
=
UserManager
.
getInstance
().
getUser
();
UserInfo
userInfo
=
UserManager
.
getInstance
().
getUser
();
mAccountId
=
Integer
.
parseInt
(
userInfo
.
getAccountId
());
mAccountId
=
Integer
.
parseInt
(
userInfo
.
getAccountId
());
mOrderInfoDao
=
GreenDaoManager
.
getInstance
().
getmDaoSession
().
getOrderInfoDao
();
mOrderInfoDao
=
GreenDaoManager
.
getInstance
().
getmDaoSession
().
getOrderInfoDao
();
...
@@ -240,7 +242,7 @@ public class ProcessOrderPresenter extends ProcessOrderContract.Presenter {
...
@@ -240,7 +242,7 @@ public class ProcessOrderPresenter extends ProcessOrderContract.Presenter {
@Override
@Override
public
void
dumpToServerInstruction
()
{
public
void
dumpToServerInstruction
()
{
Bundle
bundle
=
new
Bundle
();
Bundle
bundle
=
new
Bundle
();
bundle
.
putInt
(
Constants
.
ORDER_ID
,
mOrder
Id
);
bundle
.
putInt
(
Constants
.
ID
,
mSpu
Id
);
mView
.
startActivity
(
ServerInstructionActivity
.
class
,
bundle
);
mView
.
startActivity
(
ServerInstructionActivity
.
class
,
bundle
);
}
}
...
...
app/src/main/java/com/dayu/bigfish/presenter/returnpart/ReturnPartPresenter.java
View file @
5db0dd03
...
@@ -68,6 +68,7 @@ public class ReturnPartPresenter extends ReturnPartContract.Presenter {
...
@@ -68,6 +68,7 @@ public class ReturnPartPresenter extends ReturnPartContract.Presenter {
try
{
try
{
jsonObject
.
put
(
"courierNumber"
,
courierNum
.
get
());
jsonObject
.
put
(
"courierNumber"
,
courierNum
.
get
());
jsonObject
.
put
(
"spComment"
,
spComent
.
get
());
jsonObject
.
put
(
"spComment"
,
spComent
.
get
());
jsonObject
.
put
(
"spRemarks"
,
spComent
.
get
());
jsonObject
.
put
(
"courierServicesCompany"
,
courierCompany
.
get
());
jsonObject
.
put
(
"courierServicesCompany"
,
courierCompany
.
get
());
jsonObject
.
put
(
"shipperCode"
,
mShipperCode
);
jsonObject
.
put
(
"shipperCode"
,
mShipperCode
);
jsonObject
.
put
(
"kaRemarks"
,
kaComent
.
get
());
jsonObject
.
put
(
"kaRemarks"
,
kaComent
.
get
());
...
...
app/src/main/java/com/dayu/bigfish/presenter/serverinstruction/ServerInstructionContract.java
View file @
5db0dd03
...
@@ -19,6 +19,6 @@ public interface ServerInstructionContract {
...
@@ -19,6 +19,6 @@ public interface ServerInstructionContract {
*/
*/
public
abstract
void
getInstructs
();
public
abstract
void
getInstructs
();
public
abstract
void
dumpDetail
();
public
abstract
void
dumpDetail
(
String
url
);
}
}
}
}
app/src/main/java/com/dayu/bigfish/presenter/serverinstruction/ServerInstructionPresenter.java
View file @
5db0dd03
...
@@ -6,12 +6,10 @@ import android.os.Bundle;
...
@@ -6,12 +6,10 @@ import android.os.Bundle;
import
com.app.annotation.apt.InstanceFactory
;
import
com.app.annotation.apt.InstanceFactory
;
import
com.apt.ApiFactory
;
import
com.apt.ApiFactory
;
import
com.dayu.bigfish.Constants
;
import
com.dayu.bigfish.Constants
;
import
com.dayu.bigfish.base.BasePageBean
;
import
com.dayu.bigfish.bean.ServerInstruction
;
import
com.dayu.bigfish.bean.ServerInstruction
;
import
com.dayu.bigfish.ui.WebViewActivity
;
import
com.dayu.bigfish.ui.WebViewActivity
;
import
java.util.ArrayList
;
import
java.util.List
;
import
io.reactivex.functions.Consumer
;
import
io.reactivex.functions.Consumer
;
/**
/**
...
@@ -20,8 +18,8 @@ import io.reactivex.functions.Consumer;
...
@@ -20,8 +18,8 @@ import io.reactivex.functions.Consumer;
@InstanceFactory
@InstanceFactory
public
class
ServerInstructionPresenter
extends
ServerInstructionContract
.
Presenter
{
public
class
ServerInstructionPresenter
extends
ServerInstructionContract
.
Presenter
{
public
ObservableField
mDatas
=
new
ObservableField
();
public
ObservableField
mDatas
=
new
ObservableField
();
private
ArrayList
<
ServerInstruction
>
instructions
;
private
int
mSpuId
;
private
int
m
OrderId
;
private
int
m
Page
;
@Override
@Override
public
ObservableField
<
Object
>
getSourceDatas
()
{
public
ObservableField
<
Object
>
getSourceDatas
()
{
...
@@ -31,20 +29,36 @@ public class ServerInstructionPresenter extends ServerInstructionContract.Presen
...
@@ -31,20 +29,36 @@ public class ServerInstructionPresenter extends ServerInstructionContract.Presen
@Override
@Override
public
void
onAttached
()
{
public
void
onAttached
()
{
Bundle
bundle
=
mView
.
getBundle
();
Bundle
bundle
=
mView
.
getBundle
();
m
OrderId
=
bundle
.
getInt
(
Constants
.
ORDER_
ID
);
m
SpuId
=
bundle
.
getInt
(
Constants
.
ID
);
getInstructs
();
refresh
();
}
}
@Override
@Override
public
void
getInstructs
()
{
public
void
getInstructs
()
{
ApiFactory
.
getInstruction
(
mOrderId
).
subscribe
(
baseObserver
((
Consumer
<
List
<
ServerInstruction
>>)
ApiFactory
.
getInstruction
(
mSpuId
,
mPage
,
Constants
.
PAGESIZE
).
subscribe
(
baseObserver
((
Consumer
<
BasePageBean
<
ServerInstruction
>>)
serverInstructions
->
mDatas
.
set
(
serverInstructions
)));
datas
->
{
mPage
++;
mDatas
.
set
(
datas
);
}));
}
}
@Override
@Override
public
void
dumpDetail
()
{
public
void
dumpDetail
(
String
url
)
{
Bundle
bundle
=
new
Bundle
();
Bundle
bundle
=
new
Bundle
();
bundle
.
put
String
(
Constants
.
URL
,
instructions
.
get
(
0
).
getUrl
()
);
bundle
.
put
Int
(
Constants
.
ID
,
mSpuId
);
mView
.
startActivity
(
WebViewActivity
.
class
,
bundle
);
mView
.
startActivity
(
WebViewActivity
.
class
,
bundle
);
}
}
@Override
public
void
refresh
()
{
super
.
refresh
();
mPage
=
1
;
getInstructs
();
}
@Override
public
void
loadMore
()
{
super
.
loadMore
();
getInstructs
();
}
}
}
app/src/main/java/com/dayu/bigfish/presenter/subcribeTime/SubcribeTimePresenter.java
View file @
5db0dd03
...
@@ -105,7 +105,7 @@ public class SubcribeTimePresenter extends SubcribeContract.Presenter {
...
@@ -105,7 +105,7 @@ public class SubcribeTimePresenter extends SubcribeContract.Presenter {
}
else
if
(
mState
==
ORDER_YUYUE
||
mState
==
ORDER_DOING
)
{
}
else
if
(
mState
==
ORDER_YUYUE
||
mState
==
ORDER_DOING
)
{
EventBus
.
getDefault
().
post
(
new
OrderState
(
ORDER_YUYUE
,
mPosition
,
mTime
));
EventBus
.
getDefault
().
post
(
new
OrderState
(
ORDER_YUYUE
,
mPosition
,
mTime
));
}
}
//
mView.dumpBack();
mView
.
dumpBack
();
}
}
},
responeThrowable
->
{
},
responeThrowable
->
{
if
(
"ORDER0004"
.
equals
(
responeThrowable
.
subCode
))
{
if
(
"ORDER0004"
.
equals
(
responeThrowable
.
subCode
))
{
...
...
app/src/main/java/com/dayu/bigfish/ui/SopWebViewActivity.java
View file @
5db0dd03
...
@@ -44,7 +44,6 @@ public class SopWebViewActivity extends DataBindingActivity<ActivityWebviewBindi
...
@@ -44,7 +44,6 @@ public class SopWebViewActivity extends DataBindingActivity<ActivityWebviewBindi
ValueCallback
<
Uri
[]>
uploadMessageAboveL
;
ValueCallback
<
Uri
[]>
uploadMessageAboveL
;
int
RESULT_CODE
=
0
;
int
RESULT_CODE
=
0
;
int
RESULT_CODE_FOR_Lollipop
=
1
;
int
RESULT_CODE_FOR_Lollipop
=
1
;
private
SopWebViewActivity
mActivity
;
private
BridgeWebView
mWebView
;
private
BridgeWebView
mWebView
;
@Override
@Override
...
...
app/src/main/java/com/dayu/bigfish/ui/WebViewActivity.java
View file @
5db0dd03
...
@@ -24,6 +24,7 @@ import java.io.File;
...
@@ -24,6 +24,7 @@ import java.io.File;
public
class
WebViewActivity
extends
DataBindingActivity
<
ActivityWebviewBinding
>
{
public
class
WebViewActivity
extends
DataBindingActivity
<
ActivityWebviewBinding
>
{
private
BridgeWebView
mWebView
;
private
BridgeWebView
mWebView
;
private
String
mUrl
;
private
String
mUrl
;
private
int
mOrderId
;
@Override
@Override
public
int
getLayoutId
()
{
public
int
getLayoutId
()
{
...
@@ -33,7 +34,8 @@ public class WebViewActivity extends DataBindingActivity<ActivityWebviewBinding>
...
@@ -33,7 +34,8 @@ public class WebViewActivity extends DataBindingActivity<ActivityWebviewBinding>
@Override
@Override
public
void
initView
()
{
public
void
initView
()
{
Bundle
bundle
=
getIntent
().
getBundleExtra
(
Constants
.
BUNDLE
);
Bundle
bundle
=
getIntent
().
getBundleExtra
(
Constants
.
BUNDLE
);
mUrl
=
bundle
.
getString
(
Constants
.
URL
);
mOrderId
=
bundle
.
getInt
(
Constants
.
ID
);
mUrl
=
Constants
.
WEB_ZHI_SHI
+
"?id="
+
mOrderId
;
mBind
.
tvTitle
.
setText
(
getResources
().
getString
(
R
.
string
.
order_instruction
));
mBind
.
tvTitle
.
setText
(
getResources
().
getString
(
R
.
string
.
order_instruction
));
mBind
.
tvRightTitle
.
setText
(
getResources
().
getString
(
R
.
string
.
open_webview
));
mBind
.
tvRightTitle
.
setText
(
getResources
().
getString
(
R
.
string
.
open_webview
));
mBind
.
tvRightTitle
.
setVisibility
(
View
.
VISIBLE
);
mBind
.
tvRightTitle
.
setVisibility
(
View
.
VISIBLE
);
...
...
app/src/main/java/com/dayu/bigfish/ui/adapter/OrderAdapter.java
View file @
5db0dd03
...
@@ -247,15 +247,15 @@ public class OrderAdapter extends CoreAdapter<Order, FragmentOrderdoingItemBindi
...
@@ -247,15 +247,15 @@ public class OrderAdapter extends CoreAdapter<Order, FragmentOrderdoingItemBindi
mItem
=
it
;
mItem
=
it
;
mBind
=
h
;
mBind
=
h
;
if
(
mItem
.
getStatus
()
==
4
&&
mItem
.
getSubStatus
()
==
3
)
{
if
(
mItem
.
getStatus
()
==
4
&&
mItem
.
getSubStatus
()
==
3
)
{
dumpProcessActivity
(
mItem
.
getId
()
,
posiiton
);
dumpProcessActivity
(
mItem
,
posiiton
);
}
else
if
(
mItem
.
getStatus
()
==
4
&&
mItem
.
getSubStatus
()
==
4
)
{
}
else
if
(
mItem
.
getStatus
()
==
4
&&
mItem
.
getSubStatus
()
==
4
)
{
if
(
mItem
.
getSopStatus
()
==
1
)
{
//sop启用
if
(
mItem
.
getSopStatus
()
==
1
)
{
//sop启用
dumpSOPActivity
(
mItem
.
getId
(),
posiiton
);
dumpSOPActivity
(
mItem
.
getId
(),
posiiton
);
}
else
if
(
mItem
.
getSopStatus
()
==
0
)
{
}
else
if
(
mItem
.
getSopStatus
()
==
0
)
{
dumpProcessActivity
(
mItem
.
getId
()
,
posiiton
);
dumpProcessActivity
(
mItem
,
posiiton
);
}
}
}
else
if
(
mItem
.
getStatus
()
==
4
&&
mItem
.
getSubStatus
()
==
5
)
{
}
else
if
(
mItem
.
getStatus
()
==
4
&&
mItem
.
getSubStatus
()
==
5
)
{
dumpProcessActivity
(
mItem
.
getId
()
,
posiiton
);
dumpProcessActivity
(
mItem
,
posiiton
);
}
}
if
(
mItem
.
getStatus
()
==
4
)
{
if
(
mItem
.
getStatus
()
==
4
)
{
return
;
return
;
...
@@ -325,10 +325,11 @@ public class OrderAdapter extends CoreAdapter<Order, FragmentOrderdoingItemBindi
...
@@ -325,10 +325,11 @@ public class OrderAdapter extends CoreAdapter<Order, FragmentOrderdoingItemBindi
mContext
.
startActivity
(
intent
);
mContext
.
startActivity
(
intent
);
}
}
private
void
dumpProcessActivity
(
int
id
,
int
adapterPosition
)
{
private
void
dumpProcessActivity
(
Order
detail
,
int
adapterPosition
)
{
Intent
intent
=
new
Intent
(
mContext
,
ProcessOrderActivity
.
class
);
Intent
intent
=
new
Intent
(
mContext
,
ProcessOrderActivity
.
class
);
Bundle
bundle
=
new
Bundle
();
Bundle
bundle
=
new
Bundle
();
bundle
.
putInt
(
Constants
.
ORDER_ID
,
id
);
bundle
.
putInt
(
Constants
.
ORDER_ID
,
detail
.
getId
());
bundle
.
putInt
(
Constants
.
ID
,
detail
.
getSpuId
());
bundle
.
putInt
(
Constants
.
ORDER_POSTION
,
adapterPosition
);
bundle
.
putInt
(
Constants
.
ORDER_POSTION
,
adapterPosition
);
intent
.
putExtra
(
Constants
.
BUNDLE
,
bundle
);
intent
.
putExtra
(
Constants
.
BUNDLE
,
bundle
);
mContext
.
startActivity
(
intent
);
mContext
.
startActivity
(
intent
);
...
...
app/src/main/java/com/dayu/bigfish/ui/adapter/OrderPartAdapter.java
View file @
5db0dd03
...
@@ -44,6 +44,7 @@ public class OrderPartAdapter extends CoreAdapter<OrderPart, ItemApplyPartLayout
...
@@ -44,6 +44,7 @@ public class OrderPartAdapter extends CoreAdapter<OrderPart, ItemApplyPartLayout
holder
.
logisticsInfo
.
setText
(
UIUtils
.
getString
(
R
.
string
.
cannot_return
));
holder
.
logisticsInfo
.
setText
(
UIUtils
.
getString
(
R
.
string
.
cannot_return
));
holder
.
logisticsInfo
.
setOnClickListener
(
v
->
presenter
.
dumpToRefusePart
(
item
.
getId
()));
holder
.
logisticsInfo
.
setOnClickListener
(
v
->
presenter
.
dumpToRefusePart
(
item
.
getId
()));
holder
.
receivePart
.
setText
(
UIUtils
.
getString
(
R
.
string
.
return_order_part
));
holder
.
receivePart
.
setText
(
UIUtils
.
getString
(
R
.
string
.
return_order_part
));
holder
.
receivePart
.
setTextColor
(
UIUtils
.
getColor
(
R
.
color
.
cl_home_button
));
holder
.
receivePart
.
setOnClickListener
(
v
->
presenter
.
dumpToReturnPart
(
Constants
.
BYKA
,
item
));
holder
.
receivePart
.
setOnClickListener
(
v
->
presenter
.
dumpToReturnPart
(
Constants
.
BYKA
,
item
));
holder
.
lineTwo
.
setVisibility
(
View
.
GONE
);
holder
.
lineTwo
.
setVisibility
(
View
.
GONE
);
holder
.
lineOne
.
setVisibility
(
View
.
GONE
);
holder
.
lineOne
.
setVisibility
(
View
.
GONE
);
...
@@ -87,10 +88,12 @@ public class OrderPartAdapter extends CoreAdapter<OrderPart, ItemApplyPartLayout
...
@@ -87,10 +88,12 @@ public class OrderPartAdapter extends CoreAdapter<OrderPart, ItemApplyPartLayout
})));
})));
if
(
item
.
getSource
()
!=
null
&&
item
.
getSource
()
==
1
)
{
if
(
item
.
getSource
()
!=
null
&&
item
.
getSource
()
==
1
)
{
holder
.
receivePart
.
setText
(
UIUtils
.
getString
(
R
.
string
.
receive_part
));
holder
.
receivePart
.
setText
(
UIUtils
.
getString
(
R
.
string
.
receive_part
));
holder
.
receivePart
.
setTextColor
(
UIUtils
.
getColor
(
R
.
color
.
cl_home_button
));
if
(
TextUtils
.
isEmpty
(
item
.
getApplicant
()))
{
if
(
TextUtils
.
isEmpty
(
item
.
getApplicant
()))
{
holder
.
llApplyInfo
.
setVisibility
(
View
.
GONE
);
holder
.
llApplyInfo
.
setVisibility
(
View
.
GONE
);
}
}
}
else
if
(
item
.
getSource
()
!=
null
&&
item
.
getSource
()
==
2
)
{
}
else
if
(
item
.
getSource
()
!=
null
&&
item
.
getSource
()
==
2
)
{
holder
.
receivePart
.
setTextColor
(
UIUtils
.
getColor
(
R
.
color
.
cl_home_button
));
holder
.
receivePart
.
setText
(
UIUtils
.
getString
(
R
.
string
.
modify_part_info
));
holder
.
receivePart
.
setText
(
UIUtils
.
getString
(
R
.
string
.
modify_part_info
));
holder
.
receivePart
.
setOnClickListener
(
v
->
presenter
.
dumpToReturnPart
(
Constants
.
BY_MODIFY_PART
,
item
));
holder
.
receivePart
.
setOnClickListener
(
v
->
presenter
.
dumpToReturnPart
(
Constants
.
BY_MODIFY_PART
,
item
));
holder
.
llApplyInfo
.
setVisibility
(
View
.
GONE
);
holder
.
llApplyInfo
.
setVisibility
(
View
.
GONE
);
...
@@ -108,6 +111,7 @@ public class OrderPartAdapter extends CoreAdapter<OrderPart, ItemApplyPartLayout
...
@@ -108,6 +111,7 @@ public class OrderPartAdapter extends CoreAdapter<OrderPart, ItemApplyPartLayout
holder
.
tvPartState
.
setText
(
UIUtils
.
getString
(
R
.
string
.
part_received
));
holder
.
tvPartState
.
setText
(
UIUtils
.
getString
(
R
.
string
.
part_received
));
holder
.
logisticsInfo
.
setText
(
UIUtils
.
getString
(
R
.
string
.
logistics_info
));
holder
.
logisticsInfo
.
setText
(
UIUtils
.
getString
(
R
.
string
.
logistics_info
));
holder
.
receivePart
.
setText
(
UIUtils
.
getString
(
R
.
string
.
receive_part
));
holder
.
receivePart
.
setText
(
UIUtils
.
getString
(
R
.
string
.
receive_part
));
holder
.
receivePart
.
setTextColor
(
UIUtils
.
getColor
(
R
.
color
.
cl_home_button
));
holder
.
logisticsInfo
.
setVisibility
(
View
.
VISIBLE
);
holder
.
logisticsInfo
.
setVisibility
(
View
.
VISIBLE
);
holder
.
logisticsInfo
.
setOnClickListener
(
v
->
presenter
.
queryLogistics
(
item
.
getCourierNumber
(),
item
.
getShipperCode
()));
holder
.
logisticsInfo
.
setOnClickListener
(
v
->
presenter
.
queryLogistics
(
item
.
getCourierNumber
(),
item
.
getShipperCode
()));
if
(
item
.
getSource
()
!=
null
&&
item
.
getSource
()
==
1
)
{
if
(
item
.
getSource
()
!=
null
&&
item
.
getSource
()
==
1
)
{
...
@@ -167,6 +171,7 @@ public class OrderPartAdapter extends CoreAdapter<OrderPart, ItemApplyPartLayout
...
@@ -167,6 +171,7 @@ public class OrderPartAdapter extends CoreAdapter<OrderPart, ItemApplyPartLayout
holder
.
logisticsInfo
.
setVisibility
(
View
.
GONE
);
holder
.
logisticsInfo
.
setVisibility
(
View
.
GONE
);
holder
.
receivePart
.
setVisibility
(
View
.
GONE
);
holder
.
receivePart
.
setVisibility
(
View
.
GONE
);
holder
.
llNeedReturn
.
setVisibility
(
View
.
VISIBLE
);
holder
.
llNeedReturn
.
setVisibility
(
View
.
VISIBLE
);
holder
.
receivePart
.
setTextColor
(
UIUtils
.
getColor
(
R
.
color
.
default_text_color
));
}
}
private
void
showCancleDialog
(
OrderPart
part
,
ItemApplyPartLayoutBinding
holder
)
{
private
void
showCancleDialog
(
OrderPart
part
,
ItemApplyPartLayoutBinding
holder
)
{
...
...
app/src/main/java/com/dayu/bigfish/ui/fragment/ReturnOrderPartFragment.java
deleted
100644 → 0
View file @
24f6b543
package
com
.
dayu
.
bigfish
.
ui
.
fragment
;
import
android.os.Bundle
;
import
com.dayu.bigfish.Constants
;
import
com.dayu.bigfish.R
;
import
com.dayu.bigfish.base.BaseFragment
;
import
com.dayu.bigfish.bean.OrderDetail
;
import
com.dayu.bigfish.databinding.FragmentOrderApplicationPartBinding
;
import
com.dayu.bigfish.presenter.orderpart.OrderPartContract
;
import
com.dayu.bigfish.presenter.orderpart.OrderPartPresenter
;
import
com.dayu.bigfish.ui.adapter.OrderPartAdapter
;
/**
* Created by luofan on 2018/1/18.
*/
public
class
ReturnOrderPartFragment
extends
BaseFragment
<
OrderPartPresenter
,
FragmentOrderApplicationPartBinding
>
implements
OrderPartContract
.
View
{
public
static
ReturnOrderPartFragment
newInstance
(
OrderDetail
detail
)
{
Bundle
args
=
new
Bundle
();
args
.
putSerializable
(
Constants
.
ORDER_DETAIL
,
detail
);
ReturnOrderPartFragment
fragment
=
new
ReturnOrderPartFragment
();
fragment
.
setArguments
(
args
);
return
fragment
;
}
@Override
public
void
initView
()
{
mBind
.
applyPart
.
setText
(
getString
(
R
.
string
.
return_one_order_part
));
OrderPartAdapter
adapter
=
new
OrderPartAdapter
(
false
);
mBind
.
lvPart
.
setAdapter
(
adapter
);
}
@Override
protected
void
lazyLoad
()
{
super
.
lazyLoad
();
mPresenter
.
queryPartList
();
}
@Override
public
int
getLayoutId
()
{
return
R
.
layout
.
fragment_order_application_part
;
}
}
app/src/main/java/com/dayu/bigfish/utils/SPUtils.java
View file @
5db0dd03
...
@@ -5,7 +5,6 @@ import android.content.SharedPreferences;
...
@@ -5,7 +5,6 @@ import android.content.SharedPreferences;
import
com.dayu.bigfish.MyApplication
;
import
com.dayu.bigfish.MyApplication
;
import
java.lang.reflect.InvocationTargetException
;
import
java.lang.reflect.Method
;
import
java.lang.reflect.Method
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -154,9 +153,7 @@ public class SPUtils {
...
@@ -154,9 +153,7 @@ public class SPUtils {
sApplyMethod
.
invoke
(
editor
);
sApplyMethod
.
invoke
(
editor
);
return
;
return
;
}
}
}
catch
(
IllegalArgumentException
e
)
{
}
catch
(
Exception
e
)
{
}
catch
(
IllegalAccessException
e
)
{
}
catch
(
InvocationTargetException
e
)
{
}
}
editor
.
commit
();
editor
.
commit
();
}
}
...
...
app/src/main/res/drawable/btn_grey_react.xml
View file @
5db0dd03
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<corners
android:bottomLeftRadius=
"@dimen/dp_8"
/>
<solid
android:color=
"#f0f0f0"
/>
<stroke
android:width=
"0.7dp"
android:color=
"#FF3A3A3A"
/>
<corners
android:radius=
"33.3dp"
/>
<solid
android:color=
"@color/cl_white"
/>
</shape>
</shape>
\ No newline at end of file
app/src/main/res/layout/activity_instrcution_layout.xml
View file @
5db0dd03
...
@@ -38,9 +38,9 @@
...
@@ -38,9 +38,9 @@
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"#f5f5f5"
android:background=
"#f5f5f5"
app:isRefreshable=
"
fals
e"
app:isRefreshable=
"
tru
e"
app:itemType=
"@layout/item_order_instruction"
app:itemType=
"@layout/item_order_instruction"
app:needCoreAdapter=
"true"
app:needCoreAdapter=
"true"
app:needFoot=
"
fals
e"
/>
app:needFoot=
"
tru
e"
/>
</LinearLayout>
</LinearLayout>
</layout>
</layout>
\ No newline at end of file
app/src/main/res/layout/activity_logistics_info.xml
View file @
5db0dd03
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
<variable
<variable
name=
"presenter"
name=
"presenter"
type=
"com.dayu.bigfish.presenter.logisticsinfo.LogisticsInfoPresenter"
/>
type=
"com.dayu.bigfish.presenter.logisticsinfo.LogisticsInfoPresenter"
/>
<import
type=
"android.view.View"
/>
</data>
</data>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
...
@@ -37,11 +38,13 @@
...
@@ -37,11 +38,13 @@
android:layout_height=
"match_parent"
>
android:layout_height=
"match_parent"
>
<com.dayu.bigfish.ui.views.DottdeLineView
<com.dayu.bigfish.ui.views.DottdeLineView
android:id=
"@+id/dl_line"
android:layout_width=
"1dp"
android:layout_width=
"1dp"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_marginLeft=
"34.5dp"
android:layout_marginLeft=
"34.5dp"
android:layout_marginTop=
"80dp"
android:layout_marginTop=
"80dp"
android:layerType=
"software"
/>
android:visibility=
"@{presenter.isShowLine?View.VISIBLE:View.GONE}"
android:layerType=
"software"
/>
<com.dayu.bigfish.ui.views.LRecyclerView
<com.dayu.bigfish.ui.views.LRecyclerView
android:id=
"@+id/lv_part"
android:id=
"@+id/lv_part"
...
...
app/src/main/res/layout/activity_order_details.xml
View file @
5db0dd03
...
@@ -55,6 +55,7 @@
...
@@ -55,6 +55,7 @@
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
<ImageView
style=
"@style/card_line"
/>
<FrameLayout
<FrameLayout
android:id=
"@+id/fl_container"
android:id=
"@+id/fl_container"
...
...
app/src/main/res/layout/activity_return_part.xml
View file @
5db0dd03
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:paddingLeft=
"@dimen/dp_15"
android:paddingLeft=
"@dimen/dp_15"
android:paddingRight=
"
38
dp"
android:paddingRight=
"
43
dp"
android:paddingTop=
"@dimen/dp_20"
android:paddingTop=
"@dimen/dp_20"
android:text=
"@string/ka_beizhu"
android:text=
"@string/ka_beizhu"
android:textColor=
"@color/default_text_color"
android:textColor=
"@color/default_text_color"
...
@@ -63,6 +63,8 @@
...
@@ -63,6 +63,8 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:paddingRight=
"@dimen/dp_15"
android:paddingRight=
"@dimen/dp_15"
android:paddingTop=
"@dimen/dp_20"
android:paddingTop=
"@dimen/dp_20"
android:maxLines=
"5"
android:ellipsize=
"end"
android:text=
"@{TextUtils.isEmpty(presenter.kaComent)?@string/no_data:presenter.kaComent}"
android:text=
"@{TextUtils.isEmpty(presenter.kaComent)?@string/no_data:presenter.kaComent}"
android:textColor=
"@color/default_text_color"
android:textColor=
"@color/default_text_color"
android:textSize=
"15sp"
/>
android:textSize=
"15sp"
/>
...
...
app/src/main/res/layout/fragment_order_part.xml
View file @
5db0dd03
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<android.support.design.widget.TabLayout
<android.support.design.widget.TabLayout
android:id=
"@+id/tb_message"
android:id=
"@+id/tb_message"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"
@dimen/dp_40
"
android:layout_height=
"
46dp
"
app:tabIndicatorColor=
"@color/cl_receiving_order_item_data"
app:tabIndicatorColor=
"@color/cl_receiving_order_item_data"
app:tabMaxWidth=
"0dp"
app:tabMaxWidth=
"0dp"
app:tabSelectedTextColor=
"@color/cl_receiving_order_item_data"
app:tabSelectedTextColor=
"@color/cl_receiving_order_item_data"
...
...
app/src/main/res/layout/item_apply_part_layout.xml
View file @
5db0dd03
...
@@ -26,7 +26,6 @@
...
@@ -26,7 +26,6 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:layout_centerVertical=
"true"
android:text=
"备件1"
android:textColor=
"@color/default_text_color"
android:textColor=
"@color/default_text_color"
android:textSize=
"16sp"
/>
android:textSize=
"16sp"
/>
...
@@ -36,7 +35,6 @@
...
@@ -36,7 +35,6 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_alignParentRight=
"true"
android:layout_centerVertical=
"true"
android:layout_centerVertical=
"true"
android:text=
"已发货"
android:textColor=
"@color/cl_home_button"
android:textColor=
"@color/cl_home_button"
android:textSize=
"15sp"
/>
android:textSize=
"15sp"
/>
</RelativeLayout>
</RelativeLayout>
...
@@ -63,7 +61,7 @@
...
@@ -63,7 +61,7 @@
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<TextView
<TextView
android:layout_width=
"
wrap_content
"
android:layout_width=
"
75dp
"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"@string/tv_apply_instruction"
android:text=
"@string/tv_apply_instruction"
android:textColor=
"@color/default_editext_color"
android:textColor=
"@color/default_editext_color"
...
@@ -73,8 +71,7 @@
...
@@ -73,8 +71,7 @@
android:id=
"@+id/tv_apply_instruction"
android:id=
"@+id/tv_apply_instruction"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/dp_12"
android:layout_marginLeft=
"5dp"
android:text=
"显示器坏了,必须要换了!"
android:textColor=
"@color/default_text_color"
android:textColor=
"@color/default_text_color"
android:textSize=
"14sp"
/>
android:textSize=
"14sp"
/>
</LinearLayout>
</LinearLayout>
...
@@ -86,7 +83,7 @@
...
@@ -86,7 +83,7 @@
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<TextView
<TextView
android:layout_width=
"
wrap_content
"
android:layout_width=
"
75dp
"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"@string/tv_apply_name"
android:text=
"@string/tv_apply_name"
android:textColor=
"@color/default_editext_color"
android:textColor=
"@color/default_editext_color"
...
@@ -96,8 +93,7 @@
...
@@ -96,8 +93,7 @@
android:id=
"@+id/tv_apply_name"
android:id=
"@+id/tv_apply_name"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/dp_12"
android:layout_marginLeft=
"5dp"
android:text=
"显示器坏了,必须要换了!"
android:textColor=
"@color/default_text_color"
android:textColor=
"@color/default_text_color"
android:textSize=
"14sp"
/>
android:textSize=
"14sp"
/>
</LinearLayout>
</LinearLayout>
...
@@ -109,7 +105,7 @@
...
@@ -109,7 +105,7 @@
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<TextView
<TextView
android:layout_width=
"
wrap_content
"
android:layout_width=
"
75dp
"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"@string/tv_apply_mobile"
android:text=
"@string/tv_apply_mobile"
android:textColor=
"@color/default_editext_color"
android:textColor=
"@color/default_editext_color"
...
@@ -119,8 +115,7 @@
...
@@ -119,8 +115,7 @@
android:id=
"@+id/tv_apply_mobile"
android:id=
"@+id/tv_apply_mobile"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/dp_12"
android:layout_marginLeft=
"5dp"
android:text=
"显示器坏了,必须要换了!"
android:textColor=
"@color/default_text_color"
android:textColor=
"@color/default_text_color"
android:textSize=
"14sp"
/>
android:textSize=
"14sp"
/>
</LinearLayout>
</LinearLayout>
...
@@ -132,7 +127,7 @@
...
@@ -132,7 +127,7 @@
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<TextView
<TextView
android:layout_width=
"
wrap_content
"
android:layout_width=
"
75dp
"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"@string/tv_apply_time"
android:text=
"@string/tv_apply_time"
android:textColor=
"@color/default_editext_color"
android:textColor=
"@color/default_editext_color"
...
@@ -142,8 +137,7 @@
...
@@ -142,8 +137,7 @@
android:id=
"@+id/tv_apply_time"
android:id=
"@+id/tv_apply_time"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/dp_12"
android:layout_marginLeft=
"5dp"
android:text=
"显示器坏了,必须要换了!"
android:textColor=
"@color/default_text_color"
android:textColor=
"@color/default_text_color"
android:textSize=
"14sp"
/>
android:textSize=
"14sp"
/>
</LinearLayout>
</LinearLayout>
...
@@ -157,7 +151,7 @@
...
@@ -157,7 +151,7 @@
android:visibility=
"gone"
>
android:visibility=
"gone"
>
<TextView
<TextView
android:layout_width=
"
wrap_content
"
android:layout_width=
"
75dp
"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"@string/refuse_apply_reason"
android:text=
"@string/refuse_apply_reason"
android:textColor=
"@color/default_editext_color"
android:textColor=
"@color/default_editext_color"
...
@@ -167,8 +161,7 @@
...
@@ -167,8 +161,7 @@
android:id=
"@+id/refuse_apply_reason"
android:id=
"@+id/refuse_apply_reason"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/dp_12"
android:layout_marginLeft=
"5dp"
android:text=
"显示器坏了,必须要换了!"
android:textColor=
"@color/default_text_color"
android:textColor=
"@color/default_text_color"
android:textSize=
"14sp"
/>
android:textSize=
"14sp"
/>
</LinearLayout>
</LinearLayout>
...
@@ -194,13 +187,13 @@
...
@@ -194,13 +187,13 @@
<LinearLayout
<LinearLayout
android:id=
"@+id/ll_ka_instraction"
android:id=
"@+id/ll_ka_instraction"
android:layout_width=
"
match_par
ent"
android:layout_width=
"
wrap_cont
ent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"@dimen/dp_12"
android:layout_marginBottom=
"@dimen/dp_12"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<TextView
<TextView
android:layout_width=
"
wrap_content
"
android:layout_width=
"
75dp
"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"@string/tv_ka_instruction"
android:text=
"@string/tv_ka_instruction"
android:textColor=
"@color/default_editext_color"
android:textColor=
"@color/default_editext_color"
...
@@ -210,8 +203,9 @@
...
@@ -210,8 +203,9 @@
android:id=
"@+id/ka_instruction"
android:id=
"@+id/ka_instruction"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/dp_12"
android:layout_marginLeft=
"5dp"
android:text=
"显示器坏了,必须要换了!"
android:ellipsize=
"end"
android:maxLines=
"5"
android:textColor=
"@color/default_text_color"
android:textColor=
"@color/default_text_color"
android:textSize=
"14sp"
/>
android:textSize=
"14sp"
/>
</LinearLayout>
</LinearLayout>
...
@@ -225,7 +219,7 @@
...
@@ -225,7 +219,7 @@
android:visibility=
"gone"
>
android:visibility=
"gone"
>
<TextView
<TextView
android:layout_width=
"
wrap_content
"
android:layout_width=
"
75dp
"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"@string/tv_sp_instruction"
android:text=
"@string/tv_sp_instruction"
android:textColor=
"@color/default_editext_color"
android:textColor=
"@color/default_editext_color"
...
@@ -235,8 +229,9 @@
...
@@ -235,8 +229,9 @@
android:id=
"@+id/sp_instruction"
android:id=
"@+id/sp_instruction"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/dp_12"
android:layout_marginLeft=
"5dp"
android:text=
"显示器坏了,必须要换了!"
android:ellipsize=
"end"
android:maxLines=
"5"
android:textColor=
"@color/default_text_color"
android:textColor=
"@color/default_text_color"
android:textSize=
"14sp"
/>
android:textSize=
"14sp"
/>
</LinearLayout>
</LinearLayout>
...
@@ -249,7 +244,7 @@
...
@@ -249,7 +244,7 @@
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<TextView
<TextView
android:layout_width=
"
wrap_content
"
android:layout_width=
"
75dp
"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"@string/tv_ka_name"
android:text=
"@string/tv_ka_name"
android:textColor=
"@color/default_editext_color"
android:textColor=
"@color/default_editext_color"
...
@@ -259,8 +254,7 @@
...
@@ -259,8 +254,7 @@
android:id=
"@+id/sender"
android:id=
"@+id/sender"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/dp_12"
android:layout_marginLeft=
"5dp"
android:text=
"显示器坏了,必须要换了!"
android:textColor=
"@color/default_text_color"
android:textColor=
"@color/default_text_color"
android:textSize=
"14sp"
/>
android:textSize=
"14sp"
/>
</LinearLayout>
</LinearLayout>
...
@@ -273,7 +267,7 @@
...
@@ -273,7 +267,7 @@
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<TextView
<TextView
android:layout_width=
"
wrap_content
"
android:layout_width=
"
75dp
"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"@string/tv_apply_mobile"
android:text=
"@string/tv_apply_mobile"
android:textColor=
"@color/default_editext_color"
android:textColor=
"@color/default_editext_color"
...
@@ -283,8 +277,7 @@
...
@@ -283,8 +277,7 @@
android:id=
"@+id/sender_mobile"
android:id=
"@+id/sender_mobile"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/dp_12"
android:layout_marginLeft=
"5dp"
android:text=
"显示器坏了,必须要换了!"
android:textColor=
"@color/default_text_color"
android:textColor=
"@color/default_text_color"
android:textSize=
"14sp"
/>
android:textSize=
"14sp"
/>
</LinearLayout>
</LinearLayout>
...
@@ -297,7 +290,7 @@
...
@@ -297,7 +290,7 @@
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<TextView
<TextView
android:layout_width=
"
wrap_content
"
android:layout_width=
"
75dp
"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"@string/tv_need_return"
android:text=
"@string/tv_need_return"
android:textColor=
"@color/default_editext_color"
android:textColor=
"@color/default_editext_color"
...
@@ -307,8 +300,7 @@
...
@@ -307,8 +300,7 @@
android:id=
"@+id/need_return"
android:id=
"@+id/need_return"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/dp_12"
android:layout_marginLeft=
"5dp"
android:text=
"未知"
android:textColor=
"@color/default_text_color"
android:textColor=
"@color/default_text_color"
android:textSize=
"14sp"
/>
android:textSize=
"14sp"
/>
...
@@ -322,7 +314,7 @@
...
@@ -322,7 +314,7 @@
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<TextView
<TextView
android:layout_width=
"
wrap_content
"
android:layout_width=
"
75dp
"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"@string/couries_company_name"
android:text=
"@string/couries_company_name"
android:textColor=
"@color/default_editext_color"
android:textColor=
"@color/default_editext_color"
...
@@ -332,8 +324,7 @@
...
@@ -332,8 +324,7 @@
android:id=
"@+id/couries_compay"
android:id=
"@+id/couries_compay"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/dp_12"
android:layout_marginLeft=
"5dp"
android:text=
"显示器坏了,必须要换了!"
android:textColor=
"@color/default_text_color"
android:textColor=
"@color/default_text_color"
android:textSize=
"14sp"
/>
android:textSize=
"14sp"
/>
...
@@ -347,7 +338,7 @@
...
@@ -347,7 +338,7 @@
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<TextView
<TextView
android:layout_width=
"
wrap_content
"
android:layout_width=
"
75dp
"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"@string/tv_part_num"
android:text=
"@string/tv_part_num"
android:textColor=
"@color/default_editext_color"
android:textColor=
"@color/default_editext_color"
...
@@ -357,8 +348,7 @@
...
@@ -357,8 +348,7 @@
android:id=
"@+id/part_num"
android:id=
"@+id/part_num"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/dp_12"
android:layout_marginLeft=
"5dp"
android:text=
"显示器坏了,必须要换了!"
android:textColor=
"@color/default_text_color"
android:textColor=
"@color/default_text_color"
android:textSize=
"14sp"
/>
android:textSize=
"14sp"
/>
</LinearLayout>
</LinearLayout>
...
@@ -372,7 +362,7 @@
...
@@ -372,7 +362,7 @@
android:visibility=
"gone"
>
android:visibility=
"gone"
>
<TextView
<TextView
android:layout_width=
"
wrap_content
"
android:layout_width=
"
75dp
"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"@string/refuse_apply_reason"
android:text=
"@string/refuse_apply_reason"
android:textColor=
"@color/default_editext_color"
android:textColor=
"@color/default_editext_color"
...
@@ -382,8 +372,7 @@
...
@@ -382,8 +372,7 @@
android:id=
"@+id/refuse_send_reason"
android:id=
"@+id/refuse_send_reason"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/dp_12"
android:layout_marginLeft=
"5dp"
android:text=
"显示器坏了,必须要换了!"
android:textColor=
"@color/default_text_color"
android:textColor=
"@color/default_text_color"
android:textSize=
"14sp"
/>
android:textSize=
"14sp"
/>
</LinearLayout>
</LinearLayout>
...
@@ -410,9 +399,9 @@
...
@@ -410,9 +399,9 @@
android:layout_width=
"75dp"
android:layout_width=
"75dp"
android:layout_height=
"27dp"
android:layout_height=
"27dp"
android:layout_marginRight=
"10dp"
android:layout_marginRight=
"10dp"
android:background=
"@drawable/btn_
blue
_react"
android:background=
"@drawable/btn_
grey
_react"
android:gravity=
"center"
android:gravity=
"center"
android:text=
"
物流信息
"
android:text=
"
@string/logistics_info
"
android:textColor=
"#FF3A3A3A"
android:textColor=
"#FF3A3A3A"
android:textSize=
"13sp"
android:textSize=
"13sp"
android:visibility=
"gone"
/>
android:visibility=
"gone"
/>
...
@@ -424,7 +413,7 @@
...
@@ -424,7 +413,7 @@
android:layout_marginRight=
"10dp"
android:layout_marginRight=
"10dp"
android:background=
"@drawable/btn_blue_react"
android:background=
"@drawable/btn_blue_react"
android:gravity=
"center"
android:gravity=
"center"
android:text=
"
收到备件
"
android:text=
"
@string/receive_part
"
android:textColor=
"#FF3A3A3A"
android:textColor=
"#FF3A3A3A"
android:textSize=
"13sp"
android:textSize=
"13sp"
android:visibility=
"gone"
/>
android:visibility=
"gone"
/>
...
...
app/src/main/res/layout/item_order_instruction.xml
View file @
5db0dd03
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"50dp"
android:layout_height=
"50dp"
android:background=
"@color/white"
android:background=
"@color/white"
android:onClick=
"@{()->presenter.dumpDetail()}"
android:onClick=
"@{()->presenter.dumpDetail(
item.url
)}"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<TextView
<TextView
...
...
app/src/main/res/values/colors.xml
View file @
5db0dd03
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
<color
name=
"text_color"
>
#8a8a8a
</color>
<color
name=
"text_color"
>
#8a8a8a
</color>
<color
name=
"default_text_color"
>
#FF2D2D2D
</color>
<color
name=
"default_text_color"
>
#FF2D2D2D
</color>
<color
name=
"default_editext_color"
>
#FF959595
</color>
<color
name=
"default_editext_color"
>
#FF959595
</color>
<color
name=
"cl_line"
>
#FFE
5E5E5
</color>
<color
name=
"cl_line"
>
#FFE
3E3E3
</color>
<color
name=
"cl_bg"
>
#FFF5F5F5
</color>
<color
name=
"cl_bg"
>
#FFF5F5F5
</color>
...
...
app/src/main/res/values/strings.xml
View file @
5db0dd03
...
@@ -224,13 +224,13 @@
...
@@ -224,13 +224,13 @@
<string
name=
"tv_refuse_order_title"
>
拒绝申请
</string>
<string
name=
"tv_refuse_order_title"
>
拒绝申请
</string>
<string
name=
"tv_apply_order_title"
>
申请备件
</string>
<string
name=
"tv_apply_order_title"
>
申请备件
</string>
<string
name=
"tv_apply_instruction"
>
申请说明:
</string>
<string
name=
"tv_apply_instruction"
>
申请说明:
</string>
<string
name=
"tv_apply_name"
>
申请人:
    
</string>
<string
name=
"tv_apply_name"
>
申请人:
</string>
<string
name=
"tv_apply_mobile"
>
联系方式:
</string>
<string
name=
"tv_apply_mobile"
>
联系方式:
</string>
<string
name=
"tv_apply_time"
>
申请时间:
</string>
<string
name=
"tv_apply_time"
>
申请时间:
</string>
<string
name=
"refuse_apply_reason"
>
拒绝原因:
</string>
<string
name=
"refuse_apply_reason"
>
拒绝原因:
</string>
<string
name=
"tv_ka_instruction"
>
厂商说明:
</string>
<string
name=
"tv_ka_instruction"
>
厂商说明:
</string>
<string
name=
"tv_sp_instruction"
>
服务商说明:
</string>
<string
name=
"tv_sp_instruction"
>
服务商说明:
</string>
<string
name=
"tv_ka_name"
>
发货人:
    
</string>
<string
name=
"tv_ka_name"
>
发货人:
</string>
<string
name=
"tv_need_return"
>
需要寄回:
</string>
<string
name=
"tv_need_return"
>
需要寄回:
</string>
<string
name=
"tv_part_num"
>
快递单号:
</string>
<string
name=
"tv_part_num"
>
快递单号:
</string>
<string
name=
"ka_beizhu"
>
厂商备注
</string>
<string
name=
"ka_beizhu"
>
厂商备注
</string>
...
...
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