Browse Source

safety

master
fmk 3 years ago
parent
commit
857b4cc3a7
  1. 8
      lib/retrofit/min_api.dart
  2. 6
      lib/store/store_order.dart
  3. 15
      lib/store/store_view/store_order_list.dart

8
lib/retrofit/min_api.dart

@ -15,11 +15,11 @@ import 'data/page.dart';
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 = "https://pos.platform.lotus-wallet.com/app/"; ///
const baseUrl = "https://pos.platform.lotus-wallet.com/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.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/";

6
lib/store/store_order.dart

@ -116,8 +116,7 @@ class _StoreOrderPage extends State<StoreOrderPage>
child: DefaultTabController(
length: 2,
child: SmartRefresher(
controller: refreshController =
RefreshController(initialRefresh: false),
controller: refreshController = RefreshController(initialRefresh: false),
enablePullDown: true,
enablePullUp: false,
header: MyHeader(),
@ -132,8 +131,7 @@ class _StoreOrderPage extends State<StoreOrderPage>
(BuildContext context, bool innerBoxIsScrolled) {
return [
SliverOverlapAbsorber(
handle: NestedScrollView.sliverOverlapAbsorberHandleFor(
context),
handle: NestedScrollView.sliverOverlapAbsorberHandleFor(context),
sliver: SliverAppBar(
expandedHeight: (storeInfo != null &&
storeInfo.couponVOList != null)

15
lib/store/store_view/store_order_list.dart

@ -105,9 +105,13 @@ class _StoreOrderListPage extends State<StoreOrderListPage> {
///
appletGoods() async {
BaseData<List<FindMiNiGroupList>> baseData = await minService
.findMiNiGroupList({"id": widget.arguments["id"]},
{"store_id": widget.arguments["id"], "tenant": "1175"});
BaseData<List<FindMiNiGroupList>> baseData =
await minService.findMiNiGroupList({
"id": widget.arguments["id"]
}, {
"store_id": widget.arguments["id"],
"tenant": widget.arguments["tenant"],
});
if (baseData != null && baseData.isSuccess) {
setState(() {
appletProducts = baseData.data;
@ -123,7 +127,8 @@ class _StoreOrderListPage extends State<StoreOrderListPage> {
width: MediaQuery.of(context).size.width,
height: MediaQuery.of(context).size.height - (kToolbarHeight + 38 + 54.h),
margin: EdgeInsets.only(
top: (MediaQuery.of(context).padding.top + 38 + kToolbarHeight)),
top: (MediaQuery.of(context).padding.top + 38 + kToolbarHeight),
),
child: Row(
mainAxisAlignment: MainAxisAlignment.start,
mainAxisSize: MainAxisSize.max,
@ -133,7 +138,7 @@ class _StoreOrderListPage extends State<StoreOrderListPage> {
child: ListView.builder(
itemCount: appletProducts == null ? 0 : appletProducts.length,
controller: controller1,
padding: EdgeInsets.zero,
padding: EdgeInsets.only(top: 0, bottom: 25),
itemBuilder: (context, position) {
return orderItem(appletProducts[position], position);
},

Loading…
Cancel
Save