|
|
@ -97,7 +97,9 @@ class _StoreOrderPage extends State<StoreOrderPage> |
|
|
|
|
|
|
|
|
|
|
|
/// 小程序登录 |
|
|
|
/// 小程序登录 |
|
|
|
minLogin(SharedPreferences shared) async { |
|
|
|
minLogin(SharedPreferences shared) async { |
|
|
|
EasyLoading.show(status: S.of(context).zhengzaijiazai,maskType: EasyLoadingMaskType.black); |
|
|
|
EasyLoading.show( |
|
|
|
|
|
|
|
status: S.of(context).zhengzaijiazai, |
|
|
|
|
|
|
|
maskType: EasyLoadingMaskType.black); |
|
|
|
apiService = ApiService( |
|
|
|
apiService = ApiService( |
|
|
|
Dio(), |
|
|
|
Dio(), |
|
|
|
context: context, |
|
|
|
context: context, |
|
|
@ -127,7 +129,6 @@ class _StoreOrderPage extends State<StoreOrderPage> |
|
|
|
storeId: storeId, |
|
|
|
storeId: storeId, |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
queryMemberInfo(); |
|
|
|
queryMemberInfo(); |
|
|
|
|
|
|
|
|
|
|
|
queryShopCar().then((value) { |
|
|
|
queryShopCar().then((value) { |
|
|
@ -327,7 +328,10 @@ class _StoreOrderPage extends State<StoreOrderPage> |
|
|
|
CrossAxisAlignment.start, |
|
|
|
CrossAxisAlignment.start, |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
///门店信息 |
|
|
|
///门店信息 |
|
|
|
StoreInfoView(storeInfo,widget.arguments["distance"],), |
|
|
|
StoreInfoView( |
|
|
|
|
|
|
|
storeInfo, |
|
|
|
|
|
|
|
widget.arguments["distance"], |
|
|
|
|
|
|
|
), |
|
|
|
// Padding(padding:EdgeInsets.only(left: 14.w), |
|
|
|
// Padding(padding:EdgeInsets.only(left: 14.w), |
|
|
|
// child: Text( |
|
|
|
// child: Text( |
|
|
|
// S.of(context).diandan, |
|
|
|
// S.of(context).diandan, |
|
|
@ -655,7 +659,7 @@ class _StoreOrderPage extends State<StoreOrderPage> |
|
|
|
"shoppingCart": shopCarGoods, |
|
|
|
"shoppingCart": shopCarGoods, |
|
|
|
"numberOfPeople": numberOfPeople, |
|
|
|
"numberOfPeople": numberOfPeople, |
|
|
|
"distance": widget.arguments["distance"], |
|
|
|
"distance": widget.arguments["distance"], |
|
|
|
"vipLevelName": memberVo?.memberRankVo?.rankName ??"", |
|
|
|
"vipLevelName": memberVo?.memberRankVo?.rankName ?? "", |
|
|
|
"isVips": memberVo?.isVip ?? false, |
|
|
|
"isVips": memberVo?.isVip ?? false, |
|
|
|
"subscribeParam": miNiDetail?.subscribeParam, |
|
|
|
"subscribeParam": miNiDetail?.subscribeParam, |
|
|
|
}, |
|
|
|
}, |
|
|
@ -753,7 +757,8 @@ class _StoreOrderPage extends State<StoreOrderPage> |
|
|
|
|
|
|
|
|
|
|
|
///选规格 |
|
|
|
///选规格 |
|
|
|
_queryMiNiDetail(String id, int count) async { |
|
|
|
_queryMiNiDetail(String id, int count) async { |
|
|
|
EasyLoading.show(status: S.current.zhengzaijiazai,maskType: EasyLoadingMaskType.black); |
|
|
|
EasyLoading.show( |
|
|
|
|
|
|
|
status: S.current.zhengzaijiazai, maskType: EasyLoadingMaskType.black); |
|
|
|
if (count < 0) { |
|
|
|
if (count < 0) { |
|
|
|
shopCarGoods.shoppingCartSkuItemList.forEach((element) async { |
|
|
|
shopCarGoods.shoppingCartSkuItemList.forEach((element) async { |
|
|
|
if (element.productId == id) { |
|
|
|
if (element.productId == id) { |
|
|
@ -1054,17 +1059,17 @@ class _Title extends State<Title> { |
|
|
|
double maxScrollExtent = widget.controller.position.maxScrollExtent; |
|
|
|
double maxScrollExtent = widget.controller.position.maxScrollExtent; |
|
|
|
double alphaHeight = (kToolbarHeight) / 2; |
|
|
|
double alphaHeight = (kToolbarHeight) / 2; |
|
|
|
double alphaProgress = maxScrollExtent - widget.controller.offset; |
|
|
|
double alphaProgress = maxScrollExtent - widget.controller.offset; |
|
|
|
double alphatemp = 0; |
|
|
|
double alphaTemp = 0; |
|
|
|
if (alphaProgress <= 1) { |
|
|
|
if (alphaProgress <= 1) { |
|
|
|
alphatemp = 1; |
|
|
|
alphaTemp = 1; |
|
|
|
} else if (alphaProgress <= alphaHeight) { |
|
|
|
} else if (alphaProgress <= alphaHeight) { |
|
|
|
alphatemp = |
|
|
|
alphaTemp = |
|
|
|
(((alphaHeight - alphaProgress) / alphaHeight) > 0.5) ? 1 : 0; |
|
|
|
(((alphaHeight - alphaProgress) / alphaHeight) > 0.5) ? 1 : 0; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
alphatemp = 0; |
|
|
|
alphaTemp = 0; |
|
|
|
} |
|
|
|
} |
|
|
|
if (alpha != alphatemp && mounted) { |
|
|
|
if (alpha != alphaTemp && mounted) { |
|
|
|
alpha = alphatemp; |
|
|
|
alpha = alphaTemp; |
|
|
|
print("object: $alpha"); |
|
|
|
print("object: $alpha"); |
|
|
|
widget.scrollChange(alpha); |
|
|
|
widget.scrollChange(alpha); |
|
|
|
setState(() {}); |
|
|
|
setState(() {}); |
|
|
@ -1076,10 +1081,12 @@ class _Title extends State<Title> { |
|
|
|
Widget build(BuildContext context) { |
|
|
|
Widget build(BuildContext context) { |
|
|
|
return Container( |
|
|
|
return Container( |
|
|
|
margin: EdgeInsets.only(bottom: 38.h), |
|
|
|
margin: EdgeInsets.only(bottom: 38.h), |
|
|
|
child: Text( |
|
|
|
child: alpha == 0 |
|
|
|
|
|
|
|
? null |
|
|
|
|
|
|
|
: Text( |
|
|
|
widget.title ?? "", |
|
|
|
widget.title ?? "", |
|
|
|
style: TextStyle( |
|
|
|
style: TextStyle( |
|
|
|
color: Colors.black.withOpacity(alpha), |
|
|
|
color: Colors.black, |
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
fontSize: 18.sp, |
|
|
|
fontSize: 18.sp, |
|
|
|
), |
|
|
|
), |
|
|
|