Browse Source

首页轮播间隔速度调整;

门店列表0元显示处理;
店铺信息0元显示处理;
我的页面轮播处理间隔处理;
wr_2024_invoice
wurong 6 months ago
parent
commit
6e6f02b3cf
  1. 4
      lib/home/home_page.dart
  2. 2
      lib/mine/mine_page.dart
  3. 17
      lib/store/store_view/store_info.dart
  4. 19
      lib/union/union_list.dart

4
lib/home/home_page.dart

@ -582,7 +582,7 @@ class HomePageState extends State<HomePage> with AutomaticKeepAliveClientMixin {
),
autoplay: true,
duration: 1000,
autoplayDelay: 100000,
autoplayDelay: 17000,
physics: BouncingScrollPhysics(),
itemBuilder: (context, position) {
return InkWell(
@ -675,7 +675,7 @@ class HomePageState extends State<HomePage> with AutomaticKeepAliveClientMixin {
),
autoplay: true,
duration: 1000,
autoplayDelay: 2000,
autoplayDelay: 10000,
itemBuilder: (context, position) {
return InkWell(
onTap: () {

2
lib/mine/mine_page.dart

@ -467,7 +467,7 @@ class MinePageState extends State<MinePage> with AutomaticKeepAliveClientMixin {
),
autoplay: true,
duration: 1000,
autoplayDelay: 2000,
autoplayDelay: 10000,
itemBuilder: (context, position) {
return InkWell(
onTap: () {

17
lib/store/store_view/store_info.dart

@ -112,22 +112,21 @@ class _StoreInfoView extends State<StoreInfoView> {
),
Row(
children: [
Text(
if( widget.storeInfo.perCapitaConsumption != null && ( widget.storeInfo?.perCapitaConsumption ?? "0") != "0")
Padding(padding:EdgeInsets.only(right: 20.w),
child: Text(
S.of(context).ren(
widget.storeInfo != null
? widget.storeInfo.perCapitaConsumption
: "",
),
widget.storeInfo != null
? widget.storeInfo.perCapitaConsumption
: "",
),
overflow: TextOverflow.ellipsis,
style: TextStyle(
fontSize: 12.sp,
fontWeight: MyFontWeight.medium,
color: Color(0xFF353535),
),
),
SizedBox(
width: 20.w,
),
),),
]..addAll(itemServer(widget.storeInfo != null
? widget.storeInfo.businessService
: "")),

19
lib/union/union_list.dart

@ -5,7 +5,6 @@ import 'package:flutter_easyloading/flutter_easyloading.dart';
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
import 'package:geolocator/geolocator.dart';
import 'package:huixiang/generated/l10n.dart';
import 'package:huixiang/retrofit/data/latlng.dart';
import 'package:huixiang/retrofit/data/store.dart';
import 'package:huixiang/utils/font_weight.dart';
import 'package:huixiang/view_widget/custom_image.dart';
@ -298,17 +297,17 @@ class _UnionList extends State<UnionList> with AutomaticKeepAliveClientMixin {
SizedBox(height: 6.h),
Row(
children: [
Text(
S.of(context).ren(
if(store.perCapitaConsumption != null && (store?.perCapitaConsumption ?? "0") != "0")
Padding(padding: EdgeInsets.only(right: 22.w),child:Text(
S.of(context).ren(
store?.perCapitaConsumption ?? "",
),
style: TextStyle(
color: Color(0xFF4D4D4D),
fontSize: 12.sp,
fontWeight: MyFontWeight.regular,
),
),
SizedBox(width: 22.w),
style: TextStyle(
color: Color(0xFF4D4D4D),
fontSize: 12.sp,
fontWeight: MyFontWeight.regular,
),
),),
if (store.distance != null)
Image.asset(
"assets/image/icon_union_location_black.webp",

Loading…
Cancel
Save