hudaqiang 4 rokov pred
rodič
commit
266904a0b6

+ 2 - 2
ios/Podfile.lock

@@ -197,7 +197,7 @@ SPEC CHECKSUMS:
   image_picker: 50e7c7ff960e5f58faa4d1f4af84a771c671bc4a
   install_plugin: a13e7ddd2bab0c701b48cd359c26d0394125b6fb
   launch_review: 75d5a956ba8eaa493e9c9d4bf4c05e505e8d5ed0
-  libwebp: 3aa3dfd4b00d3caf4c12b4bbc17e9b7b2df3f6fb
+  libwebp: 6bac0a99ba5a6bb7449a951ff22c484201985f68
   Mantle: 4c0ed6ce47c96eccc4dc3bb071deb3def0e2c3be
   package_info: 873975fc26034f0b863a300ad47e7f1ac6c7ec62
   package_info_plus: 6c92f08e1f853dc01228d6f553146438dafcd14e
@@ -216,4 +216,4 @@ SPEC CHECKSUMS:
 
 PODFILE CHECKSUM: aafe91acc616949ddb318b77800a7f51bffa2a4c
 
-COCOAPODS: 1.10.0
+COCOAPODS: 1.10.1

+ 3 - 3
ios/Runner.xcodeproj/project.pbxproj

@@ -375,7 +375,7 @@
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
 				CLANG_ENABLE_MODULES = YES;
 				CODE_SIGN_ENTITLEMENTS = Runner/RunnerProfile.entitlements;
-				CURRENT_PROJECT_VERSION = 39;
+				CURRENT_PROJECT_VERSION = 41;
 				DEVELOPMENT_TEAM = 4699C5C3US;
 				ENABLE_BITCODE = NO;
 				FRAMEWORK_SEARCH_PATHS = (
@@ -514,7 +514,7 @@
 			buildSettings = {
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
 				CLANG_ENABLE_MODULES = YES;
-				CURRENT_PROJECT_VERSION = 39;
+				CURRENT_PROJECT_VERSION = 41;
 				DEVELOPMENT_TEAM = 4699C5C3US;
 				ENABLE_BITCODE = NO;
 				FRAMEWORK_SEARCH_PATHS = (
@@ -547,7 +547,7 @@
 			buildSettings = {
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
 				CLANG_ENABLE_MODULES = YES;
-				CURRENT_PROJECT_VERSION = 39;
+				CURRENT_PROJECT_VERSION = 41;
 				DEVELOPMENT_TEAM = 4699C5C3US;
 				ENABLE_BITCODE = NO;
 				FRAMEWORK_SEARCH_PATHS = (

+ 1 - 1
lib/paegs/gang_page/gang_in_page/shop_flow_page/shop_flow_page.dart

@@ -525,7 +525,7 @@ class _ShopFlowPageState extends State<ShopFlowPage> {
 
   void onRefresh() {
     page = 1;
-    checkIfYouAreTheOwner();
+    // checkIfYouAreTheOwner();
     myFlow();
   }
 

+ 33 - 0
lib/paegs/mine_page/mine_page.dart

@@ -49,6 +49,7 @@ class _MinePageState extends State<MinePage> {
 
       });
     });
+    checkIfThereIsAShop();
   }
 
   @override
@@ -329,6 +330,7 @@ class _MinePageState extends State<MinePage> {
                       queryPersonalInformation();
                     });
                   }),
+                  if(showRe)
                   functionItem('images/svg/推荐人.svg', '推荐人', () {
                     MyTools().toPage(context, ReferrerPage(), (then) {
                     });
@@ -474,4 +476,35 @@ class _MinePageState extends State<MinePage> {
   void onRefresh() {
     queryPersonalInformation();
   }
+
+
+  bool showRe = false;
+  void checkIfThereIsAShop() {
+    MyDio().query({
+      "key": "shop_user",
+      "filters": {
+        "conditions": [
+          "review_state==1",
+          "owner_uid==${MyCookie().getUID()}",
+          "private_shop==true",
+          "recommender_uid!=0"
+        ]
+      },
+      "dims": shopUserDims,
+      "paging": [1, 2000]
+    }, (response, hasError) {
+      if (!hasError) {
+        MyShopBeanEntity entity =
+        MyShopBeanEntity().fromJson(json.decode(response.data.toString()));
+        if(entity.data.data==null||entity.data.data.isEmpty){
+          showRe = false;
+        }else{
+          showRe = true;
+        }
+        setState(() {
+
+        });
+      }
+    }, (error) { });
+  }
 }

+ 3 - 1
lib/paegs/mine_page/referrer_page/referrer_page.dart

@@ -94,12 +94,14 @@ class _ReferrerPageState extends State<ReferrerPage> {
   void queryRecommender() {
     var conditions = [
       "review_state==1",
-      "owner_uid==${MyCookie().getUID()}",
       "private_shop==true",
       "recommender_uid!=0"
     ];
     if(widget.data!=null){
       conditions.add('shop_uid == ${widget.data.shopUid}');
+      conditions.add('owner_uid==${widget.data.ownerUid}');
+    }else{
+      conditions.add("owner_uid==${MyCookie().getUID()}");
     }
     MyDio().query({
       "key": "shop_user",

+ 3 - 3
pubspec.lock

@@ -28,7 +28,7 @@ packages:
       name: async
       url: "https://pub.flutter-io.cn"
     source: hosted
-    version: "2.5.0"
+    version: "2.6.1"
   audioplayers:
     dependency: "direct main"
     description:
@@ -739,7 +739,7 @@ packages:
       name: source_span
       url: "https://pub.flutter-io.cn"
     source: hosted
-    version: "1.8.0"
+    version: "1.8.1"
   sp_util:
     dependency: transitive
     description:
@@ -802,7 +802,7 @@ packages:
       name: test_api
       url: "https://pub.flutter-io.cn"
     source: hosted
-    version: "0.2.19"
+    version: "0.3.0"
   timezone:
     dependency: transitive
     description: