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
cdc3c5e7
Commit
cdc3c5e7
authored
Jan 31, 2018
by
王海
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
a9d348f0
e8dee4bd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
20 deletions
+19
-20
app/src/main/java/com/xingdata/zzdpos/ui/vip/fragment/VipInfoFragment.java
.../com/xingdata/zzdpos/ui/vip/fragment/VipInfoFragment.java
+2
-2
app/src/main/java/com/xingdata/zzdpos/ui/vip/fragment/VipRechargeFragment.java
.../xingdata/zzdpos/ui/vip/fragment/VipRechargeFragment.java
+5
-1
app/src/main/res/layout/item_vip_level_list_item.xml
app/src/main/res/layout/item_vip_level_list_item.xml
+12
-17
No files found.
app/src/main/java/com/xingdata/zzdpos/ui/vip/fragment/VipInfoFragment.java
View file @
cdc3c5e7
...
...
@@ -40,9 +40,9 @@ public class VipInfoFragment extends BaseFragment<VipPresenter, FragmentVipInfoB
dialog
.
show
((
BaseActivity
)
getActivity
());
});
if
(
mVip
!=
null
)
{
mViewBinding
.
Totalpamt
.
setText
(
ConvertUtil
.
fenToYuanNoZero
(
mVip
.
getVipTotalpamt
()));
mViewBinding
.
Totalpamt
.
setText
(
"¥"
+
ConvertUtil
.
fenToYuanNoZero
(
mVip
.
getVipTotalpamt
()));
mViewBinding
.
BoundCbal
.
setText
(
String
.
valueOf
(
mVip
.
getBoundCbal
()));
mViewBinding
.
AcctCbal
.
setText
(
ConvertUtil
.
fenToYuanNoZero
(
mVip
.
getAcctCbal
()));
mViewBinding
.
AcctCbal
.
setText
(
"¥"
+
ConvertUtil
.
fenToYuanNoZero
(
mVip
.
getAcctCbal
()));
if
(
String
.
valueOf
(
mVip
.
getVipTag
()).
equals
(
"1"
)){
mViewBinding
.
vipLevel
.
setText
(
"超级会员"
);
}
else
{
...
...
app/src/main/java/com/xingdata/zzdpos/ui/vip/fragment/VipRechargeFragment.java
View file @
cdc3c5e7
...
...
@@ -79,6 +79,10 @@ public class VipRechargeFragment extends BaseFragment<VipPresenter, FragmentVipR
ToastUtils
.
showShort
(
"请选择充值金额"
);
return
;
}
if
(
position
!=
0
){
ToastUtils
.
showShort
(
"暂未开通该支付方式"
);
return
;
}
mPresenter
.
fullVip
(
mVip
,
ConvertUtil
.
yuanToFen
(
mViewBinding
.
rechargAMT
.
getText
().
toString
()),
ConvertUtil
.
yuanToFen
(
mViewBinding
.
sendAmt
.
getText
().
toString
()));
});
...
...
@@ -129,7 +133,7 @@ public class VipRechargeFragment extends BaseFragment<VipPresenter, FragmentVipR
mscards
.
clear
();
mscards
.
addAll
(
mscardPager
.
getList
());
layoutParams
=
new
RadioGroup
.
LayoutParams
(
inWight
/
4
,
LinearLayout
.
LayoutParams
.
MATCH_PARENT
,
1
);
layoutParams
.
setMargins
(
3
,
10
,
3
,
10
);
layoutParams
.
setMargins
(
12
,
10
,
12
,
10
);
int
mscardLength
=
0
;
if
(
mscards
.
size
()
<=
3
)
{
mscardLength
=
mscards
.
size
();
...
...
app/src/main/res/layout/item_vip_level_list_item.xml
View file @
cdc3c5e7
...
...
@@ -12,10 +12,10 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@mipmap/bg_grade01"
android:orientation=
"
horizont
al"
>
android:orientation=
"
vertic
al"
>
<LinearLayout
android:layout_width=
"
wrap_cont
ent"
android:layout_width=
"
match_par
ent"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/all_margin"
android:layout_marginTop=
"25dp"
...
...
@@ -33,9 +33,16 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:text=
"钻石会员"
android:textColor=
"@color/white"
/>
<TextView
android:id=
"@+id/level_Discount"
style=
"@style/textView_title"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginRight=
"@dimen/all_margin_left"
android:gravity=
"right"
android:textColor=
"@color/white"
/>
</LinearLayout>
<LinearLayout
...
...
@@ -45,25 +52,13 @@
android:layout_marginRight=
"@dimen/dtail_width_20"
android:layout_marginTop=
"25dp"
android:layout_weight=
"1"
android:gravity=
"
lef
t"
android:gravity=
"
righ
t"
android:orientation=
"vertical"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
>
<TextView
android:id=
"@+id/level_Discount"
style=
"@style/textView_title"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:gravity=
"right"
android:text=
"8折"
android:textColor=
"@color/white"
/>
</LinearLayout>
android:orientation=
"horizontal"
></LinearLayout>
<TextView
android:id=
"@+id/level_condition"
...
...
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