|
@@ -25,6 +25,7 @@ import 'package:flutter/material.dart';
|
|
|
import 'package:flutter_svg/flutter_svg.dart';
|
|
import 'package:flutter_svg/flutter_svg.dart';
|
|
|
import 'package:pull_to_refresh/pull_to_refresh.dart';
|
|
import 'package:pull_to_refresh/pull_to_refresh.dart';
|
|
|
import 'package:url_launcher/url_launcher.dart';
|
|
import 'package:url_launcher/url_launcher.dart';
|
|
|
|
|
+import 'add_template_page/add_template_page.dart';
|
|
|
|
|
|
|
|
class GangInformationPage extends StatefulWidget {
|
|
class GangInformationPage extends StatefulWidget {
|
|
|
MyShopBeanDataData data;
|
|
MyShopBeanDataData data;
|
|
@@ -41,6 +42,7 @@ class _GangInformationPageState extends State<GangInformationPage> {
|
|
|
StoreBeanDataData store;
|
|
StoreBeanDataData store;
|
|
|
RefreshController controller = RefreshController(initialRefresh: true);
|
|
RefreshController controller = RefreshController(initialRefresh: true);
|
|
|
bool privacyProtection = false;
|
|
bool privacyProtection = false;
|
|
|
|
|
+ bool hideMember = true;
|
|
|
|
|
|
|
|
_GangInformationPageState();
|
|
_GangInformationPageState();
|
|
|
|
|
|
|
@@ -275,223 +277,254 @@ class _GangInformationPageState extends State<GangInformationPage> {
|
|
|
),
|
|
),
|
|
|
),
|
|
),
|
|
|
),
|
|
),
|
|
|
- Container(
|
|
|
|
|
- padding: EdgeInsets.only(
|
|
|
|
|
- top: 9,
|
|
|
|
|
- ),
|
|
|
|
|
- height: MediaQuery.of(context).size.width /
|
|
|
|
|
- 5 *
|
|
|
|
|
- ((member.length +
|
|
|
|
|
- (widget.data.ownerUid ==
|
|
|
|
|
- MyCookie().getUID()
|
|
|
|
|
- ? 2
|
|
|
|
|
- : 0)) >
|
|
|
|
|
- 15
|
|
|
|
|
- ? 3
|
|
|
|
|
- : ((member.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, true),
|
|
|
|
|
- (then) {
|
|
|
|
|
- controller.requestRefresh();
|
|
|
|
|
- });
|
|
|
|
|
- },
|
|
|
|
|
- behavior: HitTestBehavior.translucent,
|
|
|
|
|
- child: Container(
|
|
|
|
|
- margin: EdgeInsets.only(right: 10),
|
|
|
|
|
|
|
+ Visibility(
|
|
|
|
|
+ visible: MyCookie().getUID()==widget.data.ownerUid?true:!hideMember,
|
|
|
|
|
+ child: Container(
|
|
|
|
|
+ padding: EdgeInsets.only(
|
|
|
|
|
+ top: 9,
|
|
|
|
|
+ ),
|
|
|
|
|
+ height: MediaQuery.of(context).size.width /
|
|
|
|
|
+ 5 *
|
|
|
|
|
+ ((member.length +
|
|
|
|
|
+ (widget.data.ownerUid ==
|
|
|
|
|
+ MyCookie().getUID()
|
|
|
|
|
+ ? 2
|
|
|
|
|
+ : 0)) >
|
|
|
|
|
+ 15
|
|
|
|
|
+ ? 3
|
|
|
|
|
+ : ((member.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(
|
|
child: Text(
|
|
|
- '查看${member.length}名货帮成员',
|
|
|
|
|
|
|
+ '货帮成员',
|
|
|
style: TextStyle(
|
|
style: TextStyle(
|
|
|
- color: MyColors.c666666,
|
|
|
|
|
- fontSize: 13),
|
|
|
|
|
|
|
+ color: MyColors.c333333, fontSize: 15),
|
|
|
),
|
|
),
|
|
|
),
|
|
),
|
|
|
- ),
|
|
|
|
|
- SvgPicture.asset('images/svg/箭头.svg')
|
|
|
|
|
- ],
|
|
|
|
|
|
|
+ GestureDetector(
|
|
|
|
|
+ onTap: () {
|
|
|
|
|
+ MyTools().toPage(
|
|
|
|
|
+ context, MemberListPage(store, true),
|
|
|
|
|
+ (then) {
|
|
|
|
|
+ controller.requestRefresh();
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+ behavior: HitTestBehavior.translucent,
|
|
|
|
|
+ child: Container(
|
|
|
|
|
+ margin: EdgeInsets.only(right: 10),
|
|
|
|
|
+ child: Text(
|
|
|
|
|
+ '查看${member.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()
|
|
|
|
|
- ? member.length + 2 > 15
|
|
|
|
|
- ? 15
|
|
|
|
|
- : member.length + 2
|
|
|
|
|
- : member.length > 15
|
|
|
|
|
- ? 15
|
|
|
|
|
- : member.length,
|
|
|
|
|
- physics: NeverScrollableScrollPhysics(),
|
|
|
|
|
- padding: EdgeInsets.all(0),
|
|
|
|
|
- itemBuilder: (context, index) {
|
|
|
|
|
- if (widget.data.ownerUid ==
|
|
|
|
|
- MyCookie().getUID()) {
|
|
|
|
|
- if (member.length + 2 > 15) {
|
|
|
|
|
- if (index < 13) {
|
|
|
|
|
- return MyViews().getMembersItem(
|
|
|
|
|
- member[index], context);
|
|
|
|
|
- } else if (index == 13) {
|
|
|
|
|
- return GestureDetector(
|
|
|
|
|
- onTap: () {
|
|
|
|
|
- MyTools().toPage(context,
|
|
|
|
|
- RemoveMemberPage(store),
|
|
|
|
|
- (then) {
|
|
|
|
|
- controller.requestRefresh();
|
|
|
|
|
- });
|
|
|
|
|
- },
|
|
|
|
|
- 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, AddMemberPage(store),
|
|
|
|
|
- (then) {
|
|
|
|
|
- controller.requestRefresh();
|
|
|
|
|
- });
|
|
|
|
|
- },
|
|
|
|
|
- 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),
|
|
|
|
|
|
|
+ Expanded(
|
|
|
|
|
+ child: GridView.builder(
|
|
|
|
|
+ gridDelegate:
|
|
|
|
|
+ SliverGridDelegateWithFixedCrossAxisCount(
|
|
|
|
|
+ crossAxisCount: 5,
|
|
|
|
|
+ childAspectRatio: 1,
|
|
|
|
|
+ mainAxisSpacing: 0,
|
|
|
|
|
+ crossAxisSpacing: 0),
|
|
|
|
|
+ itemCount:
|
|
|
|
|
+ widget.data.ownerUid == MyCookie().getUID()
|
|
|
|
|
+ ? member.length + 2 > 15
|
|
|
|
|
+ ? 15
|
|
|
|
|
+ : member.length + 2
|
|
|
|
|
+ : member.length > 15
|
|
|
|
|
+ ? 15
|
|
|
|
|
+ : member.length,
|
|
|
|
|
+ physics: NeverScrollableScrollPhysics(),
|
|
|
|
|
+ padding: EdgeInsets.all(0),
|
|
|
|
|
+ itemBuilder: (context, index) {
|
|
|
|
|
+ if (widget.data.ownerUid ==
|
|
|
|
|
+ MyCookie().getUID()) {
|
|
|
|
|
+ if (member.length + 2 > 15) {
|
|
|
|
|
+ if (index < 13) {
|
|
|
|
|
+ return MyViews().getMembersItem(
|
|
|
|
|
+ member[index], context);
|
|
|
|
|
+ } else if (index == 13) {
|
|
|
|
|
+ return GestureDetector(
|
|
|
|
|
+ onTap: () {
|
|
|
|
|
+ MyTools().toPage(context,
|
|
|
|
|
+ RemoveMemberPage(store),
|
|
|
|
|
+ (then) {
|
|
|
|
|
+ controller.requestRefresh();
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+ behavior: HitTestBehavior.translucent,
|
|
|
|
|
+ child: Column(
|
|
|
|
|
+ children: [
|
|
|
|
|
+ SvgPicture.asset(
|
|
|
|
|
+ 'images/svg/移除好友.svg',
|
|
|
|
|
+ height: 40,
|
|
|
|
|
+ width: 40,
|
|
|
),
|
|
),
|
|
|
- margin: EdgeInsets.only(top: 8),
|
|
|
|
|
- )
|
|
|
|
|
- ],
|
|
|
|
|
- ),
|
|
|
|
|
- );
|
|
|
|
|
- }
|
|
|
|
|
- } else {
|
|
|
|
|
- if (index < member.length) {
|
|
|
|
|
- return MyViews().getMembersItem(
|
|
|
|
|
- member[index], context);
|
|
|
|
|
- } else if (index == member.length) {
|
|
|
|
|
- return GestureDetector(
|
|
|
|
|
- onTap: () {
|
|
|
|
|
- MyTools().toPage(context,
|
|
|
|
|
- RemoveMemberPage(store),
|
|
|
|
|
- (then) {
|
|
|
|
|
- controller.requestRefresh();
|
|
|
|
|
- });
|
|
|
|
|
- },
|
|
|
|
|
- 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),
|
|
|
|
|
|
|
+ Container(
|
|
|
|
|
+ child: Text(
|
|
|
|
|
+ '移除成员',
|
|
|
|
|
+ style: TextStyle(
|
|
|
|
|
+ color: MyColors.c666666,
|
|
|
|
|
+ fontSize: 12),
|
|
|
|
|
+ ),
|
|
|
|
|
+ margin: EdgeInsets.only(top: 8),
|
|
|
|
|
+ )
|
|
|
|
|
+ ],
|
|
|
|
|
+ ),
|
|
|
|
|
+ );
|
|
|
|
|
+ } else {
|
|
|
|
|
+ return GestureDetector(
|
|
|
|
|
+ onTap: () {
|
|
|
|
|
+ MyTools().toPage(
|
|
|
|
|
+ context, AddMemberPage(store: store),
|
|
|
|
|
+ (then) {
|
|
|
|
|
+ controller.requestRefresh();
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+ behavior: HitTestBehavior.translucent,
|
|
|
|
|
+ child: Column(
|
|
|
|
|
+ children: [
|
|
|
|
|
+ SvgPicture.asset(
|
|
|
|
|
+ 'images/svg/邀请好友.svg',
|
|
|
|
|
+ height: 40,
|
|
|
|
|
+ width: 40,
|
|
|
),
|
|
),
|
|
|
- margin: EdgeInsets.only(top: 8),
|
|
|
|
|
- )
|
|
|
|
|
- ],
|
|
|
|
|
- ),
|
|
|
|
|
- );
|
|
|
|
|
|
|
+ Container(
|
|
|
|
|
+ child: Text(
|
|
|
|
|
+ '邀请成员',
|
|
|
|
|
+ style: TextStyle(
|
|
|
|
|
+ color: MyColors.c666666,
|
|
|
|
|
+ fontSize: 12),
|
|
|
|
|
+ ),
|
|
|
|
|
+ margin: EdgeInsets.only(top: 8),
|
|
|
|
|
+ )
|
|
|
|
|
+ ],
|
|
|
|
|
+ ),
|
|
|
|
|
+ );
|
|
|
|
|
+ }
|
|
|
} else {
|
|
} else {
|
|
|
- return GestureDetector(
|
|
|
|
|
- onTap: () {
|
|
|
|
|
- MyTools().toPage(
|
|
|
|
|
- context, AddMemberPage(store),
|
|
|
|
|
- (then) {
|
|
|
|
|
- controller.requestRefresh();
|
|
|
|
|
- });
|
|
|
|
|
- },
|
|
|
|
|
- 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),
|
|
|
|
|
|
|
+ if (index < member.length) {
|
|
|
|
|
+ return MyViews().getMembersItem(
|
|
|
|
|
+ member[index], context);
|
|
|
|
|
+ } else if (index == member.length) {
|
|
|
|
|
+ return GestureDetector(
|
|
|
|
|
+ onTap: () {
|
|
|
|
|
+ MyTools().toPage(context,
|
|
|
|
|
+ RemoveMemberPage(store),
|
|
|
|
|
+ (then) {
|
|
|
|
|
+ controller.requestRefresh();
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+ behavior: HitTestBehavior.translucent,
|
|
|
|
|
+ child: Column(
|
|
|
|
|
+ children: [
|
|
|
|
|
+ SvgPicture.asset(
|
|
|
|
|
+ 'images/svg/移除好友.svg',
|
|
|
|
|
+ height: 40,
|
|
|
|
|
+ width: 40,
|
|
|
),
|
|
),
|
|
|
- margin: EdgeInsets.only(top: 8),
|
|
|
|
|
- )
|
|
|
|
|
- ],
|
|
|
|
|
- ),
|
|
|
|
|
- );
|
|
|
|
|
|
|
+ Container(
|
|
|
|
|
+ child: Text(
|
|
|
|
|
+ '移除成员',
|
|
|
|
|
+ style: TextStyle(
|
|
|
|
|
+ color: MyColors.c666666,
|
|
|
|
|
+ fontSize: 12),
|
|
|
|
|
+ ),
|
|
|
|
|
+ margin: EdgeInsets.only(top: 8),
|
|
|
|
|
+ )
|
|
|
|
|
+ ],
|
|
|
|
|
+ ),
|
|
|
|
|
+ );
|
|
|
|
|
+ } else {
|
|
|
|
|
+ return GestureDetector(
|
|
|
|
|
+ onTap: () {
|
|
|
|
|
+ MyTools().toPage(
|
|
|
|
|
+ context, AddMemberPage(store: store),
|
|
|
|
|
+ (then) {
|
|
|
|
|
+ controller.requestRefresh();
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+ 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(member[index], context);
|
|
|
}
|
|
}
|
|
|
- } else {
|
|
|
|
|
- return MyViews()
|
|
|
|
|
- .getMembersItem(member[index], context);
|
|
|
|
|
- }
|
|
|
|
|
- }),
|
|
|
|
|
- )
|
|
|
|
|
- ],
|
|
|
|
|
|
|
+ }),
|
|
|
|
|
+ )
|
|
|
|
|
+ ],
|
|
|
|
|
+ ),
|
|
|
|
|
+ margin: EdgeInsets.only(top: 3),
|
|
|
|
|
+ ),
|
|
|
|
|
+ ),
|
|
|
|
|
+ Visibility(
|
|
|
|
|
+ visible: widget.data.ownerUid==MyCookie().getUID(),
|
|
|
|
|
+ child: GestureDetector(
|
|
|
|
|
+ onTap: () {},
|
|
|
|
|
+ behavior: HitTestBehavior.translucent,
|
|
|
|
|
+ child: Container(
|
|
|
|
|
+ child: Row(
|
|
|
|
|
+ children: [
|
|
|
|
|
+ Text(
|
|
|
|
|
+ '店铺成员显示',
|
|
|
|
|
+ style: TextStyle(
|
|
|
|
|
+ color: MyColors.c333333, fontSize: 15),
|
|
|
|
|
+ ),
|
|
|
|
|
+ CupertinoSwitch(
|
|
|
|
|
+ value: !hideMember,
|
|
|
|
|
+ onChanged: (v) {
|
|
|
|
|
+ modifyDisplayMembers();
|
|
|
|
|
+ }),
|
|
|
|
|
+ ],
|
|
|
|
|
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
+ ),
|
|
|
|
|
+ padding:
|
|
|
|
|
+ EdgeInsets.symmetric(horizontal: 16, vertical: 12),
|
|
|
|
|
+ color: Colors.white,
|
|
|
|
|
+ margin: EdgeInsets.only(top: 3),
|
|
|
|
|
+ ),
|
|
|
),
|
|
),
|
|
|
- margin: EdgeInsets.only(top: 3),
|
|
|
|
|
),
|
|
),
|
|
|
// Container(
|
|
// Container(
|
|
|
// padding: EdgeInsets.only(
|
|
// padding: EdgeInsets.only(
|
|
@@ -861,6 +894,32 @@ class _GangInformationPageState extends State<GangInformationPage> {
|
|
|
),
|
|
),
|
|
|
),
|
|
),
|
|
|
),
|
|
),
|
|
|
|
|
+ Visibility(
|
|
|
|
|
+ visible: widget.data.ownerUid==MyCookie().getUID(),
|
|
|
|
|
+ child: GestureDetector(
|
|
|
|
|
+ onTap: () {
|
|
|
|
|
+ MyTools().toPage(context, AddTemplatePage(shop: widget.data,), (then){});
|
|
|
|
|
+ },
|
|
|
|
|
+ behavior: HitTestBehavior.translucent,
|
|
|
|
|
+ child: Container(
|
|
|
|
|
+ child: Row(
|
|
|
|
|
+ children: [
|
|
|
|
|
+ Text(
|
|
|
|
|
+ '添加模板',
|
|
|
|
|
+ style: TextStyle(
|
|
|
|
|
+ color: MyColors.c333333, fontSize: 15),
|
|
|
|
|
+ ),
|
|
|
|
|
+ SvgPicture.asset('images/svg/箭头.svg'),
|
|
|
|
|
+ ],
|
|
|
|
|
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
+ ),
|
|
|
|
|
+ padding:
|
|
|
|
|
+ EdgeInsets.symmetric(horizontal: 16, vertical: 12),
|
|
|
|
|
+ color: Colors.white,
|
|
|
|
|
+ margin: EdgeInsets.only(top: 3),
|
|
|
|
|
+ ),
|
|
|
|
|
+ ),
|
|
|
|
|
+ ),
|
|
|
/* Container(
|
|
/* Container(
|
|
|
height: 50,
|
|
height: 50,
|
|
|
color: Colors.white,
|
|
color: Colors.white,
|
|
@@ -919,6 +978,7 @@ class _GangInformationPageState extends State<GangInformationPage> {
|
|
|
StoreBeanEntity entity =
|
|
StoreBeanEntity entity =
|
|
|
StoreBeanEntity().fromJson(json.decode(response.data.toString()));
|
|
StoreBeanEntity().fromJson(json.decode(response.data.toString()));
|
|
|
store = entity.data.data[0];
|
|
store = entity.data.data[0];
|
|
|
|
|
+ hideMember = store.hideMembers;
|
|
|
setState(() {});
|
|
setState(() {});
|
|
|
}
|
|
}
|
|
|
endRe(controller);
|
|
endRe(controller);
|
|
@@ -949,4 +1009,20 @@ class _GangInformationPageState extends State<GangInformationPage> {
|
|
|
setState(() {});
|
|
setState(() {});
|
|
|
}, (error) {});
|
|
}, (error) {});
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ modifyDisplayMembers(){
|
|
|
|
|
+ MyDio().update({"key": "shop",
|
|
|
|
|
+ "values": {
|
|
|
|
|
+ "id": store.id,
|
|
|
|
|
+ "hide_members":!hideMember
|
|
|
|
|
+ }}, (response, hasError) {
|
|
|
|
|
+ if(!hasError){
|
|
|
|
|
+ showToast('修改成功');
|
|
|
|
|
+ hideMember = !hideMember;
|
|
|
|
|
+ setState(() {
|
|
|
|
|
+
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ }, (error) { });
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|