|
@@ -165,8 +165,8 @@ class _GangPageState extends State<GangPage>
|
|
|
Row(
|
|
Row(
|
|
|
children: [
|
|
children: [
|
|
|
GestureDetector(
|
|
GestureDetector(
|
|
|
- onTap: (){
|
|
|
|
|
- MyTools().toPage(context, QueryGangPage(), (then){});
|
|
|
|
|
|
|
+ onTap: () {
|
|
|
|
|
+ MyTools().toPage(context, QueryGangPage(), (then) {});
|
|
|
},
|
|
},
|
|
|
behavior: HitTestBehavior.translucent,
|
|
behavior: HitTestBehavior.translucent,
|
|
|
child: Container(
|
|
child: Container(
|
|
@@ -374,6 +374,25 @@ class _GangPageState extends State<GangPage>
|
|
|
),
|
|
),
|
|
|
Row(
|
|
Row(
|
|
|
children: [
|
|
children: [
|
|
|
|
|
+ Visibility(
|
|
|
|
|
+ visible: !data.privateShop,
|
|
|
|
|
+ child: Container(
|
|
|
|
|
+ decoration: BoxDecoration(
|
|
|
|
|
+ border: Border.all(
|
|
|
|
|
+ color: MyColors.cFF4233, width: 1),
|
|
|
|
|
+ borderRadius: BorderRadius.circular(8),
|
|
|
|
|
+ ),
|
|
|
|
|
+ height: 16,
|
|
|
|
|
+ width: 28,
|
|
|
|
|
+ child: Text(
|
|
|
|
|
+ '公开',
|
|
|
|
|
+ style: TextStyle(
|
|
|
|
|
+ color: MyColors.cFF4233, fontSize: 10),
|
|
|
|
|
+ ),
|
|
|
|
|
+ alignment: Alignment.center,
|
|
|
|
|
+ margin: EdgeInsets.only(right: 5),
|
|
|
|
|
+ ),
|
|
|
|
|
+ ),
|
|
|
Expanded(
|
|
Expanded(
|
|
|
child: Text(
|
|
child: Text(
|
|
|
'ID:${data.shopUid}',
|
|
'ID:${data.shopUid}',
|
|
@@ -438,7 +457,7 @@ class _GangPageState extends State<GangPage>
|
|
|
"role==$shopUserOwner",
|
|
"role==$shopUserOwner",
|
|
|
"user_uid==${MyCookie().getUID()}"
|
|
"user_uid==${MyCookie().getUID()}"
|
|
|
];
|
|
];
|
|
|
- if(sIndex == 0){
|
|
|
|
|
|
|
+ if (sIndex == 0) {
|
|
|
conditions1.add('private_shop==true');
|
|
conditions1.add('private_shop==true');
|
|
|
dJson = {
|
|
dJson = {
|
|
|
"key": "shop_user",
|
|
"key": "shop_user",
|
|
@@ -453,20 +472,17 @@ class _GangPageState extends State<GangPage>
|
|
|
"paging": [page, 1000],
|
|
"paging": [page, 1000],
|
|
|
"order_by": ["shop_name,DESC"]
|
|
"order_by": ["shop_name,DESC"]
|
|
|
};
|
|
};
|
|
|
- }else{
|
|
|
|
|
|
|
+ } else {
|
|
|
conditions1.add('private_shop==false');
|
|
conditions1.add('private_shop==false');
|
|
|
dJson = {
|
|
dJson = {
|
|
|
"key": "shop_user",
|
|
"key": "shop_user",
|
|
|
- "filters": {
|
|
|
|
|
- "conditions": conditions1
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ "filters": {"conditions": conditions1},
|
|
|
"dims": shopUserDims,
|
|
"dims": shopUserDims,
|
|
|
"paging": [page, 1000],
|
|
"paging": [page, 1000],
|
|
|
"order_by": ["shop_name,DESC"]
|
|
"order_by": ["shop_name,DESC"]
|
|
|
};
|
|
};
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
// if (sIndex == 1) {
|
|
// if (sIndex == 1) {
|
|
|
// conditions1.add('collected == true');
|
|
// conditions1.add('collected == true');
|
|
|
// conditions2.add('collected == true');
|
|
// conditions2.add('collected == true');
|
|
@@ -494,17 +510,16 @@ class _GangPageState extends State<GangPage>
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
void _handleList(List<MyShopBeanDataData> list) {
|
|
void _handleList(List<MyShopBeanDataData> list) {
|
|
|
-
|
|
|
|
|
List<MyShopBeanDataData> selfBuilt = [];
|
|
List<MyShopBeanDataData> selfBuilt = [];
|
|
|
list.forEach((element) {
|
|
list.forEach((element) {
|
|
|
- if(element.ownerUid==MyCookie().getUID()){
|
|
|
|
|
|
|
+ if (element.ownerUid == MyCookie().getUID()) {
|
|
|
selfBuilt.add(element);
|
|
selfBuilt.add(element);
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
selfBuilt.forEach((element) {
|
|
selfBuilt.forEach((element) {
|
|
|
- list.removeWhere((data) => data.id==element.id);
|
|
|
|
|
|
|
+ list.removeWhere((data) => data.id == element.id);
|
|
|
});
|
|
});
|
|
|
- if (list.isEmpty&&selfBuilt.isEmpty) return;
|
|
|
|
|
|
|
+ if (list.isEmpty && selfBuilt.isEmpty) return;
|
|
|
for (int i = 0, length = list.length; i < length; i++) {
|
|
for (int i = 0, length = list.length; i < length; i++) {
|
|
|
String pinyin = PinyinHelper.getPinyinE(list[i].shopName);
|
|
String pinyin = PinyinHelper.getPinyinE(list[i].shopName);
|
|
|
String tag = pinyin.substring(0, 1).toUpperCase();
|
|
String tag = pinyin.substring(0, 1).toUpperCase();
|