diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj
index 5e709733..994434db 100644
--- a/ios/Runner.xcodeproj/project.pbxproj
+++ b/ios/Runner.xcodeproj/project.pbxproj
@@ -846,7 +846,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
- CURRENT_PROJECT_VERSION = 31;
+ CURRENT_PROJECT_VERSION = 32;
DEVELOPMENT_TEAM = YF3Q8DVP52;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
@@ -881,7 +881,7 @@
"$(PROJECT_DIR)/UniMPSDK/Libs",
"$(PROJECT_DIR)/wx/Libs",
);
- MARKETING_VERSION = 1.0.3;
+ MARKETING_VERSION = 1.0.32;
ONLY_ACTIVE_ARCH = NO;
OTHER_LDFLAGS = (
"$(inherited)",
@@ -1047,7 +1047,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
- CURRENT_PROJECT_VERSION = 31;
+ CURRENT_PROJECT_VERSION = 32;
DEVELOPMENT_TEAM = YF3Q8DVP52;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
@@ -1082,7 +1082,7 @@
"$(PROJECT_DIR)/UniMPSDK/Libs",
"$(PROJECT_DIR)/wx/Libs",
);
- MARKETING_VERSION = 1.0.3;
+ MARKETING_VERSION = 1.0.32;
ONLY_ACTIVE_ARCH = YES;
OTHER_LDFLAGS = (
"$(inherited)",
@@ -1140,7 +1140,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
- CURRENT_PROJECT_VERSION = 31;
+ CURRENT_PROJECT_VERSION = 32;
DEVELOPMENT_TEAM = YF3Q8DVP52;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
@@ -1175,7 +1175,7 @@
"$(PROJECT_DIR)/UniMPSDK/Libs",
"$(PROJECT_DIR)/wx/Libs",
);
- MARKETING_VERSION = 1.0.3;
+ MARKETING_VERSION = 1.0.32;
ONLY_ACTIVE_ARCH = NO;
OTHER_LDFLAGS = (
"$(inherited)",
diff --git a/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
index 39e20baf..fb2dffc4 100644
--- a/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
+++ b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
@@ -81,7 +81,7 @@
buildConfiguration = "Debug">
diff --git a/lib/home/points_mall_page.dart b/lib/home/points_mall_page.dart
index 98ed695e..cb69a73f 100644
--- a/lib/home/points_mall_page.dart
+++ b/lib/home/points_mall_page.dart
@@ -440,8 +440,8 @@ class _PointsMallPage extends State
borderRadius: BorderRadius.only(topRight: Radius.circular(4)),
child: Image.asset(
"assets/image/icon_hot_right_top.png",
- width: 36.w,
- height: 36.h,
+ width: 36,
+ height: 36,
),
),
),
diff --git a/lib/login/login_page.dart b/lib/login/login_page.dart
index 0f5fa8e6..41bd1080 100644
--- a/lib/login/login_page.dart
+++ b/lib/login/login_page.dart
@@ -559,7 +559,10 @@ class _MyLoginPageState extends State with TickerProviderStateMixin {
),
child: Text(
S.of(context).login,
- style: TextStyle(fontSize: 18.sp,fontWeight: FontWeight.w400, color: Colors.white),
+ style: TextStyle(
+ fontSize: 18.sp,
+ fontWeight: FontWeight.w400,
+ color: Colors.white),
),
),
),
@@ -918,7 +921,8 @@ class _MyLoginPageState extends State with TickerProviderStateMixin {
backgroundColor: Colors.transparent,
elevation: 0,
shape: RoundedRectangleBorder(
- borderRadius: BorderRadius.all(Radius.circular(6))),
+ borderRadius: BorderRadius.circular(6),
+ ),
children: [
Stack(
alignment: Alignment.bottomCenter,
@@ -927,11 +931,11 @@ class _MyLoginPageState extends State with TickerProviderStateMixin {
alignment: Alignment.center,
width: double.infinity,
height: 305.h,
- // margin: EdgeInsets.only(left: 40.w, right: 40.w),
padding: EdgeInsets.only(left: 16.w, right: 16.w),
decoration: new BoxDecoration(
- color: Colors.white,
- borderRadius: BorderRadius.all(Radius.circular(8))),
+ color: Colors.white,
+ borderRadius: BorderRadius.circular(8),
+ ),
child: Column(
children: [
Padding(
@@ -950,10 +954,11 @@ class _MyLoginPageState extends State with TickerProviderStateMixin {
TextSpan(
text: S.of(context).yinsizhengce1,
style: TextStyle(
- fontWeight: FontWeight.w500,
- fontSize: 14.sp,
- height: 1.3.h,
- color: Color(0xff727272)),
+ fontWeight: FontWeight.w500,
+ fontSize: 14.sp,
+ height: 1.3.h,
+ color: Color(0xff727272),
+ ),
),
TextSpan(
text: S.of(context).yinsixieyi,
@@ -993,7 +998,7 @@ class _MyLoginPageState extends State with TickerProviderStateMixin {
GestureDetector(
onTap: () {
Navigator.of(context).pop();
- // Navigator.of(context).pop();
+ exit(0);
},
child: Container(
height: 40.h,
@@ -1001,7 +1006,11 @@ class _MyLoginPageState extends State with TickerProviderStateMixin {
margin: EdgeInsets.only(bottom: 20.h),
child: BorderText(
padding: EdgeInsets.only(
- top: 10.h, bottom: 10.h, left: 36.w, right: 36.w),
+ top: 10.h,
+ bottom: 10.h,
+ left: 36.w,
+ right: 36.w,
+ ),
text: S.of(context).jujue,
fontSize: 12.sp,
textColor: Color(0xFF32A060),
@@ -1027,7 +1036,8 @@ class _MyLoginPageState extends State with TickerProviderStateMixin {
value.setBool("isShowPrivacyPolicy", true);
});
SharesdkPlugin.uploadPrivacyPermissionStatus(
- 1, (success) => {
+ 1,
+ (success) => {
Navigator.of(context).pop(),
},
);
diff --git a/lib/main.dart b/lib/main.dart
index 4f82fdfa..cda30c1b 100644
--- a/lib/main.dart
+++ b/lib/main.dart
@@ -108,7 +108,6 @@ initSdk() async {
}
ShareSDKRegister shareSDKRegister = ShareSDKRegister();
- // shareSDKRegister.setup
shareSDKRegister.setupWechat("wx3b269e795ed23e5f",
"64020361b8ec4c99936c0e3999a9f249", "https://hx.lotus-wallet.com/app/");
shareSDKRegister.setupFacebook(
diff --git a/lib/order/order_detail_page.dart b/lib/order/order_detail_page.dart
index 709f0b3b..70837ac0 100644
--- a/lib/order/order_detail_page.dart
+++ b/lib/order/order_detail_page.dart
@@ -79,10 +79,11 @@ class _OrderDetailPage extends State {
titleColor: Colors.white,
background: Color(0xFF3A405A),
leadingColor: Colors.white,
+ toolbarHeight: (orderStatus >= 4 ? 98 : 108) + MediaQuery.of(context).padding.top + kToolbarHeight,
bottom: PreferredSize(
- preferredSize: Size(double.infinity, orderStatus >= 4 ? 98.h : 108.h),
+ preferredSize: Size(double.infinity, orderStatus >= 4 ? 98 : 108),
child: Container(
- height: orderStatus >= 4 ? 98.h : 108.h,
+ height: orderStatus >= 4 ? 98 : 108,
padding: EdgeInsets.fromLTRB(16.w, 0, 16.w, 10.h),
child: Column(
children: [
@@ -172,7 +173,7 @@ class _OrderDetailPage extends State {
left: 0,
right: 0,
child: Container(
- height: 36.h,
+ height: 36,
color: Color(0xFF3A405A),
),
),
diff --git a/lib/order/write_off_page.dart b/lib/order/write_off_page.dart
index 4b32468b..e12b29f5 100644
--- a/lib/order/write_off_page.dart
+++ b/lib/order/write_off_page.dart
@@ -5,7 +5,7 @@ import 'package:huixiang/retrofit/data/coupon.dart';
import 'package:huixiang/view_widget/my_appbar.dart';
import 'package:huixiang/view_widget/separator.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
-// import 'package:qr_flutter/qr_flutter.dart';
+import 'package:qr_flutter/qr_flutter.dart';
class WriteOffPage extends StatefulWidget {
final arguments;
@@ -137,12 +137,12 @@ class _WriteOffPage extends State {
SizedBox(
height: 16.h,
),
- // QrImage(
- // data: coupon != null ? coupon.id : "",
- // version: QrVersions.auto,
- // size: 200.w,
- // gapless: true,
- // ),
+ QrImage(
+ data: coupon != null ? coupon.id : "",
+ version: QrVersions.auto,
+ size: 200.w,
+ gapless: true,
+ ),
SizedBox(
height: 35.h,
),
diff --git a/lib/retrofit/data/activity.dart b/lib/retrofit/data/activity.dart
index 54bdb56e..e769ba24 100644
--- a/lib/retrofit/data/activity.dart
+++ b/lib/retrofit/data/activity.dart
@@ -1,6 +1,4 @@
-
class Activity {
-
Activity();
String id;
@@ -17,6 +15,8 @@ class Activity {
String endTime;
int state;
int isDelete;
+ int likes;
+ int viewers;
String storeName;
factory Activity.fromJson(Map json) => Activity()
@@ -34,62 +34,28 @@ class Activity {
..endTime = json['endTime']
..state = json['state']
..isDelete = json['isDelete']
+ ..likes = json["likes"]
+ ..viewers = json["viewers"]
..storeName = json['storeName'];
-
Map toJson() => {
- 'id': this.id,
- 'createTime': this.createTime,
- 'createUser': this.createUser,
- 'updateTime': this.updateTime,
- 'updateUser': this.updateUser,
- 'storeId': this.storeId,
- 'mainTitle': this.mainTitle,
- 'viceTitle': this.viceTitle,
- 'content': this.content,
- 'coverImg': this.coverImg,
- 'startTime': this.startTime,
- 'endTime': this.endTime,
- 'state': this.state,
- 'isDelete': this.isDelete,
- 'storeName': this.storeName,
- };
-
- // Activity _$ActivityFromJson(Map json) {
- // return Activity()
- // ..id = json['id'] as String
- // ..createTime = json['createTime'] as String
- // ..createUser = json['createUser']
- // ..updateTime = json['updateTime'] as String
- // ..updateUser = json['updateUser']
- // ..storeId = json['storeId'] as String
- // ..mainTitle = json['mainTitle'] as String
- // ..viceTitle = json['viceTitle'] as String
- // ..content = json['content'] as String
- // ..coverImg = json['coverImg'] as String
- // ..startTime = json['startTime'] as String
- // ..endTime = json['endTime'] as String
- // ..state = json['state'] as int
- // ..isDelete = json['isDelete'] as int
- // ..storeName = json['storeName'] as String;
- // }
-
- // Map _$ActivityToJson(Activity instance) => {
- // 'id': instance.id,
- // 'createTime': instance.createTime,
- // 'createUser': instance.createUser,
- // 'updateTime': instance.updateTime,
- // 'updateUser': instance.updateUser,
- // 'storeId': instance.storeId,
- // 'mainTitle': instance.mainTitle,
- // 'viceTitle': instance.viceTitle,
- // 'content': instance.content,
- // 'coverImg': instance.coverImg,
- // 'startTime': instance.startTime,
- // 'endTime': instance.endTime,
- // 'state': instance.state,
- // 'isDelete': instance.isDelete,
- // 'storeName': instance.storeName,
- // };
-
-}
\ No newline at end of file
+ 'id': this.id,
+ 'createTime': this.createTime,
+ 'createUser': this.createUser,
+ 'updateTime': this.updateTime,
+ 'updateUser': this.updateUser,
+ 'storeId': this.storeId,
+ 'mainTitle': this.mainTitle,
+ 'viceTitle': this.viceTitle,
+ 'content': this.content,
+ 'coverImg': this.coverImg,
+ 'startTime': this.startTime,
+ 'endTime': this.endTime,
+ 'state': this.state,
+ 'isDelete': this.isDelete,
+ 'likes': this.likes,
+ 'viewers': this.viewers,
+ 'storeName': this.storeName
+ };
+
+}
diff --git a/lib/retrofit/data/article.dart b/lib/retrofit/data/article.dart
index 447d1aa7..33c789da 100644
--- a/lib/retrofit/data/article.dart
+++ b/lib/retrofit/data/article.dart
@@ -37,6 +37,8 @@ class Article {
String _endTime;
int _state;
int _isDelete;
+ int _likes;
+ int _viewers;
dynamic _storeName;
String get id => _id;
@@ -55,6 +57,8 @@ class Article {
String get endTime => _endTime;
int get state => _state;
int get isDelete => _isDelete;
+ int get likes => _likes;
+ int get viewers => _viewers;
dynamic get storeName => _storeName;
Article({
@@ -74,6 +78,8 @@ class Article {
String endTime,
int state,
int isDelete,
+ int likes,
+ int viewers,
dynamic storeName}){
_id = id;
_createTime = createTime;
@@ -91,6 +97,8 @@ class Article {
_endTime = endTime;
_state = state;
_isDelete = isDelete;
+ _likes = likes;
+ _viewers = viewers;
_storeName = storeName;
}
@@ -111,6 +119,8 @@ class Article {
_endTime = json["endTime"];
_state = json["state"];
_isDelete = json["isDelete"];
+ _likes = json["likes"];
+ _viewers = json["viewers"];
_storeName = json["storeName"];
}
@@ -132,6 +142,8 @@ class Article {
map["endTime"] = _endTime;
map["state"] = _state;
map["isDelete"] = _isDelete;
+ map["likes"] = _likes;
+ map["viewers"] = _viewers;
map["storeName"] = _storeName;
return map;
}
diff --git a/lib/union/store_details_page.dart b/lib/union/store_details_page.dart
index 1fa43b42..a75b8024 100644
--- a/lib/union/store_details_page.dart
+++ b/lib/union/store_details_page.dart
@@ -17,10 +17,8 @@ import 'package:sharesdk_plugin/sharesdk_interface.dart';
import 'package:sharesdk_plugin/sharesdk_map.dart';
import 'package:video_player/video_player.dart';
import 'package:webview_flutter/webview_flutter.dart';
-// ignore: implementation_imports
import 'package:flutter_html/src/replaced_element.dart';
import 'package:flutter/cupertino.dart';
-// ignore: implementation_imports
import 'package:chewie/src/chewie_progress_colors.dart' as chewie;
import 'package:chewie/chewie.dart';
@@ -201,7 +199,7 @@ class _StoreDetailsPage extends State {
},
),
SizedBox(
- width: 10,
+ width: 10.w,
),
Text(
activity != null
diff --git a/lib/view_widget/custom_image.dart b/lib/view_widget/custom_image.dart
index e03f9d4c..529f6e56 100644
--- a/lib/view_widget/custom_image.dart
+++ b/lib/view_widget/custom_image.dart
@@ -13,8 +13,7 @@ class MImage extends StatelessWidget {
final BoxFit fit;
final bool isCircle;
- MImage(
- this.src, {
+ MImage(this.src, {
this.errorSrc = "assets/image/default_2_1.png",
this.fadeSrc = "assets/image/default_2_1.png",
this.aspectRatio,
@@ -28,7 +27,12 @@ class MImage extends StatelessWidget {
@override
Widget build(BuildContext context) {
Widget image = LayoutBuilder(builder: (context, constraints) {
- String imageUrl = "$src?imageMogr2/thumbnail/${constraints.constrainWidth() * 2}x${constraints.constrainHeight() * 2}/format/webp/blur/1x0/quality/75";
+ String imageUrl = "";
+ if (src != null && src != "") {
+ imageUrl = "$src?imageMogr2/thumbnail/${constraints.constrainWidth() *
+ 2}x${constraints.constrainHeight() *
+ 2}/format/webp/blur/1x0/quality/75";
+ }
print("imageUrl: $imageUrl");
return CachedNetworkImage(
imageUrl: imageUrl,
@@ -48,7 +52,6 @@ class MImage extends StatelessWidget {
);
},
placeholder: (context, placeholder) {
- print("object $placeholder");
return Image.asset(
fadeSrc,
fit: fit,
@@ -57,11 +60,11 @@ class MImage extends StatelessWidget {
);
});
- var clipRRect ;
+ var clipRRect;
if (isCircle) {
clipRRect = ClipOval(
- clipBehavior: Clip.antiAlias,
- child: image
+ clipBehavior: Clip.antiAlias,
+ child: image
);
} else {
clipRRect = ClipRRect(
diff --git a/lib/view_widget/mine_vip_view.dart b/lib/view_widget/mine_vip_view.dart
index bcab6976..7ef8a40c 100644
--- a/lib/view_widget/mine_vip_view.dart
+++ b/lib/view_widget/mine_vip_view.dart
@@ -114,6 +114,7 @@ class MineVipView extends StatelessWidget {
],
),
child: Column(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
@@ -169,7 +170,7 @@ class MineVipView extends StatelessWidget {
],
),
Container(
- margin: EdgeInsets.only(left: 13.w, right: 12.w),
+ margin: EdgeInsets.only(left: 13.w, right: 12.w, bottom:12.h),
child: Column(
children: [
Row(
diff --git a/lib/view_widget/no_data_view.dart b/lib/view_widget/no_data_view.dart
index 951c33b0..03a40908 100644
--- a/lib/view_widget/no_data_view.dart
+++ b/lib/view_widget/no_data_view.dart
@@ -1,13 +1,16 @@
import 'package:flutter/material.dart';
import 'package:huixiang/view_widget/round_button.dart';
+import 'package:flutter_screenutil/flutter_screenutil.dart';
class NoDataView extends StatelessWidget {
final bool isShowBtn;
final String text;
final double fontSize;
final EdgeInsets margin;
+
NoDataView(
- {this.isShowBtn = true, this.text,
+ {this.isShowBtn = true,
+ this.text,
this.fontSize,
this.margin = const EdgeInsets.only(top: 30)});
@@ -20,24 +23,26 @@ class NoDataView extends StatelessWidget {
children: [
Image(image: AssetImage("assets/image/icon_empty.png")),
SizedBox(
- height: 35,
+ height: 35.h,
),
Text(
text,
- style: TextStyle(fontSize: fontSize, color: Color(0xFF353535)),
+ style: TextStyle(
+ fontSize: fontSize,
+ color: Color(0xFF353535),
+ ),
),
SizedBox(
- height: 10,
+ height: 10.h,
),
if (isShowBtn)
Container(
- margin: EdgeInsets.symmetric(horizontal: 16),
+ margin: EdgeInsets.symmetric(horizontal: 16.w),
child: RoundButton(
text: "返回首页",
textColor: Colors.white,
- fontSize: 14,
- padding:
- EdgeInsets.only(left: 12, right: 12, top: 12, bottom: 12),
+ fontSize: 14.sp,
+ padding: EdgeInsets.all(12.w),
backgroup: Color(0xFF32A060),
radius: 4,
),