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
11e1ac1e
Commit
11e1ac1e
authored
Feb 06, 2018
by
姜敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改线的粗细
parent
ddd080de
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
5 deletions
+36
-5
app/src/main/java/com/xingdata/zzdpos/ui/vip/fragment/VipInfoFragment.java
.../com/xingdata/zzdpos/ui/vip/fragment/VipInfoFragment.java
+11
-1
app/src/main/res/layout/fragment_vip_info.xml
app/src/main/res/layout/fragment_vip_info.xml
+25
-4
No files found.
app/src/main/java/com/xingdata/zzdpos/ui/vip/fragment/VipInfoFragment.java
View file @
11e1ac1e
...
@@ -12,6 +12,7 @@ import com.xingdata.zzdpos.ui.vip.dialog.VipEditMenuDialog;
...
@@ -12,6 +12,7 @@ import com.xingdata.zzdpos.ui.vip.dialog.VipEditMenuDialog;
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.List
;
import
java.util.List
;
/**
/**
...
@@ -48,9 +49,15 @@ public class VipInfoFragment extends BaseFragment<VipPresenter, FragmentVipInfoB
...
@@ -48,9 +49,15 @@ public class VipInfoFragment extends BaseFragment<VipPresenter, FragmentVipInfoB
}
else
{
}
else
{
mViewBinding
.
vipLevel
.
setText
(
mVip
.
getVipLevelName
());
mViewBinding
.
vipLevel
.
setText
(
mVip
.
getVipLevelName
());
}
}
mViewBinding
.
vipBirthday
.
setText
(
mVip
.
getVipBirthday
()
+
""
);
String
strDate
=
String
.
valueOf
(
mVip
.
getVipBirthday
());
if
(
strDate
.
length
()==
8
){
mViewBinding
.
vipBirthday
.
setText
(
strDate
.
substring
(
0
,
4
)+
"-"
+
strDate
.
substring
(
4
,
6
)+
"-"
+
strDate
.
substring
(
6
,
8
));
}
else
{
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
.
vipSex
.
setText
(
getVipSex
(
mVip
.
getVipSex
()));
mViewBinding
.
vipSex
.
setText
(
getVipSex
(
mVip
.
getVipSex
()));
mViewBinding
.
vipDiscounts
.
setText
(
getString
(
R
.
string
.
vip_discount
,
ConvertUtil
.
discount
(
mVip
.
getVipDefDiscount
()
)+
""
));
mViewBinding
.
vipDiscounts
.
setText
(
getString
(
R
.
string
.
vip_discount
,
ConvertUtil
.
discount
(
mVip
.
getVipDefDiscount
()
)+
""
));
mPresenter
.
ticketQuery
(
mVip
.
getVipId
());
mPresenter
.
ticketQuery
(
mVip
.
getVipId
());
...
@@ -94,5 +101,8 @@ public class VipInfoFragment extends BaseFragment<VipPresenter, FragmentVipInfoB
...
@@ -94,5 +101,8 @@ public class VipInfoFragment extends BaseFragment<VipPresenter, FragmentVipInfoB
public
void
ticketQuerySus
(
List
<
Ticket
>
ticketPager
)
{
public
void
ticketQuerySus
(
List
<
Ticket
>
ticketPager
)
{
mViewBinding
.
ticketCount
.
setText
(
String
.
valueOf
(
ticketPager
.
size
()));
mViewBinding
.
ticketCount
.
setText
(
String
.
valueOf
(
ticketPager
.
size
()));
}
}
}
}
app/src/main/res/layout/fragment_vip_info.xml
View file @
11e1ac1e
...
@@ -49,9 +49,9 @@
...
@@ -49,9 +49,9 @@
<TextView
<TextView
android:id=
"@+id/vipName"
android:id=
"@+id/vipName"
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"
/>
style=
"@style/default_blacktext_bigstyle"
/>
<TextView
<TextView
android:id=
"@+id/vipMoble"
android:id=
"@+id/vipMoble"
...
@@ -227,8 +227,8 @@
...
@@ -227,8 +227,8 @@
<TextView
<TextView
style=
"@style/default_blacktext_margin_16_sp_style"
style=
"@style/default_blacktext_margin_16_sp_style"
android:layout_width=
"
74
dp"
android:layout_width=
"
110
dp"
android:text=
"
年龄
:"
/>
android:text=
"
出生年月
:"
/>
<TextView
<TextView
android:id=
"@+id/vip_birthday"
android:id=
"@+id/vip_birthday"
...
@@ -238,6 +238,27 @@
...
@@ -238,6 +238,27 @@
</LinearLayout>
</LinearLayout>
<include
layout=
"@layout/line_layout"
/>
<include
layout=
"@layout/line_layout"
/>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:background=
"@color/white"
android:orientation=
"horizontal"
>
<TextView
style=
"@style/default_blacktext_margin_16_sp_style"
android:layout_width=
"110dp"
android:text=
"注册日期:"
/>
<TextView
android:id=
"@+id/crt_time"
style=
"@style/default_blacktext_nopadding_smallstyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:gravity=
"center_vertical"
/>
</LinearLayout>
<include
layout=
"@layout/line_layout"
/>
</LinearLayout>
</LinearLayout>
</layout>
</layout>
\ No newline at end of file
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