diff --git a/assets/image/2x/welfare_yz.webp b/assets/image/2x/welfare_yz.webp index 8a01148f..fe21ad77 100644 Binary files a/assets/image/2x/welfare_yz.webp and b/assets/image/2x/welfare_yz.webp differ diff --git a/assets/image/3x/welfare_yz.webp b/assets/image/3x/welfare_yz.webp index 314fa564..72f25156 100644 Binary files a/assets/image/3x/welfare_yz.webp and b/assets/image/3x/welfare_yz.webp differ diff --git a/assets/image/welfare_yz.webp b/assets/image/welfare_yz.webp index 0cf94b3a..381bae09 100644 Binary files a/assets/image/welfare_yz.webp and b/assets/image/welfare_yz.webp differ diff --git a/lib/community/community_child_page.dart b/lib/community/community_child_page.dart index 07155e72..36ae5b00 100644 --- a/lib/community/community_child_page.dart +++ b/lib/community/community_child_page.dart @@ -170,7 +170,7 @@ class CommunityChildPageState extends State SmartRefresher( controller: refreshController, enablePullDown: true, - enablePullUp: true, + enablePullUp: (articles == null || articles.length == 0) ? false:true, physics: BouncingScrollPhysics(), header: MyHeader(), footer: CustomFooter( diff --git a/lib/home/home_view/home_banner.dart b/lib/home/home_view/home_banner.dart index 9d10575a..5068a554 100644 --- a/lib/home/home_view/home_banner.dart +++ b/lib/home/home_view/home_banner.dart @@ -23,7 +23,7 @@ class _HomeBanner extends State { Widget build(BuildContext context) { return Container( child: AspectRatio( - aspectRatio: 375/300, + aspectRatio: 1.25, child: Swiper( pagination: SwiperPagination( margin: EdgeInsets.only(bottom: 12.h), diff --git a/lib/home/trading_card_page.dart b/lib/home/trading_card_page.dart index e6778fb9..919e0a0f 100644 --- a/lib/home/trading_card_page.dart +++ b/lib/home/trading_card_page.dart @@ -189,7 +189,7 @@ class _TradingCardPage extends State { Image.asset( "assets/image/trading_text.webp", width:314.w, - fit: BoxFit.cover, + fit: BoxFit.fill, height:98.h, ), ] diff --git a/lib/mine/mine_view/mine_navbar.dart b/lib/mine/mine_view/mine_navbar.dart index 9e0a800d..49063640 100644 --- a/lib/mine/mine_view/mine_navbar.dart +++ b/lib/mine/mine_view/mine_navbar.dart @@ -231,6 +231,25 @@ class _MineNavbar extends State { ), ), ), + ///集换卡 + Expanded( + child: InkWell( + onTap: () { + SharedPreferences.getInstance().then((value) { + if (value.getString("token") == null || + value.getString("token") == "") { + LoginTipsDialog().show(context); + return; + } + Navigator.of(context).pushNamed('/router/trading_card_page'); + }); + }, + child: mineBottomItem( + widget?.userInfo?.happyBean?? "0", + "印章卡", + ), + ), + ), ], ) ], diff --git a/lib/mine/mine_vip/mine_vip_core.dart b/lib/mine/mine_vip/mine_vip_core.dart index b32cd89e..25989262 100644 --- a/lib/mine/mine_vip/mine_vip_core.dart +++ b/lib/mine/mine_vip/mine_vip_core.dart @@ -746,7 +746,10 @@ class _MineVipCore extends State { if(userInfo?.memberRankVo?.rankName != ranks[position].rankName || (userInfo?.memberRankVo?.rankName == "共创会员" && ranks[position].rankName == "共创会员")) Align(alignment: Alignment.centerRight, child: Text( - (ranks[position].rankName == "共创会员") ? "永久VIP" : (ranks[position]?.originScore ?? 0).toString(), + (ranks[position].rankName == "共创会员") ? + (userInfo?.memberRankVo?.rankName == "共创会员" ? "永久VIP" + :"¥${AppUtils.calculateDouble(double.tryParse(ranks[position].price??""))}/永久") + : (ranks[position]?.originScore ?? 0).toString(), overflow: TextOverflow.ellipsis, style: TextStyle( color:Color(int.parse((ranks[position]?.textColor ?? "").replaceAll("#", "FF"), radix: 16)), diff --git a/lib/mine/personal_page.dart b/lib/mine/personal_page.dart index da9760f0..88f47237 100644 --- a/lib/mine/personal_page.dart +++ b/lib/mine/personal_page.dart @@ -327,7 +327,7 @@ class _PersonalPage extends State with WidgetsBindingObserver { body:SmartRefresher( controller: refreshController, enablePullDown: true, - enablePullUp: true, + enablePullUp: (articles == null || articles.length == 0) ? false: true, header: MyHeader(), footer: CustomFooter( builder: (context, mode) { diff --git a/lib/settlement/settlement.dart b/lib/settlement/settlement.dart index fc61328c..9c63c033 100644 --- a/lib/settlement/settlement.dart +++ b/lib/settlement/settlement.dart @@ -1284,16 +1284,16 @@ class _Settlement extends State { productSkuId ?? "", actProductId ?? "", actProductSkuId ?? "", - // (settleOrderInfo.isRaise || payChannel == 5) - // ? "NONE" - // : ((useVipPriceSelect == false && - // couponListBean?.id != "" && - // ((promotion?.id ?? productId) != "")) - // ? "MEMBER_RANK" - // : (isVips == false && vipLevelName == "黄金会员") - // ? "MEMBER_RANK" - // : "AUTO"), - preferentialType(), + (settleOrderInfo.isRaise || payChannel == 5) + ? "NONE" + : ((useVipPriceSelect == false && + couponListBean?.id != "" && + ((promotion?.id ?? productId) != "")) + ? "MEMBER_RANK" + : (isVips == false) + ? "MEMBER_RANK" + : "AUTO"), + // preferentialType(), // (settleOrderInfo.isRaise || payChannel == 5 || ((payChannel == 4 && settleOrderInfo.usePlateMoney == false))) ? false :useVipPriceSelect, // (settleOrderInfo.isRaise || payChannel == 5 || ((payChannel == 4 && settleOrderInfo.usePlateMoney == false)) || useVipPriceSelect == true) ? false :useBenefitSelect, count1, @@ -1309,10 +1309,10 @@ class _Settlement extends State { return "ACTIVITY"; }else if((couponListBean?.id ?? "") != "" && (((promotion?.id ?? productId) ?? "") == "")){ return "COUPON"; + }else if(useVipPriceSelect == false && (couponListBean?.id ?? "") == "" && ((promotion?.id ?? productId ?? "") == "")){ + return "MEMBER_RANK"; }else if(useVipPriceSelect == true && (couponListBean?.id ?? "") == "" && ((promotion?.id ?? productId ??"") == "")){ return "VIP"; - }if(useVipPriceSelect == false && (couponListBean?.id ?? "") == "" && ((promotion?.id ?? productId ?? "") == "")){ - return "MEMBER_RANK"; }else { return "AUTO"; } diff --git a/lib/view_widget/classic_header.dart b/lib/view_widget/classic_header.dart index c744ceef..428aeb8b 100644 --- a/lib/view_widget/classic_header.dart +++ b/lib/view_widget/classic_header.dart @@ -117,7 +117,7 @@ class MyClassicHeader extends RefreshIndicator { const MyClassicHeader({ Key key, RefreshStyle refreshStyle: RefreshStyle.Follow, - double height: 60.0, + double height: 70.0, Duration completeDuration: const Duration(milliseconds: 600), this.outerBuilder, this.textStyle: const TextStyle(color: Colors.grey), @@ -219,7 +219,7 @@ class _ClassicHeaderState extends RefreshIndicatorState { ), textWidget ]; - final Widget container = Row( + final Widget container = Padding(padding: EdgeInsets.only(top: MediaQuery.of(context).padding.top,),child: Row( // spacing: widget.spacing, // textDirection: widget.iconPos == IconPosition.left // ? TextDirection.ltr @@ -236,7 +236,7 @@ class _ClassicHeaderState extends RefreshIndicatorState { mainAxisAlignment: MainAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center, children: children, - ); + ),); return widget.outerBuilder != null ? widget.outerBuilder(container) : Container( diff --git a/lib/view_widget/vip_dialog.dart b/lib/view_widget/vip_dialog.dart index 61b7193a..b83554a1 100644 --- a/lib/view_widget/vip_dialog.dart +++ b/lib/view_widget/vip_dialog.dart @@ -138,7 +138,7 @@ class _VipDialog extends State { GestureDetector( onTap: () { Navigator.of(context) - .pushNamed('/router/legal_right_details', arguments: { + .popAndPushNamed('/router/legal_right_details', arguments: { "vipBenefitList": vipBenefitList, }); }, diff --git a/lib/vip/vip_view/exclusive_coupon.dart b/lib/vip/vip_view/exclusive_coupon.dart index 5d6691d5..0f4f27a8 100644 --- a/lib/vip/vip_view/exclusive_coupon.dart +++ b/lib/vip/vip_view/exclusive_coupon.dart @@ -180,7 +180,7 @@ class _ExclusiveCoupon extends State { TextSpan( children: [ TextSpan( - text: "6", + text: "9.2", style: TextStyle( fontWeight: MyFontWeight.extra_bold, fontSize: 36.sp, @@ -253,7 +253,7 @@ class _ExclusiveCoupon extends State { TextSpan( children: [ TextSpan( - text: "7", + text: "9.2", style: TextStyle( fontWeight: MyFontWeight.extra_bold, fontSize: 36.sp, @@ -326,7 +326,7 @@ class _ExclusiveCoupon extends State { TextSpan( children: [ TextSpan( - text: "8", + text: "9.2", style: TextStyle( fontWeight: MyFontWeight.extra_bold, fontSize: 36.sp,