Bladeren bron

[modify]更改为正式环境

zk 1 jaar geleden
bovenliggende
commit
4ef772d804
3 gewijzigde bestanden met toevoegingen van 12 en 11 verwijderingen
  1. 1 3
      lib/data/consts/constants.dart
  2. 11 7
      lib/module/store/view.dart
  3. 0 1
      lib/widget/alert_dialog.dart

+ 1 - 3
lib/data/consts/constants.dart

@@ -1,6 +1,4 @@
-import 'dart:io';
 
-import 'package:electronic_assistant/data/consts/build_config.dart';
 import 'package:electronic_assistant/utils/mmkv_util.dart';
 import 'package:flutter_umeng/flutter_umeng.dart';
 
@@ -9,7 +7,7 @@ import '../../utils/common_utils.dart';
 class Constants {
   Constants._();
 
-  static const String env = envTest;
+  static const String env = envProd;
 
   static const String envDev = 'dev';
 

+ 11 - 7
lib/module/store/view.dart

@@ -550,17 +550,21 @@ class StorePage extends BasePage<StoreController> {
             ),
             borderRadius: BorderRadius.circular(8.w),
           ),
-          child: Obx(() => Text(
-                "立即购买  ¥${controller.currentSelectedStoreItem.value?.amountText}",
-                style: TextStyle(
-                    fontWeight: FontWeight.bold,
-                    fontSize: 16.sp,
-                    color: Colors.white),
-              )),
+          child: _buildBuyButton(),
         ),
       ),
     );
   }
+
+  Widget _buildBuyButton() {
+    return Obx(() => Text(
+          "立即购买  ¥${controller.currentSelectedStoreItem.value?.amountText}",
+          style: TextStyle(
+              fontWeight: FontWeight.bold,
+              fontSize: 16.sp,
+              color: Colors.white),
+        ));
+  }
 }
 
 extension on PaymentWay {

+ 0 - 1
lib/widget/alert_dialog.dart

@@ -1,4 +1,3 @@
-import 'package:electronic_assistant/popup/talk_popup.dart';
 import 'package:electronic_assistant/utils/expand.dart';
 import 'package:flutter/cupertino.dart';
 import 'package:flutter/material.dart';