|
|
@@ -223,10 +223,10 @@ class _GangInPageState extends State<GangInPage> {
|
|
|
MyTools().toPage(
|
|
|
context, ShopFlowPage(widget.data), (then) {});
|
|
|
break;
|
|
|
- case '推荐人':
|
|
|
- MyTools().toPage(
|
|
|
- context, ReferrerPage(data: widget.data), (then) {});
|
|
|
- break;
|
|
|
+ // case '推荐人':
|
|
|
+ // MyTools().toPage(
|
|
|
+ // context, ReferrerPage(data: widget.data), (then) {});
|
|
|
+ // break;
|
|
|
case '发送红包':
|
|
|
MyTools().toPage(
|
|
|
context, SendRedEnvelopePage(widget.data), (then) {
|
|
|
@@ -301,7 +301,7 @@ class _GangInPageState extends State<GangInPage> {
|
|
|
],
|
|
|
),
|
|
|
),
|
|
|
- if (MyCookie().getUID() == widget.data.ownerUid )
|
|
|
+ if (MyCookie().getUID() == widget.data.ownerUid)
|
|
|
PopupMenuItem<String>(
|
|
|
value: '收款二维码',
|
|
|
child: Row(
|
|
|
@@ -343,27 +343,27 @@ class _GangInPageState extends State<GangInPage> {
|
|
|
],
|
|
|
),
|
|
|
),
|
|
|
- if (viewReferralAuthority(widget.data.role))
|
|
|
- PopupMenuItem<String>(
|
|
|
- value: '推荐人',
|
|
|
- child: Row(
|
|
|
- children: [
|
|
|
- SvgPicture.asset(
|
|
|
- 'images/svg/推荐人.svg',
|
|
|
- height: 20,
|
|
|
- width: 20,
|
|
|
- ),
|
|
|
- Container(
|
|
|
- child: Text(
|
|
|
- '推荐人',
|
|
|
- style: TextStyle(
|
|
|
- fontSize: 14, color: MyColors.c333333),
|
|
|
- ),
|
|
|
- margin: EdgeInsets.only(left: 5),
|
|
|
- ),
|
|
|
- ],
|
|
|
- ),
|
|
|
- ),
|
|
|
+ // if (viewReferralAuthority(widget.data.role))
|
|
|
+ // PopupMenuItem<String>(
|
|
|
+ // value: '推荐人',
|
|
|
+ // child: Row(
|
|
|
+ // children: [
|
|
|
+ // SvgPicture.asset(
|
|
|
+ // 'images/svg/推荐人.svg',
|
|
|
+ // height: 20,
|
|
|
+ // width: 20,
|
|
|
+ // ),
|
|
|
+ // Container(
|
|
|
+ // child: Text(
|
|
|
+ // '推荐人',
|
|
|
+ // style: TextStyle(
|
|
|
+ // fontSize: 14, color: MyColors.c333333),
|
|
|
+ // ),
|
|
|
+ // margin: EdgeInsets.only(left: 5),
|
|
|
+ // ),
|
|
|
+ // ],
|
|
|
+ // ),
|
|
|
+ // ),
|
|
|
// PopupMenuItem<String>(
|
|
|
// value: '发送红包',
|
|
|
// child: Row(
|
|
|
@@ -776,21 +776,22 @@ class _GangInPageState extends State<GangInPage> {
|
|
|
child: Row(
|
|
|
children: [
|
|
|
Expanded(
|
|
|
- child: TextField(
|
|
|
- controller: _textEditingController,
|
|
|
- decoration: InputDecoration(
|
|
|
- border: InputBorder.none,
|
|
|
- disabledBorder: InputBorder.none,
|
|
|
- enabledBorder: InputBorder.none,
|
|
|
- focusedBorder: InputBorder.none,
|
|
|
- isDense: true,
|
|
|
- hintText: '请输入信息',
|
|
|
- hintStyle: TextStyle(
|
|
|
- color: MyColors.c999999, fontSize: 16),
|
|
|
- contentPadding:
|
|
|
- const EdgeInsets.fromLTRB(14, 4.5, 8, 4.5),
|
|
|
+ child: TextField(
|
|
|
+ controller: _textEditingController,
|
|
|
+ decoration: InputDecoration(
|
|
|
+ border: InputBorder.none,
|
|
|
+ disabledBorder: InputBorder.none,
|
|
|
+ enabledBorder: InputBorder.none,
|
|
|
+ focusedBorder: InputBorder.none,
|
|
|
+ isDense: true,
|
|
|
+ hintText: '请输入信息',
|
|
|
+ hintStyle: TextStyle(
|
|
|
+ color: MyColors.c999999, fontSize: 16),
|
|
|
+ contentPadding:
|
|
|
+ const EdgeInsets.fromLTRB(14, 4.5, 8, 4.5),
|
|
|
+ ),
|
|
|
),
|
|
|
- )),
|
|
|
+ ),
|
|
|
GestureDetector(
|
|
|
onTap: () {
|
|
|
controller.requestRefresh();
|
|
|
@@ -810,7 +811,28 @@ class _GangInPageState extends State<GangInPage> {
|
|
|
),
|
|
|
alignment: Alignment.center,
|
|
|
),
|
|
|
- )
|
|
|
+ ),
|
|
|
+ if(addMemberPermissions(widget.data.role))
|
|
|
+ GestureDetector(
|
|
|
+ onTap: () {
|
|
|
+ MyTools().toPage(
|
|
|
+ context, AddMemberPage(store: store),
|
|
|
+ (then) {
|
|
|
+ controller.requestRefresh(needMove: false);
|
|
|
+ });
|
|
|
+ },
|
|
|
+ behavior: HitTestBehavior.translucent,
|
|
|
+ child: Container(
|
|
|
+ decoration: BoxDecoration(
|
|
|
+ borderRadius: BorderRadius.circular(20),
|
|
|
+ color: MyColors.cFF4233),
|
|
|
+ height: 40,
|
|
|
+ width: 40,
|
|
|
+ margin: EdgeInsets.only(left: 10),
|
|
|
+ child:SvgPicture.asset('images/svg/添加成员.svg',height: 18,width: 18,color: Colors.white,),
|
|
|
+ alignment: Alignment.center,
|
|
|
+ ),
|
|
|
+ ),
|
|
|
],
|
|
|
),
|
|
|
),
|
|
|
@@ -1387,7 +1409,7 @@ class _GangInPageState extends State<GangInPage> {
|
|
|
canSendGood = true;
|
|
|
}
|
|
|
//自己在某个允许顾客间交易的私有店铺中
|
|
|
- if (store.innerTrade&&store.private) {
|
|
|
+ if (store.innerTrade && store.private) {
|
|
|
canSendGood = true;
|
|
|
}
|
|
|
setState(() {});
|