Leon 1 سال پیش
والد
کامیت
03b843e994
1فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 4 4
      src/pages/store/product_list.tsx

+ 4 - 4
src/pages/store/product_list.tsx

@@ -131,7 +131,7 @@ export default function ProductList() {
         }
     }
 
-    return <View style={{flex:1,position:'relative'}}>
+    return <View style={{ flex: 1, position: 'relative' }}>
         <View style={{ height: 40 }} />
         {
             packages.map((item, index) => {
@@ -170,8 +170,8 @@ export default function ProductList() {
                 </View>
             </View>
         }
-        {/* {
-            errorCode != -1 && <Text style={{ color: '#fff', fontSize: 40 }}>出错了,错误代码{errorCode}</Text>
-        } */}
+        {
+            errorCode != -1 && user.test_user && <Text style={{ color: '#fff', fontSize: 40 }}>出错了,错误代码{errorCode}</Text>
+        }
     </View>
 }