|
|
@@ -11,6 +11,7 @@ import 'package:bbyyy/my_tools/my_colors.dart';
|
|
|
import 'package:bbyyy/my_tools/my_cookie.dart';
|
|
|
import 'package:bbyyy/my_tools/my_tools.dart';
|
|
|
import 'package:bbyyy/my_tools/my_views.dart';
|
|
|
+import 'package:bbyyy/my_tools/role_permissions.dart';
|
|
|
import 'package:bbyyy/paegs/gang_page/gang_in_page/gang_announcement_page/gang_announcement_page.dart';
|
|
|
import 'package:bbyyy/paegs/gang_page/gang_in_page/gang_commission_page/gang_commission_page.dart';
|
|
|
import 'package:bbyyy/paegs/gang_page/gang_in_page/gang_information_page/add_member_page/add_member_page.dart';
|
|
|
@@ -28,6 +29,7 @@ import 'package:flutter/material.dart';
|
|
|
import 'package:flutter_svg/flutter_svg.dart';
|
|
|
import 'package:pull_to_refresh/pull_to_refresh.dart';
|
|
|
import 'package:url_launcher/url_launcher.dart';
|
|
|
+import 'add_assistant_page/add_assistant_page.dart';
|
|
|
import 'add_template_page/add_template_page.dart';
|
|
|
|
|
|
class GangInformationPage extends StatefulWidget {
|
|
|
@@ -285,8 +287,9 @@ class _GangInformationPageState extends State<GangInformationPage> {
|
|
|
),
|
|
|
),
|
|
|
),
|
|
|
+ //合伙人
|
|
|
Visibility(
|
|
|
- visible: MyCookie().getUID()==widget.data.ownerUid||widget.data.role==shopUserPartner,
|
|
|
+ visible: viewShopCustomers(widget.data.role)?true:!hideMember,
|
|
|
child: Container(
|
|
|
padding: EdgeInsets.only(
|
|
|
top: 9,
|
|
|
@@ -327,9 +330,9 @@ class _GangInformationPageState extends State<GangInformationPage> {
|
|
|
GestureDetector(
|
|
|
onTap: () {
|
|
|
MyTools().toPage(
|
|
|
- context, MemberListPage(store, true,isPartner: true,),
|
|
|
+ context, MemberListPage(store, true,widget.data,isPartner: true,),
|
|
|
(then) {
|
|
|
- controller.requestRefresh();
|
|
|
+ controller.requestRefresh(needMove: false);
|
|
|
});
|
|
|
},
|
|
|
behavior: HitTestBehavior.translucent,
|
|
|
@@ -356,18 +359,17 @@ class _GangInformationPageState extends State<GangInformationPage> {
|
|
|
mainAxisSpacing: 0,
|
|
|
crossAxisSpacing: 0),
|
|
|
itemCount:
|
|
|
- widget.data.ownerUid == MyCookie().getUID()
|
|
|
- ? partner.length + 2 > 15
|
|
|
- ? 15
|
|
|
+ setUpPartnerPermissions(widget.data.role)
|
|
|
+ ? partner.length + 2 > 5
|
|
|
+ ? 5
|
|
|
: partner.length + 2
|
|
|
- : partner.length > 15
|
|
|
- ? 15
|
|
|
+ : partner.length > 5
|
|
|
+ ? 5
|
|
|
: partner.length,
|
|
|
physics: NeverScrollableScrollPhysics(),
|
|
|
padding: EdgeInsets.all(0),
|
|
|
itemBuilder: (context, index) {
|
|
|
- if (widget.data.ownerUid ==
|
|
|
- MyCookie().getUID()) {
|
|
|
+ if (setUpPartnerPermissions(widget.data.role)) {
|
|
|
if (partner.length + 2 > 15) {
|
|
|
if (index < 13) {
|
|
|
return MyViews().getMembersItem(
|
|
|
@@ -490,8 +492,228 @@ class _GangInformationPageState extends State<GangInformationPage> {
|
|
|
margin: EdgeInsets.only(top: 3),
|
|
|
),
|
|
|
),
|
|
|
+ //助手
|
|
|
Visibility(
|
|
|
- visible: MyCookie().getUID()==widget.data.ownerUid?true:!hideMember,
|
|
|
+ visible: viewShopCustomers(widget.data.role)?true:!hideMember,
|
|
|
+ child: Container(
|
|
|
+ padding: EdgeInsets.only(
|
|
|
+ top: 9,
|
|
|
+ ),
|
|
|
+ height: MediaQuery.of(context).size.width /
|
|
|
+ 5 *
|
|
|
+ ((helper.length +
|
|
|
+ (widget.data.ownerUid ==
|
|
|
+ MyCookie().getUID()
|
|
|
+ ? 2
|
|
|
+ : 0)) >
|
|
|
+ 15
|
|
|
+ ? 3
|
|
|
+ : ((helper.length +
|
|
|
+ (widget.data.ownerUid ==
|
|
|
+ MyCookie().getUID()
|
|
|
+ ? 2
|
|
|
+ : 0)) /
|
|
|
+ 5.0)
|
|
|
+ .ceil()) +
|
|
|
+ 44,
|
|
|
+ color: Colors.white,
|
|
|
+ child: Column(
|
|
|
+ children: [
|
|
|
+ Container(
|
|
|
+ padding: EdgeInsets.symmetric(horizontal: 16),
|
|
|
+ margin: EdgeInsets.only(bottom: 15),
|
|
|
+ height: 20,
|
|
|
+ child: Row(
|
|
|
+ children: [
|
|
|
+ Expanded(
|
|
|
+ child: Text(
|
|
|
+ '货帮助手',
|
|
|
+ style: TextStyle(
|
|
|
+ color: MyColors.c333333, fontSize: 15),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ GestureDetector(
|
|
|
+ onTap: () {
|
|
|
+ MyTools().toPage(
|
|
|
+ context,
|
|
|
+ MemberListPage(store, false,widget.data,isPartner: false),
|
|
|
+ (then) {});
|
|
|
+ },
|
|
|
+ behavior: HitTestBehavior.translucent,
|
|
|
+ child: Container(
|
|
|
+ margin: EdgeInsets.only(right: 10),
|
|
|
+ child: Text(
|
|
|
+ '查看${helper.length}名货帮助手',
|
|
|
+ style: TextStyle(
|
|
|
+ color: MyColors.c666666,
|
|
|
+ fontSize: 13),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ SvgPicture.asset('images/svg/箭头.svg')
|
|
|
+ ],
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ Expanded(
|
|
|
+ child: GridView.builder(
|
|
|
+ gridDelegate:
|
|
|
+ SliverGridDelegateWithFixedCrossAxisCount(
|
|
|
+ crossAxisCount: 5,
|
|
|
+ childAspectRatio: 1,
|
|
|
+ mainAxisSpacing: 0,
|
|
|
+ crossAxisSpacing: 0),
|
|
|
+ itemCount:setCustomerServicePermissions(widget.data.role)
|
|
|
+ ? helper.length + 2 > 5
|
|
|
+ ? 5
|
|
|
+ : helper.length + 2
|
|
|
+ : helper.length > 5
|
|
|
+ ? 5
|
|
|
+ : helper.length,
|
|
|
+ physics: NeverScrollableScrollPhysics(),
|
|
|
+ padding: EdgeInsets.all(0),
|
|
|
+ itemBuilder: (context, index) {
|
|
|
+ if (setCustomerServicePermissions(widget.data.role)) {
|
|
|
+ if (helper.length + 2 > 5) {
|
|
|
+ if (index < 3) {
|
|
|
+ return MyViews().getMembersItem(
|
|
|
+ helper[index], context);
|
|
|
+ } else if (index == 3) {
|
|
|
+ return GestureDetector(
|
|
|
+ onTap: () {
|
|
|
+ MyTools().toPage(context,
|
|
|
+ AddAssistantPage(store, false),
|
|
|
+ (then) {
|
|
|
+ queryShopMembers();
|
|
|
+ });
|
|
|
+ },
|
|
|
+ behavior: HitTestBehavior.translucent,
|
|
|
+ child: Column(
|
|
|
+ children: [
|
|
|
+ SvgPicture.asset(
|
|
|
+ 'images/svg/移除好友.svg',
|
|
|
+ height: 40,
|
|
|
+ width: 40,
|
|
|
+ ),
|
|
|
+ Container(
|
|
|
+ child: Text(
|
|
|
+ '移除助手',
|
|
|
+ style: TextStyle(
|
|
|
+ color: MyColors.c666666,
|
|
|
+ fontSize: 12),
|
|
|
+ ),
|
|
|
+ margin: EdgeInsets.only(top: 8),
|
|
|
+ )
|
|
|
+ ],
|
|
|
+ ),
|
|
|
+ );
|
|
|
+ } else {
|
|
|
+ return GestureDetector(
|
|
|
+ onTap: () {
|
|
|
+ MyTools().toPage(context,
|
|
|
+ AddAssistantPage(store, true),
|
|
|
+ (then) {
|
|
|
+ queryShopMembers();
|
|
|
+ });
|
|
|
+ },
|
|
|
+ behavior: HitTestBehavior.translucent,
|
|
|
+ child: Column(
|
|
|
+ children: [
|
|
|
+ SvgPicture.asset(
|
|
|
+ 'images/svg/邀请好友.svg',
|
|
|
+ height: 40,
|
|
|
+ width: 40,
|
|
|
+ ),
|
|
|
+ Container(
|
|
|
+ child: Text(
|
|
|
+ '添加助手',
|
|
|
+ style: TextStyle(
|
|
|
+ color: MyColors.c666666,
|
|
|
+ fontSize: 12),
|
|
|
+ ),
|
|
|
+ margin: EdgeInsets.only(top: 8),
|
|
|
+ )
|
|
|
+ ],
|
|
|
+ ),
|
|
|
+ );
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ if (index < helper.length) {
|
|
|
+ return MyViews().getMembersItem(
|
|
|
+ helper[index], context);
|
|
|
+ } else if (index == helper.length) {
|
|
|
+ return GestureDetector(
|
|
|
+ onTap: () {
|
|
|
+ MyTools().toPage(context,
|
|
|
+ AddAssistantPage(store, false),
|
|
|
+ (then) {
|
|
|
+ queryShopMembers();
|
|
|
+ });
|
|
|
+ },
|
|
|
+ behavior: HitTestBehavior.translucent,
|
|
|
+ child: Column(
|
|
|
+ children: [
|
|
|
+ SvgPicture.asset(
|
|
|
+ 'images/svg/移除好友.svg',
|
|
|
+ height: 40,
|
|
|
+ width: 40,
|
|
|
+ ),
|
|
|
+ Container(
|
|
|
+ child: Text(
|
|
|
+ '移除助手',
|
|
|
+ style: TextStyle(
|
|
|
+ color: MyColors.c666666,
|
|
|
+ fontSize: 12),
|
|
|
+ ),
|
|
|
+ margin: EdgeInsets.only(top: 8),
|
|
|
+ )
|
|
|
+ ],
|
|
|
+ ),
|
|
|
+ );
|
|
|
+ } else {
|
|
|
+ return GestureDetector(
|
|
|
+ onTap: () {
|
|
|
+ MyTools().toPage(context,
|
|
|
+ AddAssistantPage(store, true),
|
|
|
+ (then) {
|
|
|
+ queryShopMembers();
|
|
|
+ });
|
|
|
+ },
|
|
|
+ behavior: HitTestBehavior.translucent,
|
|
|
+ child: Column(
|
|
|
+ children: [
|
|
|
+ SvgPicture.asset(
|
|
|
+ 'images/svg/邀请好友.svg',
|
|
|
+ height: 40,
|
|
|
+ width: 40,
|
|
|
+ ),
|
|
|
+ Container(
|
|
|
+ child: Text(
|
|
|
+ '添加助手',
|
|
|
+ style: TextStyle(
|
|
|
+ color: MyColors.c666666,
|
|
|
+ fontSize: 12),
|
|
|
+ ),
|
|
|
+ margin: EdgeInsets.only(top: 8),
|
|
|
+ )
|
|
|
+ ],
|
|
|
+ ),
|
|
|
+ );
|
|
|
+ }
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ return MyViews()
|
|
|
+ .getMembersItem(helper[index], context);
|
|
|
+ }
|
|
|
+ }),
|
|
|
+ )
|
|
|
+ ],
|
|
|
+ ),
|
|
|
+ margin: EdgeInsets.only(top: 3),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ //成员
|
|
|
+ Visibility(
|
|
|
+ visible: viewShopCustomers(widget.data.role)?true:!hideMember,
|
|
|
child: Container(
|
|
|
padding: EdgeInsets.only(
|
|
|
top: 9,
|
|
|
@@ -532,9 +754,9 @@ class _GangInformationPageState extends State<GangInformationPage> {
|
|
|
GestureDetector(
|
|
|
onTap: () {
|
|
|
MyTools().toPage(
|
|
|
- context, MemberListPage(store, true,isPartner: false,),
|
|
|
+ context, MemberListPage(store, true,widget.data,isPartner: false,),
|
|
|
(then) {
|
|
|
- controller.requestRefresh();
|
|
|
+ controller.requestRefresh(needMove: false);
|
|
|
});
|
|
|
},
|
|
|
behavior: HitTestBehavior.translucent,
|
|
|
@@ -561,7 +783,7 @@ class _GangInformationPageState extends State<GangInformationPage> {
|
|
|
mainAxisSpacing: 0,
|
|
|
crossAxisSpacing: 0),
|
|
|
itemCount:
|
|
|
- widget.data.ownerUid == MyCookie().getUID()
|
|
|
+ addMemberPermissions(widget.data.role)
|
|
|
? member.length + 2 > 15
|
|
|
? 15
|
|
|
: member.length + 2
|
|
|
@@ -571,8 +793,7 @@ class _GangInformationPageState extends State<GangInformationPage> {
|
|
|
physics: NeverScrollableScrollPhysics(),
|
|
|
padding: EdgeInsets.all(0),
|
|
|
itemBuilder: (context, index) {
|
|
|
- if (widget.data.ownerUid ==
|
|
|
- MyCookie().getUID()) {
|
|
|
+ if (addMemberPermissions(widget.data.role)) {
|
|
|
if (member.length + 2 > 15) {
|
|
|
if (index < 13) {
|
|
|
return MyViews().getMembersItem(
|
|
|
@@ -583,7 +804,7 @@ class _GangInformationPageState extends State<GangInformationPage> {
|
|
|
MyTools().toPage(context,
|
|
|
RemoveMemberPage(store),
|
|
|
(then) {
|
|
|
- controller.requestRefresh();
|
|
|
+ controller.requestRefresh(needMove: false);
|
|
|
});
|
|
|
},
|
|
|
behavior: HitTestBehavior.translucent,
|
|
|
@@ -612,7 +833,7 @@ class _GangInformationPageState extends State<GangInformationPage> {
|
|
|
MyTools().toPage(
|
|
|
context, AddMemberPage(store: store),
|
|
|
(then) {
|
|
|
- controller.requestRefresh();
|
|
|
+ controller.requestRefresh(needMove: false);
|
|
|
});
|
|
|
},
|
|
|
behavior: HitTestBehavior.translucent,
|
|
|
@@ -646,7 +867,7 @@ class _GangInformationPageState extends State<GangInformationPage> {
|
|
|
MyTools().toPage(context,
|
|
|
RemoveMemberPage(store),
|
|
|
(then) {
|
|
|
- controller.requestRefresh();
|
|
|
+ controller.requestRefresh(needMove: false);
|
|
|
});
|
|
|
},
|
|
|
behavior: HitTestBehavior.translucent,
|
|
|
@@ -675,7 +896,7 @@ class _GangInformationPageState extends State<GangInformationPage> {
|
|
|
MyTools().toPage(
|
|
|
context, AddMemberPage(store: store),
|
|
|
(then) {
|
|
|
- controller.requestRefresh();
|
|
|
+ controller.requestRefresh(needMove: false);
|
|
|
});
|
|
|
},
|
|
|
behavior: HitTestBehavior.translucent,
|
|
|
@@ -739,205 +960,6 @@ class _GangInformationPageState extends State<GangInformationPage> {
|
|
|
),
|
|
|
),
|
|
|
),
|
|
|
- // Container(
|
|
|
- // padding: EdgeInsets.only(
|
|
|
- // top: 9,
|
|
|
- // ),
|
|
|
- // height: MediaQuery.of(context).size.width / 5 + 44,
|
|
|
- // color: Colors.white,
|
|
|
- // child: Column(
|
|
|
- // children: [
|
|
|
- // Container(
|
|
|
- // padding: EdgeInsets.symmetric(horizontal: 16),
|
|
|
- // margin: EdgeInsets.only(bottom: 15),
|
|
|
- // height: 20,
|
|
|
- // child: Row(
|
|
|
- // children: [
|
|
|
- // Expanded(
|
|
|
- // child: Text(
|
|
|
- // '货帮助手',
|
|
|
- // style: TextStyle(
|
|
|
- // color: MyColors.c333333, fontSize: 15),
|
|
|
- // ),
|
|
|
- // ),
|
|
|
- // GestureDetector(
|
|
|
- // onTap: () {
|
|
|
- // MyTools().toPage(
|
|
|
- // context,
|
|
|
- // MemberListPage(store, false),
|
|
|
- // (then) {});
|
|
|
- // },
|
|
|
- // behavior: HitTestBehavior.translucent,
|
|
|
- // child: Container(
|
|
|
- // margin: EdgeInsets.only(right: 10),
|
|
|
- // child: Text(
|
|
|
- // '查看${helper.length}名货帮助手',
|
|
|
- // style: TextStyle(
|
|
|
- // color: MyColors.c666666,
|
|
|
- // fontSize: 13),
|
|
|
- // ),
|
|
|
- // ),
|
|
|
- // ),
|
|
|
- // SvgPicture.asset('images/svg/箭头.svg')
|
|
|
- // ],
|
|
|
- // ),
|
|
|
- // ),
|
|
|
- // Expanded(
|
|
|
- // child: GridView.builder(
|
|
|
- // gridDelegate:
|
|
|
- // SliverGridDelegateWithFixedCrossAxisCount(
|
|
|
- // crossAxisCount: 5,
|
|
|
- // childAspectRatio: 1,
|
|
|
- // mainAxisSpacing: 0,
|
|
|
- // crossAxisSpacing: 0),
|
|
|
- // itemCount: widget.data.ownerUid == MyCookie().getUID()
|
|
|
- // ? helper.length + 2 > 5
|
|
|
- // ? 5
|
|
|
- // : helper.length + 2
|
|
|
- // : helper.length > 5
|
|
|
- // ? 5
|
|
|
- // : helper.length,
|
|
|
- // physics: NeverScrollableScrollPhysics(),
|
|
|
- // padding: EdgeInsets.all(0),
|
|
|
- // itemBuilder: (context, index) {
|
|
|
- // if (widget.data.ownerUid == MyCookie().getUID()) {
|
|
|
- // if (helper.length + 2 > 5) {
|
|
|
- // if (index < 3) {
|
|
|
- // return MyViews().getMembersItem(
|
|
|
- // helper[index], context);
|
|
|
- // } else if (index == 3) {
|
|
|
- // return GestureDetector(
|
|
|
- // onTap: () {
|
|
|
- // MyTools().toPage(context,
|
|
|
- // AddAssistantPage(store, false),
|
|
|
- // (then) {
|
|
|
- // queryShopMembers();
|
|
|
- // });
|
|
|
- // },
|
|
|
- // behavior: HitTestBehavior.translucent,
|
|
|
- // child: Column(
|
|
|
- // children: [
|
|
|
- // SvgPicture.asset(
|
|
|
- // 'images/svg/移除好友.svg',
|
|
|
- // height: 40,
|
|
|
- // width: 40,
|
|
|
- // ),
|
|
|
- // Container(
|
|
|
- // child: Text(
|
|
|
- // '移除助手',
|
|
|
- // style: TextStyle(
|
|
|
- // color: MyColors.c666666,
|
|
|
- // fontSize: 12),
|
|
|
- // ),
|
|
|
- // margin: EdgeInsets.only(top: 8),
|
|
|
- // )
|
|
|
- // ],
|
|
|
- // ),
|
|
|
- // );
|
|
|
- // } else {
|
|
|
- // return GestureDetector(
|
|
|
- // onTap: () {
|
|
|
- // MyTools().toPage(context,
|
|
|
- // AddAssistantPage(store, true),
|
|
|
- // (then) {
|
|
|
- // queryShopMembers();
|
|
|
- // });
|
|
|
- // },
|
|
|
- // behavior: HitTestBehavior.translucent,
|
|
|
- // child: Column(
|
|
|
- // children: [
|
|
|
- // SvgPicture.asset(
|
|
|
- // 'images/svg/邀请好友.svg',
|
|
|
- // height: 40,
|
|
|
- // width: 40,
|
|
|
- // ),
|
|
|
- // Container(
|
|
|
- // child: Text(
|
|
|
- // '添加助手',
|
|
|
- // style: TextStyle(
|
|
|
- // color: MyColors.c666666,
|
|
|
- // fontSize: 12),
|
|
|
- // ),
|
|
|
- // margin: EdgeInsets.only(top: 8),
|
|
|
- // )
|
|
|
- // ],
|
|
|
- // ),
|
|
|
- // );
|
|
|
- // }
|
|
|
- // } else {
|
|
|
- // if (index < helper.length) {
|
|
|
- // return MyViews().getMembersItem(
|
|
|
- // helper[index], context);
|
|
|
- // } else if (index == helper.length) {
|
|
|
- // return GestureDetector(
|
|
|
- // onTap: () {
|
|
|
- // MyTools().toPage(context,
|
|
|
- // AddAssistantPage(store, false),
|
|
|
- // (then) {
|
|
|
- // queryShopMembers();
|
|
|
- // });
|
|
|
- // },
|
|
|
- // behavior: HitTestBehavior.translucent,
|
|
|
- // child: Column(
|
|
|
- // children: [
|
|
|
- // SvgPicture.asset(
|
|
|
- // 'images/svg/移除好友.svg',
|
|
|
- // height: 40,
|
|
|
- // width: 40,
|
|
|
- // ),
|
|
|
- // Container(
|
|
|
- // child: Text(
|
|
|
- // '移除助手',
|
|
|
- // style: TextStyle(
|
|
|
- // color: MyColors.c666666,
|
|
|
- // fontSize: 12),
|
|
|
- // ),
|
|
|
- // margin: EdgeInsets.only(top: 8),
|
|
|
- // )
|
|
|
- // ],
|
|
|
- // ),
|
|
|
- // );
|
|
|
- // } else {
|
|
|
- // return GestureDetector(
|
|
|
- // onTap: () {
|
|
|
- // MyTools().toPage(context,
|
|
|
- // AddAssistantPage(store, true),
|
|
|
- // (then) {
|
|
|
- // queryShopMembers();
|
|
|
- // });
|
|
|
- // },
|
|
|
- // behavior: HitTestBehavior.translucent,
|
|
|
- // child: Column(
|
|
|
- // children: [
|
|
|
- // SvgPicture.asset(
|
|
|
- // 'images/svg/邀请好友.svg',
|
|
|
- // height: 40,
|
|
|
- // width: 40,
|
|
|
- // ),
|
|
|
- // Container(
|
|
|
- // child: Text(
|
|
|
- // '添加助手',
|
|
|
- // style: TextStyle(
|
|
|
- // color: MyColors.c666666,
|
|
|
- // fontSize: 12),
|
|
|
- // ),
|
|
|
- // margin: EdgeInsets.only(top: 8),
|
|
|
- // )
|
|
|
- // ],
|
|
|
- // ),
|
|
|
- // );
|
|
|
- // }
|
|
|
- // }
|
|
|
- // } else {
|
|
|
- // return MyViews()
|
|
|
- // .getMembersItem(helper[index], context);
|
|
|
- // }
|
|
|
- // }),
|
|
|
- // )
|
|
|
- // ],
|
|
|
- // ),
|
|
|
- // margin: EdgeInsets.only(top: 3),
|
|
|
- // ),
|
|
|
Visibility(
|
|
|
visible: false,
|
|
|
//widget.data.ownerUid == MyCookie().getUID()
|
|
|
@@ -1072,7 +1094,7 @@ class _GangInformationPageState extends State<GangInformationPage> {
|
|
|
),
|
|
|
),
|
|
|
Visibility(
|
|
|
- visible: widget.data.ownerUid==MyCookie().getUID()||widget.data.role==shopUserPartner,
|
|
|
+ visible: checkStoreFlowPermissions(widget.data.role),
|
|
|
child: GestureDetector(
|
|
|
onTap: () {
|
|
|
MyTools().toPage(context, ShopFlowPage(widget.data), (then){}
|
|
|
@@ -1120,7 +1142,7 @@ class _GangInformationPageState extends State<GangInformationPage> {
|
|
|
PrivacyProtectionPropsPage(
|
|
|
widget.data, vpKeyChatWaterMark),
|
|
|
(then) {
|
|
|
- controller.requestRefresh();
|
|
|
+ controller.requestRefresh(needMove: false);
|
|
|
});
|
|
|
}
|
|
|
}),
|
|
|
@@ -1160,16 +1182,6 @@ class _GangInformationPageState extends State<GangInformationPage> {
|
|
|
),
|
|
|
),
|
|
|
),
|
|
|
- /* Container(
|
|
|
- height: 50,
|
|
|
- color: Colors.white,
|
|
|
- margin: EdgeInsets.only(top: 3, bottom: 20),
|
|
|
- child: Text(
|
|
|
- '退出货帮',
|
|
|
- style: TextStyle(color: MyColors.cFF4233, fontSize: 16),
|
|
|
- ),
|
|
|
- alignment: Alignment.center,
|
|
|
- )*/
|
|
|
],
|
|
|
),
|
|
|
),
|
|
|
@@ -1272,13 +1284,13 @@ class _GangInformationPageState extends State<GangInformationPage> {
|
|
|
|
|
|
void addPartner() {
|
|
|
MyTools().toPage(context, AddPartnerPage(widget.data), (then){
|
|
|
- controller.requestRefresh();
|
|
|
+ controller.requestRefresh(needMove: false);
|
|
|
});
|
|
|
}
|
|
|
|
|
|
void removePartner() {
|
|
|
MyTools().toPage(context, RemovePartnerPage(widget.data), (then){
|
|
|
- controller.requestRefresh();
|
|
|
+ controller.requestRefresh(needMove: false);
|
|
|
});
|
|
|
}
|
|
|
}
|