Browse Source

Merge branches 'dev' and 'master' of https://git.lotus-wallet.com/fmk/huixiang_app

 Conflicts:
	lib/mine/mine_page.dart
master
fmk 3 years ago
parent
commit
a67be5fbec
  1. 2
      lib/home/founder_story_page.dart
  2. 4
      lib/home/main_home_page.dart
  3. 37
      lib/integral/integral_detailed_page.dart
  4. 29
      lib/integral/integral_page.dart
  5. 5
      lib/login/login_page.dart
  6. 8
      lib/mine/edit_name.dart
  7. 40
      lib/mine/manage_address_page.dart
  8. 3
      lib/mine/mine_page.dart
  9. 19
      lib/order/order_detail_page.dart
  10. 46
      lib/retrofit/retrofit_api.dart
  11. 1141
      lib/retrofit/retrofit_api.g.dart
  12. 2
      lib/union/union_page.dart
  13. 77
      lib/view_widget/coupon_widget.dart
  14. 6
      pubspec.lock

2
lib/home/founder_story_page.dart

@ -73,7 +73,7 @@ class _FounderStoryPage extends State<FounderStoryPage> {
"他们致力于实践自然生态农耕,创造与环境共存共荣的绿色发展模式。经过多年探索,形成三产融合的完整产业链和成熟运营模式。",
style: TextStyle(
color: Color(0xFF1A1A1A),
fontSize: 12,
fontSize: 12.sp,
fontWeight: FontWeight.w400,
height: 1.5),
)),

4
lib/home/main_home_page.dart

@ -66,8 +66,8 @@ class _MainHomePage extends State<MainHomePage>
},
child: Image.asset(
"assets/image/icon_notices.png",
width: 24.w,
height: 24.h,
width: 24,
height: 24,
),
),
),

37
lib/integral/integral_detailed_page.dart

@ -130,7 +130,8 @@ class _IntegralDetailedPage extends State<IntegralDetailedPage>
elevation: 0,
title: Text(
S.of(context).mingxi,
style: TextStyle(color: Colors.white),
style:
TextStyle(fontWeight: FontWeight.w500, color: Colors.white),
),
centerTitle: false,
leading: GestureDetector(
@ -153,7 +154,7 @@ class _IntegralDetailedPage extends State<IntegralDetailedPage>
flexibleSpace: FlexibleSpaceBar(
background: Container(
alignment: Alignment.center,
margin: EdgeInsets.only(top: 56),
margin: EdgeInsets.only(top: 56.h),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
@ -162,13 +163,15 @@ class _IntegralDetailedPage extends State<IntegralDetailedPage>
userInfo != null ? userInfo.points : "0",
style: TextStyle(
color: Colors.white,
fontWeight: FontWeight.bold,
fontSize: 48),
fontWeight: FontWeight.w500,
fontSize: 48.sp),
),
Text(
S.of(context).wodejifenzhi,
style:
TextStyle(color: Color(0xFFF2F2F2), fontSize: 12),
style: TextStyle(
color: Color(0xFFF2F2F2),
fontSize: 12.sp,
fontWeight: FontWeight.w400),
),
],
),
@ -184,9 +187,9 @@ class _IntegralDetailedPage extends State<IntegralDetailedPage>
indicatorSize: TabBarIndicatorSize.label,
labelColor: Colors.white,
labelStyle:
TextStyle(fontSize: 16, fontWeight: FontWeight.bold),
TextStyle(fontSize: 16.sp, fontWeight: FontWeight.w500),
unselectedLabelStyle:
TextStyle(fontSize: 16, fontWeight: FontWeight.bold),
TextStyle(fontSize: 16.sp, fontWeight: FontWeight.w500),
indicatorColor: Colors.white,
unselectedLabelColor: Color(0xFFE6E6E6),
),
@ -233,14 +236,14 @@ class _IntegralDetailedPage extends State<IntegralDetailedPage>
Image.asset(
"assets/image/icon_intergral_sign.png",
width: 36.w,
height: 34,
height: 34.h,
),
SizedBox(
width: 15,
),
Expanded(
child: Container(
height: 34,
height: 34.h,
alignment: Alignment.centerLeft,
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceAround,
@ -250,22 +253,28 @@ class _IntegralDetailedPage extends State<IntegralDetailedPage>
userBill[position].name ?? "",
// S.of(context).qiandao,
style: TextStyle(
color: Colors.black, fontSize: 12),
color: Colors.black,
fontSize: 12.sp,
fontWeight: FontWeight.w400),
),
Text(
userBill[position].createTime ?? "",
style: TextStyle(
color: Color(0xFF727272), fontSize: 10),
color: Color(0xFF727272),
fontSize: 10.sp,
fontWeight: FontWeight.w400),
)
],
),
)),
Container(
margin: EdgeInsets.only(top: 2),
margin: EdgeInsets.only(top: 2.h),
child: Text(
"${tabController.index == 0 ? "+" : "-"}${double.tryParse(userBill[position].number ?? "0").toInt().toString()}",
style: TextStyle(
color: Color(0xFF727272), fontSize: 12),
color: Color(0xFF727272),
fontSize: 12.sp,
fontWeight: FontWeight.w400),
),
)
],

29
lib/integral/integral_page.dart

@ -156,7 +156,7 @@ class _IntegralPage extends State<IntegralPage> {
S.of(context).zuorenwudejifen,
style: TextStyle(
color: Color(0xFF353535),
fontWeight: FontWeight.bold,
fontWeight: FontWeight.w500,
fontSize: 16.sp,
),
),
@ -263,6 +263,7 @@ class _IntegralPage extends State<IntegralPage> {
"+${double.tryParse(task.rewardValue).toInt()}",
style: TextStyle(
fontSize: 12.sp,
fontWeight: FontWeight.w400,
color: Color(0xFF727272),
),
),
@ -348,8 +349,8 @@ class _IntegralPage extends State<IntegralPage> {
alignment: Alignment.center,
child: Image.asset(
"assets/image/icon_gold_blessing.png",
width: 59.w,
height: 59.h,
width: 59,
height: 59,
),
),
],
@ -386,8 +387,8 @@ class _IntegralPage extends State<IntegralPage> {
alignment: Alignment.center,
child: Image.asset(
"assets/image/icon_gold_coin.png",
width: 30.w,
height: 30.h,
width: 30,
height: 30,
),
),
Container(
@ -402,13 +403,13 @@ class _IntegralPage extends State<IntegralPage> {
? "+${signInfo.rewardList[position]}"
: "+10",
style: TextStyle(
color: (signInfo != null &&
signInfo.signInList != null &&
signInfo.signInList.length > position)
? Colors.white
: Color(0xFF727272),
fontSize: 12.sp,
),
color: (signInfo != null &&
signInfo.signInList != null &&
signInfo.signInList.length > position)
? Colors.white
: Color(0xFF727272),
fontSize: 12.sp,
fontWeight: FontWeight.w400),
),
),
],
@ -442,7 +443,7 @@ class _IntegralPage extends State<IntegralPage> {
Text(
S.of(context).qiandaolingjifen,
style: TextStyle(
fontWeight: FontWeight.bold,
fontWeight: FontWeight.w500,
fontSize: 16.sp,
color: Color(0xFF353535),
),
@ -453,7 +454,7 @@ class _IntegralPage extends State<IntegralPage> {
Text(
S.of(context).lianxuqiandaolingqushuangbeijifen,
style: TextStyle(
fontWeight: FontWeight.bold,
fontWeight: FontWeight.w500,
fontSize: 11.sp,
color: Color(0xFF727272),
),

5
lib/login/login_page.dart

@ -398,7 +398,8 @@ class _MyLoginPageState extends State<LoginPage> with TickerProviderStateMixin {
secondChild: uiPage(),
firstCurve: Curves.easeInQuart,
secondCurve: Curves.easeInQuart,
crossFadeState: isShowLogin ? CrossFadeState.showSecond : CrossFadeState.showFirst,
crossFadeState:
isShowLogin ? CrossFadeState.showSecond : CrossFadeState.showFirst,
duration: Duration(milliseconds: Platform.isIOS ? 1000 : 1000),
);
}
@ -518,7 +519,7 @@ class _MyLoginPageState extends State<LoginPage> with TickerProviderStateMixin {
),
),
SizedBox(
height: 8,
height: 8.h,
),
Opacity(
opacity: (255 - changeAlpha) / 255,

8
lib/mine/edit_name.dart

@ -28,11 +28,11 @@ class _EditName extends State<EditName> {
background: Colors.white,
action: Container(
alignment: Alignment.center,
margin: EdgeInsets.only(right: 16),
margin: EdgeInsets.only(right: 16.w),
child: GestureDetector(
onTap: () {
String name = _controller.text;
if(name != null && name != "") {
if (name != null && name != "") {
Navigator.of(context).pop(name);
} else {
SmartDialog.showToast("请输入用户名", alignment: Alignment.center);
@ -42,7 +42,7 @@ class _EditName extends State<EditName> {
"保存",
style: TextStyle(
color: Colors.black,
fontSize: 18,
fontSize: 18.sp,
fontWeight: FontWeight.bold),
),
),
@ -76,7 +76,7 @@ class _EditName extends State<EditName> {
maxLines: 1,
),
Container(
height: 1,
height: 1.h,
color: Color(0xFF32A060),
),
],

40
lib/mine/manage_address_page.dart

@ -66,8 +66,8 @@ class _ManageAddressPage extends State<ManageAddressPage> {
? NoDataView(
isShowBtn: false,
text: "目前暂无送货地址,请添加",
fontSize: 16,
margin: EdgeInsets.only(top: 120),
fontSize: 16.sp,
margin: EdgeInsets.only(top: 120.h),
)
: ListView.builder(
itemCount: addressList == null ? 0 : addressList.length,
@ -102,7 +102,7 @@ class _ManageAddressPage extends State<ManageAddressPage> {
"新增地址",
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: 16,
fontSize: 16.sp,
color: Colors.white,
),
),
@ -143,7 +143,7 @@ class _ManageAddressPage extends State<ManageAddressPage> {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Container(
margin: EdgeInsets.only(left: 10),
margin: EdgeInsets.only(left: 10.w),
child: Column(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start,
@ -151,13 +151,13 @@ class _ManageAddressPage extends State<ManageAddressPage> {
Text(
address.username,
style: TextStyle(
fontSize: 16,
fontSize: 16.sp,
fontWeight: FontWeight.bold,
color: Colors.black,
),
),
SizedBox(
height: 16,
height: 16.h,
),
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
@ -167,7 +167,7 @@ class _ManageAddressPage extends State<ManageAddressPage> {
child: IconText(
address.phone,
leftImage: "assets/image/icon_address_call.png",
iconSize: 16,
iconSize: 16.sp,
),
),
InkWell(
@ -183,14 +183,14 @@ class _ManageAddressPage extends State<ManageAddressPage> {
],
),
SizedBox(
height: 4,
height: 4.h,
),
IconText(
"${address.address}",
isMax: true,
textAxisAlignment: CrossAxisAlignment.start,
textStyle: TextStyle(
fontSize: 14,
fontSize: 14.sp,
fontWeight: FontWeight.w400,
color: Color(0xFF353535),
),
@ -199,10 +199,10 @@ class _ManageAddressPage extends State<ManageAddressPage> {
iconSize: 16,
),
SizedBox(
height: 10,
height: 10.h,
),
Container(
height: 1,
height: 1.h,
color: Color(0xFFF2F2F2),
)
],
@ -227,7 +227,7 @@ class _ManageAddressPage extends State<ManageAddressPage> {
child: Text(
"",
style: TextStyle(
fontSize: 14,
fontSize: 14.sp,
fontWeight: FontWeight.w400,
color: address.isDefault
? Color(0xFF39B54A)
@ -238,12 +238,12 @@ class _ManageAddressPage extends State<ManageAddressPage> {
InkWell(
child: Padding(
padding: EdgeInsets.only(
top: 5,
top: 5.h,
),
child: Text(
"删除",
style: TextStyle(
fontSize: 16,
fontSize: 16.sp,
fontWeight: FontWeight.w400,
color: Colors.black,
),
@ -267,7 +267,7 @@ class _ManageAddressPage extends State<ManageAddressPage> {
return AlertDialog(
content: Container(
width: MediaQuery.of(context).size.width - 84,
height: 110,
height: 110.h,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
@ -275,13 +275,13 @@ class _ManageAddressPage extends State<ManageAddressPage> {
Text(
"您确定要删除收货地址吗?",
style: TextStyle(
fontSize: 16,
fontSize: 16.sp,
fontWeight: FontWeight.bold,
color: Colors.black,
),
),
SizedBox(
height: 30,
height: 30.h,
),
Row(
children: [
@ -290,7 +290,7 @@ class _ManageAddressPage extends State<ManageAddressPage> {
child: BorderText(
text: "取消",
textColor: Color(0xFF32A060),
fontSize: 16,
fontSize: 16.sp,
fontWeight: FontWeight.bold,
borderColor: Color(0xFF32A060),
radius: 4,
@ -304,7 +304,7 @@ class _ManageAddressPage extends State<ManageAddressPage> {
flex: 1,
),
SizedBox(
width: 16,
width: 16.w,
),
Expanded(
child: InkWell(
@ -314,7 +314,7 @@ class _ManageAddressPage extends State<ManageAddressPage> {
radius: 4,
padding: EdgeInsets.all(12),
backgroup: Color(0xFF32A060),
fontSize: 16,
fontSize: 16.sp,
fontWeight: FontWeight.bold,
),
onTap: () {

3
lib/mine/mine_page.dart

@ -11,6 +11,7 @@ import 'package:huixiang/retrofit/data/rank.dart';
import 'package:huixiang/retrofit/data/user_info.dart';
import 'package:huixiang/retrofit/retrofit_api.dart';
import 'package:huixiang/utils/event_type.dart';
import 'package:huixiang/utils/font_weight.dart';
import 'package:huixiang/view_widget/classic_header.dart';
import 'package:huixiang/view_widget/custom_image.dart';
import 'package:huixiang/view_widget/login_tips.dart';
@ -431,7 +432,7 @@ class _MinePage extends State<MinePage> with AutomaticKeepAliveClientMixin {
child: Text(
text,
style: TextStyle(
fontWeight: FontWeight.w500,
fontWeight: MyFontWeight.medium,
fontSize: 16.sp,
color: Color(0xFF353535),
),

19
lib/order/order_detail_page.dart

@ -9,10 +9,7 @@ import 'package:huixiang/utils/flutter_utils.dart';
import 'package:huixiang/view_widget/border_text.dart';
import 'package:huixiang/view_widget/custom_image.dart';
import 'package:huixiang/view_widget/icon_text.dart';
import 'package:huixiang/view_widget/login_tips.dart';
import 'package:huixiang/view_widget/my_appbar.dart';
import 'package:huixiang/view_widget/pay_input_view.dart';
import 'package:huixiang/view_widget/request_permission.dart';
import 'package:huixiang/view_widget/round_button.dart';
import 'package:huixiang/view_widget/separator.dart';
import 'package:huixiang/view_widget/text_image_dialog.dart';
@ -92,6 +89,7 @@ class _OrderDetailPage extends State<OrderDetailPage> {
bottom: PreferredSize(
preferredSize: Size(double.infinity, orderStatus >= 4 ? 118.h : 118),
child: Container(
color: Color(0xFF3A405A),
height: orderStatus >= 4 ? 118.h : 118.h,
padding: EdgeInsets.fromLTRB(16.w, 0, 16.w, 10.h),
child: Column(
@ -783,10 +781,10 @@ class _OrderDetailPage extends State<OrderDetailPage> {
if (payStatus == 0) {
carryOnPay();
} else {
String storeId = (orderInfo != null &&
orderInfo.storeVO != null)
? (orderInfo.storeVO.id ?? "")
: "";
String storeId =
(orderInfo != null && orderInfo.storeVO != null)
? (orderInfo.storeVO.id ?? "")
: "";
aginOrder(storeId);
}
},
@ -833,8 +831,8 @@ class _OrderDetailPage extends State<OrderDetailPage> {
}
aginOrder(storeId) {
Navigator.of(context).pushNamed('/router/union_detail_page',
arguments: {"id": storeId});
Navigator.of(context)
.pushNamed('/router/union_detail_page', arguments: {"id": storeId});
}
Widget buildCommodity() {
@ -883,7 +881,8 @@ class _OrderDetailPage extends State<OrderDetailPage> {
if (orderInfo == null) return [];
List<Widget> widgets = [];
if (orderInfo.productList != null) {
widgets.addAll(orderInfo.productList.map((e) => commodityItem(e)).toList());
widgets
.addAll(orderInfo.productList.map((e) => commodityItem(e)).toList());
}
widgets.add(SizedBox(height: 20.h));

46
lib/retrofit/retrofit_api.dart

@ -19,7 +19,6 @@ import 'package:shared_preferences/shared_preferences.dart';
import 'data/address.dart';
import 'data/banner.dart';
import 'data/brand.dart';
import 'data/brand_data.dart';
import 'data/exchange_order.dart';
import 'data/goods.dart';
@ -31,10 +30,8 @@ import 'data/page.dart';
import 'data/rank.dart';
import 'data/sign_info.dart';
import 'data/store.dart';
import 'data/store_info.dart';
import 'data/upload_result.dart';
import 'data/user_bill.dart';
import 'data/user_entity.dart';
import 'data/user_info.dart';
import 'data/vip_card.dart';
import 'data/wx_pay.dart';
@ -45,8 +42,6 @@ const base_url = "https://pos.platform.lotus-wallet.com/app/"; ///正式
const baseUrl = "https://pos.platform.lotus-wallet.com/app/"; ///
///
@RestApi(baseUrl: baseUrl)
abstract class ApiService {
factory ApiService(Dio dio,
@ -179,11 +174,13 @@ abstract class ApiService {
///
@POST("/creditGoods/list")
Future<BaseData<PageInfo<Goods>>> creditGoods(@Body() Map<String, dynamic> param);
Future<BaseData<PageInfo<Goods>>> creditGoods(
@Body() Map<String, dynamic> param);
///
@POST("/creditGoodsCategory/page")
Future<BaseData<PageInfo<GoodsCategory>>> goodsCategory(@Body() Map<String, dynamic> param);
Future<BaseData<PageInfo<GoodsCategory>>> goodsCategory(
@Body() Map<String, dynamic> param);
///
@GET("/creditGoods/{id}")
@ -215,7 +212,8 @@ abstract class ApiService {
///
@POST("/creditOrder/list")
Future<BaseData<PageInfo<ExchangeOrder>>> creditOrderList(@Body() Map<String, dynamic> param);
Future<BaseData<PageInfo<ExchangeOrder>>> creditOrderList(
@Body() Map<String, dynamic> param);
///
@POST("/creditOrder/create")
@ -243,11 +241,13 @@ abstract class ApiService {
///
@POST("/coupon/centreList")
Future<BaseData<PageInfo<Coupon>>> queryCoupon(@Body() Map<String, dynamic> param);
Future<BaseData<PageInfo<Coupon>>> queryCoupon(
@Body() Map<String, dynamic> param);
///
@POST("/coupon/packageList")
Future<BaseData<PageInfo<Coupon>>> queryCard(@Body() Map<String, dynamic> param);
Future<BaseData<PageInfo<Coupon>>> queryCard(
@Body() Map<String, dynamic> param);
///
@POST("/store/list")
@ -255,7 +255,8 @@ abstract class ApiService {
///
@POST("/information/list")
Future<BaseData<PageInfo<Activity>>> informationList(@Body() Map<String, dynamic> param);
Future<BaseData<PageInfo<Activity>>> informationList(
@Body() Map<String, dynamic> param);
///
@GET("/information/{id}")
@ -279,11 +280,13 @@ abstract class ApiService {
///
@POST("/information/list")
Future<BaseData<PageInfo<Article>>> queryArticle(@Body() Map<String, dynamic> param);
Future<BaseData<PageInfo<Article>>> queryArticle(
@Body() Map<String, dynamic> param);
///banner查询
@POST("/banner/page")
Future<BaseData<PageInfo<BannerData>>> queryBanner(@Body() Map<String, dynamic> param);
Future<BaseData<PageInfo<BannerData>>> queryBanner(
@Body() Map<String, dynamic> param);
///
@GET("/home/brand")
@ -295,7 +298,8 @@ abstract class ApiService {
///
@POST("/member/listBill")
Future<BaseData<PageInfo<UserBill>>> queryBillInfo(@Body() Map<String, dynamic> param);
Future<BaseData<PageInfo<UserBill>>> queryBillInfo(
@Body() Map<String, dynamic> param);
///
@GET("/member/rankList")
@ -303,7 +307,8 @@ abstract class ApiService {
///
@POST("/order/list")
Future<BaseData<PageInfo<OrderInfo>>> orderList(@Body() Map<String, dynamic> param);
Future<BaseData<PageInfo<OrderInfo>>> orderList(
@Body() Map<String, dynamic> param);
///
@GET("/order/orderDetail?id={id}")
@ -327,7 +332,8 @@ abstract class ApiService {
///App消息列表
@POST("/app-msg/list")
Future<BaseData<PageInfo<Message>>> msgList(@Body() Map<String, dynamic> param);
Future<BaseData<PageInfo<Message>>> msgList(
@Body() Map<String, dynamic> param);
///App消息详情
@GET("/app-msg/{id}")
@ -343,7 +349,8 @@ abstract class ApiService {
///
@POST("/memberComment/list")
Future<BaseData<PageInfo<MemberCommentList>>> memberCommentList(@Body() Map<String, dynamic> param);
Future<BaseData<PageInfo<MemberCommentList>>> memberCommentList(
@Body() Map<String, dynamic> param);
///
@GET("/memberComment/likes/{id}")
@ -355,6 +362,7 @@ abstract class ApiService {
///
@GET("/order/getShippingTrace/{shipperCode}/{logisticCode}")
Future<BaseData<Logistics>> shippingTrace(@Path("shipperCode") String shipperCode, @Path("logisticCode") String logisticCode);
Future<BaseData<Logistics>> shippingTrace(
@Path("shipperCode") String shipperCode,
@Path("logisticCode") String logisticCode);
}

1141
lib/retrofit/retrofit_api.g.dart

File diff suppressed because it is too large Load Diff

2
lib/union/union_page.dart

@ -572,7 +572,7 @@ class _UnionPage extends State<UnionPage>
100.0),
style: TextStyle(
color: Color(0xFF4C4C4C),
fontSize: 12,
fontSize: 12.sp,
),
),
visible: store.distance != null,

77
lib/view_widget/coupon_widget.dart

@ -6,6 +6,7 @@ import 'package:huixiang/retrofit/data/coupon.dart';
import 'package:huixiang/view_widget/custom_image.dart';
import 'package:huixiang/view_widget/round_button.dart';
import 'package:huixiang/view_widget/separator.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
class CouponWidget extends StatelessWidget {
final GestureTapCallback callback;
@ -43,14 +44,14 @@ class CouponWidget extends StatelessWidget {
),
if (coupon.status == 3)
Positioned(
top: 10,
top: 10.h,
right: 0,
child: Transform.rotate(
angle: pi / 5.0,
child: Text(
S.of(context).yishijiao, //
style: TextStyle(
fontSize: 8,
fontSize: 8.sp,
color: Color(0xFF353535),
),
),
@ -70,29 +71,29 @@ class CouponWidget extends StatelessWidget {
child: Row(
children: [
Container(
margin: EdgeInsets.only(left: 20),
child: MImage(
margin: EdgeInsets.only(left: 20),
child: MImage(
(coupon == null ||
coupon.couponImg == null ||
coupon.couponImg == "")
coupon.couponImg == null ||
coupon.couponImg == "")
? ""
: coupon.couponImg,
)
// Image.network(
)
// Image.network(
// width: 60,
// height: 60,
// fit: BoxFit.cover,
// errorBuilder: (context, error, e) {
// return Image.asset(
// "assets/image/default_1.png");
// },
// ),
),
// width: 60,
// height: 60,
// fit: BoxFit.cover,
// errorBuilder: (context, error, e) {
// return Image.asset(
// "assets/image/default_1.png");
// },
// ),
),
Expanded(
flex: 1,
child: Container(
height: 60,
height: 60.h,
margin: EdgeInsets.only(left: 12),
child: Column(
mainAxisAlignment:
@ -109,7 +110,7 @@ class CouponWidget extends StatelessWidget {
coupon.couponName ?? "",
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: 14,
fontSize: 14.sp,
color: Color(0xFF353535),
),
),
@ -118,12 +119,12 @@ class CouponWidget extends StatelessWidget {
? Row(
children: [
RoundButton(
width: 42,
height: 21,
width: 42.w,
height: 21.h,
text:
S.of(context).lingqu,
textColor: Colors.white,
fontSize: 12,
fontSize: 12.sp,
padding: EdgeInsets.only(
top: 2,
bottom: 2,
@ -148,7 +149,7 @@ class CouponWidget extends StatelessWidget {
style: TextStyle(
color: Color(
0xFF32A060),
fontSize: 12,
fontSize: 12.sp,
),
),
Icon(
@ -172,7 +173,7 @@ class CouponWidget extends StatelessWidget {
child: Text(
coupon.couponDescription ?? "",
style: TextStyle(
fontSize: 10,
fontSize: 10.sp,
color: Color(0xFF4C4C4C),
),
),
@ -201,13 +202,17 @@ class CouponWidget extends StatelessWidget {
alignment: Alignment.centerLeft,
child: Text(
coupon.status == 0
? S.of(context).faxingshijian(coupon.publishStartTime)
? S
.of(context)
.faxingshijian(coupon.publishStartTime)
: coupon.status == 1
? S.of(context).lingqushijian(coupon.receiveTime)
? S
.of(context)
.lingqushijian(coupon.receiveTime)
: S.of(context).shiyongriqi,
style: TextStyle(
color: Color(0xFF727272),
fontSize: 10,
fontSize: 10.sp,
),
),
),
@ -252,14 +257,14 @@ class CouponWidget extends StatelessWidget {
"领取成功",
style: TextStyle(
color: Color(0xff353535),
fontSize: 16,
fontSize: 16.sp,
fontWeight: FontWeight.bold),
),
),
Text(
"您已成功领取优惠劵,请在",
style:
TextStyle(color: Color(0xff353535), fontSize: 14),
style: TextStyle(
color: Color(0xff353535), fontSize: 14.sp),
),
Row(
mainAxisAlignment: MainAxisAlignment.center,
@ -269,7 +274,7 @@ class CouponWidget extends StatelessWidget {
"卡包-可使用",
style: TextStyle(
color: Color(0xffFF7A1A),
fontSize: 14,
fontSize: 14.sp,
fontWeight: FontWeight.bold),
),
onTap: callback,
@ -277,18 +282,18 @@ class CouponWidget extends StatelessWidget {
Text(
"中查看",
style: TextStyle(
color: Color(0xff353535), fontSize: 14),
color: Color(0xff353535), fontSize: 14.sp),
),
],
),
Padding(
padding: EdgeInsets.only(top: 30),
padding: EdgeInsets.only(top: 30.h),
child: RoundButton(
width: 130,
height: 34,
width: 130.w,
height: 34.h,
text: S.of(context).queren,
textColor: Colors.white,
fontSize: 12,
fontSize: 12.sp,
callback: () {
Navigator.of(context).pop();
},

6
pubspec.lock

@ -552,7 +552,7 @@ packages:
name: like_button
url: "https://pub.flutter-io.cn"
source: hosted
version: "2.0.2"
version: "2.0.3"
logger:
dependency: "direct main"
description:
@ -818,7 +818,7 @@ packages:
name: shared_preferences_web
url: "https://pub.flutter-io.cn"
source: hosted
version: "2.0.1"
version: "2.0.2"
shared_preferences_windows:
dependency: transitive
description:
@ -1000,7 +1000,7 @@ packages:
name: url_launcher_web
url: "https://pub.flutter-io.cn"
source: hosted
version: "2.0.2"
version: "2.0.4"
url_launcher_windows:
dependency: transitive
description:

Loading…
Cancel
Save