Browse Source

Merge remote-tracking branch 'origin/new_revision_app' into new_revision_app

# Conflicts:
#	lib/settlement/settlement_view/coupon.dart
new_revision_app
fmk 2 years ago
parent
commit
0f5193f515
  1. 2
      android/app/build.gradle
  2. 3
      lib/community/community_view/course_banner.dart
  3. 3
      lib/home/home_view/home_banner.dart
  4. 2
      lib/main_page.dart
  5. 22
      lib/mine/mine_page.dart
  6. 4
      lib/mine/mine_view/mine_navbar.dart
  7. 13
      lib/store/store_order.dart
  8. 1
      lib/utils/flutter_utils.dart
  9. 2
      lib/view_widget/new_coupon_widget.dart
  10. 262
      pubspec.lock
  11. 2
      pubspec.yaml

2
android/app/build.gradle

@ -90,7 +90,7 @@ def mfph = [
]
android {
compileSdkVersion 31
compileSdkVersion 33
sourceSets {
main.java.srcDirs += 'src/main/kotlin'

3
lib/community/community_view/course_banner.dart

@ -37,6 +37,9 @@ class _CourseBanner extends State<CourseBanner> {
child: Swiper(
viewportFraction: 0.88,
scale: 0.93,
autoplay: true,
duration: 1500,
autoplayDelay: 2500,
pagination: SwiperPagination(
alignment: Alignment.bottomCenter,
builder: DotSwiperPaginationBuilder(

3
lib/home/home_view/home_banner.dart

@ -36,6 +36,9 @@ class _HomeBanner extends State<HomeBanner> {
color: Colors.white.withAlpha(76),
),
),
autoplay: true,
duration: 1500,
autoplayDelay: 2500,
controller: widget.controller,
physics: BouncingScrollPhysics(),
itemBuilder: (context, position) {

2
lib/main_page.dart

@ -73,7 +73,7 @@ class _MainPage extends State<MainPage> with WidgetsBindingObserver {
break;
case AppLifecycleState.resumed: //
pushRoute();
if(DateTime.now().millisecondsSinceEpoch - lastTime > 300000)
if(DateTime.now().millisecondsSinceEpoch - lastTime > 420000)
Navigator.of(context).popAndPushNamed('/router/main_page');
break;
case AppLifecycleState.paused: //

22
lib/mine/mine_page.dart

@ -137,7 +137,7 @@ class MinePageState extends State<MinePage> with AutomaticKeepAliveClientMixin {
// EasyLoading.dismiss();
}
queryCoupon()async{
queryCoupon() async {
SharedPreferences value = await SharedPreferences.getInstance();
apiService = ApiService(
Dio(),
@ -260,20 +260,16 @@ class MinePageState extends State<MinePage> with AutomaticKeepAliveClientMixin {
setState(() {
totalMsg = 0;
});
}, totalMsg,
infoNumber,
ranks
),
}, totalMsg, infoNumber, ranks),
//////
MineNavbar(
couponNum,
userInfo,
infoNumber,
() {
toIntegralPage();
},
),
MineNavbar(couponNum, userInfo, infoNumber, () {
toIntegralPage();
}, () {
setState((){
queryCoupon();
});
}),
/// VIP等级信息
// MineVipEntry(

4
lib/mine/mine_view/mine_navbar.dart

@ -13,8 +13,9 @@ class MineNavbar extends StatefulWidget {
final UserInfo userInfo;
final SocialInfo infoNumber;
final GestureTapCallback toIntegralPage;
final Function queryCoupon;
MineNavbar(this.couponNum,this.userInfo,this.infoNumber,this.toIntegralPage);
MineNavbar(this.couponNum,this.userInfo,this.infoNumber,this.toIntegralPage,this.queryCoupon);
@override
State<StatefulWidget> createState() {
@ -161,6 +162,7 @@ class _MineNavbar extends State<MineNavbar> {
return;
}
Navigator.of(context).pushNamed('/router/coupon_page');
widget.queryCoupon();
});
},
child: mineBottomItem(

13
lib/store/store_order.dart

@ -515,12 +515,12 @@ class _StoreOrderPage extends State<StoreOrderPage>
Spacer(),
GestureDetector(
onTap: () {
if(AppUtils.compareTime(storeInfo.openStartTime,DateFormat('HH:mm:ss').format(DateTime.now()))
&&(!AppUtils.compareTime(storeInfo.openEndTime,DateFormat('HH:mm:ss').format(DateTime.now())))){
// if(AppUtils.compareTime(storeInfo.openStartTime,DateFormat('HH:mm:ss').format(DateTime.now()))
// &&(!AppUtils.compareTime(storeInfo.openEndTime,DateFormat('HH:mm:ss').format(DateTime.now())))){
toDownOrder();
}
else
SmartDialog.showToast("营业时间:${storeInfo.openStartTime}-${storeInfo.openEndTime}", alignment: Alignment.center);
// }
// else
// SmartDialog.showToast("营业时间:${storeInfo.openStartTime}-${storeInfo.openEndTime}", alignment: Alignment.center);
},
child: RoundButton(
width: 103.w,
@ -676,6 +676,9 @@ class _StoreOrderPage extends State<StoreOrderPage>
color: Colors.white.withAlpha(76),
),
),
autoplay: true,
duration: 1500,
autoplayDelay: 2500,
itemBuilder: (context, position) {
return Container(
child: MImage(

1
lib/utils/flutter_utils.dart

@ -58,6 +58,7 @@ class AppUtils {
return resString;
}
///
static Future<BMFCoordinate> coordConvert(BMFCoordinate latLng) async {
return BMFCalculateUtils.coordConvert(
coordinate: latLng,

2
lib/view_widget/new_coupon_widget.dart

@ -43,7 +43,7 @@ class NewCouponWidget extends StatelessWidget {
// }
return Container(
height: (coupon != null && coupon.isEx) ? 160.h : 140.h,
height: (coupon != null && coupon.isEx) ? 163.h : 143.h,
width: double.infinity,
margin: EdgeInsets.fromLTRB(14.w, 6.h, 14.w, 6.h),
padding: EdgeInsets.only(right: 5),

262
pubspec.lock

File diff suppressed because it is too large Load Diff

2
pubspec.yaml

@ -3,7 +3,7 @@ description: 一心回乡.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 3.2.4+48
version: 3.2.10+55
environment:
sdk: ">=2.7.0 <3.0.0"

Loading…
Cancel
Save