|
|
@@ -97,7 +97,7 @@ class _MemberDetailsPageState extends State<MemberDetailsPage> {
|
|
|
),
|
|
|
Container(
|
|
|
color: Colors.white,
|
|
|
- margin: EdgeInsets.only(top: 8,bottom: 30),
|
|
|
+ margin: EdgeInsets.only(top: 8, bottom: 30),
|
|
|
child: Column(
|
|
|
children: [
|
|
|
Container(
|
|
|
@@ -223,87 +223,86 @@ class _MemberDetailsPageState extends State<MemberDetailsPage> {
|
|
|
child: Container(
|
|
|
height: 50,
|
|
|
alignment: Alignment.centerLeft,
|
|
|
- child:
|
|
|
- referrer.recommenderName == ''
|
|
|
- ? Text(
|
|
|
- '暂无',
|
|
|
- style: TextStyle(
|
|
|
- color: MyColors
|
|
|
- .c999999,
|
|
|
- fontSize: 15),
|
|
|
- )
|
|
|
- : Row(
|
|
|
+ child: referrer.recommenderName ==
|
|
|
+ '' ||
|
|
|
+ referrer.recommenderUid ==
|
|
|
+ 0
|
|
|
+ ? Text(
|
|
|
+ '暂无',
|
|
|
+ style: TextStyle(
|
|
|
+ color:
|
|
|
+ MyColors.c999999,
|
|
|
+ fontSize: 15),
|
|
|
+ )
|
|
|
+ : Row(
|
|
|
+ children: [
|
|
|
+ Row(
|
|
|
children: [
|
|
|
- Row(
|
|
|
- children: [
|
|
|
- ClipRRect(
|
|
|
- child: MyViews()
|
|
|
- .netImg(
|
|
|
- imgURL(
|
|
|
- referrer.recommenderPic),
|
|
|
- 30,
|
|
|
- 30),
|
|
|
- borderRadius:
|
|
|
- BorderRadius
|
|
|
- .circular(
|
|
|
- 15),
|
|
|
- ),
|
|
|
- Container(
|
|
|
- margin: EdgeInsets
|
|
|
- .only(
|
|
|
- left:
|
|
|
- 8),
|
|
|
- child: Text(
|
|
|
- '${referrer.recommenderName}(${referrer.recommenderUid})',
|
|
|
- style: TextStyle(
|
|
|
- color: MyColors
|
|
|
- .c999999,
|
|
|
- fontSize:
|
|
|
- 15),
|
|
|
- ),
|
|
|
- ),
|
|
|
- ],
|
|
|
+ ClipRRect(
|
|
|
+ child: MyViews().netImg(
|
|
|
+ imgURL(referrer
|
|
|
+ .recommenderPic),
|
|
|
+ 30,
|
|
|
+ 30),
|
|
|
+ borderRadius:
|
|
|
+ BorderRadius
|
|
|
+ .circular(
|
|
|
+ 15),
|
|
|
),
|
|
|
- GestureDetector(
|
|
|
- onTap: () {
|
|
|
- referrer.recommenderPic =
|
|
|
- '';
|
|
|
- referrer.recommenderName =
|
|
|
- '';
|
|
|
- referrer
|
|
|
- .recommenderUid = 0;
|
|
|
- setState(() {});
|
|
|
- },
|
|
|
- behavior:
|
|
|
- HitTestBehavior
|
|
|
- .translucent,
|
|
|
- child: Container(
|
|
|
- decoration: BoxDecoration(
|
|
|
+ Container(
|
|
|
+ margin: EdgeInsets
|
|
|
+ .only(
|
|
|
+ left: 8),
|
|
|
+ child: Text(
|
|
|
+ '${referrer.recommenderName}(${referrer.recommenderUid})',
|
|
|
+ style: TextStyle(
|
|
|
color: MyColors
|
|
|
- .cFF4233,
|
|
|
- borderRadius:
|
|
|
- BorderRadius.circular(
|
|
|
- 15)),
|
|
|
- height: 30,
|
|
|
- width: 60,
|
|
|
- child: Text(
|
|
|
- '移除',
|
|
|
- style: TextStyle(
|
|
|
- color: Colors
|
|
|
- .white,
|
|
|
- fontSize:
|
|
|
- 10),
|
|
|
- ),
|
|
|
- alignment:
|
|
|
- Alignment
|
|
|
- .center,
|
|
|
+ .c999999,
|
|
|
+ fontSize:
|
|
|
+ 15),
|
|
|
),
|
|
|
- )
|
|
|
+ ),
|
|
|
],
|
|
|
- mainAxisAlignment:
|
|
|
- MainAxisAlignment
|
|
|
- .spaceBetween,
|
|
|
),
|
|
|
+ GestureDetector(
|
|
|
+ onTap: () {
|
|
|
+ referrer.recommenderPic =
|
|
|
+ '';
|
|
|
+ referrer.recommenderName =
|
|
|
+ '';
|
|
|
+ referrer
|
|
|
+ .recommenderUid = 0;
|
|
|
+ setState(() {});
|
|
|
+ },
|
|
|
+ behavior:
|
|
|
+ HitTestBehavior
|
|
|
+ .translucent,
|
|
|
+ child: Container(
|
|
|
+ decoration: BoxDecoration(
|
|
|
+ color: MyColors
|
|
|
+ .cFF4233,
|
|
|
+ borderRadius:
|
|
|
+ BorderRadius
|
|
|
+ .circular(
|
|
|
+ 15)),
|
|
|
+ height: 30,
|
|
|
+ width: 60,
|
|
|
+ child: Text(
|
|
|
+ '移除',
|
|
|
+ style: TextStyle(
|
|
|
+ color: Colors
|
|
|
+ .white,
|
|
|
+ fontSize: 10),
|
|
|
+ ),
|
|
|
+ alignment: Alignment
|
|
|
+ .center,
|
|
|
+ ),
|
|
|
+ )
|
|
|
+ ],
|
|
|
+ mainAxisAlignment:
|
|
|
+ MainAxisAlignment
|
|
|
+ .spaceBetween,
|
|
|
+ ),
|
|
|
)),
|
|
|
)
|
|
|
],
|
|
|
@@ -315,67 +314,72 @@ class _MemberDetailsPageState extends State<MemberDetailsPage> {
|
|
|
],
|
|
|
),
|
|
|
),
|
|
|
- Row(children: [
|
|
|
- Expanded(
|
|
|
- child: GestureDetector(
|
|
|
- onTap: () {
|
|
|
- if (_name.text.isEmpty) {
|
|
|
- showToast('昵称为空');
|
|
|
- return;
|
|
|
- } else {
|
|
|
- saveReferrer();
|
|
|
- }
|
|
|
- },
|
|
|
- behavior: HitTestBehavior.translucent,
|
|
|
- child: Container(
|
|
|
- decoration: BoxDecoration(
|
|
|
- color: MyColors.cFF4233,
|
|
|
- borderRadius: BorderRadius.all(Radius.circular(22.5)),
|
|
|
- ),
|
|
|
- height: 45,
|
|
|
- margin:
|
|
|
- EdgeInsets.symmetric(horizontal: 10),
|
|
|
- child: Text(
|
|
|
- '保 存',
|
|
|
- style: TextStyle(color: Colors.white, fontSize: 15),
|
|
|
+ Row(
|
|
|
+ children: [
|
|
|
+ Expanded(
|
|
|
+ child: GestureDetector(
|
|
|
+ onTap: () {
|
|
|
+ if (_name.text.isEmpty) {
|
|
|
+ showToast('昵称为空');
|
|
|
+ return;
|
|
|
+ } else {
|
|
|
+ saveReferrer();
|
|
|
+ }
|
|
|
+ },
|
|
|
+ behavior: HitTestBehavior.translucent,
|
|
|
+ child: Container(
|
|
|
+ decoration: BoxDecoration(
|
|
|
+ color: MyColors.cFF4233,
|
|
|
+ borderRadius:
|
|
|
+ BorderRadius.all(Radius.circular(22.5)),
|
|
|
+ ),
|
|
|
+ height: 45,
|
|
|
+ margin: EdgeInsets.symmetric(horizontal: 10),
|
|
|
+ child: Text(
|
|
|
+ '保 存',
|
|
|
+ style: TextStyle(
|
|
|
+ color: Colors.white, fontSize: 15),
|
|
|
+ ),
|
|
|
+ alignment: Alignment.center,
|
|
|
),
|
|
|
- alignment: Alignment.center,
|
|
|
),
|
|
|
),
|
|
|
- ),
|
|
|
- Expanded(
|
|
|
- child: GestureDetector(
|
|
|
- onTap: () {
|
|
|
- MyShopBeanDataData chatWith = MyShopBeanDataData();
|
|
|
- chatWith.userName = widget.member.userName;
|
|
|
- chatWith.userUid = widget.member.userUid;
|
|
|
- chatWith.userPic = widget.member.userPic;
|
|
|
- MyTools().toPage(context, ChatPage(chatWith, null),
|
|
|
- (then) {
|
|
|
- var now = new DateTime.now();
|
|
|
- MyCookie().prefs.setString(
|
|
|
- '${MyCookie().getUID()}_${chatWith.userUid}',
|
|
|
- now.toString().substring(0, 19));
|
|
|
- });
|
|
|
- },
|
|
|
- behavior: HitTestBehavior.translucent,
|
|
|
- child: Container(
|
|
|
- decoration: BoxDecoration(
|
|
|
- color: MyColors.cFF4233,
|
|
|
- borderRadius: BorderRadius.all(Radius.circular(22.5)),
|
|
|
- ),
|
|
|
- height: 45,
|
|
|
- margin:
|
|
|
- EdgeInsets.symmetric(horizontal: 10),
|
|
|
- child: Text(
|
|
|
- '联 系',
|
|
|
- style: TextStyle(color: Colors.white, fontSize: 15),
|
|
|
+ Expanded(
|
|
|
+ child: GestureDetector(
|
|
|
+ onTap: () {
|
|
|
+ MyShopBeanDataData chatWith =
|
|
|
+ MyShopBeanDataData();
|
|
|
+ chatWith.userName = widget.member.userName;
|
|
|
+ chatWith.userUid = widget.member.userUid;
|
|
|
+ chatWith.userPic = widget.member.userPic;
|
|
|
+ MyTools().toPage(
|
|
|
+ context, ChatPage(chatWith, null), (then) {
|
|
|
+ var now = new DateTime.now();
|
|
|
+ MyCookie().prefs.setString(
|
|
|
+ '${MyCookie().getUID()}_${chatWith.userUid}',
|
|
|
+ now.toString().substring(0, 19));
|
|
|
+ });
|
|
|
+ },
|
|
|
+ behavior: HitTestBehavior.translucent,
|
|
|
+ child: Container(
|
|
|
+ decoration: BoxDecoration(
|
|
|
+ color: MyColors.cFF4233,
|
|
|
+ borderRadius:
|
|
|
+ BorderRadius.all(Radius.circular(22.5)),
|
|
|
+ ),
|
|
|
+ height: 45,
|
|
|
+ margin: EdgeInsets.symmetric(horizontal: 10),
|
|
|
+ child: Text(
|
|
|
+ '联 系',
|
|
|
+ style: TextStyle(
|
|
|
+ color: Colors.white, fontSize: 15),
|
|
|
+ ),
|
|
|
+ alignment: Alignment.center,
|
|
|
),
|
|
|
- alignment: Alignment.center,
|
|
|
),
|
|
|
),
|
|
|
- ),
|
|
|
- ],)
|
|
|
+ ],
|
|
|
+ )
|
|
|
],
|
|
|
),
|
|
|
),
|