jyj 5 years ago
parent
commit
1815f73ab3

+ 6 - 5
lib/internal/bbs/page/expert_detail.dart

@@ -177,18 +177,18 @@ class ExpertDetailState extends BasePageState<ExpertDetail,ExpertCommentListPres
                                 textAlign:TextAlign.start,
                               ),
                         ),
-                !kaiType?
+                // !kaiType?
                 InkWell(
                   onTap: (){
                     setState(() {
-                      kaiType = true;
+                      kaiType = !kaiType;
                     });
                   },
                   child: Container(
                   padding: EdgeInsets.only(right:20,bottom:10),
                   width: width,
                   child: Text(
-                    "[展开]",
+                    !kaiType?"[展开]":"[收起]",
                     style: TextStyle(
                                   color:Color(0xFF0287FF),
                                   fontSize:ScreenUtil().setSp(14)
@@ -197,7 +197,8 @@ class ExpertDetailState extends BasePageState<ExpertDetail,ExpertCommentListPres
                   ),
                 ),
                 )
-                :Container(child: null,),
+                // :Container(child: null,)
+                ,
                 Container(
                   height:5,
                   color: ThemeUtils.getDialogTextFieldColor(context),
@@ -755,7 +756,7 @@ class ExpertDetailState extends BasePageState<ExpertDetail,ExpertCommentListPres
                                     ),
                                     
                                               Text(
-                                                  detailObj.proficiencyBrandName??'',
+                                                  "擅长品牌:" + detailObj.proficiencyBrandName??'',
                                                   style: TextStyle(
                                                     color:Colors.white,
                                                     fontSize:ScreenUtil().setSp(14)

+ 1 - 1
lib/internal/wode/page/vip.dart

@@ -62,7 +62,7 @@ class VipState extends State<Vip> with AutomaticKeepAliveClientMixin {
   Future becomeLowerMember() async{
     await NewApiService().getUserRebates(widget.id,
           onSuccess: (res) {
-            toasts("你已成功接受${res!=null?res.toString():''}的邀请,立即成为会员!");
+            toasts("你已成功接受${res!=null?res.toString():''}的邀请,立即成为会员!",timeInSecForIos:2);
             // toasts("您已成为${res!=null?res.toString():''}的下级用户");
             
       }, onError: (code, msg) {

+ 1 - 1
lib/internal/wode/page/wode_page.dart

@@ -100,7 +100,7 @@ class WodePageState extends State<WodePage> with AutomaticKeepAliveClientMixin {
 
       NewApiService().getUserRebates(id,
           onSuccess: (res) {
-            toasts("你已成功接受${res!=null?res.toString():''}的邀请,立即成为会员!");
+            toasts("你已成功接受${res!=null?res.toString():''}的邀请,立即成为会员!",timeInSecForIos:2);
             // toasts("您已成为${res!=null?res.toString():''}的下级用户");
         NavigatorUtils.push(context, "${WodeRouter.vip}?id=");
       }, onError: (code, msg) {

+ 2 - 2
lib/utils/toast.dart

@@ -21,12 +21,12 @@ import 'package:liftmanager/utils/loading_dialog.dart';
 //  }
 //}
 
-toasts(String msg) {
+toasts(String msg,{int timeInSecForIos}) {
   Fluttertoast.showToast(
       msg: msg,
       toastLength: Toast.LENGTH_SHORT,
       gravity: ToastGravity.BOTTOM,
-      timeInSecForIos: 1);
+      timeInSecForIos: timeInSecForIos);
 }