Browse Source

点单更改

master
w-R 3 years ago
parent
commit
50b7f90b31
  1. 6
      lib/retrofit/min_api.dart
  2. 34
      lib/store/store_order.dart
  3. 44
      lib/store/store_view/store_order_list.dart

6
lib/retrofit/min_api.dart

@ -18,8 +18,8 @@ part 'min_api.g.dart';
// const base_url = "https://pos.platform.lotus-wallet.com/app/"; /// // const base_url = "https://pos.platform.lotus-wallet.com/app/"; ///
// const baseUrl = "https://pos.platform.lotus-wallet.com/app/"; /// // const baseUrl = "https://pos.platform.lotus-wallet.com/app/"; ///
const base_url = "http://192.168.10.236:8766/app/"; /// const base_url = "http://192.168.10.236:8765/app/"; ///
const baseUrl = "http://192.168.10.236:8766/app/"; /// const baseUrl = "http://192.168.10.236:8765/app/"; ///
// const base_url = "http://192.168.10.37:8766/app/"; // const base_url = "http://192.168.10.37:8766/app/";
// const baseUrl = "http://192.168.10.37:8766/app/"; // const baseUrl = "http://192.168.10.37:8766/app/";
@ -113,4 +113,6 @@ abstract class MinApiService {
Future<BaseData<List<FindMiNiGroupList>>> findMiNiGroupList( Future<BaseData<List<FindMiNiGroupList>>> findMiNiGroupList(
@Body() Map<String, dynamic> param,Map<String, dynamic> header); @Body() Map<String, dynamic> param,Map<String, dynamic> header);
} }

34
lib/store/store_order.dart

@ -28,7 +28,7 @@ class StoreOrderPage extends StatefulWidget {
final List<Activity> activitys; final List<Activity> activitys;
final StoreInfo storeInfo; final StoreInfo storeInfo;
final List<ProductList> productList; final List<ProductList> productList;
StoreOrderPage({this.arguments, this.activitys, this.storeInfo,this.productList}); StoreOrderPage({this.arguments, this.activitys, this.storeInfo,this.productList});
@ -311,7 +311,7 @@ class _StoreOrderPage extends State<StoreOrderPage>
), ),
), ),
Text( Text(
"19.00", "0.00",
style: TextStyle( style: TextStyle(
fontSize: 20.sp, fontSize: 20.sp,
fontWeight: MyFontWeight.medium, fontWeight: MyFontWeight.medium,
@ -480,7 +480,7 @@ class _StoreOrderPage extends State<StoreOrderPage>
), ),
), ),
Text( Text(
"19.00", "0.00",
style: TextStyle( style: TextStyle(
fontSize: 20.sp, fontSize: 20.sp,
fontWeight: MyFontWeight.medium, fontWeight: MyFontWeight.medium,
@ -517,15 +517,23 @@ class _StoreOrderPage extends State<StoreOrderPage>
Positioned( Positioned(
right: 15, right: 15,
top: 14, top: 14,
child: RoundButton( child: GestureDetector(
width: 17, onTap: (){
height: 17, Navigator.of(context).pushNamed(
text: "1", '/router/settlement',
textColor: Colors.white, arguments: {},
fontWeight: MyFontWeight.regular, );
backgroup: Color(0xFF32A060), },
fontSize: 12.sp, child: RoundButton(
radius: 100, width: 17,
height: 17,
text: "1",
textColor: Colors.white,
fontWeight: MyFontWeight.regular,
backgroup: Color(0xFF32A060),
fontSize: 12.sp,
radius: 100,
),
), ),
), ),
], ],
@ -621,7 +629,7 @@ class _StoreOrderPage extends State<StoreOrderPage>
Padding( Padding(
padding: EdgeInsets.only(left: 8, right: 8), padding: EdgeInsets.only(left: 8, right: 8),
child: Text( child: Text(
"1", productList.buyNum.toString(),
style: TextStyle( style: TextStyle(
color: Colors.black, color: Colors.black,
fontSize: 14.sp, fontSize: 14.sp,

44
lib/store/store_view/store_order_list.dart

@ -151,7 +151,6 @@ class _StoreOrderListPage extends State<StoreOrderListPage> {
Widget orderItem(FindMiNiGroupList findMiNiGroupList,int index) { Widget orderItem(FindMiNiGroupList findMiNiGroupList,int index) {
return Container( return Container(
padding: EdgeInsets.only(top:100.h),
child: Column( child: Column(
mainAxisAlignment: MainAxisAlignment.spaceAround, mainAxisAlignment: MainAxisAlignment.spaceAround,
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
@ -247,7 +246,7 @@ class _StoreOrderListPage extends State<StoreOrderListPage> {
), ),
), ),
Text( Text(
productListBean.applyPrice, productListBean.price,
style: TextStyle( style: TextStyle(
color: Color(0xFFFF7A1A), color: Color(0xFFFF7A1A),
fontSize: 11.sp, fontSize: 11.sp,
@ -268,7 +267,7 @@ class _StoreOrderListPage extends State<StoreOrderListPage> {
), ),
SizedBox(width: 10), SizedBox(width: 10),
Text( Text(
productListBean.price, productListBean.applyPrice,
style: TextStyle( style: TextStyle(
color: Color(0xFFA29E9E), color: Color(0xFFA29E9E),
fontSize: 10.sp, fontSize: 10.sp,
@ -283,7 +282,7 @@ class _StoreOrderListPage extends State<StoreOrderListPage> {
true true
? GestureDetector( ? GestureDetector(
onTap: () { onTap: () {
showStoreSelector(); showStoreSelector(productListBean);
}, },
child: RoundButton( child: RoundButton(
width: 49.w, width: 49.w,
@ -308,7 +307,7 @@ class _StoreOrderListPage extends State<StoreOrderListPage> {
Padding( Padding(
padding: EdgeInsets.only(left: 8, right: 8), padding: EdgeInsets.only(left: 8, right: 8),
child: Text( child: Text(
"1", productListBean.buyNum.toString(),
style: TextStyle( style: TextStyle(
color: Colors.black, color: Colors.black,
fontSize: 14.sp, fontSize: 14.sp,
@ -336,7 +335,7 @@ class _StoreOrderListPage extends State<StoreOrderListPage> {
} }
/// ///
showStoreSelector() { showStoreSelector(ProductListBean productListBean) {
showModalBottomSheet( showModalBottomSheet(
context: context, context: context,
backgroundColor: Colors.transparent, backgroundColor: Colors.transparent,
@ -362,7 +361,7 @@ class _StoreOrderListPage extends State<StoreOrderListPage> {
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
MImage( MImage(
"", productListBean.imgPath,
width: 70, width: 70,
height: 70, height: 70,
fit: BoxFit.cover, fit: BoxFit.cover,
@ -374,7 +373,7 @@ class _StoreOrderListPage extends State<StoreOrderListPage> {
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Text( Text(
"手工啵啵奶茶", productListBean.productName,
style: TextStyle( style: TextStyle(
color: Colors.black, color: Colors.black,
fontSize: 16.sp, fontSize: 16.sp,
@ -395,7 +394,7 @@ class _StoreOrderListPage extends State<StoreOrderListPage> {
Row( Row(
children: [ children: [
Text( Text(
"会员价", S.of(context).huiyuanjia,
style: TextStyle( style: TextStyle(
color: Color(0xFFFF7A1A), color: Color(0xFFFF7A1A),
fontSize: 13.sp, fontSize: 13.sp,
@ -403,7 +402,7 @@ class _StoreOrderListPage extends State<StoreOrderListPage> {
), ),
), ),
Text( Text(
"¥19.00", productListBean.applyPrice,
style: TextStyle( style: TextStyle(
color: Color(0xFFFF7A1A), color: Color(0xFFFF7A1A),
fontSize: 14.sp, fontSize: 14.sp,
@ -501,7 +500,7 @@ class _StoreOrderListPage extends State<StoreOrderListPage> {
Padding( Padding(
padding: EdgeInsets.only(left: 8, right: 8), padding: EdgeInsets.only(left: 8, right: 8),
child: Text( child: Text(
"1", productListBean.buyNum.toString(),
style: TextStyle( style: TextStyle(
color: Colors.black, color: Colors.black,
fontSize: 14.sp, fontSize: 14.sp,
@ -522,16 +521,19 @@ class _StoreOrderListPage extends State<StoreOrderListPage> {
SizedBox( SizedBox(
height: 24, height: 24,
), ),
RoundButton( GestureDetector(
width: double.infinity, onTap: (){},
height: 54.h, child: RoundButton(
text: "加入购物车", width: double.infinity,
textColor: Colors.white, height: 54.h,
fontWeight: MyFontWeight.semi_bold, text: "加入购物车",
radius: 27, textColor: Colors.white,
backgroup: Color(0xFF32A060), fontWeight: MyFontWeight.semi_bold,
fontSize: 16.sp, radius: 27,
// padding: EdgeInsets.symmetric(vertical: 5.h), backgroup: Color(0xFF32A060),
fontSize: 16.sp,
// padding: EdgeInsets.symmetric(vertical: 5.h),
),
), ),
], ],
), ),

Loading…
Cancel
Save