Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TangKuPos
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王海
TangKuPos
Commits
ddd1dbb9
Commit
ddd1dbb9
authored
Nov 24, 2019
by
zhang_z
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改国际化文件;
parent
bfb3b8bc
Changes
77
Hide whitespace changes
Inline
Side-by-side
Showing
77 changed files
with
1737 additions
and
1505 deletions
+1737
-1505
.idea/caches/build_file_checksums.ser
.idea/caches/build_file_checksums.ser
+0
-0
app/src/main/java/com/xingdata/zzdpos/App.java
app/src/main/java/com/xingdata/zzdpos/App.java
+1
-1
app/src/main/java/com/xingdata/zzdpos/C.java
app/src/main/java/com/xingdata/zzdpos/C.java
+3
-3
app/src/main/java/com/xingdata/zzdpos/base/BasePresenter.java
...src/main/java/com/xingdata/zzdpos/base/BasePresenter.java
+4
-0
app/src/main/java/com/xingdata/zzdpos/ui/login/LoginActivity.java
...main/java/com/xingdata/zzdpos/ui/login/LoginActivity.java
+8
-59
app/src/main/java/com/xingdata/zzdpos/ui/login/LoginPresenter.java
...ain/java/com/xingdata/zzdpos/ui/login/LoginPresenter.java
+147
-136
app/src/main/java/com/xingdata/zzdpos/ui/login/fragment/CreateStoreFragment.java
...ingdata/zzdpos/ui/login/fragment/CreateStoreFragment.java
+1
-1
app/src/main/java/com/xingdata/zzdpos/ui/login/fragment/InputPasswordFragment.java
...gdata/zzdpos/ui/login/fragment/InputPasswordFragment.java
+6
-8
app/src/main/java/com/xingdata/zzdpos/ui/login/fragment/SelectIndustryFragment.java
...data/zzdpos/ui/login/fragment/SelectIndustryFragment.java
+3
-9
app/src/main/java/com/xingdata/zzdpos/ui/login/fragment/SignInFragment.java
...com/xingdata/zzdpos/ui/login/fragment/SignInFragment.java
+1
-1
app/src/main/java/com/xingdata/zzdpos/ui/manage/bale/fragment/BaleEditFragment.java
...data/zzdpos/ui/manage/bale/fragment/BaleEditFragment.java
+1
-1
app/src/main/java/com/xingdata/zzdpos/ui/manage/user/fragment/UserInfoEditFragment.java
.../zzdpos/ui/manage/user/fragment/UserInfoEditFragment.java
+5
-6
app/src/main/java/com/xingdata/zzdpos/ui/marketing/integral/adapter/IntegralExchangeAdapter.java
...i/marketing/integral/adapter/IntegralExchangeAdapter.java
+4
-4
app/src/main/java/com/xingdata/zzdpos/ui/marketing/integral/fragment/IntegralExchangeFragment.java
...marketing/integral/fragment/IntegralExchangeFragment.java
+1
-2
app/src/main/java/com/xingdata/zzdpos/ui/marketing/integral/fragment/IntegralGetFragment.java
...s/ui/marketing/integral/fragment/IntegralGetFragment.java
+1
-1
app/src/main/java/com/xingdata/zzdpos/ui/marketing/integral/fragment/IntegralIndexFragment.java
...ui/marketing/integral/fragment/IntegralIndexFragment.java
+9
-1
app/src/main/java/com/xingdata/zzdpos/ui/marketing/ms/MsPresenter.java
...java/com/xingdata/zzdpos/ui/marketing/ms/MsPresenter.java
+8
-7
app/src/main/java/com/xingdata/zzdpos/ui/marketing/ms/fragment/EditorFragment.java
...gdata/zzdpos/ui/marketing/ms/fragment/EditorFragment.java
+4
-4
app/src/main/java/com/xingdata/zzdpos/ui/marketing/recharge/fragment/RechargeRuleEditFragment.java
...marketing/recharge/fragment/RechargeRuleEditFragment.java
+7
-11
app/src/main/java/com/xingdata/zzdpos/ui/marketing/viplevel/fragment/VipLevelEditFragment.java
.../ui/marketing/viplevel/fragment/VipLevelEditFragment.java
+9
-9
app/src/main/java/com/xingdata/zzdpos/ui/store/adapter/MsAdapter.java
.../java/com/xingdata/zzdpos/ui/store/adapter/MsAdapter.java
+1
-1
app/src/main/java/com/xingdata/zzdpos/ui/store/adapter/SkugrpAdapter.java
...a/com/xingdata/zzdpos/ui/store/adapter/SkugrpAdapter.java
+1
-1
app/src/main/java/com/xingdata/zzdpos/ui/vip/VipActivity.java
...src/main/java/com/xingdata/zzdpos/ui/vip/VipActivity.java
+1
-4
app/src/main/java/com/xingdata/zzdpos/ui/vip/adapter/VipListAdapter.java
...va/com/xingdata/zzdpos/ui/vip/adapter/VipListAdapter.java
+16
-9
app/src/main/java/com/xingdata/zzdpos/ui/vip/adapter/VipTruleAdapter.java
...a/com/xingdata/zzdpos/ui/vip/adapter/VipTruleAdapter.java
+11
-11
app/src/main/java/com/xingdata/zzdpos/ui/vip/fragment/VipAddSucceedFragment.java
...ingdata/zzdpos/ui/vip/fragment/VipAddSucceedFragment.java
+13
-6
app/src/main/java/com/xingdata/zzdpos/ui/vip/fragment/VipExpenseListFragment.java
...ngdata/zzdpos/ui/vip/fragment/VipExpenseListFragment.java
+11
-6
app/src/main/java/com/xingdata/zzdpos/ui/vip/fragment/VipInfoEditFragment.java
.../xingdata/zzdpos/ui/vip/fragment/VipInfoEditFragment.java
+41
-38
app/src/main/java/com/xingdata/zzdpos/ui/vip/fragment/VipInfoFragment.java
.../com/xingdata/zzdpos/ui/vip/fragment/VipInfoFragment.java
+43
-28
app/src/main/java/com/xingdata/zzdpos/ui/vip/fragment/VipListFragment.java
.../com/xingdata/zzdpos/ui/vip/fragment/VipListFragment.java
+2
-2
app/src/main/java/com/xingdata/zzdpos/ui/vip/fragment/VipRechargeFragment.java
.../xingdata/zzdpos/ui/vip/fragment/VipRechargeFragment.java
+14
-9
app/src/main/java/com/xingdata/zzdpos/ui/vip/fragment/VipRechargeListFragment.java
...gdata/zzdpos/ui/vip/fragment/VipRechargeListFragment.java
+10
-17
app/src/main/java/com/xingdata/zzdpos/ui/vip/fragment/VipSearchFragment.java
...om/xingdata/zzdpos/ui/vip/fragment/VipSearchFragment.java
+9
-8
app/src/main/java/com/xingdata/zzdpos/ui/vip/fragment/VipTruleListFragment.java
...xingdata/zzdpos/ui/vip/fragment/VipTruleListFragment.java
+17
-12
app/src/main/java/com/xingdata/zzdpos/view/SearchBar.java
app/src/main/java/com/xingdata/zzdpos/view/SearchBar.java
+3
-2
app/src/main/res/drawable/selector_checkbox_bg.xml
app/src/main/res/drawable/selector_checkbox_bg.xml
+2
-5
app/src/main/res/drawable/selector_paymoney_radiobutton_bg.xml
...rc/main/res/drawable/selector_paymoney_radiobutton_bg.xml
+3
-4
app/src/main/res/layout/activity_login.xml
app/src/main/res/layout/activity_login.xml
+36
-38
app/src/main/res/layout/activity_splash.xml
app/src/main/res/layout/activity_splash.xml
+15
-48
app/src/main/res/layout/dialog_integral_exchange_setting.xml
app/src/main/res/layout/dialog_integral_exchange_setting.xml
+71
-72
app/src/main/res/layout/dialog_integral_get_setting.xml
app/src/main/res/layout/dialog_integral_get_setting.xml
+150
-154
app/src/main/res/layout/dialog_prompt.xml
app/src/main/res/layout/dialog_prompt.xml
+47
-47
app/src/main/res/layout/dialog_ticket_add_setting.xml
app/src/main/res/layout/dialog_ticket_add_setting.xml
+79
-80
app/src/main/res/layout/dialog_vip_menu.xml
app/src/main/res/layout/dialog_vip_menu.xml
+27
-26
app/src/main/res/layout/fragment_input_password.xml
app/src/main/res/layout/fragment_input_password.xml
+27
-30
app/src/main/res/layout/fragment_recharge_rule_edit.xml
app/src/main/res/layout/fragment_recharge_rule_edit.xml
+67
-65
app/src/main/res/layout/fragment_select_industry.xml
app/src/main/res/layout/fragment_select_industry.xml
+18
-32
app/src/main/res/layout/fragment_settle.xml
app/src/main/res/layout/fragment_settle.xml
+1
-1
app/src/main/res/layout/fragment_user_info_edit.xml
app/src/main/res/layout/fragment_user_info_edit.xml
+1
-1
app/src/main/res/layout/fragment_user_list.xml
app/src/main/res/layout/fragment_user_list.xml
+1
-1
app/src/main/res/layout/fragment_vip_add_succeed.xml
app/src/main/res/layout/fragment_vip_add_succeed.xml
+31
-31
app/src/main/res/layout/fragment_vip_expense_list.xml
app/src/main/res/layout/fragment_vip_expense_list.xml
+26
-27
app/src/main/res/layout/fragment_vip_info.xml
app/src/main/res/layout/fragment_vip_info.xml
+58
-59
app/src/main/res/layout/fragment_vip_info_edit.xml
app/src/main/res/layout/fragment_vip_info_edit.xml
+61
-59
app/src/main/res/layout/fragment_vip_level_edit.xml
app/src/main/res/layout/fragment_vip_level_edit.xml
+51
-50
app/src/main/res/layout/fragment_vip_list.xml
app/src/main/res/layout/fragment_vip_list.xml
+32
-31
app/src/main/res/layout/fragment_vip_mscard_list.xml
app/src/main/res/layout/fragment_vip_mscard_list.xml
+30
-31
app/src/main/res/layout/fragment_vip_recharge.xml
app/src/main/res/layout/fragment_vip_recharge.xml
+45
-46
app/src/main/res/layout/fragment_vip_recharge_list.xml
app/src/main/res/layout/fragment_vip_recharge_list.xml
+25
-25
app/src/main/res/layout/item_recharge_rulel_list_item.xml
app/src/main/res/layout/item_recharge_rulel_list_item.xml
+13
-17
app/src/main/res/layout/item_replenishment.xml
app/src/main/res/layout/item_replenishment.xml
+1
-1
app/src/main/res/layout/item_select_industry.xml
app/src/main/res/layout/item_select_industry.xml
+10
-17
app/src/main/res/layout/item_settle_ticket.xml
app/src/main/res/layout/item_settle_ticket.xml
+1
-1
app/src/main/res/layout/item_vip_expense_item.xml
app/src/main/res/layout/item_vip_expense_item.xml
+15
-15
app/src/main/res/layout/item_vip_mscard_item.xml
app/src/main/res/layout/item_vip_mscard_item.xml
+1
-1
app/src/main/res/layout/title_search.xml
app/src/main/res/layout/title_search.xml
+6
-6
app/src/main/res/layout/view_type_dis.xml
app/src/main/res/layout/view_type_dis.xml
+23
-25
app/src/main/res/layout/view_type_promotion.xml
app/src/main/res/layout/view_type_promotion.xml
+23
-25
app/src/main/res/mipmap-en-xhdpi/login_logo.png
app/src/main/res/mipmap-en-xhdpi/login_logo.png
+0
-0
app/src/main/res/mipmap-en-xhdpi/splash.png
app/src/main/res/mipmap-en-xhdpi/splash.png
+0
-0
app/src/main/res/mipmap-zh-xhdpi/login_logo.png
app/src/main/res/mipmap-zh-xhdpi/login_logo.png
+0
-0
app/src/main/res/mipmap-zh-xhdpi/splash.png
app/src/main/res/mipmap-zh-xhdpi/splash.png
+0
-0
app/src/main/res/values-en/strings.xml
app/src/main/res/values-en/strings.xml
+18
-12
app/src/main/res/values-en/stringzz.xml
app/src/main/res/values-en/stringzz.xml
+99
-0
app/src/main/res/values-zh/stringzz.xml
app/src/main/res/values-zh/stringzz.xml
+99
-0
app/src/main/res/values/strings.xml
app/src/main/res/values/strings.xml
+3
-3
app/src/main/res/values/stringzz.xml
app/src/main/res/values/stringzz.xml
+105
-1
No files found.
.idea/caches/build_file_checksums.ser
View file @
ddd1dbb9
No preview for this file type
app/src/main/java/com/xingdata/zzdpos/App.java
View file @
ddd1dbb9
...
@@ -71,7 +71,7 @@ public class App extends Application {
...
@@ -71,7 +71,7 @@ public class App extends Application {
.
start
();
.
start
();
// 初始化异常处理
// 初始化异常处理
initEx
();
//
initEx();
//初始化Fragment框架
//初始化Fragment框架
initFragment
();
initFragment
();
...
...
app/src/main/java/com/xingdata/zzdpos/C.java
View file @
ddd1dbb9
...
@@ -45,9 +45,9 @@ public class C {
...
@@ -45,9 +45,9 @@ public class C {
public
static
final
String
USER_AGENT
=
"UrlConnection - ZZDHttpClient V1.0"
;
public
static
final
String
USER_AGENT
=
"UrlConnection - ZZDHttpClient V1.0"
;
public
static
final
String
CONNECTION
=
"Keep-Alive"
;
public
static
final
String
CONNECTION
=
"Keep-Alive"
;
public
static
final
String
CONTENT_TYPE
=
"application/x-www-form-urlencoded"
;
public
static
final
String
CONTENT_TYPE
=
"application/x-www-form-urlencoded"
;
public
static
final
String
CONTENT_LANGUAGE
=
"
zh-c
n"
;
public
static
final
String
CONTENT_LANGUAGE
=
"
e
n"
;
public
static
final
String
CACHE_CONTROL
=
"no-cache"
;
public
static
final
String
CACHE_CONTROL
=
"no-cache"
;
public
static
final
String
ACCEPT_LANGUAGE
=
"
zh-c
n"
;
public
static
final
String
ACCEPT_LANGUAGE
=
"
e
n"
;
}
}
public
final
class
API_BUILDER
{
public
final
class
API_BUILDER
{
...
@@ -670,7 +670,7 @@ public class C {
...
@@ -670,7 +670,7 @@ public class C {
/**
/**
* 当前支付系统
* 当前支付系统
*/
*/
public
static
final
int
CURRENT
=
PAX
.
AP
I
;
public
static
final
int
CURRENT
=
PAX
.
AP
P
;
/**
/**
* 浙星
* 浙星
...
...
app/src/main/java/com/xingdata/zzdpos/base/BasePresenter.java
View file @
ddd1dbb9
...
@@ -68,4 +68,8 @@ public abstract class BasePresenter<V> {
...
@@ -68,4 +68,8 @@ public abstract class BasePresenter<V> {
public
void
dispatchKeyEvent
(
KeyEvent
event
)
{
public
void
dispatchKeyEvent
(
KeyEvent
event
)
{
}
}
protected
String
getString
(
int
resId
)
{
return
App
.
instance
.
getString
(
resId
);
}
}
}
app/src/main/java/com/xingdata/zzdpos/ui/login/LoginActivity.java
View file @
ddd1dbb9
...
@@ -42,59 +42,25 @@ public class LoginActivity extends BaseActivity<LoginPresenter, ActivityLoginBin
...
@@ -42,59 +42,25 @@ public class LoginActivity extends BaseActivity<LoginPresenter, ActivityLoginBin
@Override
@Override
public
void
initView
()
{
public
void
initView
()
{
// Bundle bundle = getIntent().getExtras();
this
.
getSyatemMessage
();
// if (bundle != null) {
// mPresenter.signInFragment.setErrorMsg(bundle.getString
// ("tableName"), bundle.getString
// ("errCode"), bundle.getString
// ("errMsg"));
//
// }
getSyatemMessage
();
LogUtils
.
e
(
"LoginActivity + initView"
);
loadRootFragment
(
R
.
id
.
fra
,
mPresenter
.
signInFragment
);
loadRootFragment
(
R
.
id
.
fra
,
mPresenter
.
signInFragment
);
mViewBinding
.
setText1
(
": 400 - 800 - 9406"
);
mViewBinding
.
setText1
(
": 400 - 800 - 9406"
);
mViewBinding
.
setOnClickListener
(
v
->
{
switch
(
v
.
getId
())
{
case
R
.
id
.
tv_company_info
:
{
LogUtils
.
e
(
"浙星信息"
);
// ToastUtils.showLong("浙星信息");
}
break
;
default
:
{
}
break
;
}
});
}
}
@Override
@Override
public
void
openDownList
(
View
view
,
List
<?>
date
,
int
flag
)
{
public
void
openDownList
(
View
view
,
List
<?>
date
,
int
flag
)
{
KeyboardUtils
.
hideSoftInput
(
LoginActivity
.
this
);
KeyboardUtils
.
hideSoftInput
(
LoginActivity
.
this
);
new
PopupWindowDownList
(
LoginActivity
.
this
,
date
,
new
PopupWindowDownList
.
OnDownClickListener
()
{
new
PopupWindowDownList
(
LoginActivity
.
this
,
date
,
new
PopupWindowDownList
.
OnDownClickListener
()
{
@Override
@Override
public
void
onOutType
(
String
name
)
{
public
void
onOutType
(
String
name
)
{
// TODO Auto-generated method stub
}
}
@Override
@Override
public
void
onCall
(
String
phone
)
{
public
void
onCall
(
String
phone
)
{
// TODO Auto-generated method stub
mPresenter
.
signInFragment
.
setPhone
(
phone
);
mPresenter
.
signInFragment
.
setPhone
(
phone
);
}
}
},
view
,
view
.
getWidth
(),
PopupWindowDownList
.
CLERK_LOGIN
);
},
view
,
view
.
getWidth
(),
PopupWindowDownList
.
CLERK_LOGIN
);
}
}
@Override
@Override
...
@@ -167,22 +133,6 @@ public class LoginActivity extends BaseActivity<LoginPresenter, ActivityLoginBin
...
@@ -167,22 +133,6 @@ public class LoginActivity extends BaseActivity<LoginPresenter, ActivityLoginBin
start
(
mPresenter
.
choiceStoreFragment
);
start
(
mPresenter
.
choiceStoreFragment
);
}
}
break
;
break
;
// case LoginReturnBean.OPER_LEVEL_SHOPMANAGER: {
// //店长
// start(mPresenter.bindingCounterFragment);
// }
// break;
// case LoginReturnBean.OPER_LEVEL_MANAGER: {
// //主管
// start(mPresenter.bindingCounterFragment);
// }
// break;
// case LoginReturnBean.OPER_LEVEL_EMPLOYEES: {
// //店员
// startActivity(new Intent(LoginActivity.this, MainActivity.class));
// LoginActivity.this.finish();
// }
// break;
default
:
{
default
:
{
ToastUtils
.
showLong
(
"请使用老板账户登录激活设备"
);
ToastUtils
.
showLong
(
"请使用老板账户登录激活设备"
);
LogUtils
.
e
(
"getOperLevel:->"
+
LoginPresenter
.
loginReturnBean
.
getOperLevel
());
LogUtils
.
e
(
"getOperLevel:->"
+
LoginPresenter
.
loginReturnBean
.
getOperLevel
());
...
@@ -322,7 +272,7 @@ public class LoginActivity extends BaseActivity<LoginPresenter, ActivityLoginBin
...
@@ -322,7 +272,7 @@ public class LoginActivity extends BaseActivity<LoginPresenter, ActivityLoginBin
if
(
getTopFragment
()
instanceof
SignInFragment
||
getSupportFragmentManager
()
if
(
getTopFragment
()
instanceof
SignInFragment
||
getSupportFragmentManager
()
.
getFragments
().
size
()
<=
1
)
{
.
getFragments
().
size
()
<=
1
)
{
if
((
System
.
currentTimeMillis
()
-
mExitTime
)
>
2000
)
{
if
((
System
.
currentTimeMillis
()
-
mExitTime
)
>
2000
)
{
ToastUtils
.
showShort
(
"再按一次退出程序"
);
ToastUtils
.
showShort
(
R
.
string
.
all_exit
);
mExitTime
=
System
.
currentTimeMillis
();
mExitTime
=
System
.
currentTimeMillis
();
}
else
{
}
else
{
AppUtils
.
exitApp
();
AppUtils
.
exitApp
();
...
@@ -378,12 +328,11 @@ public class LoginActivity extends BaseActivity<LoginPresenter, ActivityLoginBin
...
@@ -378,12 +328,11 @@ public class LoginActivity extends BaseActivity<LoginPresenter, ActivityLoginBin
}
}
private
void
getSyatemMessage
()
{
private
void
getSyatemMessage
()
{
String
str
=
"ApplicationName:"
+
SystemUtil
.
getApplicationName
()
+
"\n\n"
+
"设备型号"
+
String
str
=
"ApplicationName:"
+
SystemUtil
.
getApplicationName
()
+
"\n\n"
+
SystemUtil
"设备型号"
+
SystemUtil
.
getDeviceModel
()
+
"\n\n"
+
.
getDeviceModel
()
+
"\n\n"
+
"设备SN:"
+
SystemUtil
.
getDeviceSN
()
+
"\n\n "
+
"设备SN:"
+
SystemUtil
.
getDeviceSN
()
+
"\n\n "
+
"程序版本号:"
+
"程序版本号:"
+
SystemUtil
.
getVersionName
();
SystemUtil
.
getVersionName
();
mViewBinding
.
tvSn
.
setOnClickListener
(
v
->
LogUtils
.
d
(
str
));
mViewBinding
.
tvSn
.
setText
(
str
);
}
}
@Override
@Override
...
...
app/src/main/java/com/xingdata/zzdpos/ui/login/LoginPresenter.java
View file @
ddd1dbb9
...
@@ -10,7 +10,9 @@ import com.blankj.utilcode.util.LogUtils;
...
@@ -10,7 +10,9 @@ import com.blankj.utilcode.util.LogUtils;
import
com.blankj.utilcode.util.SPUtils
;
import
com.blankj.utilcode.util.SPUtils
;
import
com.blankj.utilcode.util.ToastUtils
;
import
com.blankj.utilcode.util.ToastUtils
;
import
com.google.gson.Gson
;
import
com.google.gson.Gson
;
import
com.xingdata.zzdpos.App
;
import
com.xingdata.zzdpos.C
;
import
com.xingdata.zzdpos.C
;
import
com.xingdata.zzdpos.R
;
import
com.xingdata.zzdpos.api.ApiException
;
import
com.xingdata.zzdpos.api.ApiException
;
import
com.xingdata.zzdpos.api.ApiFactory
;
import
com.xingdata.zzdpos.api.ApiFactory
;
import
com.xingdata.zzdpos.db.DBFactory
;
import
com.xingdata.zzdpos.db.DBFactory
;
...
@@ -88,26 +90,22 @@ public class LoginPresenter extends LoginContract.Presenter {
...
@@ -88,26 +90,22 @@ public class LoginPresenter extends LoginContract.Presenter {
@Override
@Override
public
void
createStoreFragmentinit
(
Context
context
,
LoadingDialog
loadingDialog
)
{
public
void
createStoreFragmentinit
(
Context
context
,
LoadingDialog
loadingDialog
)
{
//加载城市数据列表,加载门店类型列表
//加载城市数据列表,加载门店类型列表
Observable
.
create
(
new
ObservableOnSubscribe
<
Boolean
>()
{
mCompositeDisposable
.
add
(
@Override
Observable
.
create
(
new
ObservableOnSubscribe
<
Boolean
>()
{
public
void
subscribe
(
ObservableEmitter
<
Boolean
>
e
)
throws
Exception
{
@Override
e
.
onNext
(
createStoreInitJsonData
(
context
,
"province.json"
));
public
void
subscribe
(
ObservableEmitter
<
Boolean
>
e
)
throws
Exception
{
}
e
.
onNext
(
createStoreInitJsonData
(
context
,
"province.json"
));
}).
subscribeOn
(
Schedulers
.
io
()).
observeOn
(
AndroidSchedulers
.
mainThread
()).
subscribe
(
new
Consumer
<
Boolean
>()
{
}
}).
subscribeOn
(
Schedulers
.
io
()).
observeOn
(
AndroidSchedulers
.
mainThread
()).
subscribe
(
new
Consumer
<
Boolean
>()
{
@Override
@Override
public
void
accept
(
Boolean
b
)
throws
Exception
{
public
void
accept
(
Boolean
b
)
throws
Exception
{
if
(
b
)
{
if
(
b
)
{
mView
.
createStoreFragmentinitComplete
(
listAddressItem1
,
listAddressItem2
,
mView
.
createStoreFragmentinitComplete
(
listAddressItem1
,
listAddressItem2
,
listAddressItem3
,
listTypeItem1
,
listTypeItem2
,
loadingDialog
);
listAddressItem3
,
listTypeItem1
,
listTypeItem2
,
loadingDialog
);
}
}
else
{
}
LogUtils
.
e
(
"省市县列表加载失败"
);
})
}
);
}
});
}
}
...
@@ -127,31 +125,32 @@ public class LoginPresenter extends LoginContract.Presenter {
...
@@ -127,31 +125,32 @@ public class LoginPresenter extends LoginContract.Presenter {
public
void
signIn
(
String
phone
,
String
password
,
PromptDialog
promptDialog
,
LoadingDialog
public
void
signIn
(
String
phone
,
String
password
,
PromptDialog
promptDialog
,
LoadingDialog
loadingDialog
)
{
loadingDialog
)
{
if
(
PhoneFormatCheckUtils
.
isPhoneLegal
(
phone
))
{
if
(
PhoneFormatCheckUtils
.
isPhoneLegal
(
phone
))
{
ApiFactory
.
Test
.
signBefore
(
phone
,
EncryptUtils
.
encryptMD5ToString
(
password
.
getBytes
()),
mCompositeDisposable
.
add
(
"1"
,
SystemUtil
.
getDeviceSN
()).
subscribe
(
loginReturnBean
->
{
ApiFactory
.
Test
.
signBefore
(
phone
,
EncryptUtils
.
encryptMD5ToString
(
password
.
getBytes
()),
LoginPresenter
.
loginReturnBean
=
loginReturnBean
;
"1"
,
SystemUtil
.
getDeviceSN
()).
subscribe
(
loginReturnBean
->
{
getLoginBean
().
setPhone_No
(
phone
)
;
LoginPresenter
.
loginReturnBean
=
loginReturnBean
;
LoginPresenter
.
loginReturnBean
.
setLoginPwd
(
password
);
getLoginBean
().
setPhone_No
(
phone
);
LogUtils
.
e
(
"登录成功"
);
LoginPresenter
.
loginReturnBean
.
setLoginPwd
(
password
);
mView
.
signInSucc
(
loginReturnBean
,
promptDialog
,
loadingDialog
);
mView
.
signInSucc
(
loginReturnBean
,
promptDialog
,
loadingDialog
);
},
throwable
->
{
},
throwable
->
{
if
(
throwable
instanceof
ApiException
.
API
)
{
if
(
throwable
instanceof
ApiException
.
API
)
{
if
(((
ApiException
.
API
)
throwable
).
getReturnCode
().
equals
(
C
.
RETURN_CODE
if
(((
ApiException
.
API
)
throwable
).
getReturnCode
().
equals
(
C
.
RETURN_CODE
.
NO_REGISTRATION
))
{
.
NO_REGISTRATION
))
{
mView
.
signInError
(((
ApiException
.
API
)
throwable
).
getReturnInfo
(),
false
,
mView
.
signInError
(((
ApiException
.
API
)
throwable
).
getReturnInfo
(),
false
,
phone
,
password
,
promptDialog
,
loadingDialog
);
phone
,
password
,
promptDialog
,
loadingDialog
);
}
else
{
}
else
{
mView
.
signInError
(
throwable
.
getMessage
(),
true
,
phone
,
password
,
mView
.
signInError
(
throwable
.
getMessage
(),
true
,
phone
,
password
,
promptDialog
,
loadingDialog
);
promptDialog
,
loadingDialog
);
}
}
}
else
{
}
else
{
mView
.
signInError
(
throwable
.
getMessage
(),
true
,
phone
,
password
,
mView
.
signInError
(
throwable
.
getMessage
(),
true
,
phone
,
password
,
promptDialog
,
loadingDialog
);
promptDialog
,
loadingDialog
);
}
}
});
})
);
}
else
{
}
else
{
mView
.
errorInfo
(
"请输入正确的手机号"
,
promptDialog
,
loadingDialog
);
mView
.
errorInfo
(
getString
(
R
.
string
.
login_valid_data
)
,
promptDialog
,
loadingDialog
);
}
}
}
}
...
@@ -161,34 +160,36 @@ public class LoginPresenter extends LoginContract.Presenter {
...
@@ -161,34 +160,36 @@ public class LoginPresenter extends LoginContract.Presenter {
if
(
PhoneFormatCheckUtils
.
isPhoneLegal
(
phoneNo
))
{
if
(
PhoneFormatCheckUtils
.
isPhoneLegal
(
phoneNo
))
{
String
strMd5
=
EncryptUtils
.
encryptMD5ToString
((
phoneNo
+
"xingdata.com"
)
String
strMd5
=
EncryptUtils
.
encryptMD5ToString
((
phoneNo
+
"xingdata.com"
)
.
getBytes
());
.
getBytes
());
mCompositeDisposable
.
add
(
ApiFactory
.
Test
.
sendSms
(
phoneNo
,
strMd5
,
startWay
).
subscribe
(
s
->
{
ApiFactory
.
Test
.
sendSms
(
phoneNo
,
strMd5
,
startWay
).
subscribe
(
s
->
{
logAndToast
(
"验证码发送成功"
);
mView
.
sendSmsCodeSucc
(
loadingDialog
);
mView
.
sendSmsCodeSucc
(
loadingDialog
);
},
throwable
->
{
},
throwable
->
{
mView
.
sendSmsCodeError
(
throwable
.
getMessage
(),
loadingDialog
);
mView
.
sendSmsCodeError
(
throwable
.
getMessage
(),
loadingDialog
);
logAndToast
(
throwable
.
getMessage
()
);
logAndToast
(
throwable
.
getMessage
());
})
}
);
);
}
else
{
}
else
{
if
(
loadingDialog
!=
null
)
{
if
(
loadingDialog
!=
null
)
{
loadingDialog
.
dismiss
();
loadingDialog
.
dismiss
();
}
}
logAndToast
(
"请输入正确的手机号"
);
logAndToast
(
getString
(
R
.
string
.
login_valid_data
)
);
}
}
}
}
@Override
@Override
public
void
checkSmsCode
(
String
phoneNo
,
String
smsCode
,
LoadingDialog
loadingDialog
)
{
public
void
checkSmsCode
(
String
phoneNo
,
String
smsCode
,
LoadingDialog
loadingDialog
)
{
if
(
PhoneFormatCheckUtils
.
isPhoneLegal
(
phoneNo
))
{
if
(
PhoneFormatCheckUtils
.
isPhoneLegal
(
phoneNo
))
{
ApiFactory
.
Test
.
checkSms
(
phoneNo
,
smsCode
).
subscribe
(
checkResule
->
{
mCompositeDisposable
.
add
(
LogUtils
.
e
(
"验证码校验成功"
);
ApiFactory
.
Test
.
checkSms
(
phoneNo
,
smsCode
).
subscribe
(
checkResule
->
{
mView
.
checkSmsCodeSucc
(
loadingDialog
);
mView
.
checkSmsCodeSucc
(
loadingDialog
);
},
throwable
->
{
},
throwable
->
{
mView
.
errorInfo
(
throwable
.
getMessage
(),
new
PromptDialog
(),
loadingDialog
);
mView
.
errorInfo
(
throwable
.
getMessage
(),
new
PromptDialog
(),
loadingDialog
);
});
})
);
}
else
{
}
else
{
mView
.
errorInfo
(
"请输入正确的手机号"
,
new
PromptDialog
(),
loadingDialog
);
mView
.
errorInfo
(
getString
(
R
.
string
.
login_valid_data
)
,
new
PromptDialog
(),
loadingDialog
);
}
}
}
}
...
@@ -202,34 +203,36 @@ public class LoginPresenter extends LoginContract.Presenter {
...
@@ -202,34 +203,36 @@ public class LoginPresenter extends LoginContract.Presenter {
if
(
PhoneFormatCheckUtils
.
isPhoneLegal
(
operMobile
))
{
if
(
PhoneFormatCheckUtils
.
isPhoneLegal
(
operMobile
))
{
switch
(
startWay
)
{
switch
(
startWay
)
{
case
1
:
{
case
1
:
{
ApiFactory
.
Test
.
rigister
(
operMobile
,
EncryptUtils
mCompositeDisposable
.
add
(
.
encryptMD5ToString
(
loginPwd
),
ApiFactory
.
Test
.
rigister
(
operMobile
,
EncryptUtils
merName
,
operName
,
shopName
,
cityCountyId
,
cityAddress
,
SystemUtil
.
encryptMD5ToString
(
loginPwd
),
.
getDeviceSN
(),
merName
,
operName
,
shopName
,
cityCountyId
,
cityAddress
,
SystemUtil
SystemUtil
.
getDeviceModel
(),
getLoginBean
().
getSmsCode
()).
subscribe
(
.
getDeviceSN
(),
register
->
{
SystemUtil
.
getDeviceModel
(),
getLoginBean
().
getSmsCode
()).
subscribe
(
logAndToast
(
"注册成功"
);
register
->
{
SPUtils
.
getInstance
().
put
(
C
.
SP_KEY
.
IS_SHOW_SIGNUP_BTN
,
1
);
SPUtils
.
getInstance
().
put
(
C
.
SP_KEY
.
IS_SHOW_SIGNUP_BTN
,
1
);
mView
.
createStoreSucc
(
loadingDialog
);
mView
.
createStoreSucc
(
loadingDialog
);
},
throwable
->
{
},
throwable
->
{
mView
.
errorInfo
(
throwable
.
getMessage
(),
new
PromptDialog
(),
mView
.
errorInfo
(
throwable
.
getMessage
(),
new
PromptDialog
(),
loadingDialog
);
loadingDialog
);
logAndToast
(
throwable
.
getMessage
());
logAndToast
(
throwable
.
getMessage
());
});
})
);
}
}
break
;
break
;
case
2
:
{
case
2
:
{
ApiFactory
.
Test
.
addStore
(
shopName
,
cityCountyId
+
""
,
cityAddress
).
subscribe
(
mCompositeDisposable
.
add
(
addStore
->
{
ApiFactory
.
Test
.
addStore
(
shopName
,
cityCountyId
+
""
,
cityAddress
).
subscribe
(
logAndToast
(
"门店添加成功"
);
addStore
->
{
mView
.
addStoreSucc
(
loadingDialog
);
mView
.
addStoreSucc
(
loadingDialog
);
},
throwable
->
{
},
throwable
->
{
mView
.
errorInfo
(
throwable
.
getMessage
(),
new
PromptDialog
(),
mView
.
errorInfo
(
throwable
.
getMessage
(),
new
PromptDialog
(),
loadingDialog
);
loadingDialog
);
logAndToast
(
throwable
.
getMessage
());
logAndToast
(
throwable
.
getMessage
());
});
})
);
}
}
break
;
break
;
default
:
{
default
:
{
...
@@ -240,7 +243,7 @@ public class LoginPresenter extends LoginContract.Presenter {
...
@@ -240,7 +243,7 @@ public class LoginPresenter extends LoginContract.Presenter {
}
else
{
}
else
{
logAndToast
(
"请输入正确的手机号"
);
logAndToast
(
getString
(
R
.
string
.
login_valid_data
)
);
}
}
...
@@ -249,57 +252,57 @@ public class LoginPresenter extends LoginContract.Presenter {
...
@@ -249,57 +252,57 @@ public class LoginPresenter extends LoginContract.Presenter {
@Override
@Override
public
void
createCounter
(
long
shopMapId
,
PromptDialog
promptDialog
,
LoadingDialog
public
void
createCounter
(
long
shopMapId
,
PromptDialog
promptDialog
,
LoadingDialog
loadingDialog
)
{
loadingDialog
)
{
ApiFactory
.
Test
.
addCounter
(
shopMapId
).
subscribe
(
addCounter
->
{
mCompositeDisposable
.
add
(
if
(
Global
.
isSnNull
())
{
ApiFactory
.
Test
.
addCounter
(
shopMapId
).
subscribe
(
addCounter
->
{
ToastUtils
.
showLong
(
"Sn为空"
);
if
(
Global
.
isSnNull
())
{
return
;
return
;
}
}
mView
.
bindingCounterSucc
(
promptDialog
,
loadingDialog
);
mView
.
bindingCounterSucc
(
promptDialog
,
loadingDialog
);
},
throwable
->
{
},
throwable
->
{
mView
.
errorInfo
(
throwable
.
getMessage
(),
promptDialog
,
loadingDialog
);
mView
.
errorInfo
(
throwable
.
getMessage
(),
promptDialog
,
loadingDialog
);
});
})
);
}
}
@Override
@Override
public
void
bindingCounter
(
long
casherId
,
PromptDialog
promptDialog
,
LoadingDialog
public
void
bindingCounter
(
long
casherId
,
PromptDialog
promptDialog
,
LoadingDialog
loadingDialog
)
{
loadingDialog
)
{
mCompositeDisposable
.
add
(
ApiFactory
.
Test
.
bindCounter
(
casherId
).
subscribe
(
bindCounter
->
{
ApiFactory
.
Test
.
bindCounter
(
casherId
).
subscribe
(
bindCounter
->
{
if
(
Global
.
isSnNull
())
{
if
(
Global
.
isSnNull
())
{
ToastUtils
.
showLong
(
"Sn为空"
);
return
;
return
;
}
}
mView
.
bindingCounterSucc
(
promptDialog
,
loadingDialog
);
mView
.
bindingCounterSucc
(
promptDialog
,
loadingDialog
);
},
throwable
->
{
},
throwable
->
{
mView
.
errorInfo
(
throwable
.
getMessage
(),
promptDialog
,
loadingDialog
);
mView
.
errorInfo
(
throwable
.
getMessage
(),
promptDialog
,
loadingDialog
);
})
});
);
}
}
@Override
@Override
public
void
getUserStoreInfo
(
LoadingDialog
loadingDialog
)
{
public
void
getUserStoreInfo
(
LoadingDialog
loadingDialog
)
{
ApiFactory
.
Test
.
getUserStoreInfo
().
subscribe
(
userStoreInfo
->
{
mCompositeDisposable
.
add
(
LoginPresenter
.
userStoreInfo
=
userStoreInfo
;
ApiFactory
.
Test
.
getUserStoreInfo
().
subscribe
(
userStoreInfo
->
{
mView
.
getUserStoreInfoSucc
(
loadingDialog
)
;
LoginPresenter
.
userStoreInfo
=
userStoreInfo
;
},
throwable
->
{
mView
.
getUserStoreInfoSucc
(
loadingDialog
);
logAndToast
(
throwable
.
getMessage
());
},
throwable
->
{
}
);
logAndToast
(
throwable
.
getMessage
()
);
})
);
}
}
@Override
@Override
public
void
findPassword
(
String
phone
,
String
password
,
String
smscode
,
LoadingDialog
public
void
findPassword
(
String
phone
,
String
password
,
String
smscode
,
LoadingDialog
loadingDialog
)
{
loadingDialog
)
{
ApiFactory
.
Test
.
forget
(
phone
,
EncryptUtils
.
encryptMD5ToString
(
password
),
smscode
)
mCompositeDisposable
.
add
(
.
subscribe
(
findpwd
->
{
ApiFactory
.
Test
.
forget
(
phone
,
EncryptUtils
.
encryptMD5ToString
(
password
),
smscode
)
mView
.
onFindPasswordComplete
(
loadingDialog
);
.
subscribe
(
findpwd
->
{
logAndToast
(
"密码修改成功"
);
mView
.
onFindPasswordComplete
(
loadingDialog
);
},
throwable
->
{
logAndToast
(
App
.
instance
.
getResources
().
getString
(
R
.
string
.
all_succ
));
mView
.
errorInfo
(
throwable
.
getMessage
(),
new
PromptDialog
(),
loadingDialog
);
},
throwable
->
{
logAndToast
(
throwable
.
getMessage
());
mView
.
errorInfo
(
throwable
.
getMessage
(),
new
PromptDialog
(),
loadingDialog
);
});
logAndToast
(
throwable
.
getMessage
());
})
);
}
}
...
@@ -307,15 +310,17 @@ public class LoginPresenter extends LoginContract.Presenter {
...
@@ -307,15 +310,17 @@ public class LoginPresenter extends LoginContract.Presenter {
@Override
@Override
public
void
deviceRegister
(
String
phone
,
String
password
,
PromptDialog
promptDialog
,
public
void
deviceRegister
(
String
phone
,
String
password
,
PromptDialog
promptDialog
,
LoadingDialog
loadingDialog
)
{
LoadingDialog
loadingDialog
)
{
ApiFactory
.
Test
.
deviceRegister
().
subscribe
(
s
->
{
if
(
Global
.
isSnNull
())
{
mCompositeDisposable
.
add
(
ToastUtils
.
showLong
(
"Sn为空"
);
ApiFactory
.
Test
.
deviceRegister
().
subscribe
(
s
->
{
return
;
if
(
Global
.
isSnNull
())
{
}
return
;
signIn
(
phone
,
password
,
promptDialog
,
loadingDialog
);
}
},
throwable
->
{
signIn
(
phone
,
password
,
promptDialog
,
loadingDialog
);
mView
.
errorInfo
(
throwable
.
getMessage
(),
new
PromptDialog
(),
loadingDialog
);
},
throwable
->
{
});
mView
.
errorInfo
(
throwable
.
getMessage
(),
new
PromptDialog
(),
loadingDialog
);
})
);
}
}
@Override
@Override
...
@@ -325,9 +330,15 @@ public class LoginPresenter extends LoginContract.Presenter {
...
@@ -325,9 +330,15 @@ public class LoginPresenter extends LoginContract.Presenter {
@Override
@Override
public
void
logout
()
{
public
void
logout
()
{
ApiFactory
.
Test
.
logout
().
subscribe
(
s
->
{
mCompositeDisposable
.
add
(
},
throwable
->
{
ApiFactory
.
Test
.
logout
()
});
.
subscribe
(
s
->
{
},
throwable
->
{
}
)
);
}
}
/**
/**
...
...
app/src/main/java/com/xingdata/zzdpos/ui/login/fragment/CreateStoreFragment.java
View file @
ddd1dbb9
...
@@ -109,7 +109,7 @@ public class CreateStoreFragment extends BaseFragment<LoginPresenter,
...
@@ -109,7 +109,7 @@ public class CreateStoreFragment extends BaseFragment<LoginPresenter,
}
else
{
}
else
{
ToastUtils
.
showLong
(
"门店数据不能为空"
);
ToastUtils
.
showLong
(
R
.
string
.
login_valid_data
);
}
}
}
}
...
...
app/src/main/java/com/xingdata/zzdpos/ui/login/fragment/InputPasswordFragment.java
View file @
ddd1dbb9
...
@@ -11,7 +11,6 @@ import com.xingdata.zzdpos.R;
...
@@ -11,7 +11,6 @@ import com.xingdata.zzdpos.R;
import
com.xingdata.zzdpos.base.BaseActivity
;
import
com.xingdata.zzdpos.base.BaseActivity
;
import
com.xingdata.zzdpos.base.BaseFragment
;
import
com.xingdata.zzdpos.base.BaseFragment
;
import
com.xingdata.zzdpos.databinding.FragmentInputPasswordBinding
;
import
com.xingdata.zzdpos.databinding.FragmentInputPasswordBinding
;
import
com.xingdata.zzdpos.ui.dialog.LoadingDialog
;
import
com.xingdata.zzdpos.ui.login.LoginPresenter
;
import
com.xingdata.zzdpos.ui.login.LoginPresenter
;
import
com.xingdata.zzdpos.util.OnClickListener
;
import
com.xingdata.zzdpos.util.OnClickListener
;
...
@@ -35,7 +34,7 @@ public class InputPasswordFragment extends BaseFragment<LoginPresenter,
...
@@ -35,7 +34,7 @@ public class InputPasswordFragment extends BaseFragment<LoginPresenter,
@Override
@Override
public
void
initView
()
{
public
void
initView
()
{
mViewBinding
.
icTitle
.
tvTitle
.
setText
(
"输入密码"
);
mViewBinding
.
icTitle
.
tvTitle
.
setText
(
R
.
string
.
title_input_password_hint
);
mViewBinding
.
icTitle
.
setOnClickListener
(
new
OnClickListener
()
{
mViewBinding
.
icTitle
.
setOnClickListener
(
new
OnClickListener
()
{
@Override
@Override
protected
void
myOnClickListener
(
View
v
)
{
protected
void
myOnClickListener
(
View
v
)
{
...
@@ -54,7 +53,7 @@ public class InputPasswordFragment extends BaseFragment<LoginPresenter,
...
@@ -54,7 +53,7 @@ public class InputPasswordFragment extends BaseFragment<LoginPresenter,
case
R
.
id
.
btn_next
:
{
case
R
.
id
.
btn_next
:
{
switch
(
startway
)
{
switch
(
startway
)
{
case
1
:
{
case
1
:
{
ToastUtils
.
showLong
(
"修改密码"
);
ToastUtils
.
showLong
(
R
.
string
.
change_password_title
);
if
(
checkPwd
())
{
if
(
checkPwd
())
{
if
(
checkLenth
())
{
if
(
checkLenth
())
{
mPresenter
.
getLoginBean
().
setNew_Pwd
(
mViewBinding
.
etOnePassword
mPresenter
.
getLoginBean
().
setNew_Pwd
(
mViewBinding
.
etOnePassword
...
@@ -64,10 +63,10 @@ public class InputPasswordFragment extends BaseFragment<LoginPresenter,
...
@@ -64,10 +63,10 @@ public class InputPasswordFragment extends BaseFragment<LoginPresenter,
mPresenter
.
getLoginBean
().
getNew_Pwd
(),
mPresenter
mPresenter
.
getLoginBean
().
getNew_Pwd
(),
mPresenter
.
getLoginBean
().
getSmsCode
(),
mLoadingDialog
);
.
getLoginBean
().
getSmsCode
(),
mLoadingDialog
);
}
else
{
}
else
{
ToastUtils
.
showLong
(
"密码必须为6位的数字"
);
ToastUtils
.
showLong
(
R
.
string
.
login_valid_data
);
}
}
}
else
{
}
else
{
ToastUtils
.
showLong
(
"密码输入为空,或者两次密码输入不一致"
);
ToastUtils
.
showLong
(
R
.
string
.
login_valid_data
);
}
}
}
}
...
@@ -81,12 +80,11 @@ public class InputPasswordFragment extends BaseFragment<LoginPresenter,
...
@@ -81,12 +80,11 @@ public class InputPasswordFragment extends BaseFragment<LoginPresenter,
mPresenter
.
createStoreFragment
.
setStartway
(
1
);
mPresenter
.
createStoreFragment
.
setStartway
(
1
);
start
(
mPresenter
.
createStoreFragment
);
start
(
mPresenter
.
createStoreFragment
);
}
else
{
}
else
{
ToastUtils
.
showLong
(
"密码必须为6位的数字"
);
ToastUtils
.
showLong
(
R
.
string
.
login_valid_data
);
}
}
}
else
{
}
else
{
ToastUtils
.
showLong
(
"密码输入为空,或者两次密码输入不一致"
);
ToastUtils
.
showLong
(
R
.
string
.
login_valid_data
);
}
}
}
}
break
;
break
;
default
:
{
default
:
{
...
...
app/src/main/java/com/xingdata/zzdpos/ui/login/fragment/SelectIndustryFragment.java
View file @
ddd1dbb9
...
@@ -4,12 +4,10 @@ import android.support.v7.widget.GridLayoutManager;
...
@@ -4,12 +4,10 @@ import android.support.v7.widget.GridLayoutManager;
import
android.view.View
;
import
android.view.View
;
import
com.blankj.utilcode.util.SPUtils
;
import
com.blankj.utilcode.util.SPUtils
;
import
com.blankj.utilcode.util.ToastUtils
;
import
com.xingdata.zzdpos.R
;
import
com.xingdata.zzdpos.R
;
import
com.xingdata.zzdpos.base.BaseFragment
;
import
com.xingdata.zzdpos.base.BaseFragment
;
import
com.xingdata.zzdpos.databinding.FragmentSelectIndustryBinding
;
import
com.xingdata.zzdpos.databinding.FragmentSelectIndustryBinding
;
import
com.xingdata.zzdpos.model.Industry
;
import
com.xingdata.zzdpos.model.Industry
;
import
com.xingdata.zzdpos.ui.dialog.LoadingDialog
;
import
com.xingdata.zzdpos.ui.login.LoginPresenter
;
import
com.xingdata.zzdpos.ui.login.LoginPresenter
;
import
com.xingdata.zzdpos.ui.login.adapter.SelectIndustryAdapter
;
import
com.xingdata.zzdpos.ui.login.adapter.SelectIndustryAdapter
;
import
com.xingdata.zzdpos.util.OnClickListener
;
import
com.xingdata.zzdpos.util.OnClickListener
;
...
@@ -26,8 +24,7 @@ import java.util.List;
...
@@ -26,8 +24,7 @@ import java.util.List;
*/
*/
public
class
SelectIndustryFragment
extends
BaseFragment
<
LoginPresenter
,
public
class
SelectIndustryFragment
extends
BaseFragment
<
LoginPresenter
,
FragmentSelectIndustryBinding
>
{
FragmentSelectIndustryBinding
>
{
public
static
String
[]
industryName
=
new
String
[]{
public
String
[]
industryName
;
"超市"
,
"鲜花"
,
"鞋服"
,
"药店"
,
"熟食"
,
"生鲜"
,
"便利店"
,
"夫妻店"
,
"烟酒"
,
"母婴"
,
"茶叶"
,
"书店"
,
"美妆"
,
"其他"
};
List
<
Industry
>
list
=
new
ArrayList
<>();
List
<
Industry
>
list
=
new
ArrayList
<>();
SelectIndustryAdapter
selectIndustryAdapter
;
SelectIndustryAdapter
selectIndustryAdapter
;
long
mExitTime
;
long
mExitTime
;
...
@@ -41,6 +38,7 @@ public class SelectIndustryFragment extends BaseFragment<LoginPresenter,
...
@@ -41,6 +38,7 @@ public class SelectIndustryFragment extends BaseFragment<LoginPresenter,
@Override
@Override
public
void
initView
()
{
public
void
initView
()
{
industryName
=
mContext
.
getResources
().
getStringArray
(
R
.
array
.
business_group
);
list
.
clear
();
list
.
clear
();
addData
();
addData
();
selectIndustryAdapter
=
new
SelectIndustryAdapter
(
list
);
selectIndustryAdapter
=
new
SelectIndustryAdapter
(
list
);
...
@@ -52,7 +50,7 @@ public class SelectIndustryFragment extends BaseFragment<LoginPresenter,
...
@@ -52,7 +50,7 @@ public class SelectIndustryFragment extends BaseFragment<LoginPresenter,
selectIndustryAdapter
.
setOnLoadMoreListener
(
this
::
loadMoreProduct
,
mViewBinding
.
rvSelect
);
selectIndustryAdapter
.
setOnLoadMoreListener
(
this
::
loadMoreProduct
,
mViewBinding
.
rvSelect
);
selectIndustryAdapter
.
setOnItemClickListener
((
adapter
,
view
,
position
)
->
clickProduct
selectIndustryAdapter
.
setOnItemClickListener
((
adapter
,
view
,
position
)
->
clickProduct
(
selectIndustryAdapter
.
getData
().
get
(
position
)));
(
selectIndustryAdapter
.
getData
().
get
(
position
)));
mViewBinding
.
icTitle
.
tvTitle
.
setText
(
"选择行业"
);
mViewBinding
.
icTitle
.
tvTitle
.
setText
(
R
.
string
.
select_business
);
mViewBinding
.
icTitle
.
setOnClickListener
(
new
OnClickListener
()
{
mViewBinding
.
icTitle
.
setOnClickListener
(
new
OnClickListener
()
{
@Override
@Override
protected
void
myOnClickListener
(
View
v
)
{
protected
void
myOnClickListener
(
View
v
)
{
...
@@ -104,10 +102,6 @@ public class SelectIndustryFragment extends BaseFragment<LoginPresenter,
...
@@ -104,10 +102,6 @@ public class SelectIndustryFragment extends BaseFragment<LoginPresenter,
industry
.
setSelect
(
true
);
industry
.
setSelect
(
true
);
nowId
=
industry
.
getId
();
nowId
=
industry
.
getId
();
selectIndustryAdapter
.
notifyDataSetChanged
();
selectIndustryAdapter
.
notifyDataSetChanged
();
// ToastUtils.showLong(industry.getIndustryName());
}
else
{
ToastUtils
.
showLong
(
"您操作太快了"
);
}
}
}
}
...
...
app/src/main/java/com/xingdata/zzdpos/ui/login/fragment/SignInFragment.java
View file @
ddd1dbb9
...
@@ -87,7 +87,7 @@ public class SignInFragment extends BaseFragment<LoginPresenter,
...
@@ -87,7 +87,7 @@ public class SignInFragment extends BaseFragment<LoginPresenter,
case
R
.
id
.
btn_login
:
{
case
R
.
id
.
btn_login
:
{
if
(
mViewBinding
.
etPwd
.
getText
().
toString
().
isEmpty
()
||
if
(
mViewBinding
.
etPwd
.
getText
().
toString
().
isEmpty
()
||
mViewBinding
.
etPhone
.
getText
().
toString
().
isEmpty
())
{
mViewBinding
.
etPhone
.
getText
().
toString
().
isEmpty
())
{
ToastUtils
.
showLong
(
"账号密码不能为空"
);
ToastUtils
.
showLong
(
R
.
string
.
login_valid_data
);
}
else
{
}
else
{
promptDialog
=
new
PromptDialog
().
setDialogType
(
PromptDialog
.
PROMPTDIALOG_ING
,
"正在登录"
);
promptDialog
=
new
PromptDialog
().
setDialogType
(
PromptDialog
.
PROMPTDIALOG_ING
,
"正在登录"
);
mLoadingDialog
.
show
((
BaseActivity
)
getActivity
());
mLoadingDialog
.
show
((
BaseActivity
)
getActivity
());
...
...
app/src/main/java/com/xingdata/zzdpos/ui/manage/bale/fragment/BaleEditFragment.java
View file @
ddd1dbb9
...
@@ -144,7 +144,7 @@ public class BaleEditFragment extends BaseFragment<BalePresenter, FragmentBaleEd
...
@@ -144,7 +144,7 @@ public class BaleEditFragment extends BaseFragment<BalePresenter, FragmentBaleEd
}
}
}
else
{
}
else
{
ToastUtils
.
showLong
(
"数据不能为空"
);
ToastUtils
.
showLong
(
R
.
string
.
login_valid_data
);
}
}
}
}
break
;
break
;
...
...
app/src/main/java/com/xingdata/zzdpos/ui/manage/user/fragment/UserInfoEditFragment.java
View file @
ddd1dbb9
...
@@ -15,7 +15,6 @@ import com.xingdata.zzdpos.databinding.FragmentUserInfoEditBinding;
...
@@ -15,7 +15,6 @@ import com.xingdata.zzdpos.databinding.FragmentUserInfoEditBinding;
import
com.xingdata.zzdpos.model.Oper
;
import
com.xingdata.zzdpos.model.Oper
;
import
com.xingdata.zzdpos.ui.manage.user.UserPresenter
;
import
com.xingdata.zzdpos.ui.manage.user.UserPresenter
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
@@ -56,20 +55,20 @@ public class UserInfoEditFragment extends BaseFragment<UserPresenter, FragmentUs
...
@@ -56,20 +55,20 @@ public class UserInfoEditFragment extends BaseFragment<UserPresenter, FragmentUs
Oper
mOper
=
new
Oper
();
Oper
mOper
=
new
Oper
();
if
(
mViewBinding
.
userName
.
getText
().
length
()
==
0
)
{
if
(
mViewBinding
.
userName
.
getText
().
length
()
==
0
)
{
ToastUtils
.
showShort
(
"店员名称不能为空"
);
ToastUtils
.
showShort
(
R
.
string
.
login_valid_data
);
return
;
return
;
}
}
if
(
mViewBinding
.
userPhone
.
getText
().
length
()
==
0
)
{
if
(
mViewBinding
.
userPhone
.
getText
().
length
()
==
0
)
{
ToastUtils
.
showShort
(
"店员帐号不能为空"
);
ToastUtils
.
showShort
(
R
.
string
.
login_valid_data
);
return
;
return
;
}
}
if
(
mViewBinding
.
userPhone
.
getText
().
length
()
!=
11
)
{
if
(
mViewBinding
.
userPhone
.
getText
().
length
()
!=
11
)
{
ToastUtils
.
showShort
(
"店员帐号长度必须11位"
);
ToastUtils
.
showShort
(
R
.
string
.
login_valid_data
);
return
;
return
;
}
}
if
(
mViewBinding
.
userLevel
.
getText
().
length
()
==
0
)
{
if
(
mViewBinding
.
userLevel
.
getText
().
length
()
==
0
)
{
ToastUtils
.
showShort
(
"店员等级不能为空"
);
ToastUtils
.
showShort
(
R
.
string
.
login_valid_data
);
return
;
return
;
}
}
...
@@ -109,7 +108,7 @@ public class UserInfoEditFragment extends BaseFragment<UserPresenter, FragmentUs
...
@@ -109,7 +108,7 @@ public class UserInfoEditFragment extends BaseFragment<UserPresenter, FragmentUs
public
void
onOptionsSelect
(
int
options1
,
int
options2
,
int
options3
,
View
v
)
{
public
void
onOptionsSelect
(
int
options1
,
int
options2
,
int
options3
,
View
v
)
{
mViewBinding
.
userLevel
.
setText
(
strLevels
.
get
(
options1
));
mViewBinding
.
userLevel
.
setText
(
strLevels
.
get
(
options1
));
}
}
}).
setTitleText
(
"请选择"
)
}).
setTitleText
(
getString
(
R
.
string
.
all_select
)
)
.
setDividerColor
(
Color
.
BLACK
)
.
setDividerColor
(
Color
.
BLACK
)
.
setTextColorCenter
(
Color
.
BLACK
)
//设置选中项文字颜色
.
setTextColorCenter
(
Color
.
BLACK
)
//设置选中项文字颜色
.
setContentTextSize
(
20
)
.
setContentTextSize
(
20
)
...
...
app/src/main/java/com/xingdata/zzdpos/ui/marketing/integral/adapter/IntegralExchangeAdapter.java
View file @
ddd1dbb9
...
@@ -21,14 +21,14 @@ public class IntegralExchangeAdapter extends BaseAdapter<Ubound, ItemIntegralBin
...
@@ -21,14 +21,14 @@ public class IntegralExchangeAdapter extends BaseAdapter<Ubound, ItemIntegralBin
@Override
@Override
protected
void
convert
(
ItemIntegralBinding
mViewBinding
,
Ubound
item
)
{
protected
void
convert
(
ItemIntegralBinding
mViewBinding
,
Ubound
item
)
{
mViewBinding
.
tvVipTitle
.
setText
(
"积分面值"
);
mViewBinding
.
tvVipTitle
.
setText
(
R
.
string
.
points_points_value
);
mViewBinding
.
tvSourceTitle
.
setText
(
"兑换规则"
);
mViewBinding
.
tvSourceTitle
.
setText
(
R
.
string
.
points_rule
);
mViewBinding
.
tvVip
.
setText
(
item
.
getBoundValAmt
()
+
"个积分=1元"
);
mViewBinding
.
tvVip
.
setText
(
item
.
getBoundValAmt
()
+
mContext
.
getString
(
R
.
string
.
points_points_value_hint
)
);
//兑换规则
//兑换规则
if
(
item
.
getBoundOrderAmt
()
!=
null
&&
item
.
getBoundUseNum
()
!=
null
)
{
if
(
item
.
getBoundOrderAmt
()
!=
null
&&
item
.
getBoundUseNum
()
!=
null
)
{
mViewBinding
.
tvSource
.
setText
(
"订单实收金额满"
+
ConvertUtil
.
fenToYuan
(
item
.
getBoundOrderAmt
())
+
"元\n最多使用"
+
item
.
getBoundUseNum
()
+
"积分"
);
mViewBinding
.
tvSource
.
setText
(
mContext
.
getString
(
R
.
string
.
points_c1
)
+
" "
+
ConvertUtil
.
fenToYuan
(
item
.
getBoundOrderAmt
())
+
" "
+
mContext
.
getString
(
R
.
string
.
points_c3
)
+
" "
+
item
.
getBoundUseNum
()
+
" "
+
mContext
.
getString
(
R
.
string
.
points_c4
)
);
}
}
//备注
//备注
mViewBinding
.
tvGet
.
setText
(
mViewBinding
.
tvVip
.
getText
().
toString
());
mViewBinding
.
tvGet
.
setText
(
mViewBinding
.
tvVip
.
getText
().
toString
());
...
...
app/src/main/java/com/xingdata/zzdpos/ui/marketing/integral/fragment/IntegralExchangeFragment.java
View file @
ddd1dbb9
...
@@ -9,7 +9,6 @@ import com.xingdata.zzdpos.base.BaseActivity;
...
@@ -9,7 +9,6 @@ import com.xingdata.zzdpos.base.BaseActivity;
import
com.xingdata.zzdpos.base.BaseFragment
;
import
com.xingdata.zzdpos.base.BaseFragment
;
import
com.xingdata.zzdpos.databinding.DialogIntegralExchangeSettingBinding
;
import
com.xingdata.zzdpos.databinding.DialogIntegralExchangeSettingBinding
;
import
com.xingdata.zzdpos.model.Ubound
;
import
com.xingdata.zzdpos.model.Ubound
;
import
com.xingdata.zzdpos.ui.dialog.LoadingDialog
;
import
com.xingdata.zzdpos.ui.marketing.integral.IntegralPresenter
;
import
com.xingdata.zzdpos.ui.marketing.integral.IntegralPresenter
;
import
com.xingdata.zzdpos.util.ConvertUtil
;
import
com.xingdata.zzdpos.util.ConvertUtil
;
import
com.xingdata.zzdpos.util.OnClickListener
;
import
com.xingdata.zzdpos.util.OnClickListener
;
...
@@ -30,7 +29,7 @@ public class IntegralExchangeFragment extends BaseFragment<IntegralPresenter,
...
@@ -30,7 +29,7 @@ public class IntegralExchangeFragment extends BaseFragment<IntegralPresenter,
@Override
@Override
public
void
initView
()
{
public
void
initView
()
{
mViewBinding
.
icTitle
.
tvTitle
.
setText
(
"兑换积分规则"
);
mViewBinding
.
icTitle
.
tvTitle
.
setText
(
R
.
string
.
integral_exchange_title
);
mViewBinding
.
icTitle
.
setOnClickListener
(
new
OnClickListener
()
{
mViewBinding
.
icTitle
.
setOnClickListener
(
new
OnClickListener
()
{
@Override
@Override
protected
void
myOnClickListener
(
View
v
)
{
protected
void
myOnClickListener
(
View
v
)
{
...
...
app/src/main/java/com/xingdata/zzdpos/ui/marketing/integral/fragment/IntegralGetFragment.java
View file @
ddd1dbb9
...
@@ -63,7 +63,7 @@ public class IntegralGetFragment extends BaseFragment<IntegralPresenter,
...
@@ -63,7 +63,7 @@ public class IntegralGetFragment extends BaseFragment<IntegralPresenter,
@Override
@Override
public
void
initView
()
{
public
void
initView
()
{
mViewBinding
.
icTitle
.
tvTitle
.
setText
(
"获取积分规则"
);
mViewBinding
.
icTitle
.
tvTitle
.
setText
(
R
.
string
.
integral_get_title
);
mViewBinding
.
icTitle
.
setOnClickListener
(
new
OnClickListener
()
{
mViewBinding
.
icTitle
.
setOnClickListener
(
new
OnClickListener
()
{
@Override
@Override
protected
void
myOnClickListener
(
View
v
)
{
protected
void
myOnClickListener
(
View
v
)
{
...
...
app/src/main/java/com/xingdata/zzdpos/ui/marketing/integral/fragment/IntegralIndexFragment.java
View file @
ddd1dbb9
package
com
.
xingdata
.
zzdpos
.
ui
.
marketing
.
integral
.
fragment
;
package
com
.
xingdata
.
zzdpos
.
ui
.
marketing
.
integral
.
fragment
;
import
android.content.Context
;
import
android.support.annotation.Nullable
;
import
android.support.annotation.Nullable
;
import
android.support.v7.widget.LinearLayoutManager
;
import
android.support.v7.widget.LinearLayoutManager
;
import
android.view.View
;
import
android.view.View
;
...
@@ -24,6 +25,7 @@ import com.xingdata.zzdpos.util.OnClickListener;
...
@@ -24,6 +25,7 @@ import com.xingdata.zzdpos.util.OnClickListener;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Locale
;
/**
/**
* 绑定款台界面
* 绑定款台界面
...
@@ -126,6 +128,12 @@ public class IntegralIndexFragment extends BaseFragment<IntegralPresenter,
...
@@ -126,6 +128,12 @@ public class IntegralIndexFragment extends BaseFragment<IntegralPresenter,
mPresenter
.
integralGetFragment
.
setCategoryDate
(
list
,
nowCategory
);
mPresenter
.
integralGetFragment
.
setCategoryDate
(
list
,
nowCategory
);
}
}
private
boolean
isZh
(
Context
context
)
{
Locale
locale
=
context
.
getResources
().
getConfiguration
().
locale
;
String
language
=
locale
.
getLanguage
();
return
language
.
endsWith
(
"zh"
);
}
public
void
querySucc
(
@Nullable
Pager
<
Gbound
>
pager
,
Boolean
isLoadMore
,
int
queryType
,
public
void
querySucc
(
@Nullable
Pager
<
Gbound
>
pager
,
Boolean
isLoadMore
,
int
queryType
,
LoadingDialog
loadingDialog
)
{
LoadingDialog
loadingDialog
)
{
if
(
loadingDialog
!=
null
)
{
if
(
loadingDialog
!=
null
)
{
...
@@ -133,7 +141,7 @@ public class IntegralIndexFragment extends BaseFragment<IntegralPresenter,
...
@@ -133,7 +141,7 @@ public class IntegralIndexFragment extends BaseFragment<IntegralPresenter,
}
}
this
.
isLoadMore
=
isLoadMore
;
this
.
isLoadMore
=
isLoadMore
;
if
(
pager
==
null
||
pager
.
getList
()
==
null
||
pager
.
getList
().
size
()
<=
0
)
{
if
(
pager
==
null
||
pager
.
getList
()
==
null
||
pager
.
getList
().
size
()
<=
0
)
{
integralAdapter
.
setEmptyView
(
getEmptyView
(
"没有积分规则
~"
));
integralAdapter
.
setEmptyView
(
getEmptyView
(
isZh
(
mContext
)
?
"没有积分规则~"
:
"Not find points rule
~"
));
}
}
if
(
pager
.
getList
()
!=
null
)
{
if
(
pager
.
getList
()
!=
null
)
{
switch
(
queryType
)
{
switch
(
queryType
)
{
...
...
app/src/main/java/com/xingdata/zzdpos/ui/marketing/ms/MsPresenter.java
View file @
ddd1dbb9
...
@@ -3,6 +3,7 @@ package com.xingdata.zzdpos.ui.marketing.ms;
...
@@ -3,6 +3,7 @@ package com.xingdata.zzdpos.ui.marketing.ms;
import
com.blankj.utilcode.util.SPUtils
;
import
com.blankj.utilcode.util.SPUtils
;
import
com.xingdata.zzdpos.C
;
import
com.xingdata.zzdpos.C
;
import
com.xingdata.zzdpos.R
;
import
com.xingdata.zzdpos.api.ApiFactory
;
import
com.xingdata.zzdpos.api.ApiFactory
;
import
com.xingdata.zzdpos.base.BaseSku
;
import
com.xingdata.zzdpos.base.BaseSku
;
import
com.xingdata.zzdpos.db.DBFactory
;
import
com.xingdata.zzdpos.db.DBFactory
;
...
@@ -84,17 +85,17 @@ public class MsPresenter<Sku extends BaseSku> extends MsContract.Presenter<Sku>
...
@@ -84,17 +85,17 @@ public class MsPresenter<Sku extends BaseSku> extends MsContract.Presenter<Sku>
@Override
@Override
public
void
initEditor
()
{
public
void
initEditor
()
{
List
<
Group
>
groups
=
new
ArrayList
<>();
List
<
Group
>
groups
=
new
ArrayList
<>();
groups
.
add
(
new
Group
(
C
.
MS_GROUP
.
ALL
,
"全场"
));
groups
.
add
(
new
Group
(
C
.
MS_GROUP
.
ALL
,
getString
(
R
.
string
.
ms_group_all
)
));
groups
.
add
(
new
Group
(
C
.
MS_GROUP
.
CATE
,
"指定品类"
));
groups
.
add
(
new
Group
(
C
.
MS_GROUP
.
CATE
,
getString
(
R
.
string
.
ms_group_cate
)
));
groups
.
add
(
new
Group
(
C
.
MS_GROUP
.
SKU
,
"指定商品"
));
groups
.
add
(
new
Group
(
C
.
MS_GROUP
.
SKU
,
getString
(
R
.
string
.
ms_group_sku
)
));
List
<
Area
>
areas
=
new
ArrayList
<>();
List
<
Area
>
areas
=
new
ArrayList
<>();
areas
.
add
(
new
Area
(
C
.
MS_AREA
.
MER
,
"所有门店"
,
LoginPresenter
.
loginReturnBean
.
getMerMapId
()));
areas
.
add
(
new
Area
(
C
.
MS_AREA
.
MER
,
getString
(
R
.
string
.
ms_all_store
)
,
LoginPresenter
.
loginReturnBean
.
getMerMapId
()));
areas
.
add
(
new
Area
(
C
.
MS_AREA
.
LOCAL
,
"本店"
,
LoginPresenter
.
loginReturnBean
.
getMerMapId
()));
areas
.
add
(
new
Area
(
C
.
MS_AREA
.
LOCAL
,
getString
(
R
.
string
.
ms_local_store
)
,
LoginPresenter
.
loginReturnBean
.
getMerMapId
()));
List
<
User
>
users
=
new
ArrayList
<>();
List
<
User
>
users
=
new
ArrayList
<>();
users
.
add
(
new
User
(
C
.
MS_USER
.
ALL
,
"所有顾客"
,
0
));
users
.
add
(
new
User
(
C
.
MS_USER
.
ALL
,
getString
(
R
.
string
.
ms_all_member
)
,
0
));
users
.
add
(
new
User
(
C
.
MS_USER
.
VIP
,
"所有会员"
,
0
));
users
.
add
(
new
User
(
C
.
MS_USER
.
VIP
,
getString
(
R
.
string
.
ms_all_vip
)
,
0
));
DBFactory
.
Marketing
.
Ms
.
queryLevel
()
DBFactory
.
Marketing
.
Ms
.
queryLevel
()
.
doFinally
(()
->
{
.
doFinally
(()
->
{
...
...
app/src/main/java/com/xingdata/zzdpos/ui/marketing/ms/fragment/EditorFragment.java
View file @
ddd1dbb9
...
@@ -195,8 +195,8 @@ public class EditorFragment extends BaseFragment<MsPresenter, FragmentMsEditorBi
...
@@ -195,8 +195,8 @@ public class EditorFragment extends BaseFragment<MsPresenter, FragmentMsEditorBi
private
void
setViewByMs
()
{
private
void
setViewByMs
()
{
mViewBinding
.
setName
(
mMs
.
getMsName
());
mViewBinding
.
setName
(
mMs
.
getMsName
());
mViewBinding
.
setDateStart
(
new
StringBuffer
(
mMs
.
getMsDateBegin
().
toString
()).
insert
(
8
,
"
日"
).
insert
(
6
,
"月"
).
insert
(
4
,
"年
"
).
toString
());
mViewBinding
.
setDateStart
(
new
StringBuffer
(
mMs
.
getMsDateBegin
().
toString
()).
insert
(
8
,
"
-"
).
insert
(
6
,
"-"
).
insert
(
4
,
"-
"
).
toString
());
mViewBinding
.
setDateEnd
(
new
StringBuffer
(
mMs
.
getMsDateEnd
().
toString
()).
insert
(
8
,
"
日"
).
insert
(
6
,
"月"
).
insert
(
4
,
"年
"
).
toString
());
mViewBinding
.
setDateEnd
(
new
StringBuffer
(
mMs
.
getMsDateEnd
().
toString
()).
insert
(
8
,
"
-"
).
insert
(
6
,
"-"
).
insert
(
4
,
"-
"
).
toString
());
mUserAdapter
.
setBean
(
new
User
(
mMs
.
getMsCoustomTag
().
intValue
(),
mMs
.
getVipLevel
().
longValue
()));
mUserAdapter
.
setBean
(
new
User
(
mMs
.
getMsCoustomTag
().
intValue
(),
mMs
.
getVipLevel
().
longValue
()));
mAreaAdapter
.
setBean
(
new
Area
(
mMs
.
getMsRangeTag
().
intValue
(),
mMs
.
getMerMapId
()));
mAreaAdapter
.
setBean
(
new
Area
(
mMs
.
getMsRangeTag
().
intValue
(),
mMs
.
getMerMapId
()));
...
@@ -376,7 +376,7 @@ public class EditorFragment extends BaseFragment<MsPresenter, FragmentMsEditorBi
...
@@ -376,7 +376,7 @@ public class EditorFragment extends BaseFragment<MsPresenter, FragmentMsEditorBi
String
m
=
String
.
valueOf
(
month
+
1
).
length
()
>=
2
?
String
.
valueOf
(
month
+
1
)
:
"0"
+
String
.
valueOf
(
month
+
1
);
String
m
=
String
.
valueOf
(
month
+
1
).
length
()
>=
2
?
String
.
valueOf
(
month
+
1
)
:
"0"
+
String
.
valueOf
(
month
+
1
);
String
d
=
String
.
valueOf
(
day
).
length
()
>=
2
?
String
.
valueOf
(
day
)
:
"0"
+
String
.
valueOf
(
day
);
String
d
=
String
.
valueOf
(
day
).
length
()
>=
2
?
String
.
valueOf
(
day
)
:
"0"
+
String
.
valueOf
(
day
);
mViewBinding
.
setDateStart
(
year
+
"
年"
+
m
+
"月"
+
d
+
"日
"
);
mViewBinding
.
setDateStart
(
year
+
"
-"
+
m
+
"-"
+
d
+
"-
"
);
mMs
.
setMsDateBegin
(
ConvertUtil
.
stringToLong
(
year
+
m
+
d
));
mMs
.
setMsDateBegin
(
ConvertUtil
.
stringToLong
(
year
+
m
+
d
));
if
(
mMs
.
getMsDateBegin
()
>
mMs
.
getMsDateEnd
())
{
if
(
mMs
.
getMsDateBegin
()
>
mMs
.
getMsDateEnd
())
{
...
@@ -395,7 +395,7 @@ public class EditorFragment extends BaseFragment<MsPresenter, FragmentMsEditorBi
...
@@ -395,7 +395,7 @@ public class EditorFragment extends BaseFragment<MsPresenter, FragmentMsEditorBi
String
m
=
String
.
valueOf
(
month
+
1
).
length
()
>=
2
?
String
.
valueOf
(
month
+
1
)
:
"0"
+
String
.
valueOf
(
month
+
1
);
String
m
=
String
.
valueOf
(
month
+
1
).
length
()
>=
2
?
String
.
valueOf
(
month
+
1
)
:
"0"
+
String
.
valueOf
(
month
+
1
);
String
d
=
String
.
valueOf
(
day
).
length
()
>=
2
?
String
.
valueOf
(
day
)
:
"0"
+
String
.
valueOf
(
day
);
String
d
=
String
.
valueOf
(
day
).
length
()
>=
2
?
String
.
valueOf
(
day
)
:
"0"
+
String
.
valueOf
(
day
);
mViewBinding
.
setDateEnd
(
year
+
"
年"
+
m
+
"月"
+
d
+
"日
"
);
mViewBinding
.
setDateEnd
(
year
+
"
-"
+
m
+
"-"
+
d
+
"-
"
);
mMs
.
setMsDateEnd
(
ConvertUtil
.
stringToLong
(
year
+
m
+
d
));
mMs
.
setMsDateEnd
(
ConvertUtil
.
stringToLong
(
year
+
m
+
d
));
if
(
mMs
.
getMsDateBegin
()
>
mMs
.
getMsDateEnd
())
{
if
(
mMs
.
getMsDateBegin
()
>
mMs
.
getMsDateEnd
())
{
...
...
app/src/main/java/com/xingdata/zzdpos/ui/marketing/recharge/fragment/RechargeRuleEditFragment.java
View file @
ddd1dbb9
...
@@ -16,15 +16,11 @@ import com.blankj.utilcode.util.ToastUtils;
...
@@ -16,15 +16,11 @@ import com.blankj.utilcode.util.ToastUtils;
import
com.xingdata.zzdpos.R
;
import
com.xingdata.zzdpos.R
;
import
com.xingdata.zzdpos.base.BaseFragment
;
import
com.xingdata.zzdpos.base.BaseFragment
;
import
com.xingdata.zzdpos.databinding.FragmentRechargeRuleEditBinding
;
import
com.xingdata.zzdpos.databinding.FragmentRechargeRuleEditBinding
;
import
com.xingdata.zzdpos.databinding.FragmentVipLevelEditBinding
;
import
com.xingdata.zzdpos.model.Level
;
import
com.xingdata.zzdpos.model.Ms
;
import
com.xingdata.zzdpos.model.Mscard
;
import
com.xingdata.zzdpos.model.Mscard
;
import
com.xingdata.zzdpos.ui.marketing.recharge.RechargeRulePresenter
;
import
com.xingdata.zzdpos.ui.marketing.recharge.RechargeRulePresenter
;
import
com.xingdata.zzdpos.util.ConvertUtil
;
import
com.xingdata.zzdpos.util.ConvertUtil
;
import
com.xingdata.zzdpos.util.StringUtil
;
import
com.xingdata.zzdpos.util.StringUtil
;
import
java.math.BigDecimal
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Calendar
;
import
java.util.Calendar
;
import
java.util.Date
;
import
java.util.Date
;
...
@@ -83,27 +79,27 @@ public class RechargeRuleEditFragment extends BaseFragment<RechargeRulePresenter
...
@@ -83,27 +79,27 @@ public class RechargeRuleEditFragment extends BaseFragment<RechargeRulePresenter
}
}
if
(
mViewBinding
.
rechargAmt
.
getText
().
length
()
==
0
)
{
if
(
mViewBinding
.
rechargAmt
.
getText
().
length
()
==
0
)
{
ToastUtils
.
showShort
(
"充值金额不能为空"
);
ToastUtils
.
showShort
(
R
.
string
.
login_valid_data
);
return
;
return
;
}
}
if
(
Long
.
parseLong
(
mViewBinding
.
rechargAmt
.
getText
().
toString
())
<=
0
)
{
if
(
Long
.
parseLong
(
mViewBinding
.
rechargAmt
.
getText
().
toString
())
<=
0
)
{
ToastUtils
.
showShort
(
"充值金额必须大于0"
);
ToastUtils
.
showShort
(
R
.
string
.
login_valid_data
);
return
;
return
;
}
}
if
(
mViewBinding
.
sendAmt
.
getText
().
length
()
==
0
)
{
if
(
mViewBinding
.
sendAmt
.
getText
().
length
()
==
0
)
{
ToastUtils
.
showShort
(
"赠送金额不能为空"
);
ToastUtils
.
showShort
(
R
.
string
.
login_valid_data
);
return
;
return
;
}
}
if
(
Long
.
parseLong
(
mViewBinding
.
sendAmt
.
getText
().
toString
())
<=
0
)
{
if
(
Long
.
parseLong
(
mViewBinding
.
sendAmt
.
getText
().
toString
())
<=
0
)
{
ToastUtils
.
showShort
(
"赠送金额必须大于0"
);
ToastUtils
.
showShort
(
R
.
string
.
login_valid_data
);
return
;
return
;
}
}
if
(
Long
.
parseLong
(
mViewBinding
.
sendAmt
.
getText
().
toString
())
>
Long
.
parseLong
(
mViewBinding
.
rechargAmt
.
getText
().
toString
()))
{
if
(
Long
.
parseLong
(
mViewBinding
.
sendAmt
.
getText
().
toString
())
>
Long
.
parseLong
(
mViewBinding
.
rechargAmt
.
getText
().
toString
()))
{
ToastUtils
.
showShort
(
"充值金额必须大于或者等于赠送金额"
);
ToastUtils
.
showShort
(
R
.
string
.
login_valid_data
);
return
;
return
;
}
}
if
(
StringUtil
.
getTimeMillis
(
mViewBinding
.
ruleBeginTime
.
getText
().
toString
())
>=
StringUtil
.
getTimeMillis
(
mViewBinding
.
ruleEndTime
.
getText
().
toString
()))
{
if
(
StringUtil
.
getTimeMillis
(
mViewBinding
.
ruleBeginTime
.
getText
().
toString
())
>=
StringUtil
.
getTimeMillis
(
mViewBinding
.
ruleEndTime
.
getText
().
toString
()))
{
ToastUtils
.
showShort
(
"开始时间不能大于或者等于结束日期"
);
ToastUtils
.
showShort
(
R
.
string
.
login_valid_data
);
return
;
return
;
}
}
mscard
.
setCruleChargeAmt
(
ConvertUtil
.
yuanToFen
(
mViewBinding
.
rechargAmt
.
getText
().
toString
()));
mscard
.
setCruleChargeAmt
(
ConvertUtil
.
yuanToFen
(
mViewBinding
.
rechargAmt
.
getText
().
toString
()));
...
@@ -190,7 +186,7 @@ public class RechargeRuleEditFragment extends BaseFragment<RechargeRulePresenter
...
@@ -190,7 +186,7 @@ public class RechargeRuleEditFragment extends BaseFragment<RechargeRulePresenter
public
void
onOptionsSelect
(
int
options1
,
int
options2
,
int
options3
,
View
v
)
{
public
void
onOptionsSelect
(
int
options1
,
int
options2
,
int
options3
,
View
v
)
{
mViewBinding
.
rechargNo
.
setText
(
mScards
.
get
(
options1
));
mViewBinding
.
rechargNo
.
setText
(
mScards
.
get
(
options1
));
}
}
}).
setTitleText
(
"请选择"
)
}).
setTitleText
(
getString
(
R
.
string
.
all_select
)
)
.
setDividerColor
(
Color
.
BLACK
)
.
setDividerColor
(
Color
.
BLACK
)
.
setTextColorCenter
(
Color
.
BLACK
)
//设置选中项文字颜色
.
setTextColorCenter
(
Color
.
BLACK
)
//设置选中项文字颜色
.
setContentTextSize
(
20
)
.
setContentTextSize
(
20
)
...
...
app/src/main/java/com/xingdata/zzdpos/ui/marketing/viplevel/fragment/VipLevelEditFragment.java
View file @
ddd1dbb9
...
@@ -33,11 +33,11 @@ public class VipLevelEditFragment extends BaseFragment<LevelPresenter, FragmentV
...
@@ -33,11 +33,11 @@ public class VipLevelEditFragment extends BaseFragment<LevelPresenter, FragmentV
pop
();
pop
();
});
});
if
(
mLevel
!=
null
)
{
if
(
mLevel
!=
null
)
{
mViewBinding
.
infoTitle
.
tvTitle
.
setText
(
"等级编辑"
);
mViewBinding
.
infoTitle
.
tvTitle
.
setText
(
R
.
string
.
level_update
);
mViewBinding
.
levelName
.
setText
(
mLevel
.
getVipLevelName
());
mViewBinding
.
levelName
.
setText
(
mLevel
.
getVipLevelName
());
mViewBinding
.
levelDiscont
.
setText
(
String
.
valueOf
(
mLevel
.
getVipDefDiscount
()));
mViewBinding
.
levelDiscont
.
setText
(
String
.
valueOf
(
mLevel
.
getVipDefDiscount
()));
mViewBinding
.
updateMoney
.
setText
(
ConvertUtil
.
fenToYuanNoZero
(
mLevel
.
getVipUpgradeAmtTp
()));
mViewBinding
.
updateMoney
.
setText
(
ConvertUtil
.
fenToYuanNoZero
(
mLevel
.
getVipUpgradeAmtTp
()));
mViewBinding
.
updateDay
.
setText
(
mLevel
.
getVipUpgradeDay
()
+
""
);
mViewBinding
.
updateDay
.
setText
(
mLevel
.
getVipUpgradeDay
()
+
""
);
}
}
mViewBinding
.
setOnClickListener
(
view
->
{
mViewBinding
.
setOnClickListener
(
view
->
{
...
@@ -48,23 +48,23 @@ public class VipLevelEditFragment extends BaseFragment<LevelPresenter, FragmentV
...
@@ -48,23 +48,23 @@ public class VipLevelEditFragment extends BaseFragment<LevelPresenter, FragmentV
level
.
setId
(
mLevel
.
getId
());
level
.
setId
(
mLevel
.
getId
());
}
}
if
(
mViewBinding
.
levelName
.
getText
().
length
()
==
0
)
{
if
(
mViewBinding
.
levelName
.
getText
().
length
()
==
0
)
{
ToastUtils
.
showShort
(
"等级名称不能为空"
);
ToastUtils
.
showShort
(
R
.
string
.
login_valid_data
);
return
;
return
;
}
}
if
(
mViewBinding
.
levelDiscont
.
getText
().
length
()
==
0
)
{
if
(
mViewBinding
.
levelDiscont
.
getText
().
length
()
==
0
)
{
ToastUtils
.
showShort
(
"折扣不能为空"
);
ToastUtils
.
showShort
(
R
.
string
.
login_valid_data
);
return
;
return
;
}
}
if
(
Integer
.
parseInt
(
mViewBinding
.
levelDiscont
.
getText
().
toString
())
>
100
||
Integer
.
parseInt
(
mViewBinding
.
levelDiscont
.
getText
().
toString
())<
1
)
{
if
(
Integer
.
parseInt
(
mViewBinding
.
levelDiscont
.
getText
().
toString
())
>
100
||
Integer
.
parseInt
(
mViewBinding
.
levelDiscont
.
getText
().
toString
())
<
1
)
{
ToastUtils
.
showShort
(
"折扣必须为1到100之间"
);
ToastUtils
.
showShort
(
R
.
string
.
login_valid_data
);
return
;
return
;
}
}
if
(
mViewBinding
.
updateDay
.
length
()
==
0
)
{
if
(
mViewBinding
.
updateDay
.
length
()
==
0
)
{
ToastUtils
.
showShort
(
"最近多少天不能为空"
);
ToastUtils
.
showShort
(
R
.
string
.
login_valid_data
);
return
;
return
;
}
}
if
(
mViewBinding
.
updateMoney
.
getText
().
length
()
==
0
)
{
if
(
mViewBinding
.
updateMoney
.
getText
().
length
()
==
0
)
{
ToastUtils
.
showShort
(
"消费金额不能为空"
);
ToastUtils
.
showShort
(
R
.
string
.
login_valid_data
);
return
;
return
;
}
}
level
.
setVipLevelName
(
mViewBinding
.
levelName
.
getText
().
toString
());
level
.
setVipLevelName
(
mViewBinding
.
levelName
.
getText
().
toString
());
...
...
app/src/main/java/com/xingdata/zzdpos/ui/store/adapter/MsAdapter.java
View file @
ddd1dbb9
...
@@ -93,7 +93,7 @@ public class MsAdapter extends BaseAdapter<Ms, ItemStoreMsBinding> {
...
@@ -93,7 +93,7 @@ public class MsAdapter extends BaseAdapter<Ms, ItemStoreMsBinding> {
SimpleDateFormat
df1
=
new
SimpleDateFormat
(
"yyyyMMdd"
,
Locale
.
getDefault
());
SimpleDateFormat
df1
=
new
SimpleDateFormat
(
"yyyyMMdd"
,
Locale
.
getDefault
());
SimpleDateFormat
df2
=
new
SimpleDateFormat
(
"yyyy
年M月d日
"
,
Locale
.
getDefault
());
SimpleDateFormat
df2
=
new
SimpleDateFormat
(
"yyyy
-M-d-
"
,
Locale
.
getDefault
());
SimpleDateFormat
df3
=
new
SimpleDateFormat
(
"HHmmss"
,
Locale
.
getDefault
());
SimpleDateFormat
df3
=
new
SimpleDateFormat
(
"HHmmss"
,
Locale
.
getDefault
());
SimpleDateFormat
df4
=
new
SimpleDateFormat
(
"HH:mm"
,
Locale
.
getDefault
());
SimpleDateFormat
df4
=
new
SimpleDateFormat
(
"HH:mm"
,
Locale
.
getDefault
());
...
...
app/src/main/java/com/xingdata/zzdpos/ui/store/adapter/SkugrpAdapter.java
View file @
ddd1dbb9
...
@@ -21,7 +21,7 @@ public class SkugrpAdapter extends BaseSelectedAdapter<Sskugrp, ItemSelectorBind
...
@@ -21,7 +21,7 @@ public class SkugrpAdapter extends BaseSelectedAdapter<Sskugrp, ItemSelectorBind
if
(
item
.
getSkuGrpId
()
==
0
)
{
if
(
item
.
getSkuGrpId
()
==
0
)
{
name
=
mContext
.
getString
(
R
.
string
.
sku_default_grpName
);
name
=
mContext
.
getString
(
R
.
string
.
sku_default_grpName
);
}
else
if
(
item
.
getSkuGrpId
()
<
0
)
{
}
else
if
(
item
.
getSkuGrpId
()
<
0
)
{
name
=
mContext
.
getString
(
R
.
string
.
sku_
default
_grpName
);
name
=
mContext
.
getString
(
R
.
string
.
sku_
u
_grpName
);
}
}
mViewBinding
.
tvName
.
setText
(
name
);
mViewBinding
.
tvName
.
setText
(
name
);
}
}
...
...
app/src/main/java/com/xingdata/zzdpos/ui/vip/VipActivity.java
View file @
ddd1dbb9
...
@@ -3,9 +3,7 @@ package com.xingdata.zzdpos.ui.vip;
...
@@ -3,9 +3,7 @@ package com.xingdata.zzdpos.ui.vip;
import
android.os.Bundle
;
import
android.os.Bundle
;
import
android.view.MotionEvent
;
import
android.view.MotionEvent
;
import
android.view.View
;
import
android.view.View
;
import
android.widget.EditText
;
import
com.blankj.utilcode.util.ToastUtils
;
import
com.xingdata.zzdpos.R
;
import
com.xingdata.zzdpos.R
;
import
com.xingdata.zzdpos.base.BaseActivity
;
import
com.xingdata.zzdpos.base.BaseActivity
;
import
com.xingdata.zzdpos.databinding.ActivityVipBinding
;
import
com.xingdata.zzdpos.databinding.ActivityVipBinding
;
...
@@ -20,7 +18,6 @@ import com.xingdata.zzdpos.model.Trule;
...
@@ -20,7 +18,6 @@ import com.xingdata.zzdpos.model.Trule;
import
com.xingdata.zzdpos.model.Vip
;
import
com.xingdata.zzdpos.model.Vip
;
import
com.xingdata.zzdpos.model.VipRechargeOrder
;
import
com.xingdata.zzdpos.model.VipRechargeOrder
;
import
com.xingdata.zzdpos.ui.dialog.PromptDialog
;
import
com.xingdata.zzdpos.ui.dialog.PromptDialog
;
import
com.xingdata.zzdpos.ui.vip.fragment.VipAddSucceedFragment
;
import
com.xingdata.zzdpos.util.Global
;
import
com.xingdata.zzdpos.util.Global
;
import
com.xingdata.zzdpos.view.ViewTools
;
import
com.xingdata.zzdpos.view.ViewTools
;
...
@@ -103,7 +100,7 @@ public class VipActivity extends BaseActivity<VipPresenter, ActivityVipBinding>
...
@@ -103,7 +100,7 @@ public class VipActivity extends BaseActivity<VipPresenter, ActivityVipBinding>
@Override
@Override
public
void
rechangeSus
(
Vip
v
)
{
public
void
rechangeSus
(
Vip
v
)
{
ViewTools
.
toastSuss
(
this
,
"充值成功"
);
ViewTools
.
toastSuss
(
this
,
getString
(
R
.
string
.
all_succ
)
);
if
(
mPresenter
.
vipSearchFragment
!=
null
)
pop
();
if
(
mPresenter
.
vipSearchFragment
!=
null
)
pop
();
// if ( mPresenter.vipRechargeFragment!=null)pop();
// if ( mPresenter.vipRechargeFragment!=null)pop();
popTo
(
mPresenter
.
vipListFragment
.
getClass
(),
false
);
popTo
(
mPresenter
.
vipListFragment
.
getClass
(),
false
);
...
...
app/src/main/java/com/xingdata/zzdpos/ui/vip/adapter/VipListAdapter.java
View file @
ddd1dbb9
...
@@ -2,16 +2,16 @@ package com.xingdata.zzdpos.ui.vip.adapter;
...
@@ -2,16 +2,16 @@ package com.xingdata.zzdpos.ui.vip.adapter;
import
android.content.Context
;
import
android.content.Context
;
import
android.support.annotation.Nullable
;
import
android.support.annotation.Nullable
;
import
android.
util.TypedValue
;
import
android.
view.View
;
import
com.xingdata.zzdpos.R
;
import
com.xingdata.zzdpos.R
;
import
com.xingdata.zzdpos.base.BaseAdapter
;
import
com.xingdata.zzdpos.base.BaseAdapter
;
import
com.xingdata.zzdpos.databinding.ItemVipListItemBinding
;
import
com.xingdata.zzdpos.databinding.ItemVipListItemBinding
;
import
com.xingdata.zzdpos.model.Vip
;
import
com.xingdata.zzdpos.model.Vip
;
import
com.xingdata.zzdpos.util.ConvertUtil
;
import
com.xingdata.zzdpos.util.ConvertUtil
;
import
com.xingdata.zzdpos.util.StringUtil
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Locale
;
/**
/**
* Created by JM_DEV on 2017/12/25.
* Created by JM_DEV on 2017/12/25.
...
@@ -22,19 +22,26 @@ public class VipListAdapter extends BaseAdapter<Vip, ItemVipListItemBinding> {
...
@@ -22,19 +22,26 @@ public class VipListAdapter extends BaseAdapter<Vip, ItemVipListItemBinding> {
public
VipListAdapter
(
Context
mContext
,
@Nullable
List
<
Vip
>
data
)
{
public
VipListAdapter
(
Context
mContext
,
@Nullable
List
<
Vip
>
data
)
{
super
(
R
.
layout
.
item_vip_list_item
,
data
);
super
(
R
.
layout
.
item_vip_list_item
,
data
);
this
.
mContext
=
mContext
;
this
.
mContext
=
mContext
;
}
}
@Override
@Override
protected
void
convert
(
ItemVipListItemBinding
mViewBinding
,
Vip
item
)
{
protected
void
convert
(
ItemVipListItemBinding
mViewBinding
,
Vip
item
)
{
mViewBinding
.
vipName
.
setText
(
item
.
getVipName
());
mViewBinding
.
vipName
.
setText
(
item
.
getVipName
());
mViewBinding
.
vipMobile
.
setText
(
String
.
valueOf
(
item
.
getVipMobile
()));
mViewBinding
.
vipMobile
.
setText
(
String
.
valueOf
(
item
.
getVipMobile
()));
if
(
item
.
getVipDefDiscount
()==
100
)
{
if
(
item
.
getVipDefDiscount
()
==
100
)
{
mViewBinding
.
vipDiscount
.
set
Text
(
"无折扣"
);
mViewBinding
.
vipDiscount
.
set
Visibility
(
View
.
INVISIBLE
);
mViewBinding
.
vipDiscount
.
setTextSize
(
android
.
util
.
TypedValue
.
COMPLEX_UNIT_PX
,
mContext
.
getResources
().
getDimensionPixelOffset
(
R
.
dimen
.
all_text_size
));
mViewBinding
.
vipDiscount
.
setTextSize
(
android
.
util
.
TypedValue
.
COMPLEX_UNIT_PX
,
mContext
.
getResources
().
getDimensionPixelOffset
(
R
.
dimen
.
all_text_size
));
}
else
{
}
else
{
mViewBinding
.
vipDiscount
.
setVisibility
(
View
.
VISIBLE
);
mViewBinding
.
vipDiscount
.
setText
(
ConvertUtil
.
discount
(
item
.
getVipDefDiscount
())+
"折
"
);
mViewBinding
.
vipDiscount
.
setText
(
isZh
(
mContext
)
?
ConvertUtil
.
discount
(
item
.
getVipDefDiscount
())
+
"折"
:
item
.
getVipDefDiscount
()
+
"% OFF
"
);
mViewBinding
.
vipDiscount
.
setTextSize
(
android
.
util
.
TypedValue
.
COMPLEX_UNIT_PX
,
mContext
.
getResources
().
getDimensionPixelOffset
(
R
.
dimen
.
big_text_size
));
mViewBinding
.
vipDiscount
.
setTextSize
(
android
.
util
.
TypedValue
.
COMPLEX_UNIT_PX
,
mContext
.
getResources
().
getDimensionPixelOffset
(
R
.
dimen
.
big_text_size
));
}
}
}
}
private
boolean
isZh
(
Context
context
)
{
Locale
locale
=
context
.
getResources
().
getConfiguration
().
locale
;
String
language
=
locale
.
getLanguage
();
return
language
.
endsWith
(
"zh"
);
}
}
}
app/src/main/java/com/xingdata/zzdpos/ui/vip/adapter/VipTruleAdapter.java
View file @
ddd1dbb9
...
@@ -7,12 +7,12 @@ import com.xingdata.zzdpos.R;
...
@@ -7,12 +7,12 @@ import com.xingdata.zzdpos.R;
import
com.xingdata.zzdpos.base.BaseAdapter
;
import
com.xingdata.zzdpos.base.BaseAdapter
;
import
com.xingdata.zzdpos.databinding.ItemVipMscardItemBinding
;
import
com.xingdata.zzdpos.databinding.ItemVipMscardItemBinding
;
import
com.xingdata.zzdpos.model.Ticket
;
import
com.xingdata.zzdpos.model.Ticket
;
import
com.xingdata.zzdpos.model.Trule
;
import
com.xingdata.zzdpos.util.ConvertUtil
;
import
com.xingdata.zzdpos.util.ConvertUtil
;
import
com.xingdata.zzdpos.util.StringUtil
;
import
com.xingdata.zzdpos.util.StringUtil
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Locale
;
/**
/**
* Created by JM_DEV on 2017/12/25.
* Created by JM_DEV on 2017/12/25.
...
@@ -23,7 +23,6 @@ public class VipTruleAdapter extends BaseAdapter<Ticket, ItemVipMscardItemBindin
...
@@ -23,7 +23,6 @@ public class VipTruleAdapter extends BaseAdapter<Ticket, ItemVipMscardItemBindin
private
String
shopName
;
private
String
shopName
;
public
VipTruleAdapter
(
Context
mContext
,
@Nullable
List
<
Ticket
>
data
)
{
public
VipTruleAdapter
(
Context
mContext
,
@Nullable
List
<
Ticket
>
data
)
{
super
(
R
.
layout
.
item_vip_mscard_item
,
data
);
super
(
R
.
layout
.
item_vip_mscard_item
,
data
);
this
.
mContext
=
mContext
;
this
.
mContext
=
mContext
;
...
@@ -32,9 +31,10 @@ public class VipTruleAdapter extends BaseAdapter<Ticket, ItemVipMscardItemBindin
...
@@ -32,9 +31,10 @@ public class VipTruleAdapter extends BaseAdapter<Ticket, ItemVipMscardItemBindin
@Override
@Override
protected
void
convert
(
ItemVipMscardItemBinding
mViewBinding
,
Ticket
item
)
{
protected
void
convert
(
ItemVipMscardItemBinding
mViewBinding
,
Ticket
item
)
{
mViewBinding
.
truleName
.
setText
(
ConvertUtil
.
fenToYuanNoZero
(
item
.
getTicketValAmt
()));
mViewBinding
.
truleName
.
setText
(
ConvertUtil
.
fenToYuanNoZero
(
item
.
getTicketValAmt
()));
mViewBinding
.
truleMoney
.
setText
(
"满"
+
ConvertUtil
.
fenToYuanNoZero
(
item
.
getTruleOrderAmt
())
+
"元使用"
);
mViewBinding
.
truleValidity
.
setText
(
mContext
.
getString
(
R
.
string
.
vip_mscard_period_of_validity
,
StringUtil
.
format
(
new
Date
(
item
.
getTicketExp
()),
"yyyy.MM.dd"
),
StringUtil
.
format
(
new
Date
(
item
.
getTicketExp
()),
"yyyy.MM.dd"
)));
String
str
=
isZh
(
mContext
)
?
(
"满"
+
mContext
.
getString
(
R
.
string
.
money_rmb
)
+
ConvertUtil
.
fenToYuanNoZero
(
item
.
getTruleOrderAmt
())
+
"元使用"
)
:
(
"Can be used after "
+
mContext
.
getString
(
R
.
string
.
money_rmb
)
+
ConvertUtil
.
fenToYuanNoZero
(
item
.
getTruleOrderAmt
()));
// mViewBinding.truleCondition.setText(ConvertUtil.fenToYuanNoPoint(item.getTruleOrderAmt()));
mViewBinding
.
truleMoney
.
setText
(
str
);
mViewBinding
.
truleValidity
.
setText
(
mContext
.
getString
(
R
.
string
.
vip_mscard_period_of_validity
,
StringUtil
.
format
(
new
Date
(
item
.
getTicketExp
()),
"yyyy.MM.dd"
)));
if
(
item
.
getTruleStatus
()
!=
null
&&
item
.
getUsedFlag
()
!=
null
&&
item
.
getTruleStatus
().
toString
().
equals
(
"0"
)
&&
item
.
getUsedFlag
().
toString
().
equals
(
"1"
))
{
if
(
item
.
getTruleStatus
()
!=
null
&&
item
.
getUsedFlag
()
!=
null
&&
item
.
getTruleStatus
().
toString
().
equals
(
"0"
)
&&
item
.
getUsedFlag
().
toString
().
equals
(
"1"
))
{
mViewBinding
.
truleBgLeft
.
setBackgroundResource
(
R
.
mipmap
.
bg_return_ticket01
);
mViewBinding
.
truleBgLeft
.
setBackgroundResource
(
R
.
mipmap
.
bg_return_ticket01
);
mViewBinding
.
truleBgRight
.
setBackgroundResource
(
R
.
mipmap
.
bg_return_ticket02
);
mViewBinding
.
truleBgRight
.
setBackgroundResource
(
R
.
mipmap
.
bg_return_ticket02
);
...
@@ -43,12 +43,12 @@ public class VipTruleAdapter extends BaseAdapter<Ticket, ItemVipMscardItemBindin
...
@@ -43,12 +43,12 @@ public class VipTruleAdapter extends BaseAdapter<Ticket, ItemVipMscardItemBindin
mViewBinding
.
truleBgRight
.
setBackgroundResource
(
R
.
mipmap
.
bg_return_ticket04
);
mViewBinding
.
truleBgRight
.
setBackgroundResource
(
R
.
mipmap
.
bg_return_ticket04
);
}
}
// mViewBinding.expenseMoney.setText(ConvertUtil.fenToYuan2(item.getCardAmtPay()));
}
// mViewBinding.expenseShop.setText(LoginPresenter.loginReturnBean.getShopNameAbcn());
// //设置支付方式
private
boolean
isZh
(
Context
context
)
{
//// mViewBinding.expenseType.setText(item.getPayName())
;
Locale
locale
=
context
.
getResources
().
getConfiguration
().
locale
;
//// mViewBinding.imgLeft.setBackgroundResource(getPayName(item)
);
String
language
=
locale
.
getLanguage
(
);
// mViewBinding.expenseTime.setText(StringUtil.format(new Date(item.getCreateTime()),StringUtil.mmddhhmmmDatePattern)
);
return
language
.
endsWith
(
"zh"
);
}
}
}
}
app/src/main/java/com/xingdata/zzdpos/ui/vip/fragment/VipAddSucceedFragment.java
View file @
ddd1dbb9
...
@@ -4,6 +4,7 @@ package com.xingdata.zzdpos.ui.vip.fragment;
...
@@ -4,6 +4,7 @@ package com.xingdata.zzdpos.ui.vip.fragment;
* Created by JM_DEV on 2017/12/21.
* Created by JM_DEV on 2017/12/21.
*/
*/
import
android.content.Context
;
import
android.view.View
;
import
android.view.View
;
import
com.xingdata.zzdpos.R
;
import
com.xingdata.zzdpos.R
;
...
@@ -13,6 +14,8 @@ import com.xingdata.zzdpos.model.Vip;
...
@@ -13,6 +14,8 @@ import com.xingdata.zzdpos.model.Vip;
import
com.xingdata.zzdpos.ui.vip.VipPresenter
;
import
com.xingdata.zzdpos.ui.vip.VipPresenter
;
import
com.xingdata.zzdpos.util.ConvertUtil
;
import
com.xingdata.zzdpos.util.ConvertUtil
;
import
java.util.Locale
;
/**
/**
* 会员信息界面
* 会员信息界面
*/
*/
...
@@ -27,17 +30,16 @@ public class VipAddSucceedFragment extends BaseFragment<VipPresenter, FragmentVi
...
@@ -27,17 +30,16 @@ public class VipAddSucceedFragment extends BaseFragment<VipPresenter, FragmentVi
@Override
@Override
public
void
initView
()
{
public
void
initView
()
{
mViewBinding
.
infoTitle
.
popMenu
.
setVisibility
(
View
.
GONE
);
mViewBinding
.
infoTitle
.
popMenu
.
setVisibility
(
View
.
GONE
);
mViewBinding
.
infoTitle
.
tvTitle
.
setText
(
"添加成功"
);
mViewBinding
.
infoTitle
.
tvTitle
.
setText
(
R
.
string
.
all_succ
);
mViewBinding
.
vipName
.
setText
(
mVip
.
getVipName
());
mViewBinding
.
vipName
.
setText
(
mVip
.
getVipName
());
mViewBinding
.
vipMobile
.
setText
(
mVip
.
getVipMobile
()
+
""
);
mViewBinding
.
vipMobile
.
setText
(
mVip
.
getVipMobile
()
+
""
);
if
(
String
.
valueOf
(
mVip
.
getVipTag
()).
equals
(
"1"
))
{
if
(
String
.
valueOf
(
mVip
.
getVipTag
()).
equals
(
"1"
))
{
mViewBinding
.
vipLevel
.
setText
(
"超级会员"
+
" "
+
ConvertUtil
.
discount
(
mVip
.
getVipDefDiscount
())
+
"折"
);
mViewBinding
.
vipLevel
.
setText
(
getString
(
R
.
string
.
vip_svip
)
+
" "
+
(
isZh
(
mContext
)
?
ConvertUtil
.
discount
(
mVip
.
getVipDefDiscount
())
+
"折"
:
100
-
mVip
.
getVipDefDiscount
()
+
"% OFF"
)
);
}
else
{
}
else
{
mViewBinding
.
vipLevel
.
setText
(
mVip
.
getVipLevelName
()
+
" "
+
ConvertUtil
.
discount
(
mVip
.
getVipDefDiscount
())
+
"折"
);
mViewBinding
.
vipLevel
.
setText
(
mVip
.
getVipLevelName
()
+
" "
+
(
isZh
(
mContext
)
?
ConvertUtil
.
discount
(
mVip
.
getVipDefDiscount
())
+
"折"
:
100
-
mVip
.
getVipDefDiscount
()
+
"% OFF"
)
);
}
}
//继续添加
//继续添加
mViewBinding
.
vipAdd
.
setOnClickListener
(
view
->
{
mViewBinding
.
vipAdd
.
setOnClickListener
(
view
->
{
// mPresenter.vipInfoEditFragment.setVip(null);
startWithPop
(
new
VipInfoEditFragment
());
startWithPop
(
new
VipInfoEditFragment
());
});
});
...
@@ -48,18 +50,23 @@ public class VipAddSucceedFragment extends BaseFragment<VipPresenter, FragmentVi
...
@@ -48,18 +50,23 @@ public class VipAddSucceedFragment extends BaseFragment<VipPresenter, FragmentVi
});
});
mViewBinding
.
vipSure
.
setOnClickListener
(
view
->
{
mViewBinding
.
vipSure
.
setOnClickListener
(
view
->
{
popTo
(
mPresenter
.
vipListFragment
.
getClass
(),
false
);
popTo
(
mPresenter
.
vipListFragment
.
getClass
(),
false
);
mPresenter
.
vipListFragment
.
updateVipSus
(
null
);
mPresenter
.
vipListFragment
.
updateVipSus
(
null
);
});
});
//返回强制出堆栈
//返回强制出堆栈
mViewBinding
.
infoTitle
.
ivBack
.
setOnClickListener
(
view
->
{
mViewBinding
.
infoTitle
.
ivBack
.
setOnClickListener
(
view
->
{
popTo
(
mPresenter
.
vipListFragment
.
getClass
(),
false
);
popTo
(
mPresenter
.
vipListFragment
.
getClass
(),
false
);
});
});
}
}
private
boolean
isZh
(
Context
context
)
{
Locale
locale
=
context
.
getResources
().
getConfiguration
().
locale
;
String
language
=
locale
.
getLanguage
();
return
language
.
endsWith
(
"zh"
);
}
public
void
setmVip
(
Vip
mVip
)
{
public
void
setmVip
(
Vip
mVip
)
{
this
.
mVip
=
mVip
;
this
.
mVip
=
mVip
;
...
...
app/src/main/java/com/xingdata/zzdpos/ui/vip/fragment/VipExpenseListFragment.java
View file @
ddd1dbb9
...
@@ -5,10 +5,10 @@ package com.xingdata.zzdpos.ui.vip.fragment;
...
@@ -5,10 +5,10 @@ package com.xingdata.zzdpos.ui.vip.fragment;
*/
*/
import
android.annotation.SuppressLint
;
import
android.annotation.SuppressLint
;
import
android.content.Context
;
import
android.support.v7.widget.LinearLayoutManager
;
import
android.support.v7.widget.LinearLayoutManager
;
import
android.view.View
;
import
android.view.View
;
import
com.blankj.utilcode.util.ToastUtils
;
import
com.xingdata.zzdpos.R
;
import
com.xingdata.zzdpos.R
;
import
com.xingdata.zzdpos.base.BaseActivity
;
import
com.xingdata.zzdpos.base.BaseActivity
;
import
com.xingdata.zzdpos.base.BaseFragment
;
import
com.xingdata.zzdpos.base.BaseFragment
;
...
@@ -17,7 +17,6 @@ import com.xingdata.zzdpos.model.Level;
...
@@ -17,7 +17,6 @@ import com.xingdata.zzdpos.model.Level;
import
com.xingdata.zzdpos.model.Pager
;
import
com.xingdata.zzdpos.model.Pager
;
import
com.xingdata.zzdpos.model.Saleorder
;
import
com.xingdata.zzdpos.model.Saleorder
;
import
com.xingdata.zzdpos.model.Vip
;
import
com.xingdata.zzdpos.model.Vip
;
import
com.xingdata.zzdpos.model.VipRechargeOrder
;
import
com.xingdata.zzdpos.ui.vip.VipPresenter
;
import
com.xingdata.zzdpos.ui.vip.VipPresenter
;
import
com.xingdata.zzdpos.ui.vip.adapter.VipExpenseAdapter
;
import
com.xingdata.zzdpos.ui.vip.adapter.VipExpenseAdapter
;
import
com.xingdata.zzdpos.ui.vip.dialog.VipEditMenuDialog
;
import
com.xingdata.zzdpos.ui.vip.dialog.VipEditMenuDialog
;
...
@@ -25,6 +24,7 @@ import com.xingdata.zzdpos.util.ConvertUtil;
...
@@ -25,6 +24,7 @@ import com.xingdata.zzdpos.util.ConvertUtil;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Locale
;
/**
/**
* 会员消费记录
* 会员消费记录
...
@@ -36,6 +36,11 @@ public class VipExpenseListFragment extends BaseFragment<VipPresenter, FragmentV
...
@@ -36,6 +36,11 @@ public class VipExpenseListFragment extends BaseFragment<VipPresenter, FragmentV
private
List
<
Level
>
levels
=
null
;
private
List
<
Level
>
levels
=
null
;
private
int
pageNumber
=
1
;
private
int
pageNumber
=
1
;
private
boolean
isZh
(
Context
context
)
{
Locale
locale
=
context
.
getResources
().
getConfiguration
().
locale
;
String
language
=
locale
.
getLanguage
();
return
language
.
endsWith
(
"zh"
);
}
@Override
@Override
public
int
getLayoutId
()
{
public
int
getLayoutId
()
{
...
@@ -46,7 +51,7 @@ public class VipExpenseListFragment extends BaseFragment<VipPresenter, FragmentV
...
@@ -46,7 +51,7 @@ public class VipExpenseListFragment extends BaseFragment<VipPresenter, FragmentV
@Override
@Override
public
void
initView
()
{
public
void
initView
()
{
mViewBinding
.
infoTitle
.
tvTitle
.
setText
(
"消费记录"
);
mViewBinding
.
infoTitle
.
tvTitle
.
setText
(
R
.
string
.
vip_consumption
);
vipRechargeAdapter
=
new
VipExpenseAdapter
(
getActivity
(),
orders
);
vipRechargeAdapter
=
new
VipExpenseAdapter
(
getActivity
(),
orders
);
mViewBinding
.
rechargeRecyclerView
.
setLayoutManager
(
new
LinearLayoutManager
(
getActivity
()));
mViewBinding
.
rechargeRecyclerView
.
setLayoutManager
(
new
LinearLayoutManager
(
getActivity
()));
mViewBinding
.
rechargeRecyclerView
.
setAdapter
(
vipRechargeAdapter
);
mViewBinding
.
rechargeRecyclerView
.
setAdapter
(
vipRechargeAdapter
);
...
@@ -55,7 +60,7 @@ public class VipExpenseListFragment extends BaseFragment<VipPresenter, FragmentV
...
@@ -55,7 +60,7 @@ public class VipExpenseListFragment extends BaseFragment<VipPresenter, FragmentV
mViewBinding
.
vipMobile
.
setText
(
String
.
valueOf
(
mVip
.
getVipMobile
()));
mViewBinding
.
vipMobile
.
setText
(
String
.
valueOf
(
mVip
.
getVipMobile
()));
mViewBinding
.
vipName
.
setText
(
String
.
valueOf
(
mVip
.
getVipName
()));
mViewBinding
.
vipName
.
setText
(
String
.
valueOf
(
mVip
.
getVipName
()));
mViewBinding
.
infoTitle
.
popMenu
.
setVisibility
(
View
.
GONE
);
mViewBinding
.
infoTitle
.
popMenu
.
setVisibility
(
View
.
GONE
);
mViewBinding
.
vipDiscount
.
setText
(
getString
(
R
.
string
.
vip_info_discount
,
ConvertUtil
.
discount
(
mVip
.
getVipDefDiscount
())
));
mViewBinding
.
vipDiscount
.
setText
(
(
isZh
(
mContext
)
?
ConvertUtil
.
discount
(
mVip
.
getVipDefDiscount
())
+
"折"
:
100
-
mVip
.
getVipDefDiscount
()
+
"% OFF"
));
vipRechargeAdapter
.
setEnableLoadMore
(
true
);
vipRechargeAdapter
.
setEnableLoadMore
(
true
);
vipRechargeAdapter
.
setOnLoadMoreListener
(
this
::
onLoadMore
,
mViewBinding
.
rechargeRecyclerView
);
vipRechargeAdapter
.
setOnLoadMoreListener
(
this
::
onLoadMore
,
mViewBinding
.
rechargeRecyclerView
);
mViewBinding
.
infoTitle
.
popMenu
.
setOnClickListener
(
view
->
{
mViewBinding
.
infoTitle
.
popMenu
.
setOnClickListener
(
view
->
{
...
@@ -100,8 +105,8 @@ public class VipExpenseListFragment extends BaseFragment<VipPresenter, FragmentV
...
@@ -100,8 +105,8 @@ public class VipExpenseListFragment extends BaseFragment<VipPresenter, FragmentV
vipRechargeAdapter
.
notifyDataSetChanged
();
vipRechargeAdapter
.
notifyDataSetChanged
();
pageNumber
=
saleorderPager
.
getPageNumber
()
+
1
;
pageNumber
=
saleorderPager
.
getPageNumber
()
+
1
;
}
}
if
(
saleorderPager
.
getPageNumber
()
!=
1
&&
saleorderPager
.
isLastPage
())
{
if
(
saleorderPager
.
getPageNumber
()
!=
1
&&
saleorderPager
.
isLastPage
())
{
ToastUtils
.
showShort
(
"没有更多数据"
);
}
}
mViewBinding
.
expenseCount
.
setText
(
saleorderPager
.
getTotalRow
()
+
""
);
mViewBinding
.
expenseCount
.
setText
(
saleorderPager
.
getTotalRow
()
+
""
);
vipRechargeAdapter
.
setEnableLoadMore
(!
saleorderPager
.
isLastPage
());
vipRechargeAdapter
.
setEnableLoadMore
(!
saleorderPager
.
isLastPage
());
...
...
app/src/main/java/com/xingdata/zzdpos/ui/vip/fragment/VipInfoEditFragment.java
View file @
ddd1dbb9
...
@@ -5,6 +5,7 @@ package com.xingdata.zzdpos.ui.vip.fragment;
...
@@ -5,6 +5,7 @@ package com.xingdata.zzdpos.ui.vip.fragment;
*/
*/
import
android.app.DatePickerDialog
;
import
android.app.DatePickerDialog
;
import
android.content.Context
;
import
android.graphics.Color
;
import
android.graphics.Color
;
import
android.view.View
;
import
android.view.View
;
import
android.widget.DatePicker
;
import
android.widget.DatePicker
;
...
@@ -27,6 +28,7 @@ import com.xingdata.zzdpos.util.StringUtil;
...
@@ -27,6 +28,7 @@ import com.xingdata.zzdpos.util.StringUtil;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Calendar
;
import
java.util.Calendar
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.Locale
;
/**
/**
* 会员信息界面
* 会员信息界面
...
@@ -43,34 +45,39 @@ public class VipInfoEditFragment extends BaseFragment<VipPresenter, FragmentVipI
...
@@ -43,34 +45,39 @@ public class VipInfoEditFragment extends BaseFragment<VipPresenter, FragmentVipI
return
R
.
layout
.
fragment_vip_info_edit
;
return
R
.
layout
.
fragment_vip_info_edit
;
}
}
private
boolean
isZh
(
Context
context
)
{
Locale
locale
=
context
.
getResources
().
getConfiguration
().
locale
;
String
language
=
locale
.
getLanguage
();
return
language
.
endsWith
(
"zh"
);
}
@Override
@Override
public
void
initView
()
{
public
void
initView
()
{
mLevels
.
clear
();
mLevels
.
clear
();
mLevels
.
add
(
mPresenter
.
levels
.
get
(
0
));
mLevels
.
add
(
mPresenter
.
levels
.
get
(
0
));
mLevels
.
add
(
mPresenter
.
levels
.
get
(
mPresenter
.
levels
.
size
()
-
1
));
mLevels
.
add
(
mPresenter
.
levels
.
get
(
mPresenter
.
levels
.
size
()
-
1
));
mLevels
.
get
(
mLevels
.
size
()
-
1
).
setVipLevelName
(
"超级会员"
);
mLevels
.
get
(
mLevels
.
size
()
-
1
).
setVipLevelName
(
getString
(
R
.
string
.
vip_svip
)
);
mViewBinding
.
infoTitle
.
popMenu
.
setVisibility
(
View
.
GONE
);
mViewBinding
.
infoTitle
.
popMenu
.
setVisibility
(
View
.
GONE
);
if
(
vip
!=
null
)
{
if
(
vip
!=
null
)
{
mViewBinding
.
infoTitle
.
tvTitle
.
setText
(
"修改会员"
);
mViewBinding
.
infoTitle
.
tvTitle
.
setText
(
R
.
string
.
vip_update
);
mViewBinding
.
vipPhone
.
setEnabled
(
false
);
mViewBinding
.
vipPhone
.
setEnabled
(
false
);
mViewBinding
.
vipDiscounts
.
setText
(
vip
.
getVipLevelName
()
+
vip
.
getVipDefDiscount
()
+
"折"
);
mViewBinding
.
vipDiscounts
.
setText
(
vip
.
getVipLevelName
()
+
(
isZh
(
mContext
)
?
ConvertUtil
.
discount
(
vip
.
getVipDefDiscount
())
+
"折"
:
100
-
vip
.
getVipDefDiscount
()
+
"% OFF"
)
);
String
strDate
=
String
.
valueOf
(
vip
.
getVipBirthday
());
String
strDate
=
String
.
valueOf
(
vip
.
getVipBirthday
());
if
(
strDate
.
length
()
==
8
)
{
if
(
strDate
.
length
()
==
8
)
{
mViewBinding
.
vipBirthday
.
setText
(
strDate
.
substring
(
0
,
4
)
+
"-"
+
strDate
.
substring
(
4
,
6
)+
"-"
+
strDate
.
substring
(
6
,
8
));
mViewBinding
.
vipBirthday
.
setText
(
strDate
.
substring
(
0
,
4
)
+
"-"
+
strDate
.
substring
(
4
,
6
)
+
"-"
+
strDate
.
substring
(
6
,
8
));
}
else
{
}
else
{
mViewBinding
.
vipBirthday
.
setText
(
strDate
);
mViewBinding
.
vipBirthday
.
setText
(
strDate
);
}
}
mViewBinding
.
vipName
.
setText
(
vip
.
getVipName
());
mViewBinding
.
vipName
.
setText
(
vip
.
getVipName
());
mViewBinding
.
vipPhone
.
setText
(
vip
.
getVipMobile
()
+
""
);
mViewBinding
.
vipPhone
.
setText
(
vip
.
getVipMobile
()
+
""
);
if
(
String
.
valueOf
(
vip
.
getVipTag
()).
equals
(
"1"
))
{
if
(
String
.
valueOf
(
vip
.
getVipTag
()).
equals
(
"1"
))
{
mViewBinding
.
vipDiscounts
.
setText
(
"超级会员"
+
" "
+
ConvertUtil
.
discount
(
vip
.
getVipDefDiscount
())
+
"折"
);
mViewBinding
.
vipDiscounts
.
setText
(
getString
(
R
.
string
.
vip_svip
)
+
" "
+
(
isZh
(
mContext
)
?
ConvertUtil
.
discount
(
vip
.
getVipDefDiscount
())
+
"折"
:
100
-
vip
.
getVipDefDiscount
()
+
"% OFF"
)
);
}
else
{
}
else
{
mViewBinding
.
vipDiscounts
.
setText
(
vip
.
getVipLevelName
()
+
" "
+
ConvertUtil
.
discount
(
vip
.
getVipDefDiscount
())
+
"折"
);
mViewBinding
.
vipDiscounts
.
setText
(
vip
.
getVipLevelName
()
+
" "
+
(
isZh
(
mContext
)
?
ConvertUtil
.
discount
(
vip
.
getVipDefDiscount
())
+
"折"
:
100
-
vip
.
getVipDefDiscount
()
+
"% OFF"
)
);
}
}
mViewBinding
.
vipDiscounts
.
setEnabled
(
false
);
mViewBinding
.
vipDiscounts
.
setEnabled
(
false
);
mViewBinding
.
vipDiscounts
.
setBackgroundResource
(
R
.
color
.
white
);
mViewBinding
.
vipDiscounts
.
setBackgroundResource
(
R
.
color
.
white
);
// ((CheckBox) mViewBinding.vipSuper).setChecked(mVip.getVipTag() == 1);
RadioButton
radioButton
=
mViewBinding
.
vipSex
.
findViewWithTag
(
vip
.
getVipSex
().
toString
());
RadioButton
radioButton
=
mViewBinding
.
vipSex
.
findViewWithTag
(
vip
.
getVipSex
().
toString
());
if
(
radioButton
!=
null
)
{
if
(
radioButton
!=
null
)
{
radioButton
.
setChecked
(
true
);
radioButton
.
setChecked
(
true
);
...
@@ -79,11 +86,11 @@ public class VipInfoEditFragment extends BaseFragment<VipPresenter, FragmentVipI
...
@@ -79,11 +86,11 @@ public class VipInfoEditFragment extends BaseFragment<VipPresenter, FragmentVipI
mViewBinding
.
infoTitle
.
tvTitle
.
setText
(
R
.
string
.
vip_add_title
);
mViewBinding
.
infoTitle
.
tvTitle
.
setText
(
R
.
string
.
vip_add_title
);
mViewBinding
.
vipPhone
.
setEnabled
(
true
);
mViewBinding
.
vipPhone
.
setEnabled
(
true
);
mViewBinding
.
vipDiscounts
.
setEnabled
(
true
);
mViewBinding
.
vipDiscounts
.
setEnabled
(
true
);
mViewBinding
.
vipDiscounts
.
setText
(
mPresenter
.
levels
.
get
(
0
).
getVipLevelName
()
+
" "
+
ConvertUtil
.
discount
(
mPresenter
.
levels
.
get
(
0
).
getVipDefDiscount
())
+
"折"
);
mViewBinding
.
vipDiscounts
.
setText
(
mPresenter
.
levels
.
get
(
0
).
getVipLevelName
()
+
" "
+
(
isZh
(
mContext
)
?
ConvertUtil
.
discount
(
mPresenter
.
levels
.
get
(
0
).
getVipDefDiscount
())
+
"折"
:
100
-
mPresenter
.
levels
.
get
(
0
).
getVipDefDiscount
()
+
"% OFF"
)
);
vipDiscounts
=
mPresenter
.
levels
.
get
(
0
).
getVipDefDiscount
();
vipDiscounts
=
mPresenter
.
levels
.
get
(
0
).
getVipDefDiscount
();
mViewBinding
.
vipBirthday
.
setText
(
StringUtil
.
format
(
new
Date
(
System
.
currentTimeMillis
())));
mViewBinding
.
vipBirthday
.
setText
(
StringUtil
.
format
(
new
Date
(
System
.
currentTimeMillis
())));
((
RadioButton
)
mViewBinding
.
vipSex
.
getChildAt
(
0
)).
setChecked
(
true
);
((
RadioButton
)
mViewBinding
.
vipSex
.
getChildAt
(
0
)).
setChecked
(
true
);
vipLeavle
=
mPresenter
.
levels
.
get
(
0
).
getVipLevel
();
vipLeavle
=
mPresenter
.
levels
.
get
(
0
).
getVipLevel
();
}
}
mViewBinding
.
setOnClickListener
(
view
->
{
mViewBinding
.
setOnClickListener
(
view
->
{
...
@@ -98,15 +105,11 @@ public class VipInfoEditFragment extends BaseFragment<VipPresenter, FragmentVipI
...
@@ -98,15 +105,11 @@ public class VipInfoEditFragment extends BaseFragment<VipPresenter, FragmentVipI
case
R
.
id
.
onSure
:
case
R
.
id
.
onSure
:
if
(
mViewBinding
.
vipName
.
getText
().
length
()
==
0
)
{
if
(
mViewBinding
.
vipName
.
getText
().
length
()
==
0
)
{
ToastUtils
.
showShort
(
"会员名称不能为空"
);
ToastUtils
.
showShort
(
R
.
string
.
vip_name_hint
);
return
;
return
;
}
}
if
(
mViewBinding
.
vipPhone
.
getText
().
length
()
==
0
)
{
if
(
mViewBinding
.
vipPhone
.
getText
().
length
()
==
0
||
mViewBinding
.
vipPhone
.
getText
().
length
()
!=
11
)
{
ToastUtils
.
showShort
(
"会员手机号不能为空"
);
ToastUtils
.
showShort
(
R
.
string
.
vip_phone_hint
);
return
;
}
if
(
mViewBinding
.
vipPhone
.
getText
().
length
()
!=
11
)
{
ToastUtils
.
showShort
(
"手机号长度必须为11位"
);
return
;
return
;
}
}
Vip
mVip
=
new
Vip
();
Vip
mVip
=
new
Vip
();
...
@@ -118,7 +121,7 @@ public class VipInfoEditFragment extends BaseFragment<VipPresenter, FragmentVipI
...
@@ -118,7 +121,7 @@ public class VipInfoEditFragment extends BaseFragment<VipPresenter, FragmentVipI
mVip
.
setVipMobile
(
Long
.
parseLong
(
mViewBinding
.
vipPhone
.
getText
().
toString
().
trim
()));
mVip
.
setVipMobile
(
Long
.
parseLong
(
mViewBinding
.
vipPhone
.
getText
().
toString
().
trim
()));
if
(
vipTag
!=
null
)
{
if
(
vipTag
!=
null
)
{
mVip
.
setVipTag
(
vipTag
);
mVip
.
setVipTag
(
vipTag
);
mVip
.
setVipLevelName
(
"超级会员"
);
mVip
.
setVipLevelName
(
getString
(
R
.
string
.
vip_svip
)
);
}
else
{
}
else
{
mVip
.
setVipTag
(
Byte
.
parseByte
(
"0"
));
mVip
.
setVipTag
(
Byte
.
parseByte
(
"0"
));
mVip
.
setVipLevelName
(
mPresenter
.
levels
.
get
(
0
).
getVipLevelName
());
mVip
.
setVipLevelName
(
mPresenter
.
levels
.
get
(
0
).
getVipLevelName
());
...
@@ -128,7 +131,7 @@ public class VipInfoEditFragment extends BaseFragment<VipPresenter, FragmentVipI
...
@@ -128,7 +131,7 @@ public class VipInfoEditFragment extends BaseFragment<VipPresenter, FragmentVipI
if
(
sexId
!=
-
1
)
{
if
(
sexId
!=
-
1
)
{
mVip
.
setVipSex
(
Byte
.
parseByte
(
mViewBinding
.
vipSex
.
findViewById
(
sexId
).
getTag
().
toString
()));
mVip
.
setVipSex
(
Byte
.
parseByte
(
mViewBinding
.
vipSex
.
findViewById
(
sexId
).
getTag
().
toString
()));
}
}
mVip
.
setVipBirthday
(
Integer
.
parseInt
(
mViewBinding
.
vipBirthday
.
getText
().
toString
().
replaceAll
(
"-"
,
""
)));
mVip
.
setVipBirthday
(
Integer
.
parseInt
(
mViewBinding
.
vipBirthday
.
getText
().
toString
().
replaceAll
(
"-"
,
""
)));
mVip
.
setVipLevel
(
vipLeavle
);
mVip
.
setVipLevel
(
vipLeavle
);
mPresenter
.
addVip
(
mVip
);
mPresenter
.
addVip
(
mVip
);
pop
();
pop
();
...
@@ -155,17 +158,18 @@ public class VipInfoEditFragment extends BaseFragment<VipPresenter, FragmentVipI
...
@@ -155,17 +158,18 @@ public class VipInfoEditFragment extends BaseFragment<VipPresenter, FragmentVipI
@Override
@Override
public
void
onOptionsSelect
(
int
options1
,
int
options2
,
int
options3
,
View
v
)
{
public
void
onOptionsSelect
(
int
options1
,
int
options2
,
int
options3
,
View
v
)
{
if
(
options1
==
0
)
{
if
(
options1
==
0
)
{
mViewBinding
.
vipDiscounts
.
setText
(
mPresenter
.
levels
.
get
(
options1
).
getPickerViewText
()
+
" "
+
ConvertUtil
.
discount
(
mPresenter
.
levels
.
get
(
options1
).
getVipDefDiscount
())
+
"折"
);
mViewBinding
.
vipDiscounts
.
setText
(
mPresenter
.
levels
.
get
(
options1
).
getPickerViewText
()
+
" "
+
(
isZh
(
mContext
)
?
ConvertUtil
.
discount
(
mPresenter
.
levels
.
get
(
options1
).
getVipDefDiscount
())
+
"折"
:
100
-
mPresenter
.
levels
.
get
(
options1
).
getVipDefDiscount
()
+
"% OFF"
)
);
vipDiscounts
=
mPresenter
.
levels
.
get
(
options1
).
getVipDefDiscount
();
vipDiscounts
=
mPresenter
.
levels
.
get
(
options1
).
getVipDefDiscount
();
vipLeavle
=
mPresenter
.
levels
.
get
(
options1
).
getVipLevel
();
vipLeavle
=
mPresenter
.
levels
.
get
(
options1
).
getVipLevel
();
}
else
{
}
else
{
mViewBinding
.
vipDiscounts
.
setText
(
mPresenter
.
levels
.
get
(
mPresenter
.
levels
.
size
()
-
1
).
getVipLevelName
()
+
" "
+
ConvertUtil
.
discount
(
mPresenter
.
levels
.
get
(
mPresenter
.
levels
.
size
()
-
1
).
getVipDefDiscount
())
+
"折"
);
mViewBinding
.
vipDiscounts
.
setText
(
mPresenter
.
levels
.
get
(
mPresenter
.
levels
.
size
()
-
1
).
getVipLevelName
()
+
" "
+
(
isZh
(
mContext
)
?
ConvertUtil
.
discount
(
mPresenter
.
levels
.
get
(
mPresenter
.
levels
.
size
()
-
1
).
getVipDefDiscount
())
+
"折"
:
100
-
mPresenter
.
levels
.
get
(
options1
).
getVipDefDiscount
()
+
"% OFF"
)
);
vipDiscounts
=
mPresenter
.
levels
.
get
(
mPresenter
.
levels
.
size
()
-
1
).
getVipDefDiscount
();
vipDiscounts
=
mPresenter
.
levels
.
get
(
mPresenter
.
levels
.
size
()
-
1
).
getVipDefDiscount
();
vipLeavle
=
mPresenter
.
levels
.
get
(
mPresenter
.
levels
.
size
()
-
2
).
getVipLevel
();
vipLeavle
=
mPresenter
.
levels
.
get
(
mPresenter
.
levels
.
size
()
-
2
).
getVipLevel
();
}
}
vipTag
=
Byte
.
parseByte
(
options1
+
""
);
vipTag
=
Byte
.
parseByte
(
options1
+
""
);
}
}
}).
setTitleText
(
"请选择"
)
}).
setTitleText
(
getString
(
R
.
string
.
all_select
)
)
.
setDividerColor
(
Color
.
BLACK
)
.
setDividerColor
(
Color
.
BLACK
)
.
setTextColorCenter
(
Color
.
BLACK
)
//设置选中项文字颜色
.
setTextColorCenter
(
Color
.
BLACK
)
//设置选中项文字颜色
.
setContentTextSize
(
20
)
.
setContentTextSize
(
20
)
...
@@ -177,10 +181,10 @@ public class VipInfoEditFragment extends BaseFragment<VipPresenter, FragmentVipI
...
@@ -177,10 +181,10 @@ public class VipInfoEditFragment extends BaseFragment<VipPresenter, FragmentVipI
public
void
setVip
(
Vip
mVip
)
{
public
void
setVip
(
Vip
mVip
)
{
this
.
vip
=
mVip
;
this
.
vip
=
mVip
;
if
(
mVip
!=
null
)
{
if
(
mVip
!=
null
)
{
vipTag
=
Byte
.
parseByte
(
String
.
valueOf
(
mVip
.
getVipTag
()));
vipTag
=
Byte
.
parseByte
(
String
.
valueOf
(
mVip
.
getVipTag
()));
}
else
{
}
else
{
vipTag
=
null
;
vipTag
=
null
;
}
}
}
}
...
@@ -202,18 +206,18 @@ public class VipInfoEditFragment extends BaseFragment<VipPresenter, FragmentVipI
...
@@ -202,18 +206,18 @@ public class VipInfoEditFragment extends BaseFragment<VipPresenter, FragmentVipI
@Override
@Override
public
void
onDateSet
(
DatePicker
view
,
int
year
,
int
monthOfYear
,
int
public
void
onDateSet
(
DatePicker
view
,
int
year
,
int
monthOfYear
,
int
dayOfMonth
)
{
dayOfMonth
)
{
int
inM
=
monthOfYear
+
1
;
int
inM
=
monthOfYear
+
1
;
String
strMonth
=
String
.
valueOf
(
inM
);
String
strMonth
=
String
.
valueOf
(
inM
);
if
(
strMonth
.
length
()
<
2
)
{
if
(
strMonth
.
length
()
<
2
)
{
strMonth
=
"0"
+
strMonth
;
strMonth
=
"0"
+
strMonth
;
}
}
String
strDay
=
String
.
valueOf
(
dayOfMonth
);
String
strDay
=
String
.
valueOf
(
dayOfMonth
);
if
(
strDay
.
length
()
<
2
)
{
if
(
strDay
.
length
()
<
2
)
{
strDay
=
"0"
+
strDay
;
strDay
=
"0"
+
strDay
;
}
}
//因为monthOfYear会比实际月份少一月所以这边要加1
//因为monthOfYear会比实际月份少一月所以这边要加1
((
TextView
)
btn
).
setText
(
year
+
"-"
+
strMonth
+
"-"
+
strDay
);
((
TextView
)
btn
).
setText
(
year
+
"-"
+
strMonth
+
"-"
+
strDay
);
}
}
},
year
,
month
,
day
);
},
year
,
month
,
day
);
//弹出选择日期对话框
//弹出选择日期对话框
...
@@ -226,7 +230,6 @@ public class VipInfoEditFragment extends BaseFragment<VipPresenter, FragmentVipI
...
@@ -226,7 +230,6 @@ public class VipInfoEditFragment extends BaseFragment<VipPresenter, FragmentVipI
}
}
public
void
addVipSus
(
Vip
vip
)
{
public
void
addVipSus
(
Vip
vip
)
{
mPresenter
.
vipAddSucceedFragment
.
setmVip
(
vip
);
mPresenter
.
vipAddSucceedFragment
.
setmVip
(
vip
);
start
(
mPresenter
.
vipAddSucceedFragment
);
start
(
mPresenter
.
vipAddSucceedFragment
);
...
...
app/src/main/java/com/xingdata/zzdpos/ui/vip/fragment/VipInfoFragment.java
View file @
ddd1dbb9
package
com
.
xingdata
.
zzdpos
.
ui
.
vip
.
fragment
;
package
com
.
xingdata
.
zzdpos
.
ui
.
vip
.
fragment
;
import
android.content.Context
;
import
android.view.View
;
import
com.xingdata.zzdpos.R
;
import
com.xingdata.zzdpos.R
;
import
com.xingdata.zzdpos.base.BaseActivity
;
import
com.xingdata.zzdpos.base.BaseActivity
;
import
com.xingdata.zzdpos.base.BaseFragment
;
import
com.xingdata.zzdpos.base.BaseFragment
;
import
com.xingdata.zzdpos.databinding.FragmentVipInfoBinding
;
import
com.xingdata.zzdpos.databinding.FragmentVipInfoBinding
;
import
com.xingdata.zzdpos.model.Level
;
import
com.xingdata.zzdpos.model.Pager
;
import
com.xingdata.zzdpos.model.Pager
;
import
com.xingdata.zzdpos.model.Ticket
;
import
com.xingdata.zzdpos.model.Ticket
;
import
com.xingdata.zzdpos.model.Trule
;
import
com.xingdata.zzdpos.model.Trule
;
...
@@ -16,6 +18,7 @@ import com.xingdata.zzdpos.util.StringUtil;
...
@@ -16,6 +18,7 @@ import com.xingdata.zzdpos.util.StringUtil;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Locale
;
/**
/**
* Created by JM_DEV on 2018/1/4.
* Created by JM_DEV on 2018/1/4.
...
@@ -23,7 +26,7 @@ import java.util.List;
...
@@ -23,7 +26,7 @@ import java.util.List;
public
class
VipInfoFragment
extends
BaseFragment
<
VipPresenter
,
FragmentVipInfoBinding
>
{
public
class
VipInfoFragment
extends
BaseFragment
<
VipPresenter
,
FragmentVipInfoBinding
>
{
private
Vip
mVip
;
private
Vip
mVip
;
private
List
<
Trule
>
trules
;
private
List
<
Trule
>
trules
;
private
List
<
Ticket
>
tickets
;
private
List
<
Ticket
>
tickets
;
...
@@ -34,7 +37,7 @@ public class VipInfoFragment extends BaseFragment<VipPresenter, FragmentVipInfoB
...
@@ -34,7 +37,7 @@ public class VipInfoFragment extends BaseFragment<VipPresenter, FragmentVipInfoB
@Override
@Override
public
void
initView
()
{
public
void
initView
()
{
mViewBinding
.
infoTitle
.
tvTitle
.
setText
(
"会员信息"
);
mViewBinding
.
infoTitle
.
tvTitle
.
setText
(
R
.
string
.
member_info
);
mViewBinding
.
infoTitle
.
ivBack
.
setOnClickListener
(
view
->
{
mViewBinding
.
infoTitle
.
ivBack
.
setOnClickListener
(
view
->
{
pop
();
pop
();
});
});
...
@@ -46,38 +49,51 @@ public class VipInfoFragment extends BaseFragment<VipPresenter, FragmentVipInfoB
...
@@ -46,38 +49,51 @@ public class VipInfoFragment extends BaseFragment<VipPresenter, FragmentVipInfoB
dialog
.
show
((
BaseActivity
)
getActivity
());
dialog
.
show
((
BaseActivity
)
getActivity
());
});
});
if
(
mVip
!=
null
)
{
if
(
mVip
!=
null
)
{
mViewBinding
.
Totalpamt
.
setText
(
"¥"
+
ConvertUtil
.
fenToYuanNoZero
(
mVip
.
getVipTotalpamt
()));
mViewBinding
.
Totalpamt
.
setText
(
getString
(
R
.
string
.
money_rmb
)
+
ConvertUtil
.
fenToYuanNoZero
(
mVip
.
getVipTotalpamt
()));
mViewBinding
.
BoundCbal
.
setText
(
String
.
valueOf
(
mVip
.
getBoundCbal
()));
mViewBinding
.
BoundCbal
.
setText
(
String
.
valueOf
(
mVip
.
getBoundCbal
()));
mViewBinding
.
AcctCbal
.
setText
(
"¥"
+
ConvertUtil
.
fenToYuanNoZero
(
mVip
.
getAcctCbal
()));
mViewBinding
.
AcctCbal
.
setText
(
getString
(
R
.
string
.
money_rmb
)
+
ConvertUtil
.
fenToYuanNoZero
(
mVip
.
getAcctCbal
()));
if
(
String
.
valueOf
(
mVip
.
getVipTag
()).
equals
(
"1"
)){
if
(
String
.
valueOf
(
mVip
.
getVipTag
()).
equals
(
"1"
))
{
mViewBinding
.
vipLevel
.
setText
(
"超级会员"
);
mViewBinding
.
vipLevel
.
setText
(
getString
(
R
.
string
.
vip_svip
)
);
}
else
{
}
else
{
mViewBinding
.
vipLevel
.
setText
(
mVip
.
getVipLevelName
());
mViewBinding
.
vipLevel
.
setText
(
mVip
.
getVipLevelName
());
}
}
String
strDate
=
String
.
valueOf
(
mVip
.
getVipBirthday
());
String
strDate
=
String
.
valueOf
(
mVip
.
getVipBirthday
());
if
(
strDate
.
length
()
==
8
)
{
if
(
strDate
.
length
()
==
8
)
{
mViewBinding
.
vipBirthday
.
setText
(
strDate
.
substring
(
0
,
4
)
+
"-"
+
strDate
.
substring
(
4
,
6
)+
"-"
+
strDate
.
substring
(
6
,
8
));
mViewBinding
.
vipBirthday
.
setText
(
strDate
.
substring
(
0
,
4
)
+
"-"
+
strDate
.
substring
(
4
,
6
)
+
"-"
+
strDate
.
substring
(
6
,
8
));
}
else
{
}
else
{
mViewBinding
.
vipBirthday
.
setText
(
strDate
);
mViewBinding
.
vipBirthday
.
setText
(
strDate
);
}
}
mViewBinding
.
vipName
.
setText
(
mVip
.
getVipName
());
mViewBinding
.
vipName
.
setText
(
mVip
.
getVipName
());
mViewBinding
.
vipMoble
.
setText
(
mVip
.
getVipMobile
()
+
""
);
mViewBinding
.
vipMoble
.
setText
(
mVip
.
getVipMobile
()
+
""
);
mViewBinding
.
crtTime
.
setText
(
StringUtil
.
format
(
new
Date
(
mVip
.
getCreateTime
())));
mViewBinding
.
crtTime
.
setText
(
StringUtil
.
format
(
new
Date
(
mVip
.
getCreateTime
())));
mViewBinding
.
vipSex
.
setText
(
getVipSex
(
mVip
.
getVipSex
()));
mViewBinding
.
vipSex
.
setText
(
getVipSex
(
mVip
.
getVipSex
()));
mViewBinding
.
vipDiscounts
.
setText
(
mVip
.
getVipDefDiscount
()==
100
?
getString
(
R
.
string
.
ticket_default_noDiscount
):
ConvertUtil
.
discount
(
mVip
.
getVipDefDiscount
())+
"折"
);
if
(
mVip
.
getVipDefDiscount
()
==
100
)
{
mViewBinding
.
vipDiscounts
.
setVisibility
(
View
.
INVISIBLE
);
}
else
{
mViewBinding
.
vipDiscounts
.
setVisibility
(
View
.
VISIBLE
);
mViewBinding
.
vipDiscounts
.
setText
(
isZh
(
mContext
)
?
ConvertUtil
.
discount
(
mVip
.
getVipDefDiscount
())
+
"折"
:
100
-
mVip
.
getVipDefDiscount
()
+
"% OFF"
);
}
mPresenter
.
ticketQuery
(
mVip
.
getVipId
());
mPresenter
.
ticketQuery
(
mVip
.
getVipId
());
// mPresenter.truleQuery(mVip.getVipId());
}
}
}
}
private
boolean
isZh
(
Context
context
)
{
Locale
locale
=
context
.
getResources
().
getConfiguration
().
locale
;
String
language
=
locale
.
getLanguage
();
return
language
.
endsWith
(
"zh"
);
}
private
String
getVipSex
(
Byte
vipSex
)
{
private
String
getVipSex
(
Byte
vipSex
)
{
if
(
vipSex
.
toString
().
equals
(
"1"
))
{
if
(
vipSex
.
toString
().
equals
(
"1"
))
{
return
"男
"
;
return
isZh
(
mContext
)
?
"男"
:
"Male
"
;
}
else
if
(
vipSex
.
toString
().
equals
(
"0"
))
{
}
else
if
(
vipSex
.
toString
().
equals
(
"0"
))
{
return
"女
"
;
return
isZh
(
mContext
)
?
"女"
:
"Female
"
;
}
}
return
"未知
"
;
return
isZh
(
mContext
)
?
"未知"
:
"Unknown
"
;
}
}
public
void
setVip
(
Vip
vip
)
{
public
void
setVip
(
Vip
vip
)
{
...
@@ -87,29 +103,28 @@ public class VipInfoFragment extends BaseFragment<VipPresenter, FragmentVipInfoB
...
@@ -87,29 +103,28 @@ public class VipInfoFragment extends BaseFragment<VipPresenter, FragmentVipInfoB
public
void
addVipSus
(
Vip
vip
)
{
public
void
addVipSus
(
Vip
vip
)
{
mVip
=
vip
;
mVip
=
vip
;
// mPresenter.vipInfoEditFragment.pop();
mViewBinding
.
Totalpamt
.
setText
(
String
.
valueOf
(
vip
.
getVipTotalpamt
()));
mViewBinding
.
Totalpamt
.
setText
(
String
.
valueOf
(
vip
.
getVipTotalpamt
()));
mViewBinding
.
BoundCbal
.
setText
(
String
.
valueOf
(
vip
.
getBoundCbal
()));
mViewBinding
.
BoundCbal
.
setText
(
String
.
valueOf
(
vip
.
getBoundCbal
()));
mViewBinding
.
AcctCbal
.
setText
(
String
.
valueOf
(
vip
.
getAcctCbal
()));
mViewBinding
.
AcctCbal
.
setText
(
String
.
valueOf
(
vip
.
getAcctCbal
()));
if
(
String
.
valueOf
(
vip
.
getVipTag
()).
equals
(
"1"
)){
if
(
String
.
valueOf
(
vip
.
getVipTag
()).
equals
(
"1"
))
{
mViewBinding
.
vipLevel
.
setText
(
"超级会员"
);
mViewBinding
.
vipLevel
.
setText
(
getString
(
R
.
string
.
vip_svip
)
);
}
else
{
}
else
{
mViewBinding
.
vipLevel
.
setText
(
vip
.
getVipLevelName
());
mViewBinding
.
vipLevel
.
setText
(
vip
.
getVipLevelName
());
}
}
mViewBinding
.
vipBirthday
.
setText
(
vip
.
getVipBirthday
()
+
""
);
mViewBinding
.
vipBirthday
.
setText
(
vip
.
getVipBirthday
());
mViewBinding
.
vipName
.
setText
(
vip
.
getVipName
());
mViewBinding
.
vipName
.
setText
(
vip
.
getVipName
());
mViewBinding
.
vipMoble
.
setText
(
vip
.
getVipMobile
()
+
""
);
mViewBinding
.
vipMoble
.
setText
(
String
.
valueOf
(
vip
.
getVipMobile
())
);
mViewBinding
.
vipSex
.
setText
(
getVipSex
(
vip
.
getVipSex
()));
mViewBinding
.
vipSex
.
setText
(
getVipSex
(
vip
.
getVipSex
()));
mViewBinding
.
vipDiscounts
.
setText
(
getString
(
R
.
string
.
vip_discount
,
vip
.
getVipDefDiscount
()
+
""
));
mViewBinding
.
vipDiscounts
.
setText
(
isZh
(
mContext
)
?
ConvertUtil
.
discount
(
vip
.
getVipDefDiscount
())
+
"折"
:
100
-
vip
.
getVipDefDiscount
()
+
"% OFF"
);
// initView();
}
}
public
void
ticketQuerySus
(
List
<
Ticket
>
ticketPager
)
{
public
void
ticketQuerySus
(
List
<
Ticket
>
ticketPager
)
{
this
.
tickets
=
ticketPager
;
this
.
tickets
=
ticketPager
;
mViewBinding
.
ticketCount
.
setText
(
String
.
valueOf
(
ticketPager
.
size
()));
mViewBinding
.
ticketCount
.
setText
(
String
.
valueOf
(
ticketPager
.
size
()));
}
}
public
void
getTruleSus
(
Pager
<
Trule
>
trulePager
)
{
public
void
getTruleSus
(
Pager
<
Trule
>
trulePager
)
{
this
.
trules
=
trulePager
.
getList
();
this
.
trules
=
trulePager
.
getList
();
mViewBinding
.
ticketCount
.
setText
(
String
.
valueOf
(
trulePager
.
getList
().
size
()
+
""
));
mViewBinding
.
ticketCount
.
setText
(
String
.
valueOf
(
trulePager
.
getList
().
size
()
+
""
));
}
}
}
}
app/src/main/java/com/xingdata/zzdpos/ui/vip/fragment/VipListFragment.java
View file @
ddd1dbb9
...
@@ -189,7 +189,7 @@ public class VipListFragment extends BaseFragment<VipPresenter, FragmentVipListB
...
@@ -189,7 +189,7 @@ public class VipListFragment extends BaseFragment<VipPresenter, FragmentVipListB
}
}
LinearLayout
.
LayoutParams
layoutParams
=
new
LinearLayout
.
LayoutParams
(
LinearLayout
.
LayoutParams
.
MATCH_PARENT
,
LinearLayout
.
LayoutParams
.
MATCH_PARENT
);
LinearLayout
.
LayoutParams
layoutParams
=
new
LinearLayout
.
LayoutParams
(
LinearLayout
.
LayoutParams
.
MATCH_PARENT
,
LinearLayout
.
LayoutParams
.
MATCH_PARENT
);
Level
allLevel
=
new
Level
();
Level
allLevel
=
new
Level
();
allLevel
.
setVipLevelName
(
"全部会员"
);
allLevel
.
setVipLevelName
(
getString
(
R
.
string
.
ticket_title_allVip
)
);
mViewBinding
.
vipLevelR
.
addView
(
addRadioButton
(
layoutParams
,
allLevel
));
mViewBinding
.
vipLevelR
.
addView
(
addRadioButton
(
layoutParams
,
allLevel
));
for
(
int
i
=
0
;
i
<
levelPager
.
getPageSize
();
i
++)
{
for
(
int
i
=
0
;
i
<
levelPager
.
getPageSize
();
i
++)
{
mViewBinding
.
vipLevelR
.
addView
(
addRadioButton
(
layoutParams
,
levelPager
.
getList
().
get
(
i
)));
mViewBinding
.
vipLevelR
.
addView
(
addRadioButton
(
layoutParams
,
levelPager
.
getList
().
get
(
i
)));
...
@@ -211,7 +211,7 @@ public class VipListFragment extends BaseFragment<VipPresenter, FragmentVipListB
...
@@ -211,7 +211,7 @@ public class VipListFragment extends BaseFragment<VipPresenter, FragmentVipListB
mPresenter
.
levels
.
clear
();
mPresenter
.
levels
.
clear
();
mPresenter
.
levels
.
addAll
(
levelPager
.
getList
());
mPresenter
.
levels
.
addAll
(
levelPager
.
getList
());
Level
level
=
new
Level
();
Level
level
=
new
Level
();
level
.
setVipLevelName
(
"超级会员"
);
level
.
setVipLevelName
(
getString
(
R
.
string
.
vip_svip
)
);
level
.
setVipDefDiscount
(
mPresenter
.
levels
.
get
(
mPresenter
.
levels
.
size
()
-
1
).
getVipDefDiscount
());
level
.
setVipDefDiscount
(
mPresenter
.
levels
.
get
(
mPresenter
.
levels
.
size
()
-
1
).
getVipDefDiscount
());
mPresenter
.
levels
.
add
(
level
);
mPresenter
.
levels
.
add
(
level
);
}
}
...
...
app/src/main/java/com/xingdata/zzdpos/ui/vip/fragment/VipRechargeFragment.java
View file @
ddd1dbb9
...
@@ -5,6 +5,7 @@ package com.xingdata.zzdpos.ui.vip.fragment;
...
@@ -5,6 +5,7 @@ package com.xingdata.zzdpos.ui.vip.fragment;
*/
*/
import
android.annotation.SuppressLint
;
import
android.annotation.SuppressLint
;
import
android.content.Context
;
import
android.support.v7.widget.StaggeredGridLayoutManager
;
import
android.support.v7.widget.StaggeredGridLayoutManager
;
import
android.text.Editable
;
import
android.text.Editable
;
import
android.text.SpannableString
;
import
android.text.SpannableString
;
...
@@ -23,7 +24,6 @@ import com.xingdata.zzdpos.C;
...
@@ -23,7 +24,6 @@ import com.xingdata.zzdpos.C;
import
com.xingdata.zzdpos.R
;
import
com.xingdata.zzdpos.R
;
import
com.xingdata.zzdpos.base.BaseFragment
;
import
com.xingdata.zzdpos.base.BaseFragment
;
import
com.xingdata.zzdpos.databinding.FragmentVipRechargeBinding
;
import
com.xingdata.zzdpos.databinding.FragmentVipRechargeBinding
;
import
com.xingdata.zzdpos.model.Level
;
import
com.xingdata.zzdpos.model.Mscard
;
import
com.xingdata.zzdpos.model.Mscard
;
import
com.xingdata.zzdpos.model.Pager
;
import
com.xingdata.zzdpos.model.Pager
;
import
com.xingdata.zzdpos.model.Pay
;
import
com.xingdata.zzdpos.model.Pay
;
...
@@ -36,6 +36,7 @@ import com.xingdata.zzdpos.util.RecyclerViewUtil;
...
@@ -36,6 +36,7 @@ import com.xingdata.zzdpos.util.RecyclerViewUtil;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Locale
;
/**
/**
* 会员充值界面
* 会员充值界面
...
@@ -63,7 +64,7 @@ public class VipRechargeFragment extends BaseFragment<VipPresenter, FragmentVipR
...
@@ -63,7 +64,7 @@ public class VipRechargeFragment extends BaseFragment<VipPresenter, FragmentVipR
mViewBinding
.
infoTitle
.
popMenu
.
setVisibility
(
View
.
GONE
);
mViewBinding
.
infoTitle
.
popMenu
.
setVisibility
(
View
.
GONE
);
mViewBinding
.
vipMobile
.
setText
(
String
.
valueOf
(
mVip
.
getVipMobile
()));
mViewBinding
.
vipMobile
.
setText
(
String
.
valueOf
(
mVip
.
getVipMobile
()));
mViewBinding
.
vipName
.
setText
(
String
.
valueOf
(
mVip
.
getVipName
()));
mViewBinding
.
vipName
.
setText
(
String
.
valueOf
(
mVip
.
getVipName
()));
mViewBinding
.
infoTitle
.
tvTitle
.
setText
(
"充值"
);
mViewBinding
.
infoTitle
.
tvTitle
.
setText
(
R
.
string
.
menu_recharge
);
mViewBinding
.
vipBalance
.
setText
(
getString
(
R
.
string
.
vip_balance_text
,
ConvertUtil
.
fenToYuan2
(
mVip
.
getAcctCbal
())));
mViewBinding
.
vipBalance
.
setText
(
getString
(
R
.
string
.
vip_balance_text
,
ConvertUtil
.
fenToYuan2
(
mVip
.
getAcctCbal
())));
mViewBinding
.
infoTitle
.
ivBack
.
setOnClickListener
(
view
->
{
mViewBinding
.
infoTitle
.
ivBack
.
setOnClickListener
(
view
->
{
// pop();
// pop();
...
@@ -79,7 +80,7 @@ public class VipRechargeFragment extends BaseFragment<VipPresenter, FragmentVipR
...
@@ -79,7 +80,7 @@ public class VipRechargeFragment extends BaseFragment<VipPresenter, FragmentVipR
ToastUtils
.
showShort
(
"请选择充值金额"
);
ToastUtils
.
showShort
(
"请选择充值金额"
);
return
;
return
;
}
}
if
(
position
!=
0
)
{
if
(
position
!=
0
)
{
ToastUtils
.
showShort
(
"暂未开通该支付方式"
);
ToastUtils
.
showShort
(
"暂未开通该支付方式"
);
return
;
return
;
}
}
...
@@ -98,9 +99,7 @@ public class VipRechargeFragment extends BaseFragment<VipPresenter, FragmentVipR
...
@@ -98,9 +99,7 @@ public class VipRechargeFragment extends BaseFragment<VipPresenter, FragmentVipR
}
}
});
});
ViewTreeObserver
observer
=
mViewBinding
.
payMoneyLayout
.
getViewTreeObserver
();
ViewTreeObserver
observer
=
mViewBinding
.
payMoneyLayout
.
getViewTreeObserver
();
observer
.
addOnGlobalLayoutListener
(
new
ViewTreeObserver
.
OnGlobalLayoutListener
()
observer
.
addOnGlobalLayoutListener
(
new
ViewTreeObserver
.
OnGlobalLayoutListener
()
{
{
@Override
@Override
public
void
onGlobalLayout
()
{
public
void
onGlobalLayout
()
{
mViewBinding
.
payMoneyLayout
.
getViewTreeObserver
().
removeGlobalOnLayoutListener
(
this
);
mViewBinding
.
payMoneyLayout
.
getViewTreeObserver
().
removeGlobalOnLayoutListener
(
this
);
...
@@ -127,13 +126,19 @@ public class VipRechargeFragment extends BaseFragment<VipPresenter, FragmentVipR
...
@@ -127,13 +126,19 @@ public class VipRechargeFragment extends BaseFragment<VipPresenter, FragmentVipR
}
}
private
boolean
isZh
(
Context
context
)
{
Locale
locale
=
context
.
getResources
().
getConfiguration
().
locale
;
String
language
=
locale
.
getLanguage
();
return
language
.
endsWith
(
"zh"
);
}
@SuppressLint
(
"ResourceAsColor"
)
@SuppressLint
(
"ResourceAsColor"
)
public
void
getMscardSus
(
Pager
<
Mscard
>
mscardPager
)
{
public
void
getMscardSus
(
Pager
<
Mscard
>
mscardPager
)
{
mscards
.
clear
();
mscards
.
clear
();
mscards
.
addAll
(
mscardPager
.
getList
());
mscards
.
addAll
(
mscardPager
.
getList
());
layoutParams
=
new
RadioGroup
.
LayoutParams
(
inWight
/
4
,
LinearLayout
.
LayoutParams
.
MATCH_PARENT
,
1
);
layoutParams
=
new
RadioGroup
.
LayoutParams
(
inWight
/
4
,
LinearLayout
.
LayoutParams
.
MATCH_PARENT
,
1
);
layoutParams
.
setMargins
(
12
,
10
,
12
,
10
);
layoutParams
.
setMargins
(
12
,
10
,
12
,
10
);
int
mscardLength
=
0
;
int
mscardLength
=
0
;
if
(
mscards
.
size
()
<=
3
)
{
if
(
mscards
.
size
()
<=
3
)
{
mscardLength
=
mscards
.
size
();
mscardLength
=
mscards
.
size
();
...
@@ -154,7 +159,7 @@ public class VipRechargeFragment extends BaseFragment<VipPresenter, FragmentVipR
...
@@ -154,7 +159,7 @@ public class VipRechargeFragment extends BaseFragment<VipPresenter, FragmentVipR
mViewBinding
.
payMoneyLayout
.
setVisibility
(
View
.
GONE
);
mViewBinding
.
payMoneyLayout
.
setVisibility
(
View
.
GONE
);
}
}
String
hintStr
=
"自定义金额
"
;
String
hintStr
=
isZh
(
mContext
)
?
"自定义金额"
:
"Custom amount
"
;
SpannableString
ss
=
new
SpannableString
(
hintStr
);
SpannableString
ss
=
new
SpannableString
(
hintStr
);
AbsoluteSizeSpan
ass
=
new
AbsoluteSizeSpan
(
8
,
true
);
AbsoluteSizeSpan
ass
=
new
AbsoluteSizeSpan
(
8
,
true
);
mViewBinding
.
stealMoney
.
setHintTextColor
(
R
.
color
.
black_likui
);
mViewBinding
.
stealMoney
.
setHintTextColor
(
R
.
color
.
black_likui
);
...
...
app/src/main/java/com/xingdata/zzdpos/ui/vip/fragment/VipRechargeListFragment.java
View file @
ddd1dbb9
...
@@ -5,18 +5,14 @@ package com.xingdata.zzdpos.ui.vip.fragment;
...
@@ -5,18 +5,14 @@ package com.xingdata.zzdpos.ui.vip.fragment;
*/
*/
import
android.annotation.SuppressLint
;
import
android.annotation.SuppressLint
;
import
android.content.Context
;
import
android.support.v7.widget.LinearLayoutManager
;
import
android.support.v7.widget.LinearLayoutManager
;
import
android.view.View
;
import
android.view.View
;
import
android.widget.EditText
;
import
android.widget.LinearLayout
;
import
com.blankj.utilcode.util.ToastUtils
;
import
com.xingdata.zzdpos.R
;
import
com.xingdata.zzdpos.R
;
import
com.xingdata.zzdpos.base.BaseActivity
;
import
com.xingdata.zzdpos.base.BaseActivity
;
import
com.xingdata.zzdpos.base.BaseFragment
;
import
com.xingdata.zzdpos.base.BaseFragment
;
import
com.xingdata.zzdpos.databinding.FragmentVipRechargeListBinding
;
import
com.xingdata.zzdpos.databinding.FragmentVipRechargeListBinding
;
import
com.xingdata.zzdpos.model.Level
;
import
com.xingdata.zzdpos.model.Mscard
;
import
com.xingdata.zzdpos.model.Pager
;
import
com.xingdata.zzdpos.model.Pager
;
import
com.xingdata.zzdpos.model.Vip
;
import
com.xingdata.zzdpos.model.Vip
;
import
com.xingdata.zzdpos.model.VipRechargeOrder
;
import
com.xingdata.zzdpos.model.VipRechargeOrder
;
...
@@ -26,8 +22,8 @@ import com.xingdata.zzdpos.ui.vip.dialog.VipEditMenuDialog;
...
@@ -26,8 +22,8 @@ import com.xingdata.zzdpos.ui.vip.dialog.VipEditMenuDialog;
import
com.xingdata.zzdpos.util.ConvertUtil
;
import
com.xingdata.zzdpos.util.ConvertUtil
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Locale
;
/**
/**
* 会员充值记录
* 会员充值记录
...
@@ -38,6 +34,11 @@ public class VipRechargeListFragment extends BaseFragment<VipPresenter, Fragment
...
@@ -38,6 +34,11 @@ public class VipRechargeListFragment extends BaseFragment<VipPresenter, Fragment
private
List
<
VipRechargeOrder
>
orders
=
new
ArrayList
<>();
private
List
<
VipRechargeOrder
>
orders
=
new
ArrayList
<>();
private
int
pageNumber
=
0
;
private
int
pageNumber
=
0
;
private
boolean
isZh
(
Context
context
)
{
Locale
locale
=
context
.
getResources
().
getConfiguration
().
locale
;
String
language
=
locale
.
getLanguage
();
return
language
.
endsWith
(
"zh"
);
}
@Override
@Override
public
int
getLayoutId
()
{
public
int
getLayoutId
()
{
...
@@ -48,7 +49,7 @@ public class VipRechargeListFragment extends BaseFragment<VipPresenter, Fragment
...
@@ -48,7 +49,7 @@ public class VipRechargeListFragment extends BaseFragment<VipPresenter, Fragment
@Override
@Override
public
void
initView
()
{
public
void
initView
()
{
mViewBinding
.
infoTitle
.
tvTitle
.
setText
(
"充值记录"
);
mViewBinding
.
infoTitle
.
tvTitle
.
setText
(
R
.
string
.
statistics_vip_recharge_hint
);
vipRechargeAdapter
=
new
VipRechargeAdapter
(
getActivity
(),
orders
);
vipRechargeAdapter
=
new
VipRechargeAdapter
(
getActivity
(),
orders
);
mViewBinding
.
rechargeRecyclerView
.
setLayoutManager
(
new
LinearLayoutManager
(
getActivity
()));
mViewBinding
.
rechargeRecyclerView
.
setLayoutManager
(
new
LinearLayoutManager
(
getActivity
()));
mViewBinding
.
rechargeRecyclerView
.
setAdapter
(
vipRechargeAdapter
);
mViewBinding
.
rechargeRecyclerView
.
setAdapter
(
vipRechargeAdapter
);
...
@@ -58,7 +59,7 @@ public class VipRechargeListFragment extends BaseFragment<VipPresenter, Fragment
...
@@ -58,7 +59,7 @@ public class VipRechargeListFragment extends BaseFragment<VipPresenter, Fragment
mViewBinding
.
vipMobile
.
setText
(
String
.
valueOf
(
mVip
.
getVipMobile
()));
mViewBinding
.
vipMobile
.
setText
(
String
.
valueOf
(
mVip
.
getVipMobile
()));
mViewBinding
.
vipName
.
setText
(
String
.
valueOf
(
mVip
.
getVipName
()));
mViewBinding
.
vipName
.
setText
(
String
.
valueOf
(
mVip
.
getVipName
()));
mViewBinding
.
infoTitle
.
popMenu
.
setVisibility
(
View
.
GONE
);
mViewBinding
.
infoTitle
.
popMenu
.
setVisibility
(
View
.
GONE
);
mViewBinding
.
vipDiscount
.
setText
(
getString
(
R
.
string
.
vip_info_discount
,
ConvertUtil
.
discount
(
mVip
.
getVipDefDiscount
()))
);
mViewBinding
.
vipDiscount
.
setText
(
isZh
(
mContext
)
?
ConvertUtil
.
discount
(
mVip
.
getVipDefDiscount
())
+
"折"
:
100
-
mVip
.
getVipDefDiscount
()
+
"% OFF"
);
vipRechargeAdapter
.
setEnableLoadMore
(
true
);
vipRechargeAdapter
.
setEnableLoadMore
(
true
);
vipRechargeAdapter
.
setOnLoadMoreListener
(
this
::
onLoadMore
,
mViewBinding
.
rechargeRecyclerView
);
vipRechargeAdapter
.
setOnLoadMoreListener
(
this
::
onLoadMore
,
mViewBinding
.
rechargeRecyclerView
);
mViewBinding
.
infoTitle
.
popMenu
.
setOnClickListener
(
view
->
{
mViewBinding
.
infoTitle
.
popMenu
.
setOnClickListener
(
view
->
{
...
@@ -80,21 +81,13 @@ public class VipRechargeListFragment extends BaseFragment<VipPresenter, Fragment
...
@@ -80,21 +81,13 @@ public class VipRechargeListFragment extends BaseFragment<VipPresenter, Fragment
mPresenter
.
rechargeorderQuery
(
mVip
.
getVipId
(),
pageNumber
);
mPresenter
.
rechargeorderQuery
(
mVip
.
getVipId
(),
pageNumber
);
}
}
// @Override
// public boolean onBackPressedSupport() {
// pop();
// return true;
// }
public
void
setVip
(
Vip
mVip
)
{
public
void
setVip
(
Vip
mVip
)
{
this
.
mVip
=
mVip
;
this
.
mVip
=
mVip
;
}
}
public
void
getRechargeOrderSus
(
Pager
<
VipRechargeOrder
>
rechargeOrderPager
)
{
public
void
getRechargeOrderSus
(
Pager
<
VipRechargeOrder
>
rechargeOrderPager
)
{
if
(
rechargeOrderPager
.
isFirstPage
())
if
(
rechargeOrderPager
.
isFirstPage
())
{
{
orders
.
clear
();
orders
.
clear
();
}
}
if
(
rechargeOrderPager
.
getList
().
size
()
!=
0
)
{
if
(
rechargeOrderPager
.
getList
().
size
()
!=
0
)
{
...
...
app/src/main/java/com/xingdata/zzdpos/ui/vip/fragment/VipSearchFragment.java
View file @
ddd1dbb9
...
@@ -25,11 +25,12 @@ import com.xingdata.zzdpos.ui.vip.VipPresenter;
...
@@ -25,11 +25,12 @@ import com.xingdata.zzdpos.ui.vip.VipPresenter;
public
class
VipSearchFragment
extends
BaseFragment
<
VipPresenter
,
FragmentVipSerchBinding
>
{
public
class
VipSearchFragment
extends
BaseFragment
<
VipPresenter
,
FragmentVipSerchBinding
>
{
private
VipAdapter
mVipAdapter
;
private
VipAdapter
mVipAdapter
;
private
BaseFragment
baseFragment
;
private
BaseFragment
baseFragment
;
private
int
inType
=
0
;
private
int
inType
=
0
;
/**
/**
* 0 會員详情 1 充值
* 0 會員详情 1 充值
* @param inType
*
* @param inType
*/
*/
public
void
setInType
(
int
inType
)
{
public
void
setInType
(
int
inType
)
{
this
.
inType
=
inType
;
this
.
inType
=
inType
;
...
@@ -53,27 +54,27 @@ public class VipSearchFragment extends BaseFragment<VipPresenter, FragmentVipSer
...
@@ -53,27 +54,27 @@ public class VipSearchFragment extends BaseFragment<VipPresenter, FragmentVipSer
mVipAdapter
.
setEmptyView
(
emptyView
);
mVipAdapter
.
setEmptyView
(
emptyView
);
((
EditText
)
mViewBinding
.
etSearch
).
requestFocus
();
((
EditText
)
mViewBinding
.
etSearch
).
requestFocus
();
mVipAdapter
.
setOnItemClickListener
((
adapter
,
view
,
position
)
->
{
mVipAdapter
.
setOnItemClickListener
((
adapter
,
view
,
position
)
->
{
switch
(
inType
){
switch
(
inType
)
{
case
0
:
case
0
:
mPresenter
.
vipInfoFragment
=
new
VipInfoFragment
();
mPresenter
.
vipInfoFragment
=
new
VipInfoFragment
();
mPresenter
.
vipInfoFragment
.
setVip
(
mVipAdapter
.
getData
().
get
(
position
));
mPresenter
.
vipInfoFragment
.
setVip
(
mVipAdapter
.
getData
().
get
(
position
));
startWithPop
(
mPresenter
.
vipInfoFragment
);
startWithPop
(
mPresenter
.
vipInfoFragment
);
break
;
break
;
case
1
:
case
1
:
mPresenter
.
vipRechargeFragment
=
new
VipRechargeFragment
();
mPresenter
.
vipRechargeFragment
=
new
VipRechargeFragment
();
mPresenter
.
vipRechargeFragment
.
setVip
(
mVipAdapter
.
getData
().
get
(
position
));
mPresenter
.
vipRechargeFragment
.
setVip
(
mVipAdapter
.
getData
().
get
(
position
));
startWithPop
(
mPresenter
.
vipRechargeFragment
);
startWithPop
(
mPresenter
.
vipRechargeFragment
);
break
;
break
;
}
}
});
});
mViewBinding
.
setOnClickListener
(
view
->
{
mViewBinding
.
setOnClickListener
(
view
->
{
switch
(
view
.
getId
()){
switch
(
view
.
getId
())
{
case
R
.
id
.
btn_back
:
case
R
.
id
.
btn_back
:
pop
();
pop
();
break
;
break
;
case
R
.
id
.
search_ImageButton
:
case
R
.
id
.
search_ImageButton
:
if
(
mViewBinding
.
etSearch
.
getText
().
toString
().
length
()
==
0
)
{
if
(
mViewBinding
.
etSearch
.
getText
().
toString
().
length
()
==
0
)
{
ToastUtils
.
showShort
(
"搜索条件不能为空"
);
ToastUtils
.
showShort
(
R
.
string
.
login_valid_data
);
return
;
return
;
}
}
mPresenter
.
searchVip
(
mViewBinding
.
etSearch
.
getText
().
toString
());
mPresenter
.
searchVip
(
mViewBinding
.
etSearch
.
getText
().
toString
());
...
...
app/src/main/java/com/xingdata/zzdpos/ui/vip/fragment/VipTruleListFragment.java
View file @
ddd1dbb9
...
@@ -5,17 +5,15 @@ package com.xingdata.zzdpos.ui.vip.fragment;
...
@@ -5,17 +5,15 @@ package com.xingdata.zzdpos.ui.vip.fragment;
*/
*/
import
android.annotation.SuppressLint
;
import
android.annotation.SuppressLint
;
import
android.content.Context
;
import
android.support.v7.widget.LinearLayoutManager
;
import
android.support.v7.widget.LinearLayoutManager
;
import
android.view.View
;
import
android.view.View
;
import
com.blankj.utilcode.util.ToastUtils
;
import
com.xingdata.zzdpos.R
;
import
com.xingdata.zzdpos.R
;
import
com.xingdata.zzdpos.base.BaseActivity
;
import
com.xingdata.zzdpos.base.BaseActivity
;
import
com.xingdata.zzdpos.base.BaseFragment
;
import
com.xingdata.zzdpos.base.BaseFragment
;
import
com.xingdata.zzdpos.databinding.FragmentVipMscardListBinding
;
import
com.xingdata.zzdpos.databinding.FragmentVipMscardListBinding
;
import
com.xingdata.zzdpos.model.Pager
;
import
com.xingdata.zzdpos.model.Ticket
;
import
com.xingdata.zzdpos.model.Ticket
;
import
com.xingdata.zzdpos.model.Trule
;
import
com.xingdata.zzdpos.model.Vip
;
import
com.xingdata.zzdpos.model.Vip
;
import
com.xingdata.zzdpos.ui.vip.VipPresenter
;
import
com.xingdata.zzdpos.ui.vip.VipPresenter
;
import
com.xingdata.zzdpos.ui.vip.adapter.VipTruleAdapter
;
import
com.xingdata.zzdpos.ui.vip.adapter.VipTruleAdapter
;
...
@@ -23,6 +21,7 @@ import com.xingdata.zzdpos.ui.vip.dialog.VipEditMenuDialog;
...
@@ -23,6 +21,7 @@ import com.xingdata.zzdpos.ui.vip.dialog.VipEditMenuDialog;
import
com.xingdata.zzdpos.util.ConvertUtil
;
import
com.xingdata.zzdpos.util.ConvertUtil
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Locale
;
/**
/**
* 优惠券列表
* 优惠券列表
...
@@ -30,8 +29,8 @@ import java.util.List;
...
@@ -30,8 +29,8 @@ import java.util.List;
@SuppressLint
(
"ValidFragment"
)
@SuppressLint
(
"ValidFragment"
)
public
class
VipTruleListFragment
extends
BaseFragment
<
VipPresenter
,
FragmentVipMscardListBinding
>
{
public
class
VipTruleListFragment
extends
BaseFragment
<
VipPresenter
,
FragmentVipMscardListBinding
>
{
private
VipTruleAdapter
adapter
;
private
VipTruleAdapter
adapter
;
// private List<Trule> trules;
// private List<Trule> trules;
private
List
<
Ticket
>
tickets
;
private
List
<
Ticket
>
tickets
;
private
int
valid
=
0
;
private
int
valid
=
0
;
private
int
inValid
=
0
;
private
int
inValid
=
0
;
...
@@ -43,9 +42,15 @@ public class VipTruleListFragment extends BaseFragment<VipPresenter, FragmentVip
...
@@ -43,9 +42,15 @@ public class VipTruleListFragment extends BaseFragment<VipPresenter, FragmentVip
private
Vip
mVip
;
private
Vip
mVip
;
private
boolean
isZh
(
Context
context
)
{
Locale
locale
=
context
.
getResources
().
getConfiguration
().
locale
;
String
language
=
locale
.
getLanguage
();
return
language
.
endsWith
(
"zh"
);
}
@Override
@Override
public
void
initView
()
{
public
void
initView
()
{
mViewBinding
.
infoTitle
.
tvTitle
.
setText
(
"优惠券详情"
);
mViewBinding
.
infoTitle
.
tvTitle
.
setText
(
R
.
string
.
vip_coupon
);
adapter
=
new
VipTruleAdapter
(
getActivity
(),
tickets
);
adapter
=
new
VipTruleAdapter
(
getActivity
(),
tickets
);
mViewBinding
.
rechargeRecyclerView
.
setLayoutManager
(
new
LinearLayoutManager
(
getActivity
()));
mViewBinding
.
rechargeRecyclerView
.
setLayoutManager
(
new
LinearLayoutManager
(
getActivity
()));
mViewBinding
.
rechargeRecyclerView
.
setAdapter
(
adapter
);
mViewBinding
.
rechargeRecyclerView
.
setAdapter
(
adapter
);
...
@@ -53,7 +58,7 @@ public class VipTruleListFragment extends BaseFragment<VipPresenter, FragmentVip
...
@@ -53,7 +58,7 @@ public class VipTruleListFragment extends BaseFragment<VipPresenter, FragmentVip
mViewBinding
.
vipMobile
.
setText
(
String
.
valueOf
(
mVip
.
getVipMobile
()));
mViewBinding
.
vipMobile
.
setText
(
String
.
valueOf
(
mVip
.
getVipMobile
()));
mViewBinding
.
vipName
.
setText
(
String
.
valueOf
(
mVip
.
getVipName
()));
mViewBinding
.
vipName
.
setText
(
String
.
valueOf
(
mVip
.
getVipName
()));
mViewBinding
.
infoTitle
.
popMenu
.
setVisibility
(
View
.
GONE
);
mViewBinding
.
infoTitle
.
popMenu
.
setVisibility
(
View
.
GONE
);
mViewBinding
.
vipDiscount
.
setText
(
getString
(
R
.
string
.
vip_info_discount
,
ConvertUtil
.
discount
(
mVip
.
getVipDefDiscount
())
));
mViewBinding
.
vipDiscount
.
setText
(
(
isZh
(
mContext
)
?
ConvertUtil
.
discount
(
mVip
.
getVipDefDiscount
())
+
"折"
:
100
-
mVip
.
getVipDefDiscount
()
+
"% OFF"
));
adapter
.
setOnLoadMoreListener
(
this
::
onLoadMore
,
mViewBinding
.
rechargeRecyclerView
);
adapter
.
setOnLoadMoreListener
(
this
::
onLoadMore
,
mViewBinding
.
rechargeRecyclerView
);
mViewBinding
.
infoTitle
.
popMenu
.
setOnClickListener
(
view
->
{
mViewBinding
.
infoTitle
.
popMenu
.
setOnClickListener
(
view
->
{
new
VipEditMenuDialog
().
show
((
BaseActivity
)
getActivity
());
new
VipEditMenuDialog
().
show
((
BaseActivity
)
getActivity
());
...
@@ -112,18 +117,18 @@ public class VipTruleListFragment extends BaseFragment<VipPresenter, FragmentVip
...
@@ -112,18 +117,18 @@ public class VipTruleListFragment extends BaseFragment<VipPresenter, FragmentVip
// }
// }
private
void
getMscardValid
()
{
private
void
getMscardValid
()
{
valid
=
0
;
valid
=
0
;
inValid
=
0
;
inValid
=
0
;
for
(
Ticket
t
:
tickets
)
{
for
(
Ticket
t
:
tickets
)
{
if
(
t
.
getUsedFlag
().
toString
().
equals
(
"1"
)
&&
t
.
getTruleStatus
().
toString
().
equals
(
"0"
))
{
if
(
t
.
getUsedFlag
().
toString
().
equals
(
"1"
)
&&
t
.
getTruleStatus
().
toString
().
equals
(
"0"
))
{
valid
=
valid
+
1
;
valid
=
valid
+
1
;
}
else
{
}
else
{
inValid
=
inValid
+
1
;
inValid
=
inValid
+
1
;
}
}
}
}
mViewBinding
.
mscardValid
.
setText
(
valid
+
""
);
mViewBinding
.
mscardValid
.
setText
(
valid
+
""
);
mViewBinding
.
macardInvalid
.
setText
(
inValid
+
""
);
mViewBinding
.
macardInvalid
.
setText
(
inValid
+
""
);
}
}
// public void setTrules(List<Trule> trules) {
// public void setTrules(List<Trule> trules) {
...
...
app/src/main/java/com/xingdata/zzdpos/view/SearchBar.java
View file @
ddd1dbb9
...
@@ -14,6 +14,7 @@ import android.view.inputmethod.EditorInfo;
...
@@ -14,6 +14,7 @@ import android.view.inputmethod.EditorInfo;
import
com.blankj.utilcode.util.KeyboardUtils
;
import
com.blankj.utilcode.util.KeyboardUtils
;
import
com.blankj.utilcode.util.StringUtils
;
import
com.blankj.utilcode.util.StringUtils
;
import
com.blankj.utilcode.util.ToastUtils
;
import
com.blankj.utilcode.util.ToastUtils
;
import
com.xingdata.zzdpos.App
;
import
com.xingdata.zzdpos.R
;
import
com.xingdata.zzdpos.R
;
import
com.xingdata.zzdpos.databinding.ViewSearchBarBinding
;
import
com.xingdata.zzdpos.databinding.ViewSearchBarBinding
;
import
com.xingdata.zzdpos.util.Global
;
import
com.xingdata.zzdpos.util.Global
;
...
@@ -86,7 +87,7 @@ public class SearchBar extends ConstraintLayout {
...
@@ -86,7 +87,7 @@ public class SearchBar extends ConstraintLayout {
if
(
i
==
EditorInfo
.
IME_ACTION_SEARCH
)
{
if
(
i
==
EditorInfo
.
IME_ACTION_SEARCH
)
{
String
str
=
mViewBinding
.
etSearch
.
getText
().
toString
();
String
str
=
mViewBinding
.
etSearch
.
getText
().
toString
();
if
(
StringUtils
.
isEmpty
(
str
)
&&
!
isEmptyEnabled
)
{
if
(
StringUtils
.
isEmpty
(
str
)
&&
!
isEmptyEnabled
)
{
ToastUtils
.
showShort
(
getActivity
()
.
getString
(
R
.
string
.
replenishment_toast_seachText
));
ToastUtils
.
showShort
(
App
.
instance
.
getString
(
R
.
string
.
replenishment_toast_seachText
));
return
true
;
return
true
;
}
}
KeyboardUtils
.
hideSoftInput
(
mViewBinding
.
etSearch
);
KeyboardUtils
.
hideSoftInput
(
mViewBinding
.
etSearch
);
...
@@ -97,7 +98,7 @@ public class SearchBar extends ConstraintLayout {
...
@@ -97,7 +98,7 @@ public class SearchBar extends ConstraintLayout {
mViewBinding
.
tvSearch
.
setOnClickListener
(
view
->
{
mViewBinding
.
tvSearch
.
setOnClickListener
(
view
->
{
String
str
=
mViewBinding
.
etSearch
.
getText
().
toString
();
String
str
=
mViewBinding
.
etSearch
.
getText
().
toString
();
if
(
StringUtils
.
isEmpty
(
str
)
&&
!
isEmptyEnabled
)
{
if
(
StringUtils
.
isEmpty
(
str
)
&&
!
isEmptyEnabled
)
{
ToastUtils
.
showShort
(
getActivity
()
.
getString
(
R
.
string
.
replenishment_toast_seachText
));
ToastUtils
.
showShort
(
App
.
instance
.
getString
(
R
.
string
.
replenishment_toast_seachText
));
this
.
showSoftInput
();
this
.
showSoftInput
();
return
;
return
;
}
}
...
...
app/src/main/res/drawable/selector_checkbox_bg.xml
View file @
ddd1dbb9
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<selector
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<item
android:drawable=
"@mipmap/radio_select_bg"
android:state_checked=
"true"
/>
<item
android:drawable=
"@mipmap/radio_select_bg"
android:state_checked=
"true"
/>
<item
android:drawable=
"@mipmap/radio_normal_bg"
android:state_checked=
"false"
/>
<item
android:drawable=
"@mipmap/radio_normal_bg"
android:state_checked=
"false"
/>
</selector>
</selector>
\ No newline at end of file
app/src/main/res/drawable/selector_paymoney_radiobutton_bg.xml
View file @
ddd1dbb9
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<selector
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<item
android:drawable=
"@drawable/shape_black_layout"
android:state_checked=
"false"
/>
<item
android:drawable=
"@drawable/shape_black_layout"
android:state_checked=
"false"
/>
<item
android:drawable=
"@drawable/shape_red_layout"
android:state_checked=
"true"
/>
<item
android:drawable=
"@drawable/shape_red_layout"
android:state_checked=
"true"
/>
</selector>
</selector>
\ No newline at end of file
app/src/main/res/layout/activity_login.xml
View file @
ddd1dbb9
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<layout>
<layout
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<data>
<data>
<variable
<variable
name=
"text1"
name=
"text1"
type=
"String"
/>
type=
"String"
/>
<variable
<variable
name=
"text2"
name=
"text2"
type=
"String"
/>
type=
"String"
/>
<variable
<variable
name=
"text3"
name=
"text3"
type=
"String"
/>
type=
"String"
/>
<variable
<variable
name=
"onClickListener"
name=
"onClickListener"
type=
"android.view.View.OnClickListener"
/>
type=
"android.view.View.OnClickListener"
/>
<variable
<variable
name=
"pic"
name=
"pic"
type=
"android.net.Uri"
/>
type=
"android.net.Uri"
/>
</data>
</data>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/appBack"
android:background=
"@color/appBack"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<RelativeLayout
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
android:layout_height=
"0dp"
android:layout_weight=
"8"
>
android:layout_weight=
"8"
>
<FrameLayout
<FrameLayout
android:id=
"@+id/fra"
android:id=
"@+id/fra"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_gravity=
"center"
android:layout_gravity=
"center"
android:background=
"@color/appBack"
/>
android:background=
"@color/appBack"
/>
<ScrollView
<ScrollView
android:id=
"@+id/sv_message"
android:id=
"@+id/sv_message"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"30dp"
android:layout_height=
"30dp"
android:layout_alignParentBottom=
"true"
android:layout_alignParentRight=
"true"
android:layout_alignParentRight=
"true"
android:layout_alignParentBottom=
"true"
android:focusable=
"false"
android:focusable=
"false"
android:visibility=
"visible"
>
android:visibility=
"visible"
>
<TextView
<TextView
android:id=
"@+id/tv_sn"
android:id=
"@+id/tv_sn"
android:layout_width=
"
match_parent
"
android:layout_width=
"
50dp
"
android:layout_height=
"
match_par
ent"
android:layout_height=
"
wrap_cont
ent"
android:layout_alignParentRight=
"true"
android:layout_alignParentRight=
"true"
android:layout_marginRight=
"@dimen/all_margin_left"
android:layout_marginRight=
"@dimen/all_margin_left"
android:focusable=
"false"
android:focusable=
"false"
android:gravity=
"right|bottom"
android:gravity=
"right|bottom"
android:text=
"忘记密码 ?"
android:textColor=
"@color/black_baozheng"
/>
android:textColor=
"@color/black_baozheng"
/>
</ScrollView>
</ScrollView>
</RelativeLayout>
</RelativeLayout>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
android:layout_height=
"0dp"
...
@@ -74,7 +72,7 @@
...
@@ -74,7 +72,7 @@
android:gravity=
"center"
android:gravity=
"center"
android:orientation=
"horizontal"
android:orientation=
"horizontal"
android:visibility=
"gone"
>
android:visibility=
"gone"
>
<TextView
<TextView
android:id=
"@+id/tv_company_info"
android:id=
"@+id/tv_company_info"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
...
@@ -83,8 +81,8 @@
...
@@ -83,8 +81,8 @@
android:onClick=
"@{onClickListener}"
android:onClick=
"@{onClickListener}"
android:padding=
"16dp"
android:padding=
"16dp"
android:text=
"@string/login_tv_about"
android:text=
"@string/login_tv_about"
android:textColor=
"@color/white"
/>
android:textColor=
"@color/white"
/>
<TextView
<TextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
...
@@ -94,9 +92,9 @@
...
@@ -94,9 +92,9 @@
android:onClick=
"@{onClickListener}"
android:onClick=
"@{onClickListener}"
android:padding=
"16dp"
android:padding=
"16dp"
android:text=
"@{text1}"
android:text=
"@{text1}"
android:textColor=
"@color/white"
/>
android:textColor=
"@color/white"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</layout>
</layout>
\ No newline at end of file
app/src/main/res/layout/activity_splash.xml
View file @
ddd1dbb9
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<layout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<layout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
>
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:tools=
"http://schemas.android.com/tools"
>
<data>
<data>
<variable
<variable
name=
"version"
name=
"version"
type=
"String"
/>
type=
"String"
/>
</data>
</data>
<android.support.constraint.ConstraintLayout
xmlns:tools=
"http://schemas.android.com/tools"
<android.support.constraint.ConstraintLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@mipmap/splash"
android:background=
"@mipmap/splash"
android:orientation=
"vertical"
android:orientation=
"vertical"
tools:context=
"com.xingdata.zzdpos.ui.splash.SplashActivity"
>
tools:context=
"com.xingdata.zzdpos.ui.splash.SplashActivity"
>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
...
@@ -28,79 +28,46 @@
...
@@ -28,79 +28,46 @@
app:layout_constraintLeft_toLeftOf=
"parent"
app:layout_constraintLeft_toLeftOf=
"parent"
app:layout_constraintRight_toRightOf=
"parent"
app:layout_constraintRight_toRightOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
>
app:layout_constraintStart_toStartOf=
"parent"
>
<RelativeLayout
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/all_margin"
>
android:layout_marginTop=
"@dimen/all_margin"
>
<com.github.ybq.android.spinkit.SpinKitView
xmlns:app=
"http://schemas.android.com/apk/res-auto"
<com.github.ybq.android.spinkit.SpinKitView
android:id=
"@+id/spin_kit"
android:id=
"@+id/spin_kit"
style=
"@style/SpinKitView.Circle"
style=
"@style/SpinKitView.Circle"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerInParent=
"true"
android:layout_centerInParent=
"true"
app:SpinKit_Color=
"@color/black_zhangfei"
/>
app:SpinKit_Color=
"@color/black_zhangfei"
/>
<TextView
<TextView
android:id=
"@+id/tv_progress"
android:id=
"@+id/tv_progress"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerInParent=
"true"
android:layout_centerInParent=
"true"
android:text=
"0 %"
android:textColor=
"@color/black_zhangfei"
/>
android:textColor=
"@color/black_zhangfei"
/>
</RelativeLayout>
</RelativeLayout>
<TextView
<TextView
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerInParent=
"true"
android:layout_marginTop=
"@dimen/all_padding"
android:layout_marginTop=
"@dimen/all_padding"
android:gravity=
"center"
android:gravity=
"center"
android:text=
"
正在加载数据...
"
android:text=
"
@string/splash_loading
"
android:textColor=
"@color/black_zhangfei"
/>
android:textColor=
"@color/black_zhangfei"
/>
</LinearLayout>
</LinearLayout>
<!--<LinearLayout-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:gravity="center"-->
<!--android:orientation="horizontal"-->
<!--app:layout_constraintBottom_toBottomOf="parent"-->
<!--app:layout_constraintEnd_toEndOf="parent"-->
<!--app:layout_constraintLeft_toLeftOf="parent"-->
<!--app:layout_constraintRight_toRightOf="parent"-->
<!--app:layout_constraintStart_toStartOf="parent">-->
<!--<TextView-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:drawableStart="@mipmap/logo_welcome_zzd"-->
<!--android:gravity="center"-->
<!--android:drawablePadding="@dimen/all_margin"-->
<!--android:text="@string/splash_info"-->
<!--android:textColor="@color/white" />-->
<!--<TextView-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:layout_marginStart="@dimen/all_margin"-->
<!--android:drawableStart="@mipmap/login_phone"-->
<!--android:text="@string/login_phone"-->
<!--android:textColor="@color/white" />-->
<!--</LinearLayout>-->
<TextView
<TextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_margin=
"@dimen/padding_small"
android:text=
"@{version}"
android:text=
"@{version}"
android:textColor=
"@color/black_baozheng"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/all_text_size_small"
android:textSize=
"@dimen/all_text_size_small"
android:layout_margin=
"@dimen/padding_small"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
/>
app:layout_constraintStart_toStartOf=
"parent"
/>
</android.support.constraint.ConstraintLayout>
</android.support.constraint.ConstraintLayout>
</layout>
</layout>
\ No newline at end of file
app/src/main/res/layout/dialog_integral_exchange_setting.xml
View file @
ddd1dbb9
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<layout
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<layout
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<data>
<data>
<variable
<variable
name=
"OnClickListener"
name=
"OnClickListener"
type=
"android.view.View.OnClickListener"
></variable>
type=
"android.view.View.OnClickListener"
></variable>
</data>
</data>
<RelativeLayout
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
android:layout_height=
"match_parent"
>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@color/store_back"
android:background=
"@color/store_back"
android:focusable=
"true"
android:focusable=
"true"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<include
<include
android:id=
"@+id/ic_title"
android:id=
"@+id/ic_title"
layout=
"@layout/title"
/>
layout=
"@layout/title"
/>
<TextView
<TextView
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"?attr/actionBarSize"
android:layout_height=
"?attr/actionBarSize"
...
@@ -32,24 +32,24 @@
...
@@ -32,24 +32,24 @@
android:paddingLeft=
"@dimen/all_padding"
android:paddingLeft=
"@dimen/all_padding"
android:text=
"@string/all_baseinfo"
android:text=
"@string/all_baseinfo"
android:textColor=
"@color/black_baozheng"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/text_secondary_title"
/>
android:textSize=
"@dimen/text_secondary_title"
/>
<View
<View
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/all_line_width"
android:layout_height=
"@dimen/all_line_width"
android:background=
"@color/gray1"
android:background=
"@color/gray1"
android:paddingLeft=
"@dimen/all_margin"
android:paddingLeft=
"@dimen/all_margin"
android:paddingRight=
"@dimen/all_margin"
></View>
android:paddingRight=
"@dimen/all_margin"
></View>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@color/white"
android:background=
"@color/white"
android:gravity=
"center"
android:gravity=
"center"
android:minHeight=
"@dimen/list1_height"
android:minHeight=
"@dimen/list1_height"
android:padding
Bottom
=
"@dimen/all_padding"
android:padding
Top
=
"@dimen/all_padding"
android:padding
Top
=
"@dimen/all_padding"
>
android:padding
Bottom
=
"@dimen/all_padding"
>
<TextView
<TextView
android:id=
"@+id/tv_status"
android:id=
"@+id/tv_status"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
...
@@ -59,14 +59,14 @@
...
@@ -59,14 +59,14 @@
android:paddingLeft=
"@dimen/all_padding"
android:paddingLeft=
"@dimen/all_padding"
android:text=
"@string/all_state"
android:text=
"@string/all_state"
android:textColor=
"@color/black_baozheng"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/et_textsize"
/>
android:textSize=
"@dimen/et_textsize"
/>
<RadioGroup
<RadioGroup
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"5"
android:layout_weight=
"5"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<RadioButton
<RadioButton
android:id=
"@+id/rd_suspendeds"
android:id=
"@+id/rd_suspendeds"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
...
@@ -77,9 +77,9 @@
...
@@ -77,9 +77,9 @@
android:background=
"@drawable/selector_checkbox_bg"
android:background=
"@drawable/selector_checkbox_bg"
android:button=
"@null"
android:button=
"@null"
android:onClick=
"@{OnClickListener}"
android:onClick=
"@{OnClickListener}"
android:text=
"
暂停
"
android:text=
"
@string/all_state_close
"
android:textSize=
"@dimen/et_textsize"
/>
android:textSize=
"@dimen/et_textsize"
/>
<RadioButton
<RadioButton
android:id=
"@+id/rd_starts"
android:id=
"@+id/rd_starts"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
...
@@ -91,36 +91,35 @@
...
@@ -91,36 +91,35 @@
android:button=
"@null"
android:button=
"@null"
android:onClick=
"@{OnClickListener}"
android:onClick=
"@{OnClickListener}"
android:text=
"@string/all_state_open"
android:text=
"@string/all_state_open"
android:textSize=
"@dimen/et_textsize"
/>
android:textSize=
"@dimen/et_textsize"
/>
</RadioGroup>
</RadioGroup>
</LinearLayout>
</LinearLayout>
<View
<View
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/all_line_width"
android:layout_height=
"@dimen/all_line_width"
android:layout_marginLeft=
"@dimen/all_padding"
android:layout_marginLeft=
"@dimen/all_padding"
android:layout_marginRight=
"@dimen/all_padding"
android:layout_marginRight=
"@dimen/all_padding"
android:background=
"@color/gray1"
></View>
android:background=
"@color/gray1"
></View>
<LinearLayout
<LinearLayout
android:id=
"@+id/ll_all"
android:id=
"@+id/ll_all"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@color/white"
android:background=
"@color/white"
android:gravity=
"center"
android:gravity=
"center"
android:orientation=
"vertical"
android:orientation=
"vertical"
>
>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
android:orientation=
"horizontal"
android:padding
Bottom
=
"@dimen/all_padding"
android:padding
Top
=
"@dimen/all_padding"
android:padding
Top
=
"@dimen/all_padding"
>
android:padding
Bottom
=
"@dimen/all_padding"
>
<TextView
<TextView
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
...
@@ -128,10 +127,10 @@
...
@@ -128,10 +127,10 @@
android:drawableLeft=
"@mipmap/point"
android:drawableLeft=
"@mipmap/point"
android:drawablePadding=
"@dimen/all_bounced_spacing"
android:drawablePadding=
"@dimen/all_bounced_spacing"
android:paddingLeft=
"@dimen/all_padding"
android:paddingLeft=
"@dimen/all_padding"
android:text=
"
积分面值:
"
android:text=
"
@string/points_points_value
"
android:textColor=
"@color/black_baozheng"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/et_textsize"
/>
android:textSize=
"@dimen/et_textsize"
/>
<EditText
<EditText
android:id=
"@+id/et_integral_exchange_rule_count_money"
android:id=
"@+id/et_integral_exchange_rule_count_money"
style=
"@style/dialog_edit"
style=
"@style/dialog_edit"
...
@@ -144,36 +143,36 @@
...
@@ -144,36 +143,36 @@
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:inputType=
"phone|number"
android:inputType=
"phone|number"
android:maxLength=
"5"
android:maxLength=
"5"
android:saveEnabled=
"false"
/>
android:saveEnabled=
"false"
/>
<TextView
<TextView
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginRight=
"@dimen/all_bounced_padding"
android:layout_marginRight=
"@dimen/all_bounced_padding"
android:layout_weight=
"2"
android:layout_weight=
"2"
android:text=
"
个积分=1元
"
android:text=
"
@string/points_points_value_hint
"
android:textColor=
"@color/black_baozheng"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/et_textsize"
/>
android:textSize=
"@dimen/et_textsize"
/>
</LinearLayout>
</LinearLayout>
<TextView
<TextView
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"?attr/actionBarSize"
android:layout_height=
"?attr/actionBarSize"
android:background=
"@drawable/up_down_line_gray"
android:background=
"@drawable/up_down_line_gray"
android:gravity=
"left|center_vertical"
android:gravity=
"left|center_vertical"
android:paddingLeft=
"@dimen/all_padding"
android:paddingLeft=
"@dimen/all_padding"
android:text=
"
兑换条件
"
android:text=
"
@string/points_conditions
"
android:textColor=
"@color/black_baozheng"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/text_secondary_title"
/>
android:textSize=
"@dimen/text_secondary_title"
/>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
android:orientation=
"horizontal"
android:padding
Bottom
=
"@dimen/all_padding"
android:padding
Top
=
"@dimen/all_padding"
android:padding
Top
=
"@dimen/all_padding"
>
android:padding
Bottom
=
"@dimen/all_padding"
>
<TextView
<TextView
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
...
@@ -182,10 +181,10 @@
...
@@ -182,10 +181,10 @@
android:drawablePadding=
"@dimen/all_bounced_spacing"
android:drawablePadding=
"@dimen/all_bounced_spacing"
android:gravity=
"left"
android:gravity=
"left"
android:paddingLeft=
"@dimen/all_padding"
android:paddingLeft=
"@dimen/all_padding"
android:text=
"
实收满:
"
android:text=
"
@string/points_c1
"
android:textColor=
"@color/black_baozheng"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/et_textsize"
/>
android:textSize=
"@dimen/et_textsize"
/>
<EditText
<EditText
android:id=
"@+id/et_integral_exchange_money"
android:id=
"@+id/et_integral_exchange_money"
style=
"@style/dialog_edit"
style=
"@style/dialog_edit"
...
@@ -198,34 +197,34 @@
...
@@ -198,34 +197,34 @@
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:inputType=
"phone|number"
android:inputType=
"phone|number"
android:maxLength=
"5"
android:maxLength=
"5"
android:saveEnabled=
"false"
/>
android:saveEnabled=
"false"
/>
<TextView
<TextView
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginRight=
"@dimen/all_bounced_padding"
android:layout_marginRight=
"@dimen/all_bounced_padding"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:gravity=
"right"
android:gravity=
"right"
android:text=
"
元
"
android:text=
"
@string/points_c2
"
android:textColor=
"@color/black_baozheng"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/et_textsize"
/>
android:textSize=
"@dimen/et_textsize"
/>
</LinearLayout>
</LinearLayout>
<View
<View
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/all_line_width"
android:layout_height=
"@dimen/all_line_width"
android:layout_marginLeft=
"@dimen/all_bounced_spacing"
android:layout_marginLeft=
"@dimen/all_bounced_spacing"
android:layout_marginRight=
"@dimen/all_bounced_spacing"
android:layout_marginRight=
"@dimen/all_bounced_spacing"
android:background=
"@color/gray_huanggai"
></View>
android:background=
"@color/gray_huanggai"
></View>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
android:orientation=
"horizontal"
android:padding
Bottom
=
"@dimen/all_padding"
android:padding
Top
=
"@dimen/all_padding"
android:padding
Top
=
"@dimen/all_padding"
>
android:padding
Bottom
=
"@dimen/all_padding"
>
<TextView
<TextView
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
...
@@ -234,10 +233,10 @@
...
@@ -234,10 +233,10 @@
android:drawablePadding=
"@dimen/all_bounced_spacing"
android:drawablePadding=
"@dimen/all_bounced_spacing"
android:gravity=
"left"
android:gravity=
"left"
android:paddingLeft=
"@dimen/all_padding"
android:paddingLeft=
"@dimen/all_padding"
android:text=
"
可以使用:
"
android:text=
"
@string/points_c3
"
android:textColor=
"@color/black_baozheng"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/et_textsize"
/>
android:textSize=
"@dimen/et_textsize"
/>
<EditText
<EditText
android:id=
"@+id/et_integral_exchange_count"
android:id=
"@+id/et_integral_exchange_count"
style=
"@style/dialog_edit"
style=
"@style/dialog_edit"
...
@@ -250,27 +249,27 @@
...
@@ -250,27 +249,27 @@
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:inputType=
"phone|number"
android:inputType=
"phone|number"
android:maxLength=
"5"
android:maxLength=
"5"
android:saveEnabled=
"false"
/>
android:saveEnabled=
"false"
/>
<TextView
<TextView
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginRight=
"@dimen/all_bounced_padding"
android:layout_marginRight=
"@dimen/all_bounced_padding"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:gravity=
"right"
android:gravity=
"right"
android:text=
"
积分
"
android:text=
"
@string/points_c4
"
android:textColor=
"@color/black_baozheng"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/et_textsize"
/>
android:textSize=
"@dimen/et_textsize"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
<View
<View
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/all_line_width"
android:layout_height=
"@dimen/all_line_width"
android:background=
"@color/gray1"
></View>
android:background=
"@color/gray1"
></View>
</LinearLayout>
</LinearLayout>
<Button
<Button
android:id=
"@+id/btn_ok"
android:id=
"@+id/btn_ok"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
...
@@ -279,8 +278,8 @@
...
@@ -279,8 +278,8 @@
android:layout_margin=
"@dimen/all_bounced_padding"
android:layout_margin=
"@dimen/all_bounced_padding"
android:background=
"@drawable/red_border"
android:background=
"@drawable/red_border"
android:onClick=
"@{OnClickListener}"
android:onClick=
"@{OnClickListener}"
android:text=
"
确定
"
android:text=
"
@string/all_confirm
"
android:textColor=
"@color/white"
android:textColor=
"@color/white"
android:textSize=
"@dimen/et_textsize"
/>
android:textSize=
"@dimen/et_textsize"
/>
</RelativeLayout>
</RelativeLayout>
</layout>
</layout>
\ No newline at end of file
app/src/main/res/layout/dialog_integral_get_setting.xml
View file @
ddd1dbb9
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<layout
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<layout
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<data>
<data>
<variable
<variable
name=
"OnClickListener"
name=
"OnClickListener"
type=
"com.xingdata.zzdpos.util.OnClickListener"
></variable>
type=
"com.xingdata.zzdpos.util.OnClickListener"
></variable>
<variable
<variable
name=
"vip"
name=
"vip"
type=
"com.xingdata.zzdpos.model.Vip"
/>
type=
"com.xingdata.zzdpos.model.Vip"
/>
<variable
<variable
name=
"ticketCount"
name=
"ticketCount"
type=
"int"
/>
type=
"int"
/>
<variable
<variable
name=
"isExpand"
name=
"isExpand"
type=
"boolean"
/>
type=
"boolean"
/>
<variable
<variable
name=
"pointDisAmt"
name=
"pointDisAmt"
type=
"String"
/>
type=
"String"
/>
</data>
</data>
<RelativeLayout
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
android:layout_height=
"match_parent"
>
<include
<include
android:id=
"@+id/ic_title"
android:id=
"@+id/ic_title"
layout=
"@layout/title"
/>
layout=
"@layout/title"
/>
<ScrollView
<ScrollView
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_below=
"@+id/ic_title"
>
android:layout_below=
"@+id/ic_title"
>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@color/store_back"
android:background=
"@color/store_back"
android:focusable=
"true"
android:focusable=
"true"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<TextView
<TextView
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"?attr/actionBarSize"
android:layout_height=
"?attr/actionBarSize"
...
@@ -54,19 +54,18 @@
...
@@ -54,19 +54,18 @@
android:paddingLeft=
"@dimen/all_bounced_padding"
android:paddingLeft=
"@dimen/all_bounced_padding"
android:text=
"@string/all_baseinfo"
android:text=
"@string/all_baseinfo"
android:textColor=
"@color/black_baozheng"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/text_secondary_title"
/>
android:textSize=
"@dimen/text_secondary_title"
/>
<LinearLayout
<LinearLayout
android:id=
"@+id/ll_rules_name"
android:id=
"@+id/ll_rules_name"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/list1_height"
android:layout_height=
"@dimen/list1_height"
android:background=
"@color/white"
android:background=
"@color/white"
android:gravity=
"center"
android:gravity=
"center"
android:paddingBottom=
"@dimen/all_padding"
android:paddingTop=
"@dimen/all_padding"
android:paddingTop=
"@dimen/all_padding"
>
android:paddingBottom=
"@dimen/all_padding"
>
<TextView
<TextView
android:id=
"@+id/tv_rules_name"
android:id=
"@+id/tv_rules_name"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
...
@@ -75,10 +74,10 @@
...
@@ -75,10 +74,10 @@
android:drawableLeft=
"@mipmap/point"
android:drawableLeft=
"@mipmap/point"
android:drawablePadding=
"@dimen/all_bounced_spacing"
android:drawablePadding=
"@dimen/all_bounced_spacing"
android:paddingLeft=
"@dimen/all_bounced_padding"
android:paddingLeft=
"@dimen/all_bounced_padding"
android:text=
"
规则名称:
"
android:text=
"
@string/points_name
"
android:textColor=
"@color/black_baozheng"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/et_textsize"
/>
android:textSize=
"@dimen/et_textsize"
/>
<TextView
<TextView
android:id=
"@+id/et_integral_role_name"
android:id=
"@+id/et_integral_role_name"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
...
@@ -88,26 +87,25 @@
...
@@ -88,26 +87,25 @@
android:maxLines=
"1"
android:maxLines=
"1"
android:singleLine=
"true"
android:singleLine=
"true"
android:textColor=
"@color/black_baozheng"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/et_textsize"
/>
android:textSize=
"@dimen/et_textsize"
/>
</LinearLayout>
</LinearLayout>
<View
<View
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/all_line_width"
android:layout_height=
"@dimen/all_line_width"
android:layout_marginLeft=
"@dimen/all_padding"
android:layout_marginLeft=
"@dimen/all_padding"
android:layout_marginRight=
"@dimen/all_padding"
android:layout_marginRight=
"@dimen/all_padding"
android:background=
"@color/gray1"
></View>
android:background=
"@color/gray1"
></View>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/list1_height"
android:layout_height=
"@dimen/list1_height"
android:background=
"@color/white"
android:background=
"@color/white"
android:gravity=
"center"
android:gravity=
"center"
android:paddingBottom=
"@dimen/all_padding"
android:paddingTop=
"@dimen/all_padding"
android:paddingTop=
"@dimen/all_padding"
>
android:paddingBottom=
"@dimen/all_padding"
>
<TextView
<TextView
android:id=
"@+id/tv_status"
android:id=
"@+id/tv_status"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
...
@@ -118,15 +116,15 @@
...
@@ -118,15 +116,15 @@
android:paddingLeft=
"@dimen/all_bounced_padding"
android:paddingLeft=
"@dimen/all_bounced_padding"
android:text=
"@string/all_state"
android:text=
"@string/all_state"
android:textColor=
"@color/black"
android:textColor=
"@color/black"
android:textSize=
"@dimen/et_textsize"
/>
android:textSize=
"@dimen/et_textsize"
/>
<RadioGroup
<RadioGroup
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"5"
android:layout_weight=
"5"
android:gravity=
"left"
android:gravity=
"left"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<RadioButton
<RadioButton
android:id=
"@+id/rd_suspendeds"
android:id=
"@+id/rd_suspendeds"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
...
@@ -138,9 +136,9 @@
...
@@ -138,9 +136,9 @@
android:button=
"@null"
android:button=
"@null"
android:gravity=
"left"
android:gravity=
"left"
android:onClick=
"@{OnClickListener}"
android:onClick=
"@{OnClickListener}"
android:text=
"
暂停
"
android:text=
"
@string/all_state_close
"
android:textSize=
"@dimen/et_textsize"
/>
android:textSize=
"@dimen/et_textsize"
/>
<RadioButton
<RadioButton
android:id=
"@+id/rd_starts"
android:id=
"@+id/rd_starts"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
...
@@ -152,40 +150,40 @@
...
@@ -152,40 +150,40 @@
android:button=
"@null"
android:button=
"@null"
android:onClick=
"@{OnClickListener}"
android:onClick=
"@{OnClickListener}"
android:text=
"@string/all_state_open"
android:text=
"@string/all_state_open"
android:textSize=
"@dimen/et_textsize"
/>
android:textSize=
"@dimen/et_textsize"
/>
</RadioGroup>
</RadioGroup>
</LinearLayout>
</LinearLayout>
<View
<View
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/all_line_width"
android:layout_height=
"@dimen/all_line_width"
android:background=
"@color/gray_huanggai"
></View>
android:background=
"@color/gray_huanggai"
></View>
<TextView
<TextView
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"?attr/actionBarSize"
android:layout_height=
"?attr/actionBarSize"
android:background=
"@color/gray_zhouyu"
android:background=
"@color/gray_zhouyu"
android:gravity=
"left|center_vertical"
android:gravity=
"left|center_vertical"
android:paddingLeft=
"@dimen/all_bounced_padding"
android:paddingLeft=
"@dimen/all_bounced_padding"
android:text=
"
规则设置
"
android:text=
"
@string/rule_setting
"
android:textColor=
"@color/black_baozheng"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/text_secondary_title"
/>
android:textSize=
"@dimen/text_secondary_title"
/>
<View
<View
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/all_line_width"
android:layout_height=
"@dimen/all_line_width"
android:background=
"@color/gray_huanggai"
></View>
android:background=
"@color/gray_huanggai"
></View>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@color/white"
android:background=
"@color/white"
android:gravity=
"center"
android:gravity=
"center"
android:minHeight=
"@dimen/list1_height"
android:minHeight=
"@dimen/list1_height"
android:padding
Bottom
=
"@dimen/all_padding"
android:padding
Top
=
"@dimen/all_padding"
android:padding
Top
=
"@dimen/all_padding"
>
android:padding
Bottom
=
"@dimen/all_padding"
>
<TextView
<TextView
android:id=
"@+id/tv_vip_level"
android:id=
"@+id/tv_vip_level"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
...
@@ -196,8 +194,8 @@
...
@@ -196,8 +194,8 @@
android:paddingLeft=
"@dimen/all_bounced_padding"
android:paddingLeft=
"@dimen/all_bounced_padding"
android:text=
"@string/menu_ms_vip_level"
android:text=
"@string/menu_ms_vip_level"
android:textColor=
"@color/black_baozheng"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/et_textsize"
/>
android:textSize=
"@dimen/et_textsize"
/>
<TextView
<TextView
android:id=
"@+id/tv_vip_level_select"
android:id=
"@+id/tv_vip_level_select"
style=
"@style/dialog_edit"
style=
"@style/dialog_edit"
...
@@ -213,8 +211,8 @@
...
@@ -213,8 +211,8 @@
android:onClick=
"@{OnClickListener}"
android:onClick=
"@{OnClickListener}"
android:textColor=
"@color/black"
android:textColor=
"@color/black"
android:textColorHint=
"@color/hint"
android:textColorHint=
"@color/hint"
android:textSize=
"@dimen/et_textsize"
/>
android:textSize=
"@dimen/et_textsize"
/>
<TextView
<TextView
android:id=
"@+id/tv_vip_level_select_show_no_edit"
android:id=
"@+id/tv_vip_level_select_show_no_edit"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
...
@@ -228,26 +226,26 @@
...
@@ -228,26 +226,26 @@
android:textColor=
"@color/black"
android:textColor=
"@color/black"
android:textColorHint=
"@color/hint"
android:textColorHint=
"@color/hint"
android:textSize=
"@dimen/et_textsize"
android:textSize=
"@dimen/et_textsize"
android:visibility=
"gone"
/>
android:visibility=
"gone"
/>
</LinearLayout>
</LinearLayout>
<View
<View
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/all_line_width"
android:layout_height=
"@dimen/all_line_width"
android:layout_marginLeft=
"@dimen/all_bounced_spacing"
android:layout_marginLeft=
"@dimen/all_bounced_spacing"
android:layout_marginRight=
"@dimen/all_bounced_spacing"
android:layout_marginRight=
"@dimen/all_bounced_spacing"
android:background=
"@color/gray_huanggai"
></View>
android:background=
"@color/gray_huanggai"
></View>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@color/white"
android:background=
"@color/white"
android:gravity=
"center"
android:gravity=
"center"
android:minHeight=
"@dimen/list1_height"
android:minHeight=
"@dimen/list1_height"
android:padding
Bottom
=
"@dimen/all_padding"
android:padding
Top
=
"@dimen/all_padding"
android:padding
Top
=
"@dimen/all_padding"
>
android:padding
Bottom
=
"@dimen/all_padding"
>
<TextView
<TextView
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
...
@@ -255,10 +253,10 @@
...
@@ -255,10 +253,10 @@
android:drawableLeft=
"@mipmap/point"
android:drawableLeft=
"@mipmap/point"
android:drawablePadding=
"@dimen/all_bounced_spacing"
android:drawablePadding=
"@dimen/all_bounced_spacing"
android:paddingLeft=
"@dimen/all_bounced_padding"
android:paddingLeft=
"@dimen/all_bounced_padding"
android:text=
"
获取方式:
"
android:text=
"
@string/points_access
"
android:textColor=
"@color/black"
android:textColor=
"@color/black"
android:textSize=
"@dimen/et_textsize"
/>
android:textSize=
"@dimen/et_textsize"
/>
<RadioGroup
<RadioGroup
android:id=
"@+id/rg_type"
android:id=
"@+id/rg_type"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
...
@@ -266,7 +264,7 @@
...
@@ -266,7 +264,7 @@
android:layout_weight=
"5"
android:layout_weight=
"5"
android:checkedButton=
"@id/rd_gettype_all"
android:checkedButton=
"@id/rd_gettype_all"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<RadioButton
<RadioButton
android:id=
"@+id/rd_gettype_all"
android:id=
"@+id/rd_gettype_all"
android:layout_width=
"90dp"
android:layout_width=
"90dp"
...
@@ -277,10 +275,10 @@
...
@@ -277,10 +275,10 @@
android:background=
"@drawable/selector_checkbox_bg"
android:background=
"@drawable/selector_checkbox_bg"
android:button=
"@null"
android:button=
"@null"
android:onClick=
"@{OnClickListener}"
android:onClick=
"@{OnClickListener}"
android:text=
"
通用
"
android:text=
"
@string/points_access_all
"
android:textColor=
"@color/black_baozheng"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/et_textsize"
/>
android:textSize=
"@dimen/et_textsize"
/>
<RadioButton
<RadioButton
android:id=
"@+id/rd_gettype_category"
android:id=
"@+id/rd_gettype_category"
android:layout_width=
"90dp"
android:layout_width=
"90dp"
...
@@ -291,10 +289,10 @@
...
@@ -291,10 +289,10 @@
android:background=
"@drawable/selector_checkbox_bg"
android:background=
"@drawable/selector_checkbox_bg"
android:button=
"@null"
android:button=
"@null"
android:onClick=
"@{OnClickListener}"
android:onClick=
"@{OnClickListener}"
android:text=
"
品类定义
"
android:text=
"
@string/points_access_cate
"
android:textColor=
"@color/black_baozheng"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/et_textsize"
/>
android:textSize=
"@dimen/et_textsize"
/>
<RadioButton
<RadioButton
android:id=
"@+id/rd_gettype_shop"
android:id=
"@+id/rd_gettype_shop"
android:layout_width=
"90dp"
android:layout_width=
"90dp"
...
@@ -305,11 +303,11 @@
...
@@ -305,11 +303,11 @@
android:background=
"@drawable/selector_checkbox_bg"
android:background=
"@drawable/selector_checkbox_bg"
android:button=
"@null"
android:button=
"@null"
android:onClick=
"@{OnClickListener}"
android:onClick=
"@{OnClickListener}"
android:text=
"
商品定义
"
android:text=
"
@string/points_access_sku
"
android:textColor=
"@color/black_baozheng"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/et_textsize"
/>
android:textSize=
"@dimen/et_textsize"
/>
</RadioGroup>
</RadioGroup>
<TextView
<TextView
android:id=
"@+id/tv_type"
android:id=
"@+id/tv_type"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
...
@@ -323,16 +321,16 @@
...
@@ -323,16 +321,16 @@
android:textColor=
"@color/black"
android:textColor=
"@color/black"
android:textColorHint=
"@color/hint"
android:textColorHint=
"@color/hint"
android:textSize=
"@dimen/et_textsize"
android:textSize=
"@dimen/et_textsize"
android:visibility=
"gone"
/>
android:visibility=
"gone"
/>
</LinearLayout>
</LinearLayout>
<View
<View
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/view_line_height"
android:layout_height=
"@dimen/view_line_height"
android:layout_marginLeft=
"@dimen/all_bounced_spacing"
android:layout_marginLeft=
"@dimen/all_bounced_spacing"
android:layout_marginRight=
"@dimen/all_bounced_spacing"
android:layout_marginRight=
"@dimen/all_bounced_spacing"
android:background=
"@color/gray_huanggai"
></View>
android:background=
"@color/gray_huanggai"
></View>
<LinearLayout
<LinearLayout
android:id=
"@+id/ll_all"
android:id=
"@+id/ll_all"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
...
@@ -341,14 +339,14 @@
...
@@ -341,14 +339,14 @@
android:gravity=
"center"
android:gravity=
"center"
android:orientation=
"vertical"
android:orientation=
"vertical"
android:visibility=
"visible"
>
android:visibility=
"visible"
>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
android:orientation=
"horizontal"
android:padding
Bottom
=
"@dimen/all_padding"
android:padding
Top
=
"@dimen/all_padding"
android:padding
Top
=
"@dimen/all_padding"
>
android:padding
Bottom
=
"@dimen/all_padding"
>
<TextView
<TextView
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
...
@@ -356,10 +354,10 @@
...
@@ -356,10 +354,10 @@
android:drawableLeft=
"@mipmap/point"
android:drawableLeft=
"@mipmap/point"
android:drawablePadding=
"@dimen/all_bounced_spacing"
android:drawablePadding=
"@dimen/all_bounced_spacing"
android:paddingLeft=
"@dimen/all_bounced_padding"
android:paddingLeft=
"@dimen/all_bounced_padding"
android:text=
"
积分比例:
"
android:text=
"
@string/points_ratio
"
android:textColor=
"@color/black_baozheng"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/et_textsize"
/>
android:textSize=
"@dimen/et_textsize"
/>
<EditText
<EditText
android:id=
"@+id/et_integral_weight"
android:id=
"@+id/et_integral_weight"
style=
"@style/dialog_edit"
style=
"@style/dialog_edit"
...
@@ -372,19 +370,19 @@
...
@@ -372,19 +370,19 @@
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:inputType=
"phone|number"
android:inputType=
"phone|number"
android:maxLength=
"5"
android:maxLength=
"5"
android:saveEnabled=
"false"
/>
android:saveEnabled=
"false"
/>
<TextView
<TextView
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginRight=
"@dimen/all_bounced_padding"
android:layout_marginRight=
"@dimen/all_bounced_padding"
android:layout_weight=
"2"
android:layout_weight=
"2"
android:gravity=
"right"
android:gravity=
"right"
android:text=
"
元一个积分
"
android:text=
"
@string/points_ratio_per
"
android:textColor=
"@color/black"
android:textColor=
"@color/black"
android:textSize=
"@dimen/et_textsize"
/>
android:textSize=
"@dimen/et_textsize"
/>
</LinearLayout>
</LinearLayout>
<View
<View
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/all_line_width"
android:layout_height=
"@dimen/all_line_width"
...
@@ -392,16 +390,15 @@
...
@@ -392,16 +390,15 @@
android:layout_marginRight=
"@dimen/all_padding"
android:layout_marginRight=
"@dimen/all_padding"
android:background=
"@color/gray1"
android:background=
"@color/gray1"
android:visibility=
"gone"
></View>
android:visibility=
"gone"
></View>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
android:orientation=
"horizontal"
android:paddingBottom=
"@dimen/all_padding"
android:paddingTop=
"@dimen/all_padding"
android:paddingTop=
"@dimen/all_padding"
>
android:paddingBottom=
"@dimen/all_padding"
>
<TextView
<TextView
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
...
@@ -409,10 +406,10 @@
...
@@ -409,10 +406,10 @@
android:drawableLeft=
"@mipmap/point"
android:drawableLeft=
"@mipmap/point"
android:drawablePadding=
"@dimen/all_bounced_spacing"
android:drawablePadding=
"@dimen/all_bounced_spacing"
android:paddingLeft=
"@dimen/all_bounced_padding"
android:paddingLeft=
"@dimen/all_bounced_padding"
android:text=
"
有效期限:
"
android:text=
"
@string/points_shelf_life
"
android:textColor=
"@color/black_baozheng"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/et_textsize"
/>
android:textSize=
"@dimen/et_textsize"
/>
<EditText
<EditText
android:id=
"@+id/et_integral_time_limit"
android:id=
"@+id/et_integral_time_limit"
style=
"@style/dialog_edit"
style=
"@style/dialog_edit"
...
@@ -425,21 +422,21 @@
...
@@ -425,21 +422,21 @@
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:inputType=
"phone|number"
android:inputType=
"phone|number"
android:maxLength=
"2"
android:maxLength=
"2"
android:saveEnabled=
"false"
/>
android:saveEnabled=
"false"
/>
<TextView
<TextView
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginRight=
"@dimen/all_bounced_padding"
android:layout_marginRight=
"@dimen/all_bounced_padding"
android:layout_weight=
"2"
android:layout_weight=
"2"
android:gravity=
"right"
android:gravity=
"right"
android:text=
"
个月
"
android:text=
"
@string/statistics_tv_dateM
"
android:textColor=
"@color/black_baozheng"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/et_textsize"
/>
android:textSize=
"@dimen/et_textsize"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
<LinearLayout
<LinearLayout
android:id=
"@+id/ll_category"
android:id=
"@+id/ll_category"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
...
@@ -448,16 +445,16 @@
...
@@ -448,16 +445,16 @@
android:gravity=
"center"
android:gravity=
"center"
android:orientation=
"vertical"
android:orientation=
"vertical"
android:visibility=
"gone"
>
android:visibility=
"gone"
>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:gravity=
"center"
android:gravity=
"center"
android:minHeight=
"@dimen/list1_height"
android:minHeight=
"@dimen/list1_height"
android:orientation=
"horizontal"
android:orientation=
"horizontal"
android:padding
Bottom
=
"@dimen/all_padding"
android:padding
Top
=
"@dimen/all_padding"
android:padding
Top
=
"@dimen/all_padding"
>
android:padding
Bottom
=
"@dimen/all_padding"
>
<TextView
<TextView
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
...
@@ -467,8 +464,8 @@
...
@@ -467,8 +464,8 @@
android:paddingLeft=
"@dimen/all_bounced_padding"
android:paddingLeft=
"@dimen/all_bounced_padding"
android:text=
"商品品类:"
android:text=
"商品品类:"
android:textColor=
"@color/black_baozheng"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/et_textsize"
/>
android:textSize=
"@dimen/et_textsize"
/>
<TextView
<TextView
android:id=
"@+id/tv_category_select_one"
android:id=
"@+id/tv_category_select_one"
style=
"@style/dialog_edit"
style=
"@style/dialog_edit"
...
@@ -484,8 +481,8 @@
...
@@ -484,8 +481,8 @@
android:singleLine=
"true"
android:singleLine=
"true"
android:textColor=
"@color/black"
android:textColor=
"@color/black"
android:textColorHint=
"@color/hint"
android:textColorHint=
"@color/hint"
android:textSize=
"@dimen/et_textsize"
/>
android:textSize=
"@dimen/et_textsize"
/>
<TextView
<TextView
android:id=
"@+id/tv_category_select_two"
android:id=
"@+id/tv_category_select_two"
style=
"@style/dialog_edit"
style=
"@style/dialog_edit"
...
@@ -502,8 +499,8 @@
...
@@ -502,8 +499,8 @@
android:singleLine=
"true"
android:singleLine=
"true"
android:textColor=
"@color/black"
android:textColor=
"@color/black"
android:textColorHint=
"@color/hint"
android:textColorHint=
"@color/hint"
android:textSize=
"@dimen/et_textsize"
/>
android:textSize=
"@dimen/et_textsize"
/>
<TextView
<TextView
android:id=
"@+id/tv_category_select_three"
android:id=
"@+id/tv_category_select_three"
style=
"@style/dialog_edit"
style=
"@style/dialog_edit"
...
@@ -522,8 +519,8 @@
...
@@ -522,8 +519,8 @@
android:singleLine=
"true"
android:singleLine=
"true"
android:textColor=
"@color/black"
android:textColor=
"@color/black"
android:textColorHint=
"@color/hint"
android:textColorHint=
"@color/hint"
android:textSize=
"@dimen/et_textsize"
/>
android:textSize=
"@dimen/et_textsize"
/>
<TextView
<TextView
android:id=
"@+id/tv_category_select_show_no_edit"
android:id=
"@+id/tv_category_select_show_no_edit"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
...
@@ -536,11 +533,11 @@
...
@@ -536,11 +533,11 @@
android:textColor=
"@color/black"
android:textColor=
"@color/black"
android:textColorHint=
"@color/hint"
android:textColorHint=
"@color/hint"
android:textSize=
"@dimen/et_textsize"
android:textSize=
"@dimen/et_textsize"
android:visibility=
"gone"
/>
android:visibility=
"gone"
/>
</LinearLayout>
</LinearLayout>
<View
<View
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/all_line_width"
android:layout_height=
"@dimen/all_line_width"
...
@@ -548,16 +545,16 @@
...
@@ -548,16 +545,16 @@
android:layout_marginRight=
"@dimen/all_padding"
android:layout_marginRight=
"@dimen/all_padding"
android:background=
"@color/gray1"
android:background=
"@color/gray1"
android:visibility=
"gone"
></View>
android:visibility=
"gone"
></View>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:gravity=
"center"
android:gravity=
"center"
android:minHeight=
"@dimen/list1_height"
android:minHeight=
"@dimen/list1_height"
android:orientation=
"horizontal"
android:orientation=
"horizontal"
android:padding
Bottom
=
"@dimen/all_padding"
android:padding
Top
=
"@dimen/all_padding"
android:padding
Top
=
"@dimen/all_padding"
>
android:padding
Bottom
=
"@dimen/all_padding"
>
<TextView
<TextView
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
...
@@ -567,8 +564,8 @@
...
@@ -567,8 +564,8 @@
android:paddingLeft=
"@dimen/all_bounced_padding"
android:paddingLeft=
"@dimen/all_bounced_padding"
android:text=
"积分比例:"
android:text=
"积分比例:"
android:textColor=
"@color/black_baozheng"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/et_textsize"
/>
android:textSize=
"@dimen/et_textsize"
/>
<EditText
<EditText
android:id=
"@+id/et_integral_category_weight"
android:id=
"@+id/et_integral_category_weight"
style=
"@style/dialog_edit"
style=
"@style/dialog_edit"
...
@@ -580,8 +577,8 @@
...
@@ -580,8 +577,8 @@
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:inputType=
"phone|number"
android:inputType=
"phone|number"
android:maxLength=
"5"
android:maxLength=
"5"
android:saveEnabled=
"false"
/>
android:saveEnabled=
"false"
/>
<TextView
<TextView
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
...
@@ -590,9 +587,9 @@
...
@@ -590,9 +587,9 @@
android:gravity=
"right"
android:gravity=
"right"
android:text=
"元一个积分"
android:text=
"元一个积分"
android:textColor=
"@color/black"
android:textColor=
"@color/black"
android:textSize=
"@dimen/et_textsize"
/>
android:textSize=
"@dimen/et_textsize"
/>
</LinearLayout>
</LinearLayout>
<View
<View
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/all_line_width"
android:layout_height=
"@dimen/all_line_width"
...
@@ -600,17 +597,16 @@
...
@@ -600,17 +597,16 @@
android:layout_marginRight=
"@dimen/all_padding"
android:layout_marginRight=
"@dimen/all_padding"
android:background=
"@color/gray1"
android:background=
"@color/gray1"
android:visibility=
"gone"
></View>
android:visibility=
"gone"
></View>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:gravity=
"center"
android:gravity=
"center"
android:minHeight=
"@dimen/list1_height"
android:minHeight=
"@dimen/list1_height"
android:orientation=
"horizontal"
android:orientation=
"horizontal"
android:paddingBottom=
"@dimen/all_padding"
android:paddingTop=
"@dimen/all_padding"
android:paddingTop=
"@dimen/all_padding"
>
android:paddingBottom=
"@dimen/all_padding"
>
<TextView
<TextView
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
...
@@ -620,8 +616,8 @@
...
@@ -620,8 +616,8 @@
android:paddingLeft=
"@dimen/all_bounced_padding"
android:paddingLeft=
"@dimen/all_bounced_padding"
android:text=
"有效期限:"
android:text=
"有效期限:"
android:textColor=
"@color/black_baozheng"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/et_textsize"
/>
android:textSize=
"@dimen/et_textsize"
/>
<EditText
<EditText
android:id=
"@+id/et_integral_category_time_limit"
android:id=
"@+id/et_integral_category_time_limit"
style=
"@style/dialog_edit"
style=
"@style/dialog_edit"
...
@@ -635,8 +631,8 @@
...
@@ -635,8 +631,8 @@
android:inputType=
"phone|number"
android:inputType=
"phone|number"
android:maxLength=
"2"
android:maxLength=
"2"
android:saveEnabled=
"false"
android:saveEnabled=
"false"
android:textColor=
"@color/black_baozheng"
/>
android:textColor=
"@color/black_baozheng"
/>
<TextView
<TextView
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
...
@@ -645,10 +641,10 @@
...
@@ -645,10 +641,10 @@
android:gravity=
"right"
android:gravity=
"right"
android:text=
"个月"
android:text=
"个月"
android:textColor=
"@color/black_baozheng"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/et_textsize"
/>
android:textSize=
"@dimen/et_textsize"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
<LinearLayout
<LinearLayout
android:id=
"@+id/ll_shop"
android:id=
"@+id/ll_shop"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
...
@@ -656,10 +652,10 @@
...
@@ -656,10 +652,10 @@
android:background=
"@color/white"
android:background=
"@color/white"
android:minHeight=
"@dimen/list1_height"
android:minHeight=
"@dimen/list1_height"
android:orientation=
"horizontal"
android:orientation=
"horizontal"
android:paddingBottom=
"@dimen/all_padding"
android:paddingTop=
"@dimen/all_padding"
android:paddingTop=
"@dimen/all_padding"
android:paddingBottom=
"@dimen/all_padding"
android:visibility=
"gone"
>
android:visibility=
"gone"
>
<TextView
<TextView
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
...
@@ -669,8 +665,8 @@
...
@@ -669,8 +665,8 @@
android:paddingLeft=
"@dimen/all_bounced_padding"
android:paddingLeft=
"@dimen/all_bounced_padding"
android:text=
"有效期限:"
android:text=
"有效期限:"
android:textColor=
"@color/black_baozheng"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/et_textsize"
/>
android:textSize=
"@dimen/et_textsize"
/>
<EditText
<EditText
android:id=
"@+id/et_shop_time_limit"
android:id=
"@+id/et_shop_time_limit"
style=
"@style/dialog_edit"
style=
"@style/dialog_edit"
...
@@ -685,8 +681,8 @@
...
@@ -685,8 +681,8 @@
android:maxEms=
"2"
android:maxEms=
"2"
android:maxLength=
"2"
android:maxLength=
"2"
android:saveEnabled=
"false"
android:saveEnabled=
"false"
android:textColor=
"@color/black"
/>
android:textColor=
"@color/black"
/>
<TextView
<TextView
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
...
@@ -695,19 +691,19 @@
...
@@ -695,19 +691,19 @@
android:gravity=
"right"
android:gravity=
"right"
android:text=
"个月"
android:text=
"个月"
android:textColor=
"@color/black_baozheng"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/et_textsize"
/>
android:textSize=
"@dimen/et_textsize"
/>
</LinearLayout>
</LinearLayout>
<View
<View
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/all_line_width"
android:layout_height=
"@dimen/all_line_width"
android:background=
"@color/gray1"
></View>
android:background=
"@color/gray1"
></View>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@color/white"
>
android:background=
"@color/white"
>
<Button
<Button
android:id=
"@+id/btn_add"
android:id=
"@+id/btn_add"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
...
@@ -715,13 +711,13 @@
...
@@ -715,13 +711,13 @@
android:layout_margin=
"@dimen/all_margin"
android:layout_margin=
"@dimen/all_margin"
android:background=
"@drawable/red_border"
android:background=
"@drawable/red_border"
android:onClick=
"@{OnClickListener}"
android:onClick=
"@{OnClickListener}"
android:text=
"
确定
"
android:text=
"
@string/all_confirm
"
android:textColor=
"@color/white"
android:textColor=
"@color/white"
android:textSize=
"@dimen/et_textsize"
/>
android:textSize=
"@dimen/et_textsize"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</ScrollView>
</ScrollView>
</RelativeLayout>
</RelativeLayout>
</layout>
</layout>
\ No newline at end of file
app/src/main/res/layout/dialog_prompt.xml
View file @
ddd1dbb9
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<layout
xmlns:app=
"http://schemas.android.com/apk/res-auto"
>
<layout
xmlns:app=
"http://schemas.android.com/apk/res-auto"
>
<data>
<data>
<variable
<variable
name=
"onClickListener"
name=
"onClickListener"
type=
"android.view.View.OnClickListener"
/>
type=
"android.view.View.OnClickListener"
/>
</data>
</data>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@drawable/transparent_border"
android:background=
"@drawable/transparent_border"
android:gravity=
"center"
android:gravity=
"center"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<RelativeLayout
<RelativeLayout
android:layout_width=
"@dimen/prompt_dialog_width"
android:layout_width=
"@dimen/prompt_dialog_width"
android:layout_height=
"@dimen/prompt_dialog_height"
android:layout_height=
"@dimen/prompt_dialog_height"
android:background=
"@color/white_caocao"
android:background=
"@color/white_caocao"
android:gravity=
"center"
android:gravity=
"center"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<RelativeLayout
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_above=
"@+id/ll_bottom"
android:layout_above=
"@+id/ll_bottom"
android:layout_below=
"@+id/tv_title"
>
android:layout_below=
"@+id/tv_title"
>
<RelativeLayout
<RelativeLayout
android:id=
"@+id/rl_btn"
android:id=
"@+id/rl_btn"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
...
@@ -38,49 +38,49 @@
...
@@ -38,49 +38,49 @@
android:layout_alignParentBottom=
"true"
android:layout_alignParentBottom=
"true"
android:layout_marginTop=
"@dimen/all_bounced_padding"
android:layout_marginTop=
"@dimen/all_bounced_padding"
android:background=
"@drawable/up_down_line_white_top"
android:background=
"@drawable/up_down_line_white_top"
android:padding
Bottom
=
"@dimen/all_bounced_padding"
android:padding
Top
=
"@dimen/all_bounced_padding"
android:padding
Top
=
"@dimen/all_bounced_padding"
>
android:padding
Bottom
=
"@dimen/all_bounced_padding"
>
<Button
<Button
android:id=
"@+id/btn_custom"
android:id=
"@+id/btn_custom"
style=
"@style/button_positive_allradius"
style=
"@style/button_positive_allradius"
android:layout_width=
"@dimen/button1_width"
android:layout_width=
"@dimen/button1_width"
android:layout_height=
"@dimen/button1_height"
android:layout_height=
"@dimen/button1_height"
android:layout_centerInParent=
"true"
android:layout_centerInParent=
"true"
android:text=
"重新获取"
/>
android:text=
"重新获取"
/>
</RelativeLayout>
</RelativeLayout>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:gravity=
"center"
android:layout_above=
"@+id/rl_btn"
android:layout_above=
"@+id/rl_btn"
android:layout_marginTop=
"@dimen/all_bounced_spacing"
android:layout_marginTop=
"@dimen/all_bounced_spacing"
android:gravity=
"center"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<com.github.ybq.android.spinkit.SpinKitView
xmlns:app=
"http://schemas.android.com/apk/res-auto"
<com.github.ybq.android.spinkit.SpinKitView
xmlns:app=
"http://schemas.android.com/apk/res-auto"
android:id=
"@+id/spin_kit"
android:id=
"@+id/spin_kit"
style=
"@style/SpinKitView.Circle"
style=
"@style/SpinKitView.Circle"
android:layout_width=
"@dimen/prompt_dialog_logo_size"
android:layout_width=
"@dimen/prompt_dialog_logo_size"
android:layout_height=
"@dimen/prompt_dialog_logo_size"
android:layout_height=
"@dimen/prompt_dialog_logo_size"
android:layout_marginTop=
"@dimen/all_bounced_padding"
android:layout_marginTop=
"@dimen/all_bounced_padding"
android:visibility=
"gone"
android:visibility=
"gone"
app:SpinKit_Color=
"@color/black"
/>
app:SpinKit_Color=
"@color/black"
/>
<ImageView
<ImageView
android:id=
"@+id/iv_logo"
android:id=
"@+id/iv_logo"
android:layout_width=
"@dimen/prompt_dialog_logo_size"
android:layout_width=
"@dimen/prompt_dialog_logo_size"
android:layout_height=
"@dimen/prompt_dialog_logo_size"
android:layout_height=
"@dimen/prompt_dialog_logo_size"
android:layout_centerHorizontal=
"true"
android:layout_centerHorizontal=
"true"
android:layout_marginTop=
"@dimen/all_bounced_padding"
android:layout_marginTop=
"@dimen/all_bounced_padding"
android:src=
"@mipmap/prompt_dialog_success"
/>
android:src=
"@mipmap/prompt_dialog_success"
/>
<ScrollView
<ScrollView
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/all_bounced_padding"
>
android:layout_marginTop=
"@dimen/all_bounced_padding"
>
<TextView
<TextView
android:id=
"@+id/tv_text"
android:id=
"@+id/tv_text"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
...
@@ -88,13 +88,13 @@
...
@@ -88,13 +88,13 @@
android:gravity=
"center"
android:gravity=
"center"
android:text=
"正在处理,请稍后."
android:text=
"正在处理,请稍后."
android:textColor=
"@color/black_baozheng"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/all_text_size"
/>
android:textSize=
"@dimen/all_text_size"
/>
</ScrollView>
</ScrollView>
</LinearLayout>
</LinearLayout>
</RelativeLayout>
</RelativeLayout>
<android.support.constraint.ConstraintLayout
<android.support.constraint.ConstraintLayout
android:id=
"@+id/ll_bottom"
android:id=
"@+id/ll_bottom"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
...
@@ -102,7 +102,7 @@
...
@@ -102,7 +102,7 @@
android:layout_alignParentBottom=
"true"
android:layout_alignParentBottom=
"true"
android:orientation=
"horizontal"
android:orientation=
"horizontal"
android:visibility=
"gone"
>
android:visibility=
"gone"
>
<Button
<Button
android:id=
"@+id/btn_cancel"
android:id=
"@+id/btn_cancel"
style=
"@style/button_passive"
style=
"@style/button_passive"
...
@@ -112,27 +112,27 @@
...
@@ -112,27 +112,27 @@
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toStartOf=
"@id/btn_ok"
app:layout_constraintEnd_toStartOf=
"@id/btn_ok"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
app:layout_constraintTop_toTopOf=
"parent"
/>
<Button
<Button
android:id=
"@+id/btn_ok"
android:id=
"@+id/btn_ok"
style=
"@style/button_positive"
style=
"@style/button_positive"
android:layout_width=
"@dimen/button1_width"
android:layout_width=
"@dimen/button1_width"
android:layout_height=
"@dimen/button1_height"
android:layout_height=
"@dimen/button1_height"
android:text=
"
确认
"
android:text=
"
@string/all_confirm
"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toEndOf=
"@id/btn_cancel"
app:layout_constraintStart_toEndOf=
"@id/btn_cancel"
app:layout_constraintTop_toTopOf=
"parent"
/>
app:layout_constraintTop_toTopOf=
"parent"
/>
<View
<View
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/view_line_L050"
android:layout_height=
"@dimen/view_line_L050"
android:background=
"@color/gray_huanggai"
android:background=
"@color/gray_huanggai"
app:layout_constraintTop_toTopOf=
"parent"
/>
app:layout_constraintTop_toTopOf=
"parent"
/>
</android.support.constraint.ConstraintLayout>
</android.support.constraint.ConstraintLayout>
</RelativeLayout>
</RelativeLayout>
</LinearLayout>
</LinearLayout>
</layout>
</layout>
\ No newline at end of file
app/src/main/res/layout/dialog_ticket_add_setting.xml
View file @
ddd1dbb9
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<layout
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<layout
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<data>
<data>
<variable
<variable
name=
"OnClickListener"
name=
"OnClickListener"
type=
"com.xingdata.zzdpos.util.OnClickListener"
></variable>
type=
"com.xingdata.zzdpos.util.OnClickListener"
></variable>
</data>
</data>
<RelativeLayout
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
android:layout_height=
"match_parent"
>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@color/store_back"
android:background=
"@color/store_back"
android:focusable=
"true"
android:focusable=
"true"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<include
<include
android:id=
"@+id/ic_titles"
android:id=
"@+id/ic_titles"
layout=
"@layout/title"
/>
layout=
"@layout/title"
/>
<TextView
<TextView
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"?attr/actionBarSize"
android:layout_height=
"?attr/actionBarSize"
...
@@ -32,8 +32,8 @@
...
@@ -32,8 +32,8 @@
android:paddingLeft=
"@dimen/all_padding"
android:paddingLeft=
"@dimen/all_padding"
android:text=
"@string/all_baseinfo"
android:text=
"@string/all_baseinfo"
android:textColor=
"@color/black_baozheng"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/text_secondary_title"
/>
android:textSize=
"@dimen/text_secondary_title"
/>
<LinearLayout
<LinearLayout
android:id=
"@+id/ll_ticker_name"
android:id=
"@+id/ll_ticker_name"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
...
@@ -41,17 +41,17 @@
...
@@ -41,17 +41,17 @@
android:background=
"@color/white"
android:background=
"@color/white"
android:gravity=
"center"
android:gravity=
"center"
android:padding=
"@dimen/all_padding"
>
android:padding=
"@dimen/all_padding"
>
<TextView
<TextView
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"2"
android:layout_weight=
"2"
android:drawableLeft=
"@mipmap/point"
android:drawableLeft=
"@mipmap/point"
android:drawablePadding=
"@dimen/all_bounced_spacing"
android:drawablePadding=
"@dimen/all_bounced_spacing"
android:text=
"
活动名称:
"
android:text=
"
@string/ticket_r0
"
android:textColor=
"@color/black_baozheng"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/et_textsize"
/>
android:textSize=
"@dimen/et_textsize"
/>
<TextView
<TextView
android:id=
"@+id/tv_integral_rule_name"
android:id=
"@+id/tv_integral_rule_name"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
...
@@ -63,23 +63,23 @@
...
@@ -63,23 +63,23 @@
android:maxLines=
"1"
android:maxLines=
"1"
android:singleLine=
"true"
android:singleLine=
"true"
android:textColor=
"@color/black_baozheng"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/text_secondary_title"
/>
android:textSize=
"@dimen/text_secondary_title"
/>
</LinearLayout>
</LinearLayout>
<View
<View
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/all_line_width"
android:layout_height=
"@dimen/all_line_width"
android:layout_marginLeft=
"@dimen/all_padding"
android:layout_marginLeft=
"@dimen/all_padding"
android:layout_marginRight=
"@dimen/all_padding"
android:layout_marginRight=
"@dimen/all_padding"
android:background=
"@color/gray1"
></View>
android:background=
"@color/gray1"
></View>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@color/white"
android:background=
"@color/white"
android:gravity=
"center"
android:gravity=
"center"
android:padding=
"@dimen/all_padding"
>
android:padding=
"@dimen/all_padding"
>
<TextView
<TextView
android:id=
"@+id/tv_status"
android:id=
"@+id/tv_status"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
...
@@ -89,15 +89,15 @@
...
@@ -89,15 +89,15 @@
android:drawablePadding=
"@dimen/all_bounced_spacing"
android:drawablePadding=
"@dimen/all_bounced_spacing"
android:text=
"@string/all_state"
android:text=
"@string/all_state"
android:textColor=
"@color/black_baozheng"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/et_textsize"
/>
android:textSize=
"@dimen/et_textsize"
/>
<RadioGroup
<RadioGroup
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"5"
android:layout_weight=
"5"
android:checkedButton=
"@id/rb_start"
android:checkedButton=
"@id/rb_start"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<RadioButton
<RadioButton
android:id=
"@+id/rb_suspended"
android:id=
"@+id/rb_suspended"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
...
@@ -108,9 +108,9 @@
...
@@ -108,9 +108,9 @@
android:background=
"@drawable/selector_checkbox_bg"
android:background=
"@drawable/selector_checkbox_bg"
android:button=
"@null"
android:button=
"@null"
android:onClick=
"@{OnClickListener}"
android:onClick=
"@{OnClickListener}"
android:text=
"@string/all_cancel
"
android:text=
"@string/all_cancel"
android:textSize=
"@dimen/et_textsize"
/>
android:textSize=
"@dimen/et_textsize"
/>
<RadioButton
<RadioButton
android:id=
"@+id/rb_start"
android:id=
"@+id/rb_start"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
...
@@ -122,58 +122,57 @@
...
@@ -122,58 +122,57 @@
android:button=
"@null"
android:button=
"@null"
android:onClick=
"@{OnClickListener}"
android:onClick=
"@{OnClickListener}"
android:text=
"@string/all_state_open"
android:text=
"@string/all_state_open"
android:textSize=
"@dimen/et_textsize"
/>
android:textSize=
"@dimen/et_textsize"
/>
</RadioGroup>
</RadioGroup>
</LinearLayout>
</LinearLayout>
<View
<View
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/all_line_width"
android:layout_height=
"@dimen/all_line_width"
android:layout_marginLeft=
"@dimen/all_padding"
android:layout_marginLeft=
"@dimen/all_padding"
android:layout_marginRight=
"@dimen/all_padding"
android:layout_marginRight=
"@dimen/all_padding"
android:background=
"@color/gray1"
></View>
android:background=
"@color/gray1"
></View>
<TextView
<TextView
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"?attr/actionBarSize"
android:layout_height=
"?attr/actionBarSize"
android:background=
"@drawable/up_down_line_gray"
android:background=
"@drawable/up_down_line_gray"
android:gravity=
"left|center_vertical"
android:gravity=
"left|center_vertical"
android:paddingLeft=
"@dimen/all_padding"
android:paddingLeft=
"@dimen/all_padding"
android:text=
"
规则设置
"
android:text=
"
@string/rule_setting
"
android:textColor=
"@color/black_baozheng"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/text_secondary_title"
/>
android:textSize=
"@dimen/text_secondary_title"
/>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/white"
android:background=
"@color/white"
android:gravity=
"center"
android:gravity=
"center"
android:orientation=
"horizontal"
android:orientation=
"horizontal"
>
>
<LinearLayout
<LinearLayout
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_weight=
"4"
android:layout_weight=
"4"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
android:orientation=
"horizontal"
android:padding=
"@dimen/all_padding"
>
android:padding=
"@dimen/all_padding"
>
<TextView
<TextView
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"2.5"
android:layout_weight=
"2.5"
android:drawableLeft=
"@mipmap/point"
android:drawableLeft=
"@mipmap/point"
android:drawablePadding=
"@dimen/all_bounced_spacing"
android:drawablePadding=
"@dimen/all_bounced_spacing"
android:text=
"
优惠券面值:
"
android:text=
"
@string/ticket_r1
"
android:textColor=
"@color/black_baozheng"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/et_textsize"
/>
android:textSize=
"@dimen/et_textsize"
/>
<EditText
<EditText
android:id=
"@+id/et_ticket_money"
android:id=
"@+id/et_ticket_money"
style=
"@style/dialog_edit"
style=
"@style/dialog_edit"
...
@@ -184,8 +183,8 @@
...
@@ -184,8 +183,8 @@
android:digits=
"1234567890"
android:digits=
"1234567890"
android:ems=
"5"
android:ems=
"5"
android:inputType=
"number"
android:inputType=
"number"
android:maxLength=
"5"
/>
android:maxLength=
"5"
/>
<TextView
<TextView
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
...
@@ -193,36 +192,36 @@
...
@@ -193,36 +192,36 @@
android:layout_weight=
"2"
android:layout_weight=
"2"
android:gravity=
"right"
android:gravity=
"right"
android:paddingLeft=
"@dimen/all_padding"
android:paddingLeft=
"@dimen/all_padding"
android:text=
"
元
"
android:text=
"
@string/ticket_r2
"
android:textColor=
"@color/black_baozheng"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/et_textsize"
/>
android:textSize=
"@dimen/et_textsize"
/>
</LinearLayout>
</LinearLayout>
<View
<View
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/all_line_width"
android:layout_height=
"@dimen/all_line_width"
android:layout_marginLeft=
"@dimen/all_padding"
android:layout_marginLeft=
"@dimen/all_padding"
android:layout_marginRight=
"@dimen/all_padding"
android:layout_marginRight=
"@dimen/all_padding"
android:background=
"@color/gray1"
></View>
android:background=
"@color/gray1"
></View>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
android:orientation=
"horizontal"
android:padding=
"@dimen/all_padding"
>
android:padding=
"@dimen/all_padding"
>
<TextView
<TextView
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"2.5"
android:layout_weight=
"2.5"
android:drawableLeft=
"@mipmap/point"
android:drawableLeft=
"@mipmap/point"
android:drawablePadding=
"@dimen/all_bounced_spacing"
android:drawablePadding=
"@dimen/all_bounced_spacing"
android:text=
"
券有效期:
"
android:text=
"
@string/ticket_r3
"
android:textColor=
"@color/black_baozheng"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/et_textsize"
/>
android:textSize=
"@dimen/et_textsize"
/>
<TextView
<TextView
android:id=
"@+id/tv_date"
android:id=
"@+id/tv_date"
style=
"@style/dialog_edit"
style=
"@style/dialog_edit"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
...
@@ -230,40 +229,40 @@
...
@@ -230,40 +229,40 @@
android:layout_centerHorizontal=
"true"
android:layout_centerHorizontal=
"true"
android:layout_weight=
"3"
android:layout_weight=
"3"
android:onClick=
"@{OnClickListener}"
android:onClick=
"@{OnClickListener}"
android:padding
Bottom
=
"2dp"
android:padding
Top
=
"2dp"
android:padding
Top=
"2dp"
/>
android:padding
Bottom=
"2dp"
/>
<TextView
<TextView
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginRight=
"@dimen/all_bounced_padding"
android:layout_marginRight=
"@dimen/all_bounced_padding"
android:layout_weight=
"2"
android:layout_weight=
"2"
android:textSize=
"@dimen/et_textsize"
/>
android:textSize=
"@dimen/et_textsize"
/>
</LinearLayout>
</LinearLayout>
<View
<View
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/all_line_width"
android:layout_height=
"@dimen/all_line_width"
android:layout_marginLeft=
"@dimen/all_padding"
android:layout_marginLeft=
"@dimen/all_padding"
android:layout_marginRight=
"@dimen/all_padding"
android:layout_marginRight=
"@dimen/all_padding"
android:background=
"@color/gray1"
></View>
android:background=
"@color/gray1"
></View>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
android:orientation=
"horizontal"
android:padding=
"@dimen/all_padding"
>
android:padding=
"@dimen/all_padding"
>
<TextView
<TextView
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"2.5"
android:layout_weight=
"2.5"
android:drawableLeft=
"@mipmap/point"
android:drawableLeft=
"@mipmap/point"
android:drawablePadding=
"@dimen/all_bounced_spacing"
android:drawablePadding=
"@dimen/all_bounced_spacing"
android:text=
"
订单金额满:
"
android:text=
"
@string/ticket_r4
"
android:textColor=
"@color/black_baozheng"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/et_textsize"
/>
android:textSize=
"@dimen/et_textsize"
/>
<EditText
<EditText
android:id=
"@+id/et_rule_money"
android:id=
"@+id/et_rule_money"
style=
"@style/dialog_edit"
style=
"@style/dialog_edit"
...
@@ -274,8 +273,8 @@
...
@@ -274,8 +273,8 @@
android:digits=
"1234567890"
android:digits=
"1234567890"
android:ems=
"5"
android:ems=
"5"
android:inputType=
"phone|number"
android:inputType=
"phone|number"
android:maxLength=
"5"
/>
android:maxLength=
"5"
/>
<TextView
<TextView
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
...
@@ -283,34 +282,34 @@
...
@@ -283,34 +282,34 @@
android:layout_weight=
"2"
android:layout_weight=
"2"
android:gravity=
"right"
android:gravity=
"right"
android:paddingLeft=
"@dimen/all_padding"
android:paddingLeft=
"@dimen/all_padding"
android:text=
"
元可用
"
android:text=
"
@string/ticket_r5
"
android:textColor=
"@color/black_baozheng"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/et_textsize"
/>
android:textSize=
"@dimen/et_textsize"
/>
</LinearLayout>
</LinearLayout>
<View
<View
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/all_line_width"
android:layout_height=
"@dimen/all_line_width"
android:layout_marginLeft=
"@dimen/all_padding"
android:layout_marginLeft=
"@dimen/all_padding"
android:layout_marginRight=
"@dimen/all_padding"
android:layout_marginRight=
"@dimen/all_padding"
android:background=
"@color/gray1"
></View>
android:background=
"@color/gray1"
></View>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
android:orientation=
"horizontal"
android:padding=
"@dimen/all_padding"
>
android:padding=
"@dimen/all_padding"
>
<TextView
<TextView
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"2.5"
android:layout_weight=
"2.5"
android:drawableLeft=
"@mipmap/point"
android:drawableLeft=
"@mipmap/point"
android:drawablePadding=
"@dimen/all_bounced_spacing"
android:drawablePadding=
"@dimen/all_bounced_spacing"
android:text=
"
每单使用:
"
android:text=
"
@string/ticket_r6
"
android:textColor=
"@color/black_baozheng"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/et_textsize"
/>
android:textSize=
"@dimen/et_textsize"
/>
<TextView
<TextView
android:id=
"@+id/et_ticket_count"
android:id=
"@+id/et_ticket_count"
style=
"@style/dialog_edit"
style=
"@style/dialog_edit"
...
@@ -322,8 +321,8 @@
...
@@ -322,8 +321,8 @@
android:ems=
"5"
android:ems=
"5"
android:inputType=
"phone|number"
android:inputType=
"phone|number"
android:maxLength=
"2"
android:maxLength=
"2"
android:text=
"1"
/>
android:text=
"1"
/>
<TextView
<TextView
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
...
@@ -331,21 +330,21 @@
...
@@ -331,21 +330,21 @@
android:layout_weight=
"2"
android:layout_weight=
"2"
android:gravity=
"right"
android:gravity=
"right"
android:paddingLeft=
"@dimen/all_padding"
android:paddingLeft=
"@dimen/all_padding"
android:text=
"
张
"
android:text=
"
@string/ticket_r7
"
android:textColor=
"@color/black_baozheng"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/et_textsize"
/>
android:textSize=
"@dimen/et_textsize"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
<View
<View
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/all_line_width"
android:layout_height=
"@dimen/all_line_width"
android:background=
"@color/gray1"
></View>
android:background=
"@color/gray1"
></View>
</LinearLayout>
</LinearLayout>
<Button
<Button
android:id=
"@+id/btn_add"
android:id=
"@+id/btn_add"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
...
@@ -354,8 +353,8 @@
...
@@ -354,8 +353,8 @@
android:layout_margin=
"@dimen/all_margin"
android:layout_margin=
"@dimen/all_margin"
android:background=
"@drawable/red_border"
android:background=
"@drawable/red_border"
android:onClick=
"@{OnClickListener}"
android:onClick=
"@{OnClickListener}"
android:text=
"
确定
"
android:text=
"
@string/all_confirm
"
android:textColor=
"@color/white"
android:textColor=
"@color/white"
android:textSize=
"@dimen/et_textsize"
/>
android:textSize=
"@dimen/et_textsize"
/>
</RelativeLayout>
</RelativeLayout>
</layout>
</layout>
\ No newline at end of file
app/src/main/res/layout/dialog_vip_menu.xml
View file @
ddd1dbb9
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<layout
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<layout
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<data>
<data>
<variable
<variable
name=
"onClick"
name=
"onClick"
type=
"android.view.View.OnClickListener"
/>
type=
"android.view.View.OnClickListener"
/>
</data>
</data>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/transparent"
android:background=
"@color/transparent"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
android:background=
"@drawable/shape_white"
android:background=
"@drawable/shape_white"
android:gravity=
"center_horizontal"
android:gravity=
"center_horizontal"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<TextView
<TextView
android:id=
"@+id/editVip"
android:id=
"@+id/editVip"
style=
"@style/default_bluetext_popbutton"
style=
"@style/default_bluetext_popbutton"
...
@@ -32,61 +32,62 @@
...
@@ -32,61 +32,62 @@
android:foreground=
"?android:attr/selectableItemBackground"
android:foreground=
"?android:attr/selectableItemBackground"
android:gravity=
"center"
android:gravity=
"center"
android:onClick=
"@{onClick}"
android:onClick=
"@{onClick}"
android:text=
"
编辑会员
"
/>
android:text=
"
@string/vip_update
"
/>
<View
<View
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"1dp"
android:layout_height=
"1dp"
android:background=
"@color/line_bg"
/>
android:background=
"@color/line_bg"
/>
<TextView
<TextView
android:id=
"@+id/rechargeList"
style=
"@style/default_bluetext_popbutton"
style=
"@style/default_bluetext_popbutton"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_margin=
"@dimen/dtail_hight_5"
android:layout_margin=
"@dimen/dtail_hight_5"
android:id=
"@+id/rechargeList"
android:background=
"@color/white"
android:background=
"@color/white"
android:foreground=
"?android:attr/actionBarItemBackground"
android:foreground=
"?android:attr/actionBarItemBackground"
android:onClick=
"@{onClick}"
android:onClick=
"@{onClick}"
android:text=
"
充值明细
"
/>
android:text=
"
@string/vip_recharge
"
/>
<View
<View
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"1dp"
android:layout_height=
"1dp"
android:background=
"@color/line_bg"
/>
android:background=
"@color/line_bg"
/>
<TextView
<TextView
style=
"@style/default_bluetext_popbutton"
android:id=
"@+id/consumeList"
android:id=
"@+id/consumeList"
style=
"@style/default_bluetext_popbutton"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_margin=
"@dimen/dtail_hight_5"
android:layout_margin=
"@dimen/dtail_hight_5"
android:background=
"@color/white"
android:background=
"@color/white"
android:gravity=
"center"
android:foreground=
"?android:attr/actionBarItemBackground"
android:foreground=
"?android:attr/actionBarItemBackground"
android:gravity=
"center"
android:onClick=
"@{onClick}"
android:onClick=
"@{onClick}"
android:text=
"消费记录"
/>
android:text=
"@string/vip_consumption"
/>
<View
<View
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"1dp"
android:layout_height=
"1dp"
android:background=
"@color/line_bg"
/>
android:background=
"@color/line_bg"
/>
<TextView
<TextView
style=
"@style/default_bluetext_popbutton"
android:id=
"@+id/voucherDetails"
android:id=
"@+id/voucherDetails"
style=
"@style/default_bluetext_popbutton"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_margin=
"@dimen/dtail_hight_5"
android:layout_margin=
"@dimen/dtail_hight_5"
android:background=
"@color/white"
android:background=
"@color/white"
android:gravity=
"center"
android:foreground=
"?android:attr/actionBarItemBackground"
android:foreground=
"?android:attr/actionBarItemBackground"
android:gravity=
"center"
android:onClick=
"@{onClick}"
android:onClick=
"@{onClick}"
android:text=
"
优惠券详情
"
/>
android:text=
"
@string/vip_coupon
"
/>
</LinearLayout>
</LinearLayout>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
...
@@ -95,7 +96,7 @@
...
@@ -95,7 +96,7 @@
android:background=
"@drawable/shape_white"
android:background=
"@drawable/shape_white"
android:gravity=
"center_horizontal"
android:gravity=
"center_horizontal"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<TextView
<TextView
android:id=
"@+id/cancelButton"
android:id=
"@+id/cancelButton"
style=
"@style/default_blacktext_smallstyle"
style=
"@style/default_blacktext_smallstyle"
...
@@ -103,9 +104,9 @@
...
@@ -103,9 +104,9 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_margin=
"@dimen/dtail_hight_5"
android:layout_margin=
"@dimen/dtail_hight_5"
android:foreground=
"?android:attr/actionBarItemBackground"
android:foreground=
"?android:attr/actionBarItemBackground"
android:onClick=
"@{onClick}"
android:gravity=
"center"
android:gravity=
"center"
android:text=
"取消"
/>
android:onClick=
"@{onClick}"
android:text=
"@string/all_cancel"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</layout>
</layout>
\ No newline at end of file
app/src/main/res/layout/fragment_input_password.xml
View file @
ddd1dbb9
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<layout>
<layout>
<data>
<data>
<variable
<variable
name=
"onClickListener"
name=
"onClickListener"
type=
"android.view.View.OnClickListener"
/>
type=
"android.view.View.OnClickListener"
/>
</data>
</data>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/white"
android:background=
"@color/white"
android:gravity=
"center"
android:gravity=
"center"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<include
<include
android:id=
"@+id/ic_title"
android:id=
"@+id/ic_title"
layout=
"@layout/title"
/>
layout=
"@layout/title"
/>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:gravity=
"center"
android:gravity=
"center"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<ImageView
<ImageView
android:id=
"@+id/iv_logo"
android:id=
"@+id/iv_logo"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@mipmap/login_logo"
/>
android:src=
"@mipmap/login_logo"
/>
<EditText
<EditText
android:id=
"@+id/et_one_password"
android:id=
"@+id/et_one_password"
style=
"@style/editText_new"
style=
"@style/editText_new"
...
@@ -43,9 +43,8 @@
...
@@ -43,9 +43,8 @@
android:ems=
"10"
android:ems=
"10"
android:hint=
"@string/login_smscodefragment_et_one_input_password_hint"
android:hint=
"@string/login_smscodefragment_et_one_input_password_hint"
android:inputType=
"textPassword"
android:inputType=
"textPassword"
android:maxLength=
"8"
android:maxLength=
"8"
/>
/>
<EditText
<EditText
android:id=
"@+id/et_two_password"
android:id=
"@+id/et_two_password"
style=
"@style/editText_new"
style=
"@style/editText_new"
...
@@ -56,23 +55,21 @@
...
@@ -56,23 +55,21 @@
android:ems=
"10"
android:ems=
"10"
android:hint=
"@string/login_smscodefragment_et_two_input_password_hint"
android:hint=
"@string/login_smscodefragment_et_two_input_password_hint"
android:inputType=
"textPassword"
android:inputType=
"textPassword"
android:maxLength=
"8"
android:maxLength=
"8"
/>
/>
<Button
<Button
android:id=
"@+id/btn_next"
android:id=
"@+id/btn_next"
style=
"@style/button"
style=
"@style/button"
android:layout_marginTop=
"@dimen/et_margin_logo"
android:layout_marginTop=
"@dimen/et_margin_logo"
android:onClick=
"@{onClickListener}"
android:onClick=
"@{onClickListener}"
android:text=
"@string/login_smscodefragment_btn_next"
android:text=
"@string/login_smscodefragment_btn_next"
/>
/>
<RelativeLayout
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/et_margin_logo"
>
android:layout_marginTop=
"@dimen/et_margin_logo"
>
<TextView
<TextView
android:id=
"@+id/tv_existing_account"
android:id=
"@+id/tv_existing_account"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
...
@@ -80,8 +77,8 @@
...
@@ -80,8 +77,8 @@
android:layout_alignParentRight=
"true"
android:layout_alignParentRight=
"true"
android:layout_marginRight=
"@dimen/all_margin_left"
android:layout_marginRight=
"@dimen/all_margin_left"
android:onClick=
"@{onClickListener}"
android:onClick=
"@{onClickListener}"
android:text=
"
已有账号 >
"
android:text=
"
@string/login_back_login
"
android:textColor=
"@color/black_baozheng"
/>
android:textColor=
"@color/black_baozheng"
/>
</RelativeLayout>
</RelativeLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
...
...
app/src/main/res/layout/fragment_recharge_rule_edit.xml
View file @
ddd1dbb9
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<layout>
<layout>
<data>
<data>
<variable
<variable
name=
"onClickListener"
name=
"onClickListener"
type=
"android.view.View.OnClickListener"
/>
type=
"android.view.View.OnClickListener"
/>
</data>
</data>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/bg"
android:background=
"@color/bg"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<include
<include
android:id=
"@+id/info_title"
android:id=
"@+id/info_title"
layout=
"@layout/title_pop"
/>
layout=
"@layout/title_pop"
/>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_margin=
"@dimen/all_margin"
android:layout_margin=
"@dimen/all_margin"
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<TextView
<TextView
style=
"@style/default_blacktext_bigstyle"
style=
"@style/default_blacktext_bigstyle"
android:layout_width=
"90dp"
android:layout_width=
"90dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"@string/all_baseinfo"
/>
android:text=
"@string/all_baseinfo"
/>
</LinearLayout>
</LinearLayout>
<include
layout=
"@layout/line_layout"
/>
<include
layout=
"@layout/line_layout"
/>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@color/white"
android:background=
"@color/white"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<LinearLayout
<LinearLayout
android:id=
"@+id/rule_name_layout"
android:id=
"@+id/rule_name_layout"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@color/white"
android:background=
"@color/white"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<TextView
<TextView
android:id=
"@+id/rule_name"
android:id=
"@+id/rule_name"
style=
"@style/default_blacktext_margin_smallstyle"
style=
"@style/default_blacktext_margin_smallstyle"
android:layout_width=
"100dp"
android:layout_width=
"100dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:text=
"
活动名称:
"
/>
android:text=
"
@string/recharge_r1
"
/>
<EditText
<EditText
style=
"@style/dialog_edit"
style=
"@style/dialog_edit"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
...
@@ -69,21 +69,22 @@
...
@@ -69,21 +69,22 @@
android:background=
"@null"
android:background=
"@null"
android:enabled=
"false"
/>
android:enabled=
"false"
/>
</LinearLayout>
</LinearLayout>
<include
layout=
"@layout/line_layout_margin"
/>
<include
layout=
"@layout/line_layout_margin"
/>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@color/white"
android:background=
"@color/white"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<TextView
<TextView
style=
"@style/default_blacktext_margin_smallstyle"
style=
"@style/default_blacktext_margin_smallstyle"
android:layout_width=
"100dp"
android:layout_width=
"100dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:text=
"
充值档位:
"
/>
android:text=
"
@string/recharge_r2
"
/>
<TextView
<TextView
android:id=
"@+id/recharg_No"
android:id=
"@+id/recharg_No"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
...
@@ -93,16 +94,16 @@
...
@@ -93,16 +94,16 @@
android:gravity=
"center"
android:gravity=
"center"
android:onClick=
"@{onClickListener}"
/>
android:onClick=
"@{onClickListener}"
/>
</LinearLayout>
</LinearLayout>
<include
layout=
"@layout/line_layout_margin"
/>
<include
layout=
"@layout/line_layout_margin"
/>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@color/white"
android:background=
"@color/white"
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<TextView
<TextView
style=
"@style/default_blacktext_margin_smallstyle"
style=
"@style/default_blacktext_margin_smallstyle"
android:layout_width=
"100dp"
android:layout_width=
"100dp"
...
@@ -110,7 +111,7 @@
...
@@ -110,7 +111,7 @@
android:layout_marginLeft=
"@dimen/all_margin_left"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:maxLength=
"11"
android:maxLength=
"11"
android:text=
"@string/all_state"
/>
android:text=
"@string/all_state"
/>
<RadioGroup
<RadioGroup
android:id=
"@+id/rule_state"
android:id=
"@+id/rule_state"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
...
@@ -118,7 +119,7 @@
...
@@ -118,7 +119,7 @@
android:layout_marginLeft=
"12sp"
android:layout_marginLeft=
"12sp"
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<RadioButton
<RadioButton
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
...
@@ -127,8 +128,8 @@
...
@@ -127,8 +128,8 @@
android:background=
"@drawable/selector_checkbox_bg"
android:background=
"@drawable/selector_checkbox_bg"
android:button=
"@null"
android:button=
"@null"
android:tag=
"1"
android:tag=
"1"
android:text=
"
暂停
"
/>
android:text=
"
@string/all_state_close
"
/>
<RadioButton
<RadioButton
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
...
@@ -141,40 +142,40 @@
...
@@ -141,40 +142,40 @@
</RadioGroup>
</RadioGroup>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
<include
layout=
"@layout/line_layout"
/>
<include
layout=
"@layout/line_layout"
/>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_margin=
"@dimen/all_margin"
android:layout_margin=
"@dimen/all_margin"
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<TextView
<TextView
style=
"@style/default_blacktext_bigstyle"
style=
"@style/default_blacktext_bigstyle"
android:layout_width=
"90dp"
android:layout_width=
"90dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
优惠规则
"
/>
android:text=
"
@string/recharge_r3
"
/>
</LinearLayout>
</LinearLayout>
<include
layout=
"@layout/line_layout"
/>
<include
layout=
"@layout/line_layout"
/>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@color/white"
android:background=
"@color/white"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<TextView
<TextView
style=
"@style/default_blacktext_margin_smallstyle"
style=
"@style/default_blacktext_margin_smallstyle"
android:layout_width=
"100dp"
android:layout_width=
"100dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:text=
"
充值每满:
"
/>
android:text=
"
@string/recharge_r4
"
/>
<EditText
<EditText
android:id=
"@+id/recharg_amt"
android:id=
"@+id/recharg_amt"
style=
"@style/dialog_edit"
style=
"@style/dialog_edit"
...
@@ -186,29 +187,29 @@
...
@@ -186,29 +187,29 @@
android:gravity=
"center"
android:gravity=
"center"
android:inputType=
"phone"
android:inputType=
"phone"
android:maxLength=
"8"
/>
android:maxLength=
"8"
/>
<TextView
<TextView
style=
"@style/default_blacktext_margin_smallstyle"
style=
"@style/default_blacktext_margin_smallstyle"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:text=
"
元
"
/>
android:text=
"
@string/recharge_r5
"
/>
</LinearLayout>
</LinearLayout>
<include
layout=
"@layout/line_layout_margin"
/>
<include
layout=
"@layout/line_layout_margin"
/>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@color/white"
android:background=
"@color/white"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<TextView
<TextView
style=
"@style/default_blacktext_margin_smallstyle"
style=
"@style/default_blacktext_margin_smallstyle"
android:layout_width=
"100dp"
android:layout_width=
"100dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:text=
"
送:
"
/>
android:text=
"
@string/recharge_r6
"
/>
<EditText
<EditText
android:id=
"@+id/send_amt"
android:id=
"@+id/send_amt"
style=
"@style/dialog_edit"
style=
"@style/dialog_edit"
...
@@ -220,29 +221,29 @@
...
@@ -220,29 +221,29 @@
android:gravity=
"center"
android:gravity=
"center"
android:inputType=
"phone"
android:inputType=
"phone"
android:maxLength=
"8"
/>
android:maxLength=
"8"
/>
<TextView
<TextView
style=
"@style/default_blacktext_margin_smallstyle"
style=
"@style/default_blacktext_margin_smallstyle"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:text=
"
元
"
/>
android:text=
"
@string/recharge_r7
"
/>
</LinearLayout>
</LinearLayout>
<include
layout=
"@layout/line_layout_margin"
/>
<include
layout=
"@layout/line_layout_margin"
/>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@color/white"
android:background=
"@color/white"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<TextView
<TextView
style=
"@style/default_blacktext_margin_smallstyle"
style=
"@style/default_blacktext_margin_smallstyle"
android:layout_width=
"100dp"
android:layout_width=
"100dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:text=
"
开始日期:
"
/>
android:text=
"
@string/recharge_r8
"
/>
<TextView
<TextView
android:id=
"@+id/rule_begin_time"
android:id=
"@+id/rule_begin_time"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
...
@@ -252,21 +253,22 @@
...
@@ -252,21 +253,22 @@
android:gravity=
"center"
android:gravity=
"center"
android:onClick=
"@{onClickListener}"
/>
android:onClick=
"@{onClickListener}"
/>
</LinearLayout>
</LinearLayout>
<include
layout=
"@layout/line_layout_margin"
/>
<include
layout=
"@layout/line_layout_margin"
/>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@color/white"
android:background=
"@color/white"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<TextView
<TextView
style=
"@style/default_blacktext_margin_smallstyle"
style=
"@style/default_blacktext_margin_smallstyle"
android:layout_width=
"100dp"
android:layout_width=
"100dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:text=
"
结束日期:
"
/>
android:text=
"
@string/recharge_r9
"
/>
<TextView
<TextView
android:id=
"@+id/rule_end_time"
android:id=
"@+id/rule_end_time"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
...
@@ -276,22 +278,22 @@
...
@@ -276,22 +278,22 @@
android:gravity=
"center"
android:gravity=
"center"
android:onClick=
"@{onClickListener}"
/>
android:onClick=
"@{onClickListener}"
/>
</LinearLayout>
</LinearLayout>
<include
layout=
"@layout/line_layout"
/>
<include
layout=
"@layout/line_layout"
/>
<RelativeLayout
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_marginBottom=
"@dimen/all_margin_left"
android:layout_marginBottom=
"@dimen/all_margin_left"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<Button
<Button
android:id=
"@+id/onSure"
android:id=
"@+id/onSure"
style=
"@style/button_positive_noradius"
style=
"@style/button_positive_noradius"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_alignParentBottom=
"true"
android:layout_alignParentBottom=
"true"
android:onClick=
"@{onClickListener}"
android:onClick=
"@{onClickListener}"
android:text=
"
确认
"
/>
android:text=
"
@string/all_confirm
"
/>
</RelativeLayout>
</RelativeLayout>
</LinearLayout>
</LinearLayout>
...
...
app/src/main/res/layout/fragment_select_industry.xml
View file @
ddd1dbb9
<layout>
<layout>
<data>
<data>
<variable
<variable
name=
"onClickListener"
name=
"onClickListener"
type=
"android.view.View.OnClickListener"
/>
type=
"android.view.View.OnClickListener"
/>
</data>
</data>
<RelativeLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<RelativeLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/white"
>
android:background=
"@color/white"
>
<include
<include
android:id=
"@+id/ic_title"
android:id=
"@+id/ic_title"
layout=
"@layout/title"
/>
layout=
"@layout/title"
/>
<TextView
android:id=
"@+id/tv_title"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/list1_height"
android:layout_below=
"@+id/ic_title"
android:layout_marginLeft=
"@dimen/all_bounced_padding"
android:background=
"@drawable/up_down_line_white_bottom"
android:gravity=
"center_vertical"
android:text=
"请选择零售行业"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/text_three_title"
/>
<android.support.v4.widget.SwipeRefreshLayout
<android.support.v4.widget.SwipeRefreshLayout
android:id=
"@+id/sl"
android:id=
"@+id/sl"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_above=
"@+id/ll_bottom"
android:layout_above=
"@+id/ll_bottom"
android:layout_below=
"@+id/
tv
_title"
>
android:layout_below=
"@+id/
ic
_title"
>
<android.support.v7.widget.RecyclerView
<android.support.v7.widget.RecyclerView
android:id=
"@+id/rv_select"
android:id=
"@+id/rv_select"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
></android.support.v7.widget.RecyclerView
>
android:layout_height=
"match_parent"
/
>
</android.support.v4.widget.SwipeRefreshLayout>
</android.support.v4.widget.SwipeRefreshLayout>
<LinearLayout
<LinearLayout
android:id=
"@+id/ll_bottom"
android:id=
"@+id/ll_bottom"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentBottom=
"true"
android:layout_alignParentBottom=
"true"
android:background=
"@color/white"
>
android:background=
"@color/white"
>
<Button
<Button
android:id=
"@+id/btn_ok"
android:id=
"@+id/btn_ok"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
...
@@ -56,11 +44,9 @@
...
@@ -56,11 +44,9 @@
android:layout_margin=
"@dimen/all_bounced_padding"
android:layout_margin=
"@dimen/all_bounced_padding"
android:background=
"@drawable/red_border"
android:background=
"@drawable/red_border"
android:onClick=
"@{onClickListener}"
android:onClick=
"@{onClickListener}"
android:text=
"
确定
"
android:text=
"
@string/all_confirm
"
android:textColor=
"@color/white"
android:textColor=
"@color/white"
android:textSize=
"@dimen/et_textsize"
/>
android:textSize=
"@dimen/et_textsize"
/>
</LinearLayout>
</LinearLayout>
</RelativeLayout>
</RelativeLayout>
</layout>
</layout>
\ No newline at end of file
app/src/main/res/layout/fragment_settle.xml
View file @
ddd1dbb9
...
@@ -453,7 +453,7 @@
...
@@ -453,7 +453,7 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginEnd=
"@dimen/all_spacing"
android:layout_marginEnd=
"@dimen/all_spacing"
android:text=
"@{@string/settle_point_vip_text + avlPoints + @string/settle_point_amt_text +
pointDisAmt +@string/unit_rmb_yuan
}"
android:text=
"@{@string/settle_point_vip_text + avlPoints + @string/settle_point_amt_text +
@string/money_rmb + pointDisAmt
}"
android:textColor=
"@color/black_likui"
/>
android:textColor=
"@color/black_likui"
/>
<CheckBox
<CheckBox
...
...
app/src/main/res/layout/fragment_user_info_edit.xml
View file @
ddd1dbb9
...
@@ -145,7 +145,7 @@
...
@@ -145,7 +145,7 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentBottom=
"true"
android:layout_alignParentBottom=
"true"
android:onClick=
"@{onClickListener}"
android:onClick=
"@{onClickListener}"
android:text=
"
确认
"
/>
android:text=
"
@string/all_confirm
"
/>
</RelativeLayout>
</RelativeLayout>
</LinearLayout>
</LinearLayout>
...
...
app/src/main/res/layout/fragment_user_list.xml
View file @
ddd1dbb9
...
@@ -63,7 +63,7 @@
...
@@ -63,7 +63,7 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:gravity=
"center"
android:gravity=
"center"
android:text=
"
今日新增
"
/>
android:text=
"
@string/member_today_cnt
"
/>
</LinearLayout>
</LinearLayout>
<LinearLayout
<LinearLayout
...
...
app/src/main/res/layout/fragment_vip_add_succeed.xml
View file @
ddd1dbb9
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<layout>
<layout>
<data>
<data>
<variable
<variable
name=
"onClickListener"
name=
"onClickListener"
type=
"android.view.View.OnClickListener"
/>
type=
"android.view.View.OnClickListener"
/>
</data>
</data>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/bg"
android:background=
"@color/bg"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<include
<include
android:id=
"@+id/info_title"
android:id=
"@+id/info_title"
layout=
"@layout/title_pop"
/>
layout=
"@layout/title_pop"
/>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
...
@@ -25,27 +25,27 @@
...
@@ -25,27 +25,27 @@
android:background=
"@mipmap/tv_bg"
android:background=
"@mipmap/tv_bg"
android:gravity=
"center_horizontal"
android:gravity=
"center_horizontal"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<LinearLayout
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_margin=
"@dimen/all_margin_left"
android:layout_margin=
"@dimen/all_margin_left"
android:gravity=
"center"
android:gravity=
"center"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<ImageView
<ImageView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@mipmap/ic_succeed"
/>
android:background=
"@mipmap/ic_succeed"
/>
<TextView
<TextView
style=
"@style/default_blacktext_bigstyle"
style=
"@style/default_blacktext_bigstyle"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
添加成功
"
/>
android:text=
"
@string/all_succ
"
/>
</LinearLayout>
</LinearLayout>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
...
@@ -53,11 +53,11 @@
...
@@ -53,11 +53,11 @@
android:layout_marginRight=
"@dimen/all_margin_left"
android:layout_marginRight=
"@dimen/all_margin_left"
android:background=
"@color/white"
android:background=
"@color/white"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<TextView
<TextView
style=
"@style/default_blacktext_no_margin_smallstyle"
style=
"@style/default_blacktext_no_margin_smallstyle"
android:text=
"
会员姓名
"
/>
android:text=
"
@string/vip_name
"
/>
<TextView
<TextView
android:id=
"@+id/vip_name"
android:id=
"@+id/vip_name"
style=
"@style/default_blacktext_no_margin_smallstyle"
style=
"@style/default_blacktext_no_margin_smallstyle"
...
@@ -66,7 +66,7 @@
...
@@ -66,7 +66,7 @@
android:text=
""
android:text=
""
android:textColor=
"@color/black_likui"
/>
android:textColor=
"@color/black_likui"
/>
</LinearLayout>
</LinearLayout>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
...
@@ -74,11 +74,11 @@
...
@@ -74,11 +74,11 @@
android:layout_marginRight=
"@dimen/all_margin_left"
android:layout_marginRight=
"@dimen/all_margin_left"
android:background=
"@color/white"
android:background=
"@color/white"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<TextView
<TextView
style=
"@style/default_blacktext_no_margin_smallstyle"
style=
"@style/default_blacktext_no_margin_smallstyle"
android:text=
"
会员手机
"
/>
android:text=
"
@string/vip_phone
"
/>
<TextView
<TextView
android:id=
"@+id/vip_mobile"
android:id=
"@+id/vip_mobile"
style=
"@style/default_blacktext_no_margin_smallstyle"
style=
"@style/default_blacktext_no_margin_smallstyle"
...
@@ -87,20 +87,20 @@
...
@@ -87,20 +87,20 @@
android:text=
""
android:text=
""
android:textColor=
"@color/black_likui"
/>
android:textColor=
"@color/black_likui"
/>
</LinearLayout>
</LinearLayout>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"@dimen/all_margin_left"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:layout_marginRight=
"@dimen/all_margin_left"
android:layout_marginRight=
"@dimen/all_margin_left"
android:layout_marginBottom=
"@dimen/all_margin_left"
android:background=
"@color/white"
android:background=
"@color/white"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<TextView
<TextView
style=
"@style/default_blacktext_no_margin_smallstyle"
style=
"@style/default_blacktext_no_margin_smallstyle"
android:text=
"@string/menu_ms_vip_level"
/>
android:text=
"@string/menu_ms_vip_level"
/>
<TextView
<TextView
android:id=
"@+id/vip_level"
android:id=
"@+id/vip_level"
style=
"@style/default_blacktext_no_margin_smallstyle"
style=
"@style/default_blacktext_no_margin_smallstyle"
...
@@ -110,37 +110,37 @@
...
@@ -110,37 +110,37 @@
android:textColor=
"@color/black_likui"
/>
android:textColor=
"@color/black_likui"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
<RelativeLayout
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_marginBottom=
"@dimen/all_margin_left"
>
android:layout_marginBottom=
"@dimen/all_margin_left"
>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentBottom=
"true"
android:layout_alignParentBottom=
"true"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<Button
<Button
android:id=
"@+id/vip_Sure"
android:id=
"@+id/vip_Sure"
style=
"@style/button_positive_noradius"
style=
"@style/button_positive_noradius"
android:layout_alignParentBottom=
"true"
android:layout_alignParentBottom=
"true"
android:layout_marginBottom=
"@dimen/all_margin_left"
android:layout_marginBottom=
"@dimen/all_margin_left"
android:text=
"
完成
"
/>
android:text=
"
@string/all_confirm
"
/>
<Button
<Button
android:id=
"@+id/vip_recharge"
android:id=
"@+id/vip_recharge"
style=
"@style/button_positive_white"
style=
"@style/button_positive_white"
android:layout_alignParentBottom=
"true"
android:layout_alignParentBottom=
"true"
android:text=
"
充值
"
/>
android:text=
"
@string/menu_recharge
"
/>
<Button
<Button
android:id=
"@+id/vip_add"
android:id=
"@+id/vip_add"
android:visibility=
"gone"
style=
"@style/button_positive_white"
style=
"@style/button_positive_white"
android:layout_alignParentBottom=
"true"
android:layout_alignParentBottom=
"true"
android:text=
"继续添加"
/>
android:text=
"继续添加"
android:visibility=
"gone"
/>
</LinearLayout>
</LinearLayout>
</RelativeLayout>
</RelativeLayout>
</LinearLayout>
</LinearLayout>
...
...
app/src/main/res/layout/fragment_vip_expense_list.xml
View file @
ddd1dbb9
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<layout>
<layout>
<data>
<data>
<variable
<variable
name=
"onClickListener"
name=
"onClickListener"
type=
"com.xingdata.zzdpos.util.OnClickListener"
/>
type=
"com.xingdata.zzdpos.util.OnClickListener"
/>
</data>
</data>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/bg"
android:background=
"@color/bg"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<include
<include
android:id=
"@+id/info_title"
android:id=
"@+id/info_title"
layout=
"@layout/title_pop"
/>
layout=
"@layout/title_pop"
/>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@color/white"
android:background=
"@color/white"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<ImageView
<ImageView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:layout_gravity=
"center_vertical"
android:layout_marginLeft=
"@dimen/all_margin"
android:layout_marginLeft=
"@dimen/all_margin"
android:background=
"@mipmap/iv_vip"
/>
android:background=
"@mipmap/iv_vip"
/>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
...
@@ -39,13 +39,13 @@
...
@@ -39,13 +39,13 @@
android:layout_weight=
"1"
android:layout_weight=
"1"
android:background=
"@color/white"
android:background=
"@color/white"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<TextView
<TextView
android:id=
"@+id/vip_name"
android:id=
"@+id/vip_name"
style=
"@style/default_blacktext_bigstyle"
style=
"@style/default_blacktext_bigstyle"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
/>
android:layout_height=
"wrap_content"
/>
<TextView
<TextView
android:id=
"@+id/vip_mobile"
android:id=
"@+id/vip_mobile"
style=
"@style/default_blacktext_nopadding_smallstyle"
style=
"@style/default_blacktext_nopadding_smallstyle"
...
@@ -54,42 +54,41 @@
...
@@ -54,42 +54,41 @@
android:layout_marginLeft=
"0dp"
android:layout_marginLeft=
"0dp"
android:textColor=
"@color/black"
/>
android:textColor=
"@color/black"
/>
</LinearLayout>
</LinearLayout>
<TextView
<TextView
android:id=
"@+id/vip_discount"
android:id=
"@+id/vip_discount"
style=
"@style/default_blacktext_smallstyle"
style=
"@style/default_blacktext_smallstyle"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:layout_gravity=
"center_vertical"
android:layout_margin=
"@dimen/all_margin"
android:layout_margin=
"@dimen/all_margin"
/>
android:text=
"@string/vip_info_discount"
/>
</LinearLayout>
</LinearLayout>
<View
<View
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"1dp"
android:layout_height=
"1dp"
android:background=
"@color/line_bg"
></View>
android:background=
"@color/line_bg"
></View>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@color/white"
android:background=
"@color/white"
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:gravity=
"center_horizontal"
android:gravity=
"center_horizontal"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<TextView
<TextView
style=
"@style/default_blacktext_smallstyle"
style=
"@style/default_blacktext_smallstyle"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
消费总额
"
/>
android:text=
"
@string/total_consumption
"
/>
<TextView
<TextView
android:id=
"@+id/expense_AMT"
android:id=
"@+id/expense_AMT"
style=
"@style/default_blacktext_bigstyle"
style=
"@style/default_blacktext_bigstyle"
...
@@ -98,25 +97,25 @@
...
@@ -98,25 +97,25 @@
android:text=
"0.00"
android:text=
"0.00"
android:textColor=
"@color/reddeep"
/>
android:textColor=
"@color/reddeep"
/>
</LinearLayout>
</LinearLayout>
<View
<View
android:layout_width=
"1dp"
android:layout_width=
"1dp"
android:layout_height=
"40dp"
android:layout_height=
"40dp"
android:background=
"@color/line_bg"
></View>
android:background=
"@color/line_bg"
></View>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:gravity=
"center_horizontal"
android:gravity=
"center_horizontal"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<TextView
<TextView
style=
"@style/default_blacktext_smallstyle"
style=
"@style/default_blacktext_smallstyle"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
消费次数
"
/>
android:text=
"
@string/total_consumption_cnt
"
/>
<TextView
<TextView
android:id=
"@+id/expense_Count"
android:id=
"@+id/expense_Count"
style=
"@style/default_blacktext_bigstyle"
style=
"@style/default_blacktext_bigstyle"
...
@@ -126,23 +125,23 @@
...
@@ -126,23 +125,23 @@
android:textColor=
"@color/reddeep"
/>
android:textColor=
"@color/reddeep"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
<View
<View
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"1dp"
android:layout_height=
"1dp"
android:background=
"@color/line_bg"
></View>
android:background=
"@color/line_bg"
></View>
<android.support.v4.widget.SwipeRefreshLayout
<android.support.v4.widget.SwipeRefreshLayout
android:id=
"@+id/recharge_refresh"
android:id=
"@+id/recharge_refresh"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
android:layout_height=
"match_parent"
>
<android.support.v7.widget.RecyclerView
<android.support.v7.widget.RecyclerView
android:id=
"@+id/rechargeRecyclerView"
android:id=
"@+id/rechargeRecyclerView"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
/>
android:layout_height=
"match_parent"
/>
</android.support.v4.widget.SwipeRefreshLayout>
</android.support.v4.widget.SwipeRefreshLayout>
</LinearLayout>
</LinearLayout>
</layout>
</layout>
\ No newline at end of file
app/src/main/res/layout/fragment_vip_info.xml
View file @
ddd1dbb9
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<layout>
<layout>
<data>
<data>
<variable
<variable
name=
"onClickListener"
name=
"onClickListener"
type=
"android.view.View.OnClickListener"
/>
type=
"android.view.View.OnClickListener"
/>
</data>
</data>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/bg"
android:background=
"@color/bg"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<include
<include
android:id=
"@+id/info_title"
android:id=
"@+id/info_title"
layout=
"@layout/title_pop"
/>
layout=
"@layout/title_pop"
/>
<View
<View
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"@dimen/all_margin_left"
/>
android:layout_height=
"@dimen/all_margin_left"
/>
<include
layout=
"@layout/line_layout"
/>
<include
layout=
"@layout/line_layout"
/>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"72dp"
android:layout_height=
"72dp"
android:background=
"@color/white"
android:background=
"@color/white"
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<ImageView
<ImageView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:layout_gravity=
"center_vertical"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:background=
"@mipmap/iv_vip"
/>
android:background=
"@mipmap/iv_vip"
/>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
...
@@ -46,13 +46,13 @@
...
@@ -46,13 +46,13 @@
android:layout_weight=
"1"
android:layout_weight=
"1"
android:background=
"@color/white"
android:background=
"@color/white"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<TextView
<TextView
android:id=
"@+id/vipName"
android:id=
"@+id/vipName"
style=
"@style/default_blacktext_bigstyle"
style=
"@style/default_blacktext_bigstyle"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
/>
android:layout_height=
"wrap_content"
/>
<TextView
<TextView
android:id=
"@+id/vipMoble"
android:id=
"@+id/vipMoble"
style=
"@style/default_blacktext_nopadding_smallstyle"
style=
"@style/default_blacktext_nopadding_smallstyle"
...
@@ -61,44 +61,43 @@
...
@@ -61,44 +61,43 @@
android:textColor=
"@color/black"
android:textColor=
"@color/black"
android:textSize=
"@dimen/detail_textview_size"
/>
android:textSize=
"@dimen/detail_textview_size"
/>
</LinearLayout>
</LinearLayout>
<TextView
<TextView
android:id=
"@+id/vip_discounts"
android:id=
"@+id/vip_discounts"
style=
"@style/default_blacktext_smallstyle"
style=
"@style/default_blacktext_smallstyle"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:layout_gravity=
"center_vertical"
/>
android:text=
"@string/vip_info_discount"
/>
</LinearLayout>
</LinearLayout>
<include
layout=
"@layout/line_layout"
/>
<include
layout=
"@layout/line_layout"
/>
<View
<View
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"@dimen/all_margin_left"
/>
android:layout_height=
"@dimen/all_margin_left"
/>
<include
layout=
"@layout/line_layout"
/>
<include
layout=
"@layout/line_layout"
/>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@color/white"
android:background=
"@color/white"
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:gravity=
"center_horizontal"
android:gravity=
"center_horizontal"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<TextView
<TextView
style=
"@style/default_blacktext_smallstyle"
style=
"@style/default_blacktext_smallstyle"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
积分
"
/>
android:text=
"
@string/vip_points
"
/>
<TextView
<TextView
android:id=
"@+id/BoundCbal"
android:id=
"@+id/BoundCbal"
style=
"@style/default_blacktext_bigstyle"
style=
"@style/default_blacktext_bigstyle"
...
@@ -106,20 +105,20 @@
...
@@ -106,20 +105,20 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"@color/reddeep"
/>
android:textColor=
"@color/reddeep"
/>
</LinearLayout>
</LinearLayout>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:gravity=
"center_horizontal"
android:gravity=
"center_horizontal"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<TextView
<TextView
style=
"@style/default_blacktext_smallstyle"
style=
"@style/default_blacktext_smallstyle"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
优惠券
"
/>
android:text=
"
@string/vip_ticket
"
/>
<TextView
<TextView
android:id=
"@+id/ticket_Count"
android:id=
"@+id/ticket_Count"
style=
"@style/default_blacktext_bigstyle"
style=
"@style/default_blacktext_bigstyle"
...
@@ -127,20 +126,20 @@
...
@@ -127,20 +126,20 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"@color/reddeep"
/>
android:textColor=
"@color/reddeep"
/>
</LinearLayout>
</LinearLayout>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:gravity=
"center_horizontal"
android:gravity=
"center_horizontal"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<TextView
<TextView
style=
"@style/default_blacktext_smallstyle"
style=
"@style/default_blacktext_smallstyle"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
余额
"
/>
android:text=
"
@string/vip_balance
"
/>
<TextView
<TextView
android:id=
"@+id/AcctCbal"
android:id=
"@+id/AcctCbal"
style=
"@style/default_blacktext_bigstyle"
style=
"@style/default_blacktext_bigstyle"
...
@@ -148,21 +147,21 @@
...
@@ -148,21 +147,21 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"@color/reddeep"
/>
android:textColor=
"@color/reddeep"
/>
</LinearLayout>
</LinearLayout>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:gravity=
"center_horizontal"
android:gravity=
"center_horizontal"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<TextView
<TextView
style=
"@style/default_blacktext_smallstyle"
style=
"@style/default_blacktext_smallstyle"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
消费
"
/>
android:text=
"
@string/vip_spent
"
/>
<TextView
<TextView
android:id=
"@+id/Totalpamt"
android:id=
"@+id/Totalpamt"
style=
"@style/default_blacktext_bigstyle"
style=
"@style/default_blacktext_bigstyle"
...
@@ -171,43 +170,43 @@
...
@@ -171,43 +170,43 @@
android:textColor=
"@color/reddeep"
/>
android:textColor=
"@color/reddeep"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
<include
layout=
"@layout/line_layout"
/>
<include
layout=
"@layout/line_layout"
/>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@color/white"
android:background=
"@color/white"
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<TextView
<TextView
style=
"@style/default_blacktext_margin_16_sp_style"
style=
"@style/default_blacktext_margin_16_sp_style"
android:layout_width=
"74dp"
android:layout_width=
"74dp"
android:text=
"
级别:
"
/>
android:text=
"
@string/vip_level
"
/>
<TextView
<TextView
android:id=
"@+id/vipLevel"
android:id=
"@+id/vipLevel"
style=
"@style/default_blacktext_nopadding_smallstyle"
style=
"@style/default_blacktext_nopadding_smallstyle"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:textSize=
"@dimen/all_text_size"
/>
android:textSize=
"@dimen/all_text_size"
/>
</LinearLayout>
</LinearLayout>
<include
layout=
"@layout/line_layout_margin"
/>
<include
layout=
"@layout/line_layout_margin"
/>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@color/white"
android:background=
"@color/white"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<TextView
<TextView
style=
"@style/default_blacktext_margin_16_sp_style"
style=
"@style/default_blacktext_margin_16_sp_style"
android:layout_width=
"74dp"
android:layout_width=
"74dp"
android:text=
"
性别:
"
/>
android:text=
"
@string/vip_sex
"
/>
<TextView
<TextView
android:id=
"@+id/vipSex"
android:id=
"@+id/vipSex"
style=
"@style/default_blacktext_nopadding_smallstyle"
style=
"@style/default_blacktext_nopadding_smallstyle"
...
@@ -215,41 +214,41 @@
...
@@ -215,41 +214,41 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:textSize=
"@dimen/all_text_size"
/>
android:textSize=
"@dimen/all_text_size"
/>
</LinearLayout>
</LinearLayout>
<include
layout=
"@layout/line_layout_margin"
/>
<include
layout=
"@layout/line_layout_margin"
/>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@color/white"
android:background=
"@color/white"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<TextView
<TextView
style=
"@style/default_blacktext_margin_16_sp_style"
style=
"@style/default_blacktext_margin_16_sp_style"
android:layout_width=
"110dp"
android:layout_width=
"110dp"
android:text=
"
出生年月:
"
/>
android:text=
"
@string/vip_birthday
"
/>
<TextView
<TextView
android:id=
"@+id/vip_birthday"
android:id=
"@+id/vip_birthday"
style=
"@style/default_blacktext_nopadding_smallstyle"
style=
"@style/default_blacktext_nopadding_smallstyle"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
/>
android:layout_height=
"wrap_content"
/>
</LinearLayout>
</LinearLayout>
<include
layout=
"@layout/line_layout"
/>
<include
layout=
"@layout/line_layout"
/>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@color/white"
android:background=
"@color/white"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<TextView
<TextView
style=
"@style/default_blacktext_margin_16_sp_style"
style=
"@style/default_blacktext_margin_16_sp_style"
android:layout_width=
"110dp"
android:layout_width=
"110dp"
android:text=
"
注册日期:
"
/>
android:text=
"
@string/vip_record_date
"
/>
<TextView
<TextView
android:id=
"@+id/crt_time"
android:id=
"@+id/crt_time"
style=
"@style/default_blacktext_nopadding_smallstyle"
style=
"@style/default_blacktext_nopadding_smallstyle"
...
@@ -257,7 +256,7 @@
...
@@ -257,7 +256,7 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:gravity=
"center_vertical"
/>
android:gravity=
"center_vertical"
/>
</LinearLayout>
</LinearLayout>
<include
layout=
"@layout/line_layout"
/>
<include
layout=
"@layout/line_layout"
/>
</LinearLayout>
</LinearLayout>
...
...
app/src/main/res/layout/fragment_vip_info_edit.xml
View file @
ddd1dbb9
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<layout>
<layout
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<data>
<data>
<variable
<variable
name=
"onClickListener"
name=
"onClickListener"
type=
"android.view.View.OnClickListener"
/>
type=
"android.view.View.OnClickListener"
/>
</data>
</data>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/bg"
android:background=
"@color/bg"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<include
<include
android:id=
"@+id/info_title"
android:id=
"@+id/info_title"
layout=
"@layout/title_pop"
/>
layout=
"@layout/title_pop"
/>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/all_margin"
android:layout_marginTop=
"@dimen/all_margin"
android:background=
"@color/white"
android:background=
"@color/white"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<LinearLayout
<LinearLayout
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@color/white"
android:background=
"@color/white"
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<ImageView
<ImageView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:background=
"@mipmap/point"
/>
android:background=
"@mipmap/point"
/>
<TextView
<TextView
style=
"@style/default_blacktext_nopadding_smallstyle"
style=
"@style/default_blacktext_nopadding_smallstyle"
android:layout_width=
"70dp"
android:layout_width=
"70dp"
android:text=
"
姓名:
"
/>
android:text=
"
@string/vip_name
"
/>
<EditText
<EditText
android:id=
"@+id/vip_name"
android:id=
"@+id/vip_name"
style=
"@style/all_edittext_14sp_style"
style=
"@style/all_edittext_14sp_style"
...
@@ -56,30 +56,30 @@
...
@@ -56,30 +56,30 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:background=
"@null"
android:background=
"@null"
android:hint=
"
请输入姓名
"
/>
android:hint=
"
@string/vip_name_hint
"
/>
</LinearLayout>
</LinearLayout>
<include
layout=
"@layout/line_layout_margin_right"
></include>
<include
layout=
"@layout/line_layout_margin_right"
></include>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@color/white"
android:background=
"@color/white"
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<ImageView
<ImageView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:background=
"@mipmap/point"
/>
android:background=
"@mipmap/point"
/>
<TextView
<TextView
style=
"@style/default_blacktext_nopadding_smallstyle"
style=
"@style/default_blacktext_nopadding_smallstyle"
android:layout_width=
"70dp"
android:layout_width=
"70dp"
android:maxLength=
"11"
android:maxLength=
"11"
android:text=
"
手机:
"
/>
android:text=
"
@string/vip_phone
"
/>
<EditText
<EditText
android:id=
"@+id/vip_phone"
android:id=
"@+id/vip_phone"
style=
"@style/all_edittext_14sp_style"
style=
"@style/all_edittext_14sp_style"
...
@@ -87,13 +87,13 @@
...
@@ -87,13 +87,13 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@null"
android:background=
"@null"
android:digits=
"0123456789"
android:digits=
"0123456789"
android:hint=
"
请输入手机号
"
android:hint=
"
@string/vip_phone_hint
"
android:inputType=
"phone"
android:inputType=
"phone"
android:maxLength=
"11"
/>
android:maxLength=
"11"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
<ImageView
<ImageView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
...
@@ -101,29 +101,29 @@
...
@@ -101,29 +101,29 @@
android:layout_margin=
"@dimen/all_margin"
android:layout_margin=
"@dimen/all_margin"
android:background=
"@mipmap/iv_vip"
/>
android:background=
"@mipmap/iv_vip"
/>
</LinearLayout>
</LinearLayout>
<include
layout=
"@layout/line_layout"
></include>
<include
layout=
"@layout/line_layout"
></include>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@color/white"
android:background=
"@color/white"
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<ImageView
<ImageView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"@dimen/all_margin_left"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:layout_marginTop=
"@dimen/all_margin_left"
android:layout_marginTop=
"@dimen/all_margin_left"
android:layout_marginBottom=
"@dimen/all_margin_left"
android:background=
"@mipmap/point"
/>
android:background=
"@mipmap/point"
/>
<TextView
<TextView
style=
"@style/default_blacktext_nopadding_smallstyle"
style=
"@style/default_blacktext_nopadding_smallstyle"
android:layout_width=
"70dp"
android:layout_width=
"70dp"
android:text=
"
性别:
"
/>
android:text=
"
@string/vip_sex
"
/>
<RadioGroup
<RadioGroup
android:id=
"@+id/vip_sex"
android:id=
"@+id/vip_sex"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
...
@@ -132,73 +132,75 @@
...
@@ -132,73 +132,75 @@
android:layout_marginLeft=
"@dimen/all_margin_left"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<RadioButton
<RadioButton
android:layout_width=
"
50dp
"
android:layout_width=
"
wrap_content
"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@drawable/selector_checkbox_bg"
android:background=
"@drawable/selector_checkbox_bg"
android:button=
"@null"
android:button=
"@null"
android:paddingEnd=
"30dp"
android:tag=
"1"
android:tag=
"1"
android:text=
"
男
"
/>
android:text=
"
@string/vip_sex_male
"
/>
<RadioButton
<RadioButton
android:layout_width=
"
50dp
"
android:layout_width=
"
wrap_content
"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"45dp"
android:layout_marginLeft=
"45dp"
android:background=
"@drawable/selector_checkbox_bg"
android:background=
"@drawable/selector_checkbox_bg"
android:button=
"@null"
android:button=
"@null"
android:paddingEnd=
"30dp"
android:tag=
"0"
android:tag=
"0"
android:text=
"
女
"
/>
android:text=
"
@string/vip_sex_female
"
/>
</RadioGroup>
</RadioGroup>
</LinearLayout>
</LinearLayout>
<include
layout=
"@layout/line_layout"
></include>
<include
layout=
"@layout/line_layout"
></include>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@color/white"
android:background=
"@color/white"
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<ImageView
<ImageView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:background=
"@mipmap/point"
/>
android:background=
"@mipmap/point"
/>
<TextView
<TextView
style=
"@style/default_blacktext_nopadding_smallstyle"
style=
"@style/default_blacktext_nopadding_smallstyle"
android:layout_width=
"70dp"
android:layout_width=
"70dp"
android:text=
"
级别:
"
/>
android:text=
"
@string/vip_level
"
/>
<TextView
<TextView
android:id=
"@+id/vip_discounts"
android:id=
"@+id/vip_discounts"
style=
"@style/default_blacktext_nopadding_smallstyle"
style=
"@style/default_blacktext_nopadding_smallstyle"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_marginLeft=
"@dimen/sp_12"
android:layout_marginLeft=
"@dimen/sp_12"
android:layout_marginRight=
"100dp"
android:layout_marginRight=
"@dimen/all_margin"
android:onClick=
"@{onClickListener}"
android:drawableRight=
"@mipmap/ic_expand"
android:drawableRight=
"@mipmap/ic_expand"
android:gravity=
"center_vertical"
/>
android:gravity=
"center_vertical"
android:onClick=
"@{onClickListener}"
/>
</LinearLayout>
</LinearLayout>
<include
layout=
"@layout/line_layout"
></include>
<include
layout=
"@layout/line_layout"
></include>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"12dp"
android:layout_marginTop=
"12dp"
android:background=
"@color/white"
android:background=
"@color/white"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<TextView
<TextView
style=
"@style/default_blacktext_margin_16_sp_style"
style=
"@style/default_blacktext_margin_16_sp_style"
android:layout_width=
"110dp"
android:layout_width=
"110dp"
android:layout_marginLeft=
"13dp"
android:layout_marginLeft=
"13dp"
android:text=
"
出生年月:
"
/>
android:text=
"
@string/vip_birthday
"
/>
<!--<TextView-->
<!--<TextView-->
<!--android:id="@+id/vip_birthday"-->
<!--android:id="@+id/vip_birthday"-->
<!--style="@style/default_blacktext_nopadding_smallstyle"-->
<!--style="@style/default_blacktext_nopadding_smallstyle"-->
...
@@ -212,28 +214,28 @@
...
@@ -212,28 +214,28 @@
style=
"@style/default_blacktext_nopadding_smallstyle"
style=
"@style/default_blacktext_nopadding_smallstyle"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_marginLeft=
"@dimen/sp_12"
android:layout_marginLeft=
"@dimen/sp_12"
android:onClick=
"@{onClickListener}"
android:layout_marginRight=
"@dimen/all_margin"
android:layout_marginRight=
"100dp"
android:drawableRight=
"@mipmap/ic_expand"
android:drawableRight=
"@mipmap/ic_expand"
android:gravity=
"center_vertical"
/>
android:gravity=
"center_vertical"
android:onClick=
"@{onClickListener}"
/>
</LinearLayout>
</LinearLayout>
<include
layout=
"@layout/line_layout"
></include>
<include
layout=
"@layout/line_layout"
></include>
<RelativeLayout
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_marginBottom=
"@dimen/all_margin_left"
android:layout_marginBottom=
"@dimen/all_margin_left"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<Button
<Button
android:id=
"@+id/onSure"
android:id=
"@+id/onSure"
style=
"@style/button_positive_noradius"
style=
"@style/button_positive_noradius"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_alignParentBottom=
"true"
android:layout_alignParentBottom=
"true"
android:onClick=
"@{onClickListener}"
android:onClick=
"@{onClickListener}"
android:text=
"
确认
"
/>
android:text=
"
@string/all_confirm
"
/>
</RelativeLayout>
</RelativeLayout>
</LinearLayout>
</LinearLayout>
...
...
app/src/main/res/layout/fragment_vip_level_edit.xml
View file @
ddd1dbb9
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<layout>
<layout>
<data>
<data>
<variable
<variable
name=
"onClickListener"
name=
"onClickListener"
type=
"android.view.View.OnClickListener"
/>
type=
"android.view.View.OnClickListener"
/>
</data>
</data>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/bg"
android:background=
"@color/bg"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<include
<include
android:id=
"@+id/info_title"
android:id=
"@+id/info_title"
layout=
"@layout/title_pop"
/>
layout=
"@layout/title_pop"
/>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_margin=
"12sp"
android:layout_margin=
"12sp"
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<TextView
<TextView
style=
"@style/default_blacktext_bigstyle"
style=
"@style/default_blacktext_bigstyle"
android:layout_width=
"90dp"
android:layout_width=
"90dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"@string/all_baseinfo"
/>
android:text=
"@string/all_baseinfo"
/>
</LinearLayout>
</LinearLayout>
<include
layout=
"@layout/line_layout"
></include>
<include
layout=
"@layout/line_layout"
></include>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@color/white"
android:background=
"@color/white"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"48dp"
android:layout_height=
"48dp"
android:background=
"@color/white"
android:background=
"@color/white"
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<ImageView
<ImageView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:background=
"@mipmap/point"
/>
android:background=
"@mipmap/point"
/>
<TextView
<TextView
style=
"@style/default_blacktext_nopadding_smallstyle"
style=
"@style/default_blacktext_nopadding_smallstyle"
android:layout_width=
"90dp"
android:layout_width=
"90dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
等级名称:
"
/>
android:text=
"
@string/level_name
"
/>
<EditText
<EditText
android:id=
"@+id/level_name"
android:id=
"@+id/level_name"
style=
"@style/dialog_edit"
style=
"@style/dialog_edit"
...
@@ -71,30 +72,31 @@
...
@@ -71,30 +72,31 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:background=
"@null"
android:background=
"@null"
android:hint=
"
请输入等级名称
"
/>
android:hint=
"
@string/level_name_hint
"
/>
</LinearLayout>
</LinearLayout>
<include
layout=
"@layout/line_layout_margin"
></include>
<include
layout=
"@layout/line_layout_margin"
></include>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"48dp"
android:layout_height=
"48dp"
android:background=
"@color/white"
android:background=
"@color/white"
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<ImageView
<ImageView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:background=
"@mipmap/point"
/>
android:background=
"@mipmap/point"
/>
<TextView
<TextView
style=
"@style/default_blacktext_nopadding_smallstyle"
style=
"@style/default_blacktext_nopadding_smallstyle"
android:layout_width=
"90dp"
android:layout_width=
"90dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:maxLength=
"11"
android:maxLength=
"11"
android:text=
"
折扣设置:
"
/>
android:text=
"
@string/level_dis
"
/>
<EditText
<EditText
android:id=
"@+id/level_discont"
android:id=
"@+id/level_discont"
style=
"@style/dialog_edit"
style=
"@style/dialog_edit"
...
@@ -105,85 +107,84 @@
...
@@ -105,85 +107,84 @@
android:hint=
"%"
android:hint=
"%"
android:inputType=
"numberSigned"
android:inputType=
"numberSigned"
android:maxLength=
"3"
/>
android:maxLength=
"3"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
<include
layout=
"@layout/line_layout"
></include>
<include
layout=
"@layout/line_layout"
></include>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_margin=
"12sp"
android:layout_margin=
"12sp"
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<TextView
<TextView
style=
"@style/default_blacktext_bigstyle"
style=
"@style/default_blacktext_bigstyle"
android:layout_width=
"90dp"
android:layout_width=
"90dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
本级标准
"
/>
android:text=
"
@string/level_promotion
"
/>
</LinearLayout>
</LinearLayout>
<include
layout=
"@layout/line_layout"
></include>
<include
layout=
"@layout/line_layout"
></include>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"48dp"
android:layout_height=
"48dp"
android:background=
"@color/white"
android:background=
"@color/white"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<TextView
<TextView
style=
"@style/default_blacktext_margin_smallstyle"
style=
"@style/default_blacktext_margin_smallstyle"
android:layout_width=
"90dp"
android:layout_width=
"90dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:text=
"
最近:
"
/>
android:text=
"
@string/level_pro_date
"
/>
<EditText
<EditText
android:id=
"@+id/update_day"
android:id=
"@+id/update_day"
style=
"@style/dialog_edit"
style=
"@style/dialog_edit"
android:text=
""
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:background=
"@null"
android:background=
"@null"
android:digits=
"0123456789"
android:digits=
"0123456789"
android:inputType=
"phone"
android:inputType=
"phone"
android:maxLength=
"3"
/>
android:maxLength=
"3"
android:text=
""
/>
<TextView
<TextView
style=
"@style/default_blacktext_margin_smallstyle"
style=
"@style/default_blacktext_margin_smallstyle"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:text=
"
天
"
/>
android:text=
"
@string/level_pro_day
"
/>
</LinearLayout>
</LinearLayout>
<include
layout=
"@layout/line_layout_margin"
></include>
<include
layout=
"@layout/line_layout_margin"
></include>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"48dp"
android:layout_height=
"48dp"
android:background=
"@color/white"
android:background=
"@color/white"
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<ImageView
<ImageView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:background=
"@mipmap/point"
/>
android:background=
"@mipmap/point"
/>
<TextView
<TextView
style=
"@style/default_blacktext_nopadding_smallstyle"
style=
"@style/default_blacktext_nopadding_smallstyle"
android:layout_width=
"90dp"
android:layout_width=
"90dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"@string/level_pro_amt"
/>
android:text=
"消费金额:"
/>
<EditText
<EditText
android:id=
"@+id/update_money"
android:id=
"@+id/update_money"
style=
"@style/dialog_edit"
style=
"@style/dialog_edit"
...
@@ -194,28 +195,28 @@
...
@@ -194,28 +195,28 @@
android:digits=
"0123456789"
android:digits=
"0123456789"
android:inputType=
"phone"
android:inputType=
"phone"
android:maxLength=
"8"
/>
android:maxLength=
"8"
/>
<TextView
<TextView
style=
"@style/default_blacktext_margin_smallstyle"
style=
"@style/default_blacktext_margin_smallstyle"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:text=
"
元
"
/>
android:text=
"
@string/unit_rmb_yuan
"
/>
</LinearLayout>
</LinearLayout>
<include
layout=
"@layout/line_layout"
></include>
<include
layout=
"@layout/line_layout"
/>
<RelativeLayout
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_marginBottom=
"@dimen/all_margin_left"
>
android:layout_marginBottom=
"@dimen/all_margin_left"
>
<Button
<Button
android:id=
"@+id/onSure"
android:id=
"@+id/onSure"
style=
"@style/button_positive_noradius"
style=
"@style/button_positive_noradius"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_alignParentBottom=
"true"
android:layout_alignParentBottom=
"true"
android:onClick=
"@{onClickListener}"
android:onClick=
"@{onClickListener}"
android:text=
"确认"
/>
android:text=
"@string/all_confirm"
/>
</RelativeLayout>
</RelativeLayout>
</LinearLayout>
</LinearLayout>
...
...
app/src/main/res/layout/fragment_vip_list.xml
View file @
ddd1dbb9
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<layout>
<layout>
<data>
<data>
<variable
<variable
name=
"onClickListener"
name=
"onClickListener"
type=
"android.view.View.OnClickListener"
/>
type=
"android.view.View.OnClickListener"
/>
</data>
</data>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/gray_zhouyu"
android:background=
"@color/gray_zhouyu"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<include
<include
android:id=
"@+id/title_layout"
android:id=
"@+id/title_layout"
layout=
"@layout/title"
/>
layout=
"@layout/title"
/>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"?attr/actionBarSize"
android:layout_height=
"?attr/actionBarSize"
android:background=
"@drawable/up_down_line_white_bottom"
android:background=
"@drawable/up_down_line_white_bottom"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<include
<include
android:id=
"@+id/title_search"
android:id=
"@+id/title_search"
layout=
"@layout/title_search"
layout=
"@layout/title_search"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_weight=
"1"
/>
android:layout_weight=
"1"
/>
<ImageView
<ImageView
android:layout_width=
"50dp"
android:layout_width=
"50dp"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@mipmap/swipe_card_bg"
android:background=
"@mipmap/swipe_card_bg"
android:visibility=
"gone"
/>
android:visibility=
"gone"
/>
<ImageView
<ImageView
android:id=
"@+id/onScan"
android:id=
"@+id/onScan"
android:layout_width=
"50dp"
android:layout_width=
"50dp"
...
@@ -45,14 +45,14 @@
...
@@ -45,14 +45,14 @@
android:onClick=
"@{onClickListener}"
android:onClick=
"@{onClickListener}"
android:visibility=
"gone"
/>
android:visibility=
"gone"
/>
</LinearLayout>
</LinearLayout>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@color/white"
android:background=
"@color/white"
android:orientation=
"horizontal"
android:orientation=
"horizontal"
android:paddingTop=
"@dimen/all_margin_left"
>
android:paddingTop=
"@dimen/all_margin_left"
>
<TextView
<TextView
android:id=
"@+id/vip_count_title"
android:id=
"@+id/vip_count_title"
style=
"@style/default_blacktext_smallstyle"
style=
"@style/default_blacktext_smallstyle"
...
@@ -60,8 +60,8 @@
...
@@ -60,8 +60,8 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:gravity=
"center"
android:gravity=
"center"
android:text=
"
本店会员
"
/>
android:text=
"
@string/member_total_cnt
"
/>
<TextView
<TextView
android:id=
"@+id/vip_count_add_today_title"
android:id=
"@+id/vip_count_add_today_title"
style=
"@style/default_blacktext_smallstyle"
style=
"@style/default_blacktext_smallstyle"
...
@@ -69,16 +69,16 @@
...
@@ -69,16 +69,16 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:gravity=
"center"
android:gravity=
"center"
android:text=
"
今日新增
"
/>
android:text=
"
@string/member_today_cnt
"
/>
</LinearLayout>
</LinearLayout>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@color/white"
android:background=
"@color/white"
android:orientation=
"horizontal"
android:orientation=
"horizontal"
android:paddingBottom=
"@dimen/all_margin_left"
>
android:paddingBottom=
"@dimen/all_margin_left"
>
<TextView
<TextView
android:id=
"@+id/vip_count"
android:id=
"@+id/vip_count"
style=
"@style/default_blacktext_bigstyle"
style=
"@style/default_blacktext_bigstyle"
...
@@ -88,7 +88,7 @@
...
@@ -88,7 +88,7 @@
android:gravity=
"center"
android:gravity=
"center"
android:textSize=
"22sp"
android:textSize=
"22sp"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
/>
<TextView
<TextView
android:id=
"@+id/vip_count_add_today"
android:id=
"@+id/vip_count_add_today"
style=
"@style/default_blacktext_bigstyle"
style=
"@style/default_blacktext_bigstyle"
...
@@ -99,10 +99,10 @@
...
@@ -99,10 +99,10 @@
android:textSize=
"22sp"
android:textSize=
"22sp"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
/>
</LinearLayout>
</LinearLayout>
<include
layout=
"@layout/line_layout"
/>
<include
layout=
"@layout/line_layout"
/>
<LinearLayout
<LinearLayout
android:id=
"@+id/addVipLinearLayout"
android:id=
"@+id/addVipLinearLayout"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
...
@@ -111,9 +111,9 @@
...
@@ -111,9 +111,9 @@
android:background=
"@color/white"
android:background=
"@color/white"
android:gravity=
"center"
android:gravity=
"center"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<include
layout=
"@layout/line_layout"
/>
<include
layout=
"@layout/line_layout"
/>
<LinearLayout
<LinearLayout
android:id=
"@+id/addVip"
android:id=
"@+id/addVip"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
...
@@ -121,36 +121,37 @@
...
@@ -121,36 +121,37 @@
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:onClick=
"@{onClickListener}"
android:onClick=
"@{onClickListener}"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<ImageButton
<ImageButton
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:layout_gravity=
"center_vertical"
android:layout_margin=
"5dp"
android:layout_margin=
"5dp"
android:background=
"@mipmap/add_bg"
/>
android:background=
"@mipmap/add_bg"
/>
<TextView
<TextView
style=
"@style/default_blacktext_bigstyle"
style=
"@style/default_blacktext_bigstyle"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
添加会员
"
android:text=
"
@string/vip_add_title
"
android:textColor=
"@color/deep_red"
android:textColor=
"@color/deep_red"
android:textSize=
"22sp"
/>
android:textSize=
"22sp"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
<include
layout=
"@layout/line_layout"
/>
<include
layout=
"@layout/line_layout"
/>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_weight=
"3"
>
android:layout_weight=
"3"
>
<RadioGroup
<RadioGroup
android:id=
"@+id/vip_level_R"
android:id=
"@+id/vip_level_R"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
...
@@ -158,18 +159,18 @@
...
@@ -158,18 +159,18 @@
android:gravity=
"center"
android:gravity=
"center"
android:orientation=
"vertical"
></RadioGroup>
android:orientation=
"vertical"
></RadioGroup>
</LinearLayout>
</LinearLayout>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_weight=
"1"
>
android:layout_weight=
"1"
>
<android.support.v4.widget.SwipeRefreshLayout
<android.support.v4.widget.SwipeRefreshLayout
android:id=
"@+id/vip_refresh"
android:id=
"@+id/vip_refresh"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
android:layout_height=
"match_parent"
>
<android.support.v7.widget.RecyclerView
<android.support.v7.widget.RecyclerView
android:id=
"@+id/vipRecyclerView"
android:id=
"@+id/vipRecyclerView"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
...
...
app/src/main/res/layout/fragment_vip_mscard_list.xml
View file @
ddd1dbb9
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<layout>
<layout>
<data>
<data>
<variable
<variable
name=
"onClickListener"
name=
"onClickListener"
type=
"com.xingdata.zzdpos.util.OnClickListener"
/>
type=
"com.xingdata.zzdpos.util.OnClickListener"
/>
</data>
</data>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/bg"
android:background=
"@color/bg"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<include
<include
android:id=
"@+id/info_title"
android:id=
"@+id/info_title"
layout=
"@layout/title_pop"
/>
layout=
"@layout/title_pop"
/>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@color/white"
android:background=
"@color/white"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<ImageView
<ImageView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:layout_gravity=
"center_vertical"
android:layout_marginLeft=
"@dimen/all_margin"
android:layout_marginLeft=
"@dimen/all_margin"
android:background=
"@mipmap/iv_vip"
/>
android:background=
"@mipmap/iv_vip"
/>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
...
@@ -39,13 +39,13 @@
...
@@ -39,13 +39,13 @@
android:layout_weight=
"1"
android:layout_weight=
"1"
android:background=
"@color/white"
android:background=
"@color/white"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<TextView
<TextView
android:id=
"@+id/vip_name"
android:id=
"@+id/vip_name"
style=
"@style/default_blacktext_bigstyle"
style=
"@style/default_blacktext_bigstyle"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
/>
android:layout_height=
"wrap_content"
/>
<TextView
<TextView
android:id=
"@+id/vip_mobile"
android:id=
"@+id/vip_mobile"
style=
"@style/default_blacktext_nopadding_smallstyle"
style=
"@style/default_blacktext_nopadding_smallstyle"
...
@@ -54,39 +54,38 @@
...
@@ -54,39 +54,38 @@
android:layout_marginLeft=
"0dp"
android:layout_marginLeft=
"0dp"
android:textColor=
"@color/black"
/>
android:textColor=
"@color/black"
/>
</LinearLayout>
</LinearLayout>
<TextView
<TextView
android:id=
"@+id/vip_discount"
android:id=
"@+id/vip_discount"
style=
"@style/default_blacktext_smallstyle"
style=
"@style/default_blacktext_smallstyle"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:layout_gravity=
"center_vertical"
android:layout_margin=
"@dimen/all_margin"
android:layout_margin=
"@dimen/all_margin"
/>
android:text=
"@string/vip_info_discount"
/>
</LinearLayout>
</LinearLayout>
<include
layout=
"@layout/line_layout"
/>
<include
layout=
"@layout/line_layout"
/>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@color/white"
android:background=
"@color/white"
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:gravity=
"center_horizontal"
android:gravity=
"center_horizontal"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<TextView
<TextView
style=
"@style/default_blacktext_smallstyle"
style=
"@style/default_blacktext_smallstyle"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
可用优惠卷
"
/>
android:text=
"
@string/usable_coupon
"
/>
<TextView
<TextView
android:id=
"@+id/mscard_valid"
android:id=
"@+id/mscard_valid"
style=
"@style/default_blacktext_bigstyle"
style=
"@style/default_blacktext_bigstyle"
...
@@ -94,25 +93,25 @@
...
@@ -94,25 +93,25 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"@color/reddeep"
/>
android:textColor=
"@color/reddeep"
/>
</LinearLayout>
</LinearLayout>
<View
<View
android:layout_width=
"1dp"
android:layout_width=
"1dp"
android:layout_height=
"40dp"
android:layout_height=
"40dp"
android:background=
"@color/line_bg"
></View>
android:background=
"@color/line_bg"
></View>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:gravity=
"center_horizontal"
android:gravity=
"center_horizontal"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<TextView
<TextView
style=
"@style/default_blacktext_smallstyle"
style=
"@style/default_blacktext_smallstyle"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
不可用优惠卷
"
/>
android:text=
"
@string/usable_coupon
"
/>
<TextView
<TextView
android:id=
"@+id/macard_invalid"
android:id=
"@+id/macard_invalid"
style=
"@style/default_blacktext_bigstyle"
style=
"@style/default_blacktext_bigstyle"
...
@@ -121,21 +120,21 @@
...
@@ -121,21 +120,21 @@
android:textColor=
"@color/reddeep"
/>
android:textColor=
"@color/reddeep"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
<include
layout=
"@layout/line_layout"
/>
<include
layout=
"@layout/line_layout"
/>
<android.support.v4.widget.SwipeRefreshLayout
<android.support.v4.widget.SwipeRefreshLayout
android:layout_marginTop=
"@dimen/all_margin"
android:id=
"@+id/recharge_refresh"
android:id=
"@+id/recharge_refresh"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
android:layout_height=
"match_parent"
android:layout_marginTop=
"@dimen/all_margin"
>
<android.support.v7.widget.RecyclerView
<android.support.v7.widget.RecyclerView
android:id=
"@+id/rechargeRecyclerView"
android:id=
"@+id/rechargeRecyclerView"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
/>
android:layout_height=
"match_parent"
/>
</android.support.v4.widget.SwipeRefreshLayout>
</android.support.v4.widget.SwipeRefreshLayout>
</LinearLayout>
</LinearLayout>
</layout>
</layout>
\ No newline at end of file
app/src/main/res/layout/fragment_vip_recharge.xml
View file @
ddd1dbb9
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<layout>
<layout>
<data>
<data>
<variable
<variable
name=
"onClickListener"
name=
"onClickListener"
type=
"com.xingdata.zzdpos.util.OnClickListener"
/>
type=
"com.xingdata.zzdpos.util.OnClickListener"
/>
<variable
<variable
name=
"onCheckedChangeListener"
name=
"onCheckedChangeListener"
type=
"android.widget.RadioGroup.OnCheckedChangeListener"
/>
type=
"android.widget.RadioGroup.OnCheckedChangeListener"
/>
</data>
</data>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/bg"
android:background=
"@color/bg"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<include
<include
android:id=
"@+id/info_title"
android:id=
"@+id/info_title"
layout=
"@layout/title_pop"
/>
layout=
"@layout/title_pop"
/>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"72dp"
android:layout_height=
"72dp"
android:background=
"@color/white"
android:background=
"@color/white"
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<ImageView
<ImageView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
...
@@ -36,20 +36,20 @@
...
@@ -36,20 +36,20 @@
android:layout_marginLeft=
"@dimen/all_margin_left"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:layout_marginRight=
"@dimen/all_margin_left"
android:layout_marginRight=
"@dimen/all_margin_left"
android:background=
"@mipmap/iv_vip"
/>
android:background=
"@mipmap/iv_vip"
/>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:background=
"@color/white"
android:background=
"@color/white"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<TextView
<TextView
android:id=
"@+id/vip_name"
android:id=
"@+id/vip_name"
style=
"@style/default_blacktext_bigstyle"
style=
"@style/default_blacktext_bigstyle"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
/>
android:layout_height=
"wrap_content"
/>
<TextView
<TextView
android:id=
"@+id/vip_mobile"
android:id=
"@+id/vip_mobile"
style=
"@style/default_blacktext_nopadding_smallstyle"
style=
"@style/default_blacktext_nopadding_smallstyle"
...
@@ -57,7 +57,7 @@
...
@@ -57,7 +57,7 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"@color/black"
/>
android:textColor=
"@color/black"
/>
</LinearLayout>
</LinearLayout>
<TextView
<TextView
android:id=
"@+id/vip_balance"
android:id=
"@+id/vip_balance"
style=
"@style/default_blacktext_smallstyle"
style=
"@style/default_blacktext_smallstyle"
...
@@ -67,27 +67,27 @@
...
@@ -67,27 +67,27 @@
android:layout_margin=
"@dimen/all_margin"
android:layout_margin=
"@dimen/all_margin"
android:text=
"@string/vip_balance_text"
/>
android:text=
"@string/vip_balance_text"
/>
</LinearLayout>
</LinearLayout>
<include
layout=
"@layout/line_layout"
/>
<include
layout=
"@layout/line_layout"
/>
<View
<View
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"@dimen/all_margin_left"
/>
android:layout_height=
"@dimen/all_margin_left"
/>
<include
layout=
"@layout/line_layout"
/>
<include
layout=
"@layout/line_layout"
/>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@color/white"
>
android:background=
"@color/white"
>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_margin=
"@dimen/all_margin_left"
android:layout_margin=
"@dimen/all_margin_left"
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<RadioGroup
<RadioGroup
android:id=
"@+id/pay_money_layout"
android:id=
"@+id/pay_money_layout"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
...
@@ -96,34 +96,33 @@
...
@@ -96,34 +96,33 @@
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:onCheckedChanged=
"@{onCheckedChangeListener}"
android:onCheckedChanged=
"@{onCheckedChangeListener}"
android:orientation=
"horizontal"
></RadioGroup>
android:orientation=
"horizontal"
></RadioGroup>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<LinearLayout
<LinearLayout
android:layout_marginLeft=
"8dp"
android:id=
"@+id/stealLayout"
android:id=
"@+id/stealLayout"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"50dp"
android:layout_height=
"50dp"
android:layout_marginLeft=
"8dp"
android:layout_marginRight=
"10dp"
android:layout_marginRight=
"10dp"
android:layout_weight=
"2"
android:background=
"@drawable/selector_paymoney_radiobutton_bg"
android:background=
"@drawable/selector_paymoney_radiobutton_bg"
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<TextView
<TextView
style=
"@style/default_blacktext_bigstyle"
style=
"@style/default_blacktext_bigstyle"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
充:
"
android:text=
"
@string/menu_recharge
"
android:textSize=
"20sp"
/>
android:textSize=
"20sp"
/>
<EditText
<EditText
android:id=
"@+id/steal_money"
android:id=
"@+id/steal_money"
style=
"@style/dialog_edit"
style=
"@style/dialog_edit"
android:layout_width=
"
wrap_cont
ent"
android:layout_width=
"
match_par
ent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:layout_gravity=
"center_vertical"
android:background=
"@null"
android:background=
"@null"
...
@@ -134,7 +133,7 @@
...
@@ -134,7 +133,7 @@
android:singleLine=
"true"
android:singleLine=
"true"
android:textCursorDrawable=
"@null"
/>
android:textCursorDrawable=
"@null"
/>
</LinearLayout>
</LinearLayout>
<View
<View
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"1dp"
android:layout_height=
"1dp"
...
@@ -142,28 +141,28 @@
...
@@ -142,28 +141,28 @@
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
<include
layout=
"@layout/line_layout"
/>
<include
layout=
"@layout/line_layout"
/>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@color/white"
android:background=
"@color/white"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<LinearLayout
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
>
android:layout_weight=
"1"
>
<TextView
<TextView
style=
"@style/textView_body"
style=
"@style/textView_body"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:layout_marginRight=
"@dimen/all_margin_left"
android:layout_marginRight=
"@dimen/all_margin_left"
android:text=
"
送:
"
/>
android:text=
"
@string/bonus
"
/>
<TextView
<TextView
android:id=
"@+id/sendAmt"
android:id=
"@+id/sendAmt"
style=
"@style/textView_body"
style=
"@style/textView_body"
...
@@ -172,19 +171,19 @@
...
@@ -172,19 +171,19 @@
android:text=
"0"
android:text=
"0"
android:textColor=
"@color/deep_red"
/>
android:textColor=
"@color/deep_red"
/>
</LinearLayout>
</LinearLayout>
<LinearLayout
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
>
android:layout_weight=
"1"
>
<TextView
<TextView
style=
"@style/textView_body"
style=
"@style/textView_body"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"20dp"
android:layout_marginLeft=
"20dp"
android:text=
"
实际到帐:
"
/>
android:text=
"
@string/total_money
"
/>
<TextView
<TextView
android:id=
"@+id/recargeAccount"
android:id=
"@+id/recargeAccount"
style=
"@style/textView_body"
style=
"@style/textView_body"
...
@@ -193,21 +192,21 @@
...
@@ -193,21 +192,21 @@
android:text=
"0"
/>
android:text=
"0"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
<include
layout=
"@layout/line_layout"
/>
<include
layout=
"@layout/line_layout"
/>
<View
<View
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"@dimen/all_margin_left"
/>
android:layout_height=
"@dimen/all_margin_left"
/>
<include
layout=
"@layout/line_layout"
/>
<include
layout=
"@layout/line_layout"
/>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@color/white"
android:background=
"@color/white"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<TextView
<TextView
style=
"@style/textView_body"
style=
"@style/textView_body"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
...
@@ -215,8 +214,8 @@
...
@@ -215,8 +214,8 @@
android:layout_marginLeft=
"@dimen/all_margin_left"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:layout_marginRight=
"@dimen/all_margin_left"
android:layout_marginRight=
"@dimen/all_margin_left"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:text=
"
充值金额:
"
/>
android:text=
"
@string/menu_recharge
"
/>
<TextView
<TextView
android:id=
"@+id/rechargAMT"
android:id=
"@+id/rechargAMT"
style=
"@style/textView_body"
style=
"@style/textView_body"
...
@@ -228,9 +227,9 @@
...
@@ -228,9 +227,9 @@
android:textColor=
"@color/deep_red"
android:textColor=
"@color/deep_red"
android:textSize=
"@dimen/sbig_text_size"
/>
android:textSize=
"@dimen/sbig_text_size"
/>
</LinearLayout>
</LinearLayout>
<include
layout=
"@layout/line_layout"
/>
<include
layout=
"@layout/line_layout"
/>
<android.support.v7.widget.RecyclerView
<android.support.v7.widget.RecyclerView
android:id=
"@+id/rl_pay"
android:id=
"@+id/rl_pay"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
...
...
app/src/main/res/layout/fragment_vip_recharge_list.xml
View file @
ddd1dbb9
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<layout>
<layout>
<data>
<data>
<variable
<variable
name=
"onClickListener"
name=
"onClickListener"
type=
"com.xingdata.zzdpos.util.OnClickListener"
/>
type=
"com.xingdata.zzdpos.util.OnClickListener"
/>
</data>
</data>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/bg"
android:background=
"@color/bg"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<include
<include
android:id=
"@+id/info_title"
android:id=
"@+id/info_title"
layout=
"@layout/title_pop"
/>
layout=
"@layout/title_pop"
/>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"72dp"
android:layout_height=
"72dp"
android:background=
"@color/white"
android:background=
"@color/white"
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<ImageView
<ImageView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
...
@@ -32,20 +32,20 @@
...
@@ -32,20 +32,20 @@
android:layout_marginLeft=
"@dimen/all_margin_left"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:layout_marginRight=
"@dimen/all_margin_left"
android:layout_marginRight=
"@dimen/all_margin_left"
android:background=
"@mipmap/iv_vip"
/>
android:background=
"@mipmap/iv_vip"
/>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:background=
"@color/white"
android:background=
"@color/white"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<TextView
<TextView
android:id=
"@+id/vip_name"
android:id=
"@+id/vip_name"
style=
"@style/default_blacktext_bigstyle"
style=
"@style/default_blacktext_bigstyle"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
/>
android:layout_height=
"wrap_content"
/>
<TextView
<TextView
android:id=
"@+id/vip_mobile"
android:id=
"@+id/vip_mobile"
style=
"@style/default_blacktext_nopadding_smallstyle"
style=
"@style/default_blacktext_nopadding_smallstyle"
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
android:layout_marginLeft=
"0dp"
android:layout_marginLeft=
"0dp"
android:textColor=
"@color/black"
/>
android:textColor=
"@color/black"
/>
</LinearLayout>
</LinearLayout>
<TextView
<TextView
android:id=
"@+id/vip_discount"
android:id=
"@+id/vip_discount"
style=
"@style/default_blacktext_smallstyle"
style=
"@style/default_blacktext_smallstyle"
...
@@ -64,29 +64,29 @@
...
@@ -64,29 +64,29 @@
android:layout_margin=
"@dimen/all_margin"
android:layout_margin=
"@dimen/all_margin"
android:text=
"@string/vip_info_discount"
/>
android:text=
"@string/vip_info_discount"
/>
</LinearLayout>
</LinearLayout>
<include
layout=
"@layout/line_layout"
/>
<include
layout=
"@layout/line_layout"
/>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@color/white"
android:background=
"@color/white"
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:gravity=
"center_horizontal"
android:gravity=
"center_horizontal"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<TextView
<TextView
style=
"@style/default_blacktext_smallstyle"
style=
"@style/default_blacktext_smallstyle"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
可用余额
"
/>
android:text=
"
@string/vip_balance
"
/>
<TextView
<TextView
android:id=
"@+id/balance_AMT"
android:id=
"@+id/balance_AMT"
style=
"@style/default_blacktext_bigstyle"
style=
"@style/default_blacktext_bigstyle"
...
@@ -95,25 +95,25 @@
...
@@ -95,25 +95,25 @@
android:text=
"0.00"
android:text=
"0.00"
android:textColor=
"@color/reddeep"
/>
android:textColor=
"@color/reddeep"
/>
</LinearLayout>
</LinearLayout>
<View
<View
android:layout_width=
"1dp"
android:layout_width=
"1dp"
android:layout_height=
"40dp"
android:layout_height=
"40dp"
android:background=
"@color/line_bg"
></View>
android:background=
"@color/line_bg"
></View>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:gravity=
"center_horizontal"
android:gravity=
"center_horizontal"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<TextView
<TextView
style=
"@style/default_blacktext_smallstyle"
style=
"@style/default_blacktext_smallstyle"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
累计充值
"
/>
android:text=
"
@string/total_recharge
"
/>
<TextView
<TextView
android:id=
"@+id/recharge_amt"
android:id=
"@+id/recharge_amt"
style=
"@style/default_blacktext_bigstyle"
style=
"@style/default_blacktext_bigstyle"
...
@@ -123,20 +123,20 @@
...
@@ -123,20 +123,20 @@
android:textColor=
"@color/reddeep"
/>
android:textColor=
"@color/reddeep"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
<include
layout=
"@layout/line_layout"
/>
<include
layout=
"@layout/line_layout"
/>
<android.support.v4.widget.SwipeRefreshLayout
<android.support.v4.widget.SwipeRefreshLayout
android:id=
"@+id/recharge_refresh"
android:id=
"@+id/recharge_refresh"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
android:layout_height=
"match_parent"
>
<android.support.v7.widget.RecyclerView
<android.support.v7.widget.RecyclerView
android:id=
"@+id/rechargeRecyclerView"
android:id=
"@+id/rechargeRecyclerView"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
/>
android:layout_height=
"match_parent"
/>
</android.support.v4.widget.SwipeRefreshLayout>
</android.support.v4.widget.SwipeRefreshLayout>
</LinearLayout>
</LinearLayout>
</layout>
</layout>
\ No newline at end of file
app/src/main/res/layout/item_recharge_rulel_list_item.xml
View file @
ddd1dbb9
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<layout>
<layout>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:layout_marginRight=
"@dimen/all_margin_left"
android:layout_marginTop=
"@dimen/all_margin_left"
android:layout_marginTop=
"@dimen/all_margin_left"
android:layout_marginRight=
"@dimen/all_margin_left"
android:background=
"@mipmap/recharge_rule"
android:background=
"@mipmap/recharge_rule"
android:gravity=
"center_horizontal"
android:gravity=
"center_horizontal"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<RelativeLayout
<RelativeLayout
android:layout_margin=
"@dimen/all_margin"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_margin=
"@dimen/all_margin"
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentTop=
"true"
android:layout_margin=
"@dimen/all_margin"
android:background=
"@mipmap/ic_filling"
/>
<TextView
<TextView
android:id=
"@+id/rule_name"
android:id=
"@+id/rule_name"
style=
"@style/default_blacktext_bigstyle"
style=
"@style/default_blacktext_bigstyle"
android:layout_width=
"
wrap_cont
ent"
android:layout_width=
"
match_par
ent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerHorizontal=
"true"
android:layout_centerHorizontal=
"true"
android:layout_centerVertical=
"true"
android:layout_centerVertical=
"true"
android:drawableStart=
"@mipmap/ic_filling"
android:drawablePadding=
"@dimen/all_margin"
android:singleLine=
"false"
android:text=
"@string/recharge_send"
/>
android:text=
"@string/recharge_send"
/>
</RelativeLayout>
</RelativeLayout>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
...
@@ -46,7 +42,7 @@
...
@@ -46,7 +42,7 @@
android:background=
"@mipmap/rule_time"
android:background=
"@mipmap/rule_time"
android:gravity=
"center"
android:gravity=
"center"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<TextView
<TextView
android:id=
"@+id/rule_validity"
android:id=
"@+id/rule_validity"
style=
"@style/textView_body_small"
style=
"@style/textView_body_small"
...
...
app/src/main/res/layout/item_replenishment.xml
View file @
ddd1dbb9
...
@@ -277,7 +277,7 @@
...
@@ -277,7 +277,7 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:padding=
"@dimen/dp_4"
android:padding=
"@dimen/dp_4"
android:text=
"
¥
"
android:text=
"
@string/money_rmb
"
android:textColor=
"@color/reddeep"
/>
android:textColor=
"@color/reddeep"
/>
<TextView
<TextView
...
...
app/src/main/res/layout/item_select_industry.xml
View file @
ddd1dbb9
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<layout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<layout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
>
>
<data>
<data>
<variable
<variable
name=
"OnClickListener"
name=
"OnClickListener"
type=
"com.xingdata.zzdpos.util.OnClickListener"
/>
type=
"com.xingdata.zzdpos.util.OnClickListener"
/>
</data>
</data>
<LinearLayout
<LinearLayout
android:id=
"@+id/cl_vip"
android:id=
"@+id/cl_vip"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:gravity=
"center"
android:gravity=
"center"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<TextView
<TextView
android:id=
"@+id/tv_item"
android:id=
"@+id/tv_item"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
...
@@ -26,17 +25,15 @@
...
@@ -26,17 +25,15 @@
android:drawableLeft=
"@mipmap/industry_market"
android:drawableLeft=
"@mipmap/industry_market"
android:gravity=
"center"
android:gravity=
"center"
android:maxEms=
"4"
android:maxEms=
"4"
android:maxLength=
"4"
android:padding=
"@dimen/all_padding"
android:padding=
"@dimen/all_padding"
android:singleLine=
"true"
android:singleLine=
"true"
android:text=
"超市"
android:textColor=
"@color/black_baozheng"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/et_textsize"
android:textSize=
"@dimen/et_textsize"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintLeft_toLeftOf=
"parent"
app:layout_constraintLeft_toLeftOf=
"parent"
app:layout_constraintRight_toRightOf=
"parent"
app:layout_constraintRight_toRightOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
app:layout_constraintTop_toTopOf=
"parent"
/>
<TextView
<TextView
android:id=
"@+id/tv_item_select"
android:id=
"@+id/tv_item_select"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
...
@@ -44,19 +41,15 @@
...
@@ -44,19 +41,15 @@
android:background=
"@drawable/black_border_zhouyu_02"
android:background=
"@drawable/black_border_zhouyu_02"
android:drawableLeft=
"@mipmap/industry_market"
android:drawableLeft=
"@mipmap/industry_market"
android:gravity=
"center"
android:gravity=
"center"
android:maxEms=
"4"
android:maxLength=
"4"
android:padding=
"@dimen/all_padding"
android:padding=
"@dimen/all_padding"
android:singleLine=
"true"
android:singleLine=
"true"
android:text=
"超市"
android:textColor=
"@color/white"
android:textColor=
"@color/white"
android:textSize=
"@dimen/et_textsize"
android:textSize=
"@dimen/et_textsize"
android:visibility=
"gone"
android:visibility=
"gone"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintLeft_toLeftOf=
"parent"
app:layout_constraintLeft_toLeftOf=
"parent"
app:layout_constraintRight_toRightOf=
"parent"
app:layout_constraintRight_toRightOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
app:layout_constraintTop_toTopOf=
"parent"
/>
</LinearLayout>
</LinearLayout>
</layout>
</layout>
...
...
app/src/main/res/layout/item_settle_ticket.xml
View file @
ddd1dbb9
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/all_spacing_min"
android:layout_marginTop=
"@dimen/all_spacing_min"
android:text=
"
¥
"
android:text=
"
@string/money_rmb
"
android:textColor=
"@color/white"
android:textColor=
"@color/white"
android:textSize=
"@dimen/all_text_size_low"
android:textSize=
"@dimen/all_text_size_low"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
/>
...
...
app/src/main/res/layout/item_vip_expense_item.xml
View file @
ddd1dbb9
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<layout>
<layout>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@color/white"
android:background=
"@color/white"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<include
layout=
"@layout/line_layout_margin_right"
></include>
<include
layout=
"@layout/line_layout_margin_right"
></include>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<ImageView
<ImageView
android:id=
"@+id/imgLeft"
android:id=
"@+id/imgLeft"
android:layout_width=
"45dp"
android:layout_width=
"45dp"
...
@@ -22,20 +22,20 @@
...
@@ -22,20 +22,20 @@
android:layout_marginLeft=
"@dimen/all_margin_left"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:layout_marginRight=
"@dimen/all_margin_left"
android:layout_marginRight=
"@dimen/all_margin_left"
android:background=
"@mipmap/pay_rmb"
/>
android:background=
"@mipmap/pay_rmb"
/>
<LinearLayout
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<TextView
<TextView
android:id=
"@+id/expense_type"
android:id=
"@+id/expense_type"
style=
"@style/default_blacktext_no_margin_smallstyle"
style=
"@style/default_blacktext_no_margin_smallstyle"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
现金
"
/>
android:text=
"
@string/settle_channel_cash
"
/>
<TextView
<TextView
android:id=
"@+id/expense_time"
android:id=
"@+id/expense_time"
style=
"@style/default_blacktext_no_margin_smallstyle"
style=
"@style/default_blacktext_no_margin_smallstyle"
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
android:textColor=
"@color/black_likui"
android:textColor=
"@color/black_likui"
android:textSize=
"@dimen/all_text_size_small_small"
/>
android:textSize=
"@dimen/all_text_size_small_small"
/>
</LinearLayout>
</LinearLayout>
<LinearLayout
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
android:layout_weight=
"1"
android:layout_weight=
"1"
android:gravity=
"right"
android:gravity=
"right"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<TextView
<TextView
android:id=
"@+id/expense_money"
android:id=
"@+id/expense_money"
style=
"@style/default_blacktext_no_margin_smallstyle"
style=
"@style/default_blacktext_no_margin_smallstyle"
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"0"
android:text=
"0"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
/>
<TextView
<TextView
android:id=
"@+id/expense_shop"
android:id=
"@+id/expense_shop"
style=
"@style/default_blacktext_no_margin_smallstyle"
style=
"@style/default_blacktext_no_margin_smallstyle"
...
@@ -71,12 +71,12 @@
...
@@ -71,12 +71,12 @@
android:text=
"门店"
android:text=
"门店"
android:textColor=
"@color/black_likui"
android:textColor=
"@color/black_likui"
android:textSize=
"@dimen/all_text_size_small_small"
/>
android:textSize=
"@dimen/all_text_size_small_small"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</layout>
</layout>
\ No newline at end of file
app/src/main/res/layout/item_vip_mscard_item.xml
View file @
ddd1dbb9
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
style=
"@style/default_whitetext_no_margin_smallstyle"
style=
"@style/default_whitetext_no_margin_smallstyle"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
¥
"
android:text=
"
@string/money_rmb
"
android:textSize=
"@dimen/all_text_size_low"
/>
android:textSize=
"@dimen/all_text_size_low"
/>
<TextView
<TextView
...
...
app/src/main/res/layout/title_search.xml
View file @
ddd1dbb9
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<layout>
<layout>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"?attr/actionBarSize"
android:layout_height=
"?attr/actionBarSize"
android:background=
"@drawable/singleline_white_gray"
android:background=
"@drawable/singleline_white_gray"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<EditText
<EditText
android:id=
"@+id/serchEditText"
android:id=
"@+id/serchEditText"
style=
"@style/searchBarEditor"
style=
"@style/searchBarEditor"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"30dp"
android:layout_height=
"30dp"
android:imeOptions=
"actionSearch"
android:layout_marginEnd=
"@dimen/all_padding"
android:layout_marginEnd=
"@dimen/all_padding"
android:drawablePadding=
"@dimen/all_padding"
android:drawablePadding=
"@dimen/all_padding"
android:hint=
"请输入手机号或会员姓名"
android:hint=
"@string/member_add_hint"
android:imeOptions=
"actionSearch"
android:textColor=
"@color/black_likui"
android:textColor=
"@color/black_likui"
android:textSize=
"@dimen/all_text_size_low"
/>
android:textSize=
"@dimen/all_text_size_low"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
...
...
app/src/main/res/layout/view_type_dis.xml
View file @
ddd1dbb9
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<layout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<layout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
>
xmlns:app=
"http://schemas.android.com/apk/res-auto"
>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@color/white_caocao"
android:background=
"@color/white_caocao"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"?attr/actionBarSize"
android:layout_height=
"wrap_content"
android:gravity=
"center_vertical"
android:paddingStart=
"@dimen/all_margin"
android:paddingEnd=
"@dimen/all_margin"
android:paddingEnd=
"@dimen/all_margin"
>
android:paddingStart=
"@dimen/all_margin"
>
<TextView
<TextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"
match_parent
"
android:layout_height=
"
?attr/actionBarSize
"
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:text=
"@string/ms_editor_user"
android:text=
"@string/ms_editor_user"
android:textColor=
"@color/black_baozheng"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/all_text_size"
/>
android:textSize=
"@dimen/all_text_size"
/>
<RadioGroup
<RadioGroup
android:id=
"@+id/rg_type"
android:id=
"@+id/rg_type"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"@dimen/all_margin"
android:layout_marginStart=
"@dimen/all_margin"
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:orientation=
"
horizont
al"
>
android:orientation=
"
vertic
al"
>
<RadioButton
<RadioButton
android:id=
"@+id/rb_dis"
android:id=
"@+id/rb_dis"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"
wrap_content
"
android:layout_height=
"
?attr/actionBarSize
"
android:checked=
"true"
android:checked=
"true"
android:text=
"@string/ms_type_dis"
/>
android:text=
"@string/ms_type_dis"
/>
<RadioButton
<RadioButton
android:id=
"@+id/rb_second"
android:id=
"@+id/rb_second"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"?attr/actionBarSize"
android:layout_marginStart=
"@dimen/all_margin"
android:text=
"@string/ms_type_second"
/>
android:text=
"@string/ms_type_second"
/>
</RadioGroup>
</RadioGroup>
</LinearLayout>
</LinearLayout>
<View
<View
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/all_line_width"
android:layout_height=
"@dimen/all_line_width"
android:layout_marginEnd=
"@dimen/all_margin"
android:layout_marginStart=
"@dimen/all_margin"
android:layout_marginStart=
"@dimen/all_margin"
android:layout_marginEnd=
"@dimen/all_margin"
android:background=
"@color/gray_kongming"
/>
android:background=
"@color/gray_kongming"
/>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"?attr/actionBarSize"
android:layout_height=
"?attr/actionBarSize"
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:padding
End=
"@dimen/all_margin
"
android:padding
Start=
"@null
"
android:padding
Start=
"@null
"
>
android:padding
End=
"@dimen/all_margin
"
>
<ImageView
<ImageView
android:layout_width=
"@dimen/all_margin"
android:layout_width=
"@dimen/all_margin"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:contentDescription=
"@null"
android:contentDescription=
"@null"
android:src=
"@mipmap/point"
/>
android:src=
"@mipmap/point"
/>
<TextView
<TextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
...
@@ -74,7 +72,7 @@
...
@@ -74,7 +72,7 @@
android:text=
"@string/ms_editor_type_dis_hint"
android:text=
"@string/ms_editor_type_dis_hint"
android:textColor=
"@color/black_baozheng"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/all_text_size"
/>
android:textSize=
"@dimen/all_text_size"
/>
<EditText
<EditText
android:id=
"@+id/et_dis"
android:id=
"@+id/et_dis"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
...
@@ -87,7 +85,7 @@
...
@@ -87,7 +85,7 @@
android:textColor=
"@color/black_baozheng"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/all_body_size"
/>
android:textSize=
"@dimen/all_body_size"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</layout>
</layout>
\ No newline at end of file
app/src/main/res/layout/view_type_promotion.xml
View file @
ddd1dbb9
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<layout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<layout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
>
xmlns:app=
"http://schemas.android.com/apk/res-auto"
>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@color/white_caocao"
android:background=
"@color/white_caocao"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"?attr/actionBarSize"
android:layout_height=
"wrap_content"
android:gravity=
"center_vertical"
android:paddingStart=
"@dimen/all_margin"
android:paddingEnd=
"@dimen/all_margin"
android:paddingEnd=
"@dimen/all_margin"
>
android:paddingStart=
"@dimen/all_margin"
>
<TextView
<TextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"
match_parent
"
android:layout_height=
"
?attr/actionBarSize
"
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:text=
"@string/ms_editor_user"
android:text=
"@string/ms_editor_user"
android:textColor=
"@color/black_baozheng"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/all_text_size"
/>
android:textSize=
"@dimen/all_text_size"
/>
<RadioGroup
<RadioGroup
android:id=
"@+id/rg_type"
android:id=
"@+id/rg_type"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"@dimen/all_margin"
android:layout_marginStart=
"@dimen/all_margin"
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:orientation=
"
horizont
al"
>
android:orientation=
"
vertic
al"
>
<RadioButton
<RadioButton
android:id=
"@+id/rb_pro"
android:id=
"@+id/rb_pro"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"
wrap_content
"
android:layout_height=
"
?attr/actionBarSize
"
android:checked=
"true"
android:checked=
"true"
android:text=
"@string/ms_type_promotion"
/>
android:text=
"@string/ms_type_promotion"
/>
<RadioButton
<RadioButton
android:id=
"@+id/rb_second_pro"
android:id=
"@+id/rb_second_pro"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"?attr/actionBarSize"
android:layout_marginStart=
"@dimen/all_margin"
android:text=
"@string/ms_type_second_pro"
/>
android:text=
"@string/ms_type_second_pro"
/>
</RadioGroup>
</RadioGroup>
</LinearLayout>
</LinearLayout>
<View
<View
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/all_line_width"
android:layout_height=
"@dimen/all_line_width"
android:layout_marginEnd=
"@dimen/all_margin"
android:layout_marginStart=
"@dimen/all_margin"
android:layout_marginStart=
"@dimen/all_margin"
android:layout_marginEnd=
"@dimen/all_margin"
android:background=
"@color/gray_kongming"
/>
android:background=
"@color/gray_kongming"
/>
<TextView
<TextView
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginEnd=
"@dimen/all_margin"
android:layout_marginStart=
"@dimen/all_margin"
android:layout_marginStart=
"@dimen/all_margin"
android:layout_marginTop=
"@dimen/all_margin"
android:layout_marginTop=
"@dimen/all_margin"
android:layout_marginEnd=
"@dimen/all_margin"
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:text=
"@string/ms_editor_type_promotion_text1"
android:text=
"@string/ms_editor_type_promotion_text1"
android:textColor=
"@color/black_baozheng"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/all_text_size"
/>
android:textSize=
"@dimen/all_text_size"
/>
<TextView
<TextView
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"@dimen/all_margin"
android:layout_marginEnd=
"@dimen/all_margin"
android:layout_marginStart=
"@dimen/all_margin"
android:layout_marginStart=
"@dimen/all_margin"
android:layout_marginTop=
"@dimen/all_spacing"
android:layout_marginTop=
"@dimen/all_spacing"
android:layout_marginEnd=
"@dimen/all_margin"
android:layout_marginBottom=
"@dimen/all_margin"
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:text=
"@string/ms_editor_type_promotion_text2"
android:text=
"@string/ms_editor_type_promotion_text2"
android:textSize=
"@dimen/all_caption_size"
/>
android:textSize=
"@dimen/all_caption_size"
/>
</LinearLayout>
</LinearLayout>
</layout>
</layout>
\ No newline at end of file
app/src/main/res/mipmap-en-xhdpi/login_logo.png
0 → 100644
View file @
ddd1dbb9
16.9 KB
app/src/main/res/mipmap-en-xhdpi/splash.png
0 → 100644
View file @
ddd1dbb9
27.6 KB
app/src/main/res/mipmap-zh-xhdpi/login_logo.png
0 → 100644
View file @
ddd1dbb9
19.4 KB
app/src/main/res/mipmap-zh-xhdpi/splash.png
0 → 100644
View file @
ddd1dbb9
42.5 KB
app/src/main/res/values-en/strings.xml
View file @
ddd1dbb9
...
@@ -29,9 +29,15 @@
...
@@ -29,9 +29,15 @@
<string
name=
"all_unexpand"
>
Collapse
</string>
<string
name=
"all_unexpand"
>
Collapse
</string>
<!--金额单位-->
<!--金额单位-->
<string
name=
"unit_rmb_yuan"
>
元
</string>
<string
name=
"unit_rmb_yuan"
>
<string
name=
"unit_rmb_jiao"
>
角
</string>
<string
name=
"unit_rmb_fen"
>
分
</string>
</string>
<string
name=
"unit_rmb_jiao"
>
</string>
<string
name=
"unit_rmb_fen"
>
</string>
<!--登录页面 <WHERE>_<DESCRIPTION>-->
<!--登录页面 <WHERE>_<DESCRIPTION>-->
<string
name=
"login_title"
>
Login Page
</string>
<string
name=
"login_title"
>
Login Page
</string>
...
@@ -362,7 +368,7 @@
...
@@ -362,7 +368,7 @@
<string
name=
"ms_editor_group"
>
Promotion owner:
</string>
<string
name=
"ms_editor_group"
>
Promotion owner:
</string>
<string
name=
"ms_editor_user"
>
Promotion target:
</string>
<string
name=
"ms_editor_user"
>
Promotion target:
</string>
<string
name=
"ms_editor_area"
>
Promotion scale:
</string>
<string
name=
"ms_editor_area"
>
Promotion scale:
</string>
<string
name=
"ms_editor_buy"
>
Buy
</string>
<string
name=
"ms_editor_buy"
>
Buy
</string>
<string
name=
"ms_editor_group_all_hint"
>
Any products
</string>
<string
name=
"ms_editor_group_all_hint"
>
Any products
</string>
<string
name=
"ms_editor_group_skugrp_hint"
>
Any products of the above category
</string>
<string
name=
"ms_editor_group_skugrp_hint"
>
Any products of the above category
</string>
<string
name=
"ms_editor_group_brand_hint"
>
Any products of the above brand
</string>
<string
name=
"ms_editor_group_brand_hint"
>
Any products of the above brand
</string>
...
@@ -449,8 +455,8 @@
...
@@ -449,8 +455,8 @@
<!--空视图-->
<!--空视图-->
<string
name=
"empty_other_select"
>
Search by product‘s name/barcode/scan barcode
</string>
<string
name=
"empty_other_select"
>
Search by product‘s name/barcode/scan barcode
</string>
<!--积分管理-->
<!--积分管理-->
<string
name=
"integral_get_title"
>
VIP
Points Rules
</string>
<string
name=
"integral_get_title"
>
Points Rules
</string>
<string
name=
"integral_exchange_title"
>
Points
Redemption Rules
</string>
<string
name=
"integral_exchange_title"
>
Redemption Rules
</string>
<!--优惠券-->
<!--优惠券-->
<string
name=
"return_ticket_title"
>
Add new Coupon
</string>
<string
name=
"return_ticket_title"
>
Add new Coupon
</string>
<string
name=
"ticket_hint"
>
1 month free for Coupon functions
</string>
<string
name=
"ticket_hint"
>
1 month free for Coupon functions
</string>
...
@@ -477,7 +483,7 @@
...
@@ -477,7 +483,7 @@
<string
name=
"casher_manager_title"
>
Employee Management
</string>
<string
name=
"casher_manager_title"
>
Employee Management
</string>
<!--充值优惠-->
<!--充值优惠-->
<string
name=
"recharge_discounts_title"
>
Recharge for discount
</string>
<string
name=
"recharge_discounts_title"
>
Recharge for discount
</string>
<string
name=
"recharge_send"
>
Recharge
%sdollar and get%sdollar
free
</string>
<string
name=
"recharge_send"
>
Recharge
$%s \nand get$%s
free
</string>
<string
name=
"recharge_discounts_number"
>
Total%scoupon(s)
</string>
<string
name=
"recharge_discounts_number"
>
Total%scoupon(s)
</string>
<!--店员管理-->
<!--店员管理-->
<string
name=
"casher_titile"
>
Management-Employee Management
</string>
<string
name=
"casher_titile"
>
Management-Employee Management
</string>
...
@@ -588,8 +594,8 @@
...
@@ -588,8 +594,8 @@
<string
name=
"settle_ticket"
>
Coupon
</string>
<string
name=
"settle_ticket"
>
Coupon
</string>
<string
name=
"settle_ticket_text"
>
piece(s) available
</string>
<string
name=
"settle_ticket_text"
>
piece(s) available
</string>
<string
name=
"settle_point"
>
Points deduct
</string>
<string
name=
"settle_point"
>
Points deduct
</string>
<string
name=
"settle_point_vip_text"
>
Available points
</string>
<string
name=
"settle_point_vip_text"
>
Available points
</string>
<string
name=
"settle_point_amt_text"
>
,
可抵用
</string>
<string
name=
"settle_point_amt_text"
>
,
deduct
</string>
<string
name=
"settle_balance"
>
Balance
</string>
<string
name=
"settle_balance"
>
Balance
</string>
<string
name=
"settle_saledetail_hint"
>
Product Info
</string>
<string
name=
"settle_saledetail_hint"
>
Product Info
</string>
<string
name=
"settle_dis_hint"
>
Discount
</string>
<string
name=
"settle_dis_hint"
>
Discount
</string>
...
@@ -623,12 +629,12 @@
...
@@ -623,12 +629,12 @@
<!--优惠-->
<!--优惠-->
<string
name=
"ms_dialog_title"
>
Promotions
</string>
<string
name=
"ms_dialog_title"
>
Promotions
</string>
<string
name=
"ms_group_all"
></string>
<string
name=
"ms_group_all"
>
All
</string>
<string
name=
"ms_group_all_info"
>
Whole Store
</string>
<string
name=
"ms_group_all_info"
>
Whole Store
</string>
<string
name=
"ms_group_brand"
>
Brand
</string>
<string
name=
"ms_group_brand"
>
Brand
</string>
<string
name=
"ms_group_brand_info"
>
Buy%s
</string>
<string
name=
"ms_group_brand_info"
>
Buy
%s
</string>
<string
name=
"ms_group_cate"
>
category
</string>
<string
name=
"ms_group_cate"
>
category
</string>
<string
name=
"ms_group_cate_info"
>
Buy%s
</string>
<string
name=
"ms_group_cate_info"
>
Buy
%s
</string>
<string
name=
"ms_group_sku"
>
specific product
</string>
<string
name=
"ms_group_sku"
>
specific product
</string>
<string
name=
"ms_group_sku_info"
>
Buy%s
</string>
<string
name=
"ms_group_sku_info"
>
Buy%s
</string>
<string
name=
"ms_type_dis"
>
discount
</string>
<string
name=
"ms_type_dis"
>
discount
</string>
...
...
app/src/main/res/values-en/stringzz.xml
View file @
ddd1dbb9
...
@@ -34,5 +34,104 @@
...
@@ -34,5 +34,104 @@
<string
name=
"recharge_dis_empty"
>
Not find the Recharge Plan
</string>
<string
name=
"recharge_dis_empty"
>
Not find the Recharge Plan
</string>
<string
name=
"sku_u_grpName"
>
Package sku
</string>
<string
name=
"sku_u_grpName"
>
Package sku
</string>
<string
name=
"splash_loading"
>
Loading…
</string>
<string
name=
"all_exit"
>
Press again to exit
</string>
<string
name=
"all_succ"
>
Success
</string>
<string
name=
"login_valid_data"
>
Please enter valid data
</string>
<string
name=
"select_business"
>
Select business
</string>
<string-array
name=
"business_group"
>
<item>
Supermarket
</item>
<item>
Flower
</item>
<item>
Clothing
</item>
<item>
Drugstore
</item>
<item>
Deli
</item>
<item>
Fresh
</item>
<item>
Convenience
</item>
<item>
Family-run
</item>
<item>
Tobacco
&
Wine
</item>
<item>
Baby
&
Mother
</item>
<item>
Tea
</item>
<item>
Book
</item>
<item>
Cosmetics
</item>
<item>
Other
</item>
</string-array>
<string
name=
"member_info"
>
Member info
</string>
<string
name=
"vip_spent"
>
Spent:
</string>
<string
name=
"vip_birthday"
>
Birthday:
</string>
<string
name=
"vip_record_date"
>
Join date:
</string>
<string
name=
"vip_update"
>
Update
</string>
<string
name=
"vip_recharge"
>
Recharge detail
</string>
<string
name=
"vip_consumption"
>
Consumption detail
</string>
<string
name=
"vip_coupon"
>
Coupon detail
</string>
<string
name=
"all_select"
>
Select
</string>
<string
name=
"total_recharge"
>
Total recharge
</string>
<string
name=
"total_consumption"
>
Total consumption
</string>
<string
name=
"total_consumption_cnt"
>
Total count
</string>
<string
name=
"usable_coupon"
>
Usable coupon
</string>
<string
name=
"unusable_coupon"
>
Unusable coupon
</string>
<string
name=
"bonus"
>
bonus:
</string>
<string
name=
"total_money"
>
Total money
</string>
<string
name=
"ms_all_member"
>
All member
</string>
<string
name=
"ms_all_vip"
>
All vip
</string>
<string
name=
"ms_all_store"
>
All store
</string>
<string
name=
"ms_local_store"
>
Local store
</string>
<string
name=
"level_update"
>
Level update
</string>
<string
name=
"level_name"
>
Name
</string>
<string
name=
"level_name_hint"
>
Enter level name
</string>
<string
name=
"level_dis"
>
Discount
</string>
<string
name=
"level_promotion"
>
Promotion
</string>
<string
name=
"level_pro_date"
>
Last
</string>
<string
name=
"level_pro_day"
>
day
</string>
<string
name=
"level_pro_amt"
>
Amount
</string>
<string
name=
"rule_setting"
>
Rule setting
</string>
<string
name=
"points_access"
>
Access
</string>
<string
name=
"points_name"
>
Name
</string>
<string
name=
"points_access_all"
>
All
</string>
<string
name=
"points_access_cate"
>
Cate
</string>
<string
name=
"points_access_sku"
>
Sku
</string>
<string
name=
"points_ratio"
>
Ratio
</string>
<string
name=
"points_ratio_per"
>
per point
</string>
<string
name=
"points_shelf_life"
>
Shelf life
</string>
<string
name=
"points_points_value"
>
Point value
</string>
<string
name=
"points_points_value_hint"
>
point = $1
</string>
<string
name=
"points_conditions"
>
Conditions
</string>
<string
name=
"points_c1"
>
Full
</string>
<string
name=
"points_c2"
>
</string>
<string
name=
"points_c3"
>
Can use
</string>
<string
name=
"points_c4"
>
point
</string>
<string
name=
"points_rule"
>
Rule
</string>
<string
name=
"ticket_r0"
>
Name
</string>
<string
name=
"ticket_r1"
>
Ticket value
</string>
<string
name=
"ticket_r2"
>
</string>
<string
name=
"ticket_r3"
>
Expire
</string>
<string
name=
"ticket_r4"
>
Full
</string>
<string
name=
"ticket_r5"
>
available
</string>
<string
name=
"ticket_r6"
>
Can use
</string>
<string
name=
"ticket_r7"
>
</string>
<string
name=
"recharge_r1"
>
Name
</string>
<string
name=
"recharge_r2"
>
Level
</string>
<string
name=
"recharge_r3"
>
Rule
</string>
<string
name=
"recharge_r4"
>
Recharge
</string>
<string
name=
"recharge_r5"
>
</string>
<string
name=
"recharge_r6"
>
Bonus
</string>
<string
name=
"recharge_r7"
>
</string>
<string
name=
"recharge_r8"
>
Start date
</string>
<string
name=
"recharge_r9"
>
End date
</string>
</resources>
</resources>
app/src/main/res/values-zh/stringzz.xml
View file @
ddd1dbb9
...
@@ -34,4 +34,103 @@
...
@@ -34,4 +34,103 @@
<string
name=
"recharge_dis_empty"
>
还没有充值优惠,请添加充值优惠~
</string>
<string
name=
"recharge_dis_empty"
>
还没有充值优惠,请添加充值优惠~
</string>
<string
name=
"sku_u_grpName"
>
组合商品
</string>
<string
name=
"sku_u_grpName"
>
组合商品
</string>
<string
name=
"splash_loading"
>
正在加载中…
</string>
<string
name=
"all_exit"
>
再按一次退出程序
</string>
<string
name=
"all_succ"
>
成功
</string>
<string
name=
"login_valid_data"
>
请输入有效数据
</string>
<string
name=
"select_business"
>
选择行业
</string>
<string-array
name=
"business_group"
>
<item>
超市
</item>
<item>
鲜花
</item>
<item>
鞋服
</item>
<item>
药店
</item>
<item>
熟食
</item>
<item>
生鲜
</item>
<item>
便利店
</item>
<item>
夫妻店
</item>
<item>
烟酒
</item>
<item>
母婴
</item>
<item>
茶叶
</item>
<item>
书店
</item>
<item>
美妆
</item>
<item>
其他
</item>
</string-array>
<string
name=
"member_info"
>
会员信息
</string>
<string
name=
"vip_spent"
>
消费
</string>
<string
name=
"vip_birthday"
>
生日
</string>
<string
name=
"vip_record_date"
>
注册日期
</string>
<string
name=
"vip_update"
>
编辑会员
</string>
<string
name=
"vip_recharge"
>
充值明细
</string>
<string
name=
"vip_consumption"
>
消费记录
</string>
<string
name=
"vip_coupon"
>
优惠券详情
</string>
<string
name=
"all_select"
>
请选择
</string>
<string
name=
"total_recharge"
>
累计充值
</string>
<string
name=
"total_consumption"
>
消费总额
</string>
<string
name=
"total_consumption_cnt"
>
消费次数
</string>
<string
name=
"usable_coupon"
>
可用优惠券
</string>
<string
name=
"unusable_coupon"
>
不可用优惠券
</string>
<string
name=
"bonus"
>
送:
</string>
<string
name=
"total_money"
>
实际到账
</string>
<string
name=
"ms_all_member"
>
实际到账
</string>
<string
name=
"ms_all_vip"
>
实际到账
</string>
<string
name=
"ms_all_store"
>
所有门店
</string>
<string
name=
"ms_local_store"
>
本店
</string>
<string
name=
"level_update"
>
等级编辑
</string>
<string
name=
"level_name"
>
等级名称
</string>
<string
name=
"level_name_hint"
>
输入等级名称
</string>
<string
name=
"level_dis"
>
折扣设置
</string>
<string
name=
"level_promotion"
>
本级标准
</string>
<string
name=
"level_pro_date"
>
最近
</string>
<string
name=
"level_pro_day"
>
天
</string>
<string
name=
"level_pro_amt"
>
消费金额
</string>
<string
name=
"rule_setting"
>
规则设置
</string>
<string
name=
"points_name"
>
规则名称
</string>
<string
name=
"points_access"
>
获取方式
</string>
<string
name=
"points_access_all"
>
通用
</string>
<string
name=
"points_access_cate"
>
品类定义
</string>
<string
name=
"points_access_sku"
>
商品定义
</string>
<string
name=
"points_ratio"
>
积分比例
</string>
<string
name=
"points_ratio_per"
>
元一个积分
</string>
<string
name=
"points_shelf_life"
>
有效期限
</string>
<string
name=
"points_points_value"
>
积分面值
</string>
<string
name=
"points_points_value_hint"
>
个积分=1元
</string>
<string
name=
"points_conditions"
>
兑换条件
</string>
<string
name=
"points_c1"
>
实收满
</string>
<string
name=
"points_c2"
>
元
</string>
<string
name=
"points_c3"
>
可以使用
</string>
<string
name=
"points_c4"
>
积分
</string>
<string
name=
"points_rule"
>
兑换规则
</string>
<string
name=
"ticket_r0"
>
名称
</string>
<string
name=
"ticket_r1"
>
优惠券面值
</string>
<string
name=
"ticket_r2"
>
元
</string>
<string
name=
"ticket_r3"
>
券有效期
</string>
<string
name=
"ticket_r4"
>
订单金额满
</string>
<string
name=
"ticket_r5"
>
元可用
</string>
<string
name=
"ticket_r6"
>
每单使用
</string>
<string
name=
"ticket_r7"
>
张
</string>
<string
name=
"recharge_r1"
>
活动名称
</string>
<string
name=
"recharge_r2"
>
充值档位
</string>
<string
name=
"recharge_r3"
>
优惠规则
</string>
<string
name=
"recharge_r4"
>
充值每满
</string>
<string
name=
"recharge_r5"
>
元
</string>
<string
name=
"recharge_r6"
>
送
</string>
<string
name=
"recharge_r7"
>
元
</string>
<string
name=
"recharge_r8"
>
开始日期
</string>
<string
name=
"recharge_r9"
>
结束日期
</string>
</resources>
</resources>
app/src/main/res/values/strings.xml
View file @
ddd1dbb9
...
@@ -386,7 +386,7 @@
...
@@ -386,7 +386,7 @@
<string
name=
"ms_editor_type_gift_name"
>
品名:
</string>
<string
name=
"ms_editor_type_gift_name"
>
品名:
</string>
<string
name=
"ms_editor_type_gift_price"
>
售价:
</string>
<string
name=
"ms_editor_type_gift_price"
>
售价:
</string>
<string
name=
"ms_editor_type_gift_search_hint"
>
请输入商品名称/条码
</string>
<string
name=
"ms_editor_type_gift_search_hint"
>
请输入商品名称/条码
</string>
<string
name=
"ms_editor_date_format"
>
%s
年%s月%s日
</string>
<string
name=
"ms_editor_date_format"
>
%s
-%s-%s-
</string>
<string
name=
"ms_editor_time_format"
>
%s:%s
</string>
<string
name=
"ms_editor_time_format"
>
%s:%s
</string>
...
@@ -446,8 +446,8 @@
...
@@ -446,8 +446,8 @@
<!--空视图-->
<!--空视图-->
<string
name=
"empty_other_select"
>
请输入商品名称/条码/或扫描条码进行搜索
</string>
<string
name=
"empty_other_select"
>
请输入商品名称/条码/或扫描条码进行搜索
</string>
<!--积分管理-->
<!--积分管理-->
<string
name=
"integral_get_title"
>
积分
获取规则
</string>
<string
name=
"integral_get_title"
>
获取规则
</string>
<string
name=
"integral_exchange_title"
>
积分
兑换规则
</string>
<string
name=
"integral_exchange_title"
>
兑换规则
</string>
<!--优惠券-->
<!--优惠券-->
<string
name=
"return_ticket_title"
>
新增优惠券
</string>
<string
name=
"return_ticket_title"
>
新增优惠券
</string>
<string
name=
"ticket_hint"
>
优惠券规则功能限时免费使用 1 个月
</string>
<string
name=
"ticket_hint"
>
优惠券规则功能限时免费使用 1 个月
</string>
...
...
app/src/main/res/values/stringzz.xml
View file @
ddd1dbb9
...
@@ -34,6 +34,110 @@
...
@@ -34,6 +34,110 @@
<string
name=
"recharge_dis_empty"
>
还没有充值优惠,请添加充值优惠~
</string>
<string
name=
"recharge_dis_empty"
>
还没有充值优惠,请添加充值优惠~
</string>
<string
name=
"sku_u_grpName"
>
组合商品
</string>
<string
name=
"sku_u_grpName"
>
组合商品
</string>
<string
name=
"splash_loading"
>
正在加载中…
</string>
<string
name=
"all_exit"
>
再按一次退出程序
</string>
<string
name=
"all_succ"
>
成功
</string>
<string
name=
"login_valid_data"
>
请输入有效数据
</string>
<string
name=
"select_business"
>
选择行业
</string>
<string-array
name=
"business_group"
>
<item>
超市
</item>
<item>
鲜花
</item>
<item>
鞋服
</item>
<item>
药店
</item>
<item>
熟食
</item>
<item>
生鲜
</item>
<item>
便利店
</item>
<item>
夫妻店
</item>
<item>
烟酒
</item>
<item>
母婴
</item>
<item>
茶叶
</item>
<item>
书店
</item>
<item>
美妆
</item>
<item>
其他
</item>
</string-array>
<string
name=
"member_info"
>
会员信息
</string>
<string
name=
"vip_spent"
>
消费
</string>
<string
name=
"vip_birthday"
>
生日
</string>
<string
name=
"vip_record_date"
>
注册日期
</string>
<string
name=
"vip_update"
>
编辑会员
</string>
<string
name=
"vip_recharge"
>
充值明细
</string>
<string
name=
"vip_consumption"
>
消费记录
</string>
<string
name=
"vip_coupon"
>
优惠券详情
</string>
<string
name=
"all_select"
>
请选择
</string>
<string
name=
"total_recharge"
>
累计充值
</string>
<string
name=
"total_consumption"
>
消费总额
</string>
<string
name=
"total_consumption_cnt"
>
消费次数
</string>
<string
name=
"usable_coupon"
>
可用优惠券
</string>
<string
name=
"unusable_coupon"
>
不可用优惠券
</string>
<string
name=
"bonus"
>
送:
</string>
<string
name=
"total_money"
>
实际到账
</string>
<string
name=
"ms_all_member"
>
实际到账
</string>
<string
name=
"ms_all_vip"
>
实际到账
</string>
<string
name=
"ms_all_store"
>
所有门店
</string>
<string
name=
"ms_local_store"
>
本店
</string>
<string
name=
"level_update"
>
等级编辑
</string>
<string
name=
"level_name"
>
等级名称
</string>
<string
name=
"level_name_hint"
>
输入等级名称
</string>
<string
name=
"level_dis"
>
折扣设置
</string>
<string
name=
"level_promotion"
>
本级标准
</string>
<string
name=
"level_pro_date"
>
最近
</string>
<string
name=
"level_pro_day"
>
天
</string>
<string
name=
"level_pro_amt"
>
消费金额
</string>
<string
name=
"rule_setting"
>
规则设置
</string>
<string
name=
"points_access"
>
获取方式
</string>
<string
name=
"points_name"
>
规则名称
</string>
<string
name=
"points_access_all"
>
通用
</string>
<string
name=
"points_access_cate"
>
品类定义
</string>
<string
name=
"points_access_sku"
>
商品定义
</string>
<string
name=
"points_ratio"
>
积分比例
</string>
<string
name=
"points_ratio_per"
>
元一个积分
</string>
<string
name=
"points_shelf_life"
>
有效期限
</string>
<string
name=
"points_points_value"
>
积分面值
</string>
<string
name=
"points_points_value_hint"
>
个积分=1元
</string>
<string
name=
"points_conditions"
>
兑换条件
</string>
<string
name=
"points_c1"
>
实收满
</string>
<string
name=
"points_c2"
>
元
</string>
<string
name=
"points_c3"
>
可以使用
</string>
<string
name=
"points_c4"
>
积分
</string>
<string
name=
"points_rule"
>
兑换规则
</string>
<string
name=
"ticket_r0"
>
名称
</string>
<string
name=
"ticket_r1"
>
优惠券面值
</string>
<string
name=
"ticket_r2"
>
元
</string>
<string
name=
"ticket_r3"
>
券有效期
</string>
<string
name=
"ticket_r4"
>
订单金额满
</string>
<string
name=
"ticket_r5"
>
元可用
</string>
<string
name=
"ticket_r6"
>
每单使用
</string>
<string
name=
"ticket_r7"
>
张
</string>
<string
name=
"recharge_r1"
>
活动名称
</string>
<string
name=
"recharge_r2"
>
充值档位
</string>
<string
name=
"recharge_r3"
>
优惠规则
</string>
<string
name=
"recharge_r4"
>
充值每满
</string>
<string
name=
"recharge_r5"
>
元
</string>
<string
name=
"recharge_r6"
>
送
</string>
<string
name=
"recharge_r7"
>
元
</string>
<string
name=
"recharge_r8"
>
开始日期
</string>
<string
name=
"recharge_r9"
>
结束日期
</string>
</resources>
</resources>
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