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 baseUrl = "https://pos.platform.lotus-wallet.com/app/"; ///
const base_url = "http://192.168.10.236:8766/app/"; ///
const baseUrl = "http://192.168.10.236:8766/app/"; ///
const base_url = "http://192.168.10.236:8765/app/"; ///
const baseUrl = "http://192.168.10.236:8765/app/"; ///
// const base_url = "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(
@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 StoreInfo storeInfo;
final List<ProductList> productList;
StoreOrderPage({this.arguments, this.activitys, this.storeInfo,this.productList});
@ -311,7 +311,7 @@ class _StoreOrderPage extends State<StoreOrderPage>
),
),
Text(
"19.00",
"0.00",
style: TextStyle(
fontSize: 20.sp,
fontWeight: MyFontWeight.medium,
@ -480,7 +480,7 @@ class _StoreOrderPage extends State<StoreOrderPage>
),
),
Text(
"19.00",
"0.00",
style: TextStyle(
fontSize: 20.sp,
fontWeight: MyFontWeight.medium,
@ -517,15 +517,23 @@ class _StoreOrderPage extends State<StoreOrderPage>
Positioned(
right: 15,
top: 14,
child: RoundButton(
width: 17,
height: 17,
text: "1",
textColor: Colors.white,
fontWeight: MyFontWeight.regular,
backgroup: Color(0xFF32A060),
fontSize: 12.sp,
radius: 100,
child: GestureDetector(
onTap: (){
Navigator.of(context).pushNamed(
'/router/settlement',
arguments: {},
);
},
child: RoundButton(
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: EdgeInsets.only(left: 8, right: 8),
child: Text(
"1",
productList.buyNum.toString(),
style: TextStyle(
color: Colors.black,
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) {
return Container(
padding: EdgeInsets.only(top:100.h),
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceAround,
crossAxisAlignment: CrossAxisAlignment.center,
@ -247,7 +246,7 @@ class _StoreOrderListPage extends State<StoreOrderListPage> {
),
),
Text(
productListBean.applyPrice,
productListBean.price,
style: TextStyle(
color: Color(0xFFFF7A1A),
fontSize: 11.sp,
@ -268,7 +267,7 @@ class _StoreOrderListPage extends State<StoreOrderListPage> {
),
SizedBox(width: 10),
Text(
productListBean.price,
productListBean.applyPrice,
style: TextStyle(
color: Color(0xFFA29E9E),
fontSize: 10.sp,
@ -283,7 +282,7 @@ class _StoreOrderListPage extends State<StoreOrderListPage> {
true
? GestureDetector(
onTap: () {
showStoreSelector();
showStoreSelector(productListBean);
},
child: RoundButton(
width: 49.w,
@ -308,7 +307,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,
@ -336,7 +335,7 @@ class _StoreOrderListPage extends State<StoreOrderListPage> {
}
///
showStoreSelector() {
showStoreSelector(ProductListBean productListBean) {
showModalBottomSheet(
context: context,
backgroundColor: Colors.transparent,
@ -362,7 +361,7 @@ class _StoreOrderListPage extends State<StoreOrderListPage> {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
MImage(
"",
productListBean.imgPath,
width: 70,
height: 70,
fit: BoxFit.cover,
@ -374,7 +373,7 @@ class _StoreOrderListPage extends State<StoreOrderListPage> {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
"手工啵啵奶茶",
productListBean.productName,
style: TextStyle(
color: Colors.black,
fontSize: 16.sp,
@ -395,7 +394,7 @@ class _StoreOrderListPage extends State<StoreOrderListPage> {
Row(
children: [
Text(
"会员价",
S.of(context).huiyuanjia,
style: TextStyle(
color: Color(0xFFFF7A1A),
fontSize: 13.sp,
@ -403,7 +402,7 @@ class _StoreOrderListPage extends State<StoreOrderListPage> {
),
),
Text(
"¥19.00",
productListBean.applyPrice,
style: TextStyle(
color: Color(0xFFFF7A1A),
fontSize: 14.sp,
@ -501,7 +500,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,
@ -522,16 +521,19 @@ class _StoreOrderListPage extends State<StoreOrderListPage> {
SizedBox(
height: 24,
),
RoundButton(
width: double.infinity,
height: 54.h,
text: "加入购物车",
textColor: Colors.white,
fontWeight: MyFontWeight.semi_bold,
radius: 27,
backgroup: Color(0xFF32A060),
fontSize: 16.sp,
// padding: EdgeInsets.symmetric(vertical: 5.h),
GestureDetector(
onTap: (){},
child: RoundButton(
width: double.infinity,
height: 54.h,
text: "加入购物车",
textColor: Colors.white,
fontWeight: MyFontWeight.semi_bold,
radius: 27,
backgroup: Color(0xFF32A060),
fontSize: 16.sp,
// padding: EdgeInsets.symmetric(vertical: 5.h),
),
),
],
),

Loading…
Cancel
Save