|
|
|
@ -1,15 +1,10 @@
|
|
|
|
|
import 'package:dio/dio.dart'; |
|
|
|
|
import 'package:flutter/material.dart'; |
|
|
|
|
import 'package:flutter_swiper/flutter_swiper.dart'; |
|
|
|
|
import 'package:huixiang/generated/l10n.dart'; |
|
|
|
|
import 'package:huixiang/retrofit/data/activity.dart'; |
|
|
|
|
import 'package:huixiang/retrofit/data/base_data.dart'; |
|
|
|
|
import 'package:huixiang/retrofit/data/findMiNiGroupList.dart'; |
|
|
|
|
import 'package:huixiang/retrofit/data/findMiNiGroupList.dart'; |
|
|
|
|
import 'package:huixiang/retrofit/data/findMiNiGroupList.dart'; |
|
|
|
|
import 'package:huixiang/retrofit/data/findMiNiGroupList.dart'; |
|
|
|
|
import 'package:huixiang/retrofit/data/store_info.dart'; |
|
|
|
|
import 'package:huixiang/retrofit/data/user_entity.dart'; |
|
|
|
|
import 'package:huixiang/retrofit/min_api.dart'; |
|
|
|
|
import 'package:huixiang/retrofit/retrofit_api.dart'; |
|
|
|
|
import 'package:huixiang/utils/font_weight.dart'; |
|
|
|
@ -261,7 +256,7 @@ class _StoreOrderListPage extends State<StoreOrderListPage> {
|
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
Text( |
|
|
|
|
productListBean.applyPrice, |
|
|
|
|
productListBean.price, |
|
|
|
|
style: TextStyle( |
|
|
|
|
color: Color(0xFFFF7A1A), |
|
|
|
|
fontSize: 11.sp, |
|
|
|
@ -282,7 +277,7 @@ class _StoreOrderListPage extends State<StoreOrderListPage> {
|
|
|
|
|
), |
|
|
|
|
SizedBox(width: 10), |
|
|
|
|
Text( |
|
|
|
|
productListBean.price, |
|
|
|
|
productListBean.applyPrice, |
|
|
|
|
style: TextStyle( |
|
|
|
|
color: Color(0xFFA29E9E), |
|
|
|
|
fontSize: 10.sp, |
|
|
|
@ -297,7 +292,7 @@ class _StoreOrderListPage extends State<StoreOrderListPage> {
|
|
|
|
|
true |
|
|
|
|
? GestureDetector( |
|
|
|
|
onTap: () { |
|
|
|
|
showStoreSelector(); |
|
|
|
|
showStoreSelector(productListBean); |
|
|
|
|
}, |
|
|
|
|
child: RoundButton( |
|
|
|
|
width: 49.w, |
|
|
|
@ -322,7 +317,7 @@ class _StoreOrderListPage extends State<StoreOrderListPage> {
|
|
|
|
|
Padding( |
|
|
|
|
padding: EdgeInsets.only(left: 8, right: 8), |
|
|
|
|
child: Text( |
|
|
|
|
"1", |
|
|
|
|
productListBean.buyNum.toString(), |
|
|
|
|
style: TextStyle( |
|
|
|
|
color: Colors.black, |
|
|
|
|
fontSize: 14.sp, |
|
|
|
@ -354,7 +349,7 @@ class _StoreOrderListPage extends State<StoreOrderListPage> {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
///选规格弹窗 |
|
|
|
|
showStoreSelector() { |
|
|
|
|
showStoreSelector(ProductListBean productListBean) { |
|
|
|
|
showModalBottomSheet( |
|
|
|
|
context: context, |
|
|
|
|
backgroundColor: Colors.transparent, |
|
|
|
@ -380,7 +375,7 @@ class _StoreOrderListPage extends State<StoreOrderListPage> {
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
|
children: [ |
|
|
|
|
MImage( |
|
|
|
|
"", |
|
|
|
|
productListBean.imgPath, |
|
|
|
|
width: 70, |
|
|
|
|
height: 70, |
|
|
|
|
fit: BoxFit.cover, |
|
|
|
@ -392,7 +387,7 @@ class _StoreOrderListPage extends State<StoreOrderListPage> {
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
|
children: [ |
|
|
|
|
Text( |
|
|
|
|
"手工啵啵奶茶", |
|
|
|
|
productListBean.productName, |
|
|
|
|
style: TextStyle( |
|
|
|
|
color: Colors.black, |
|
|
|
|
fontSize: 16.sp, |
|
|
|
@ -413,7 +408,7 @@ class _StoreOrderListPage extends State<StoreOrderListPage> {
|
|
|
|
|
Row( |
|
|
|
|
children: [ |
|
|
|
|
Text( |
|
|
|
|
"会员价", |
|
|
|
|
S.of(context).huiyuanjia, |
|
|
|
|
style: TextStyle( |
|
|
|
|
color: Color(0xFFFF7A1A), |
|
|
|
|
fontSize: 13.sp, |
|
|
|
@ -421,7 +416,7 @@ class _StoreOrderListPage extends State<StoreOrderListPage> {
|
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
Text( |
|
|
|
|
"¥19.00", |
|
|
|
|
productListBean.applyPrice, |
|
|
|
|
style: TextStyle( |
|
|
|
|
color: Color(0xFFFF7A1A), |
|
|
|
|
fontSize: 14.sp, |
|
|
|
@ -519,7 +514,7 @@ class _StoreOrderListPage extends State<StoreOrderListPage> {
|
|
|
|
|
Padding( |
|
|
|
|
padding: EdgeInsets.only(left: 8, right: 8), |
|
|
|
|
child: Text( |
|
|
|
|
"1", |
|
|
|
|
productListBean.buyNum.toString(), |
|
|
|
|
style: TextStyle( |
|
|
|
|
color: Colors.black, |
|
|
|
|
fontSize: 14.sp, |
|
|
|
@ -540,7 +535,9 @@ class _StoreOrderListPage extends State<StoreOrderListPage> {
|
|
|
|
|
SizedBox( |
|
|
|
|
height: 24, |
|
|
|
|
), |
|
|
|
|
RoundButton( |
|
|
|
|
GestureDetector( |
|
|
|
|
onTap: (){}, |
|
|
|
|
child: RoundButton( |
|
|
|
|
width: double.infinity, |
|
|
|
|
height: 54.h, |
|
|
|
|
text: "加入购物车", |
|
|
|
@ -551,6 +548,7 @@ class _StoreOrderListPage extends State<StoreOrderListPage> {
|
|
|
|
|
fontSize: 16.sp, |
|
|
|
|
// padding: EdgeInsets.symmetric(vertical: 5.h), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
); |
|
|
|
|