|
|
|
import 'dart:convert';
|
|
|
|
// import 'dart:convert';
|
|
|
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
|
|
import 'package:one_key/constant/state.dart';
|
|
|
|
import 'package:one_key/models/guest_manage_model.dart';
|
|
|
|
import 'package:one_key/models/marketing_by_uid_model.dart';
|
|
|
|
import 'package:one_key/provider/customer_provider.dart';
|
|
|
|
import 'package:one_key/provider/user_model.dart';
|
|
|
|
import 'package:one_key/res/colors.dart';
|
|
|
|
import 'package:one_key/route/navigator_util.dart';
|
|
|
|
import 'package:one_key/utils/event_bus.dart';
|
|
|
|
import 'package:one_key/utils/utils.dart';
|
|
|
|
import 'package:one_key/widgets/h_empty_view.dart';
|
|
|
|
import 'package:one_key/widgets/page_exception.dart';
|
|
|
|
import 'package:one_key/widgets/round_button.dart';
|
|
|
|
import 'package:one_key/widgets/system_app_bar.dart';
|
|
|
|
import 'package:one_key/widgets/v_empty_view.dart';
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
// import 'package:flutter/material.dart';
|
|
|
|
// import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
|
|
// import 'package:one_key/constant/state.dart';
|
|
|
|
// import 'package:one_key/models/guest_manage_model.dart';
|
|
|
|
// import 'package:one_key/models/marketing_by_uid_model.dart';
|
|
|
|
// import 'package:one_key/provider/customer_provider.dart';
|
|
|
|
// import 'package:one_key/provider/user_model.dart';
|
|
|
|
// import 'package:one_key/res/colors.dart';
|
|
|
|
// import 'package:one_key/route/navigator_util.dart';
|
|
|
|
// import 'package:one_key/utils/event_bus.dart';
|
|
|
|
// import 'package:one_key/utils/utils.dart';
|
|
|
|
// import 'package:one_key/widgets/h_empty_view.dart';
|
|
|
|
// import 'package:one_key/widgets/page_exception.dart';
|
|
|
|
// import 'package:one_key/widgets/round_button.dart';
|
|
|
|
// import 'package:one_key/widgets/system_app_bar.dart';
|
|
|
|
// import 'package:one_key/widgets/v_empty_view.dart';
|
|
|
|
// import 'package:provider/provider.dart';
|
|
|
|
|
|
|
|
class MyCustomerPage extends StatefulWidget {
|
|
|
|
MyCustomerPage({Key key}) : super(key: key);
|
|
|
|
// class MyCustomerPage extends StatefulWidget {
|
|
|
|
// MyCustomerPage({Key key}) : super(key: key);
|
|
|
|
|
|
|
|
@override
|
|
|
|
_MyCustomerPageState createState() => _MyCustomerPageState();
|
|
|
|
}
|
|
|
|
// @override
|
|
|
|
// _MyCustomerPageState createState() => _MyCustomerPageState();
|
|
|
|
// }
|
|
|
|
|
|
|
|
class _MyCustomerPageState extends State<MyCustomerPage> {
|
|
|
|
ScrollController _controller = ScrollController();
|
|
|
|
CustomerProvider customerProvider;
|
|
|
|
bool showWarning = false;
|
|
|
|
@override
|
|
|
|
void initState() {
|
|
|
|
super.initState();
|
|
|
|
// class _MyCustomerPageState extends State<MyCustomerPage> {
|
|
|
|
// ScrollController _controller = ScrollController();
|
|
|
|
// CustomerProvider customerProvider;
|
|
|
|
// bool showWarning = false;
|
|
|
|
// @override
|
|
|
|
// void initState() {
|
|
|
|
// super.initState();
|
|
|
|
|
|
|
|
WidgetsBinding.instance.addPostFrameCallback((_) {
|
|
|
|
_couponNetworkData();
|
|
|
|
// WidgetsBinding.instance.addPostFrameCallback((_) {
|
|
|
|
// _couponNetworkData();
|
|
|
|
|
|
|
|
_getMarketingByUid();
|
|
|
|
});
|
|
|
|
bus.on("refresh_my_customer_home", (arg) {
|
|
|
|
_getGuestManageData(isShowLoading: false);
|
|
|
|
_getMarketingByUid();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
// _getMarketingByUid();
|
|
|
|
// });
|
|
|
|
// bus.on("refresh_my_customer_home", (arg) {
|
|
|
|
// _getGuestManageData(isShowLoading: false);
|
|
|
|
// _getMarketingByUid();
|
|
|
|
// });
|
|
|
|
// }
|
|
|
|
|
|
|
|
@override
|
|
|
|
void dispose() {
|
|
|
|
bus.off('refresh_my_customer_home');
|
|
|
|
// bus.off("refresh_coupon_list");
|
|
|
|
super.dispose();
|
|
|
|
}
|
|
|
|
// @override
|
|
|
|
// void dispose() {
|
|
|
|
// bus.off('refresh_my_customer_home');
|
|
|
|
// // bus.off("refresh_coupon_list");
|
|
|
|
// super.dispose();
|
|
|
|
// }
|
|
|
|
|
|
|
|
///我的客户首页
|
|
|
|
_getGuestManageData({bool isShowLoading = true}) async {
|
|
|
|
GuestManageSunModel model = await customerProvider
|
|
|
|
.getGuestManageData(context, isShowLoading: isShowLoading);
|
|
|
|
// setState(() {});
|
|
|
|
}
|
|
|
|
// ///我的客户首页
|
|
|
|
// _getGuestManageData({bool isShowLoading = true}) async {
|
|
|
|
// GuestManageSunModel model = await customerProvider
|
|
|
|
// .getGuestManageData(context, isShowLoading: isShowLoading);
|
|
|
|
// // setState(() {});
|
|
|
|
// }
|
|
|
|
|
|
|
|
///消费券
|
|
|
|
_couponNetworkData({bool isShowLoading = true}) async {
|
|
|
|
// customerMakingProvider.couponSelectIndex = 0;
|
|
|
|
Map<String, String> params = {
|
|
|
|
"uid": Provider.of<UserModel>(context, listen: false).user.openid,
|
|
|
|
};
|
|
|
|
await customerProvider.getCustomerSelectActivityNew(context, params,
|
|
|
|
isShowLoading: isShowLoading);
|
|
|
|
//此人已经新建好券
|
|
|
|
// if (customerProvider.couponListSelect.length > 0) {
|
|
|
|
// for (int i = 0; i < customerProvider.couponListSelect.length; i++) {
|
|
|
|
// if (widget.sellerList.aid == customerProvider.couponListSelect[i].id) {
|
|
|
|
// aidStr = customerProvider.couponListSelect[i].aname;
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// customerProvider.notifyListeners();
|
|
|
|
// } else {
|
|
|
|
// //没有新建的优惠券
|
|
|
|
// }
|
|
|
|
_getGuestManageData();
|
|
|
|
}
|
|
|
|
// ///消费券
|
|
|
|
// _couponNetworkData({bool isShowLoading = true}) async {
|
|
|
|
// // customerMakingProvider.couponSelectIndex = 0;
|
|
|
|
// Map<String, String> params = {
|
|
|
|
// "uid": Provider.of<UserModel>(context, listen: false).user.openid,
|
|
|
|
// };
|
|
|
|
// await customerProvider.getCustomerSelectActivityNew(context, params,
|
|
|
|
// isShowLoading: isShowLoading);
|
|
|
|
// //此人已经新建好券
|
|
|
|
// // if (customerProvider.couponListSelect.length > 0) {
|
|
|
|
// // for (int i = 0; i < customerProvider.couponListSelect.length; i++) {
|
|
|
|
// // if (widget.sellerList.aid == customerProvider.couponListSelect[i].id) {
|
|
|
|
// // aidStr = customerProvider.couponListSelect[i].aname;
|
|
|
|
// // }
|
|
|
|
// // }
|
|
|
|
// // customerProvider.notifyListeners();
|
|
|
|
// // } else {
|
|
|
|
// // //没有新建的优惠券
|
|
|
|
// // }
|
|
|
|
// _getGuestManageData();
|
|
|
|
// }
|
|
|
|
|
|
|
|
_getMarketingByUid() async {
|
|
|
|
Map<String, String> params = {
|
|
|
|
"uid": Provider.of<UserModel>(context, listen: false).user.openid
|
|
|
|
};
|
|
|
|
// await customerProvider.getMarketingByUid(context, params);
|
|
|
|
// _getMarketingByUid() async {
|
|
|
|
// Map<String, String> params = {
|
|
|
|
// "uid": Provider.of<UserModel>(context, listen: false).user.openid
|
|
|
|
// };
|
|
|
|
// // await customerProvider.getMarketingByUid(context, params);
|
|
|
|
|
|
|
|
MarketingByUidsSunModel myRecordData =
|
|
|
|
await customerProvider.getMarketingByUid(context, params);
|
|
|
|
if (myRecordData != null && myRecordData.sellerList.length > 0) {
|
|
|
|
bool temp = myRecordData.sellerList.any((value) {
|
|
|
|
return value.finishedStatus == '0';
|
|
|
|
});
|
|
|
|
setState(() {
|
|
|
|
showWarning = temp;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
// await customerProvider.searchData(customerProvider.controller.text);
|
|
|
|
}
|
|
|
|
// MarketingByUidsSunModel myRecordData =
|
|
|
|
// await customerProvider.getMarketingByUid(context, params);
|
|
|
|
// if (myRecordData != null && myRecordData.sellerList.length > 0) {
|
|
|
|
// bool temp = myRecordData.sellerList.any((value) {
|
|
|
|
// return value.finishedStatus == '0';
|
|
|
|
// });
|
|
|
|
// setState(() {
|
|
|
|
// showWarning = temp;
|
|
|
|
// });
|
|
|
|
// }
|
|
|
|
// // await customerProvider.searchData(customerProvider.controller.text);
|
|
|
|
// }
|
|
|
|
|
|
|
|
///活跃客户、沉睡客户、流失客户
|
|
|
|
Widget _percentWidget(String pnum, String btnTitle, String percent) {
|
|
|
|
return InkWell(
|
|
|
|
onTap: () async {
|
|
|
|
String index = '0';
|
|
|
|
if (btnTitle == '活跃客户') {
|
|
|
|
index = '1';
|
|
|
|
} else if (btnTitle == '沉睡客户') {
|
|
|
|
index = '2';
|
|
|
|
} else if (btnTitle == '流失客户') {
|
|
|
|
index = '3';
|
|
|
|
}
|
|
|
|
NavigatorUtil.goMyCustomerListPage(
|
|
|
|
context, FromPage.FromPageMyCustomer,
|
|
|
|
index: index);
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
// height: ScreenUtil().setWidth(230),
|
|
|
|
width: (ScreenUtil().screenWidth - ScreenUtil().setWidth(20)) / 3,
|
|
|
|
height: (ScreenUtil().screenWidth - ScreenUtil().setWidth(20)) / 3,
|
|
|
|
child: Column(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
Text(pnum,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_199095,
|
|
|
|
fontSize: ScreenUtil().setSp(40),
|
|
|
|
fontWeight: FontWeight.bold)),
|
|
|
|
Text('位',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_199095,
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
))
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(20),
|
|
|
|
RoundButton(
|
|
|
|
onPressed: () async {
|
|
|
|
String index = '0';
|
|
|
|
if (btnTitle == '活跃客户') {
|
|
|
|
index = '1';
|
|
|
|
} else if (btnTitle == '沉睡客户') {
|
|
|
|
index = '2';
|
|
|
|
} else if (btnTitle == '流失客户') {
|
|
|
|
index = '3';
|
|
|
|
}
|
|
|
|
NavigatorUtil.goMyCustomerListPage(
|
|
|
|
context, FromPage.FromPageMyCustomer,
|
|
|
|
index: index);
|
|
|
|
},
|
|
|
|
text: btnTitle,
|
|
|
|
fontSize: 24,
|
|
|
|
isBold: false,
|
|
|
|
textColor: MyColours.color_333333,
|
|
|
|
gradientStart: MyColours.color_ffffff,
|
|
|
|
gradientEnd: MyColours.color_ffffff,
|
|
|
|
borderColor: Color.fromRGBO(118, 118, 118, 1),
|
|
|
|
height: ScreenUtil().setWidth(45),
|
|
|
|
width: ScreenUtil().setWidth(160),
|
|
|
|
radius: ScreenUtil().setWidth(30),
|
|
|
|
),
|
|
|
|
VEmptyView(16),
|
|
|
|
percent == null
|
|
|
|
? SizedBox()
|
|
|
|
: Text('${percent}%',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_199095,
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
)),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
));
|
|
|
|
}
|
|
|
|
// ///活跃客户、沉睡客户、流失客户
|
|
|
|
// Widget _percentWidget(String pnum, String btnTitle, String percent) {
|
|
|
|
// return InkWell(
|
|
|
|
// onTap: () async {
|
|
|
|
// String index = '0';
|
|
|
|
// if (btnTitle == '活跃客户') {
|
|
|
|
// index = '1';
|
|
|
|
// } else if (btnTitle == '沉睡客户') {
|
|
|
|
// index = '2';
|
|
|
|
// } else if (btnTitle == '流失客户') {
|
|
|
|
// index = '3';
|
|
|
|
// }
|
|
|
|
// NavigatorUtil.goMyCustomerListPage(
|
|
|
|
// context, FromPage.FromPageMyCustomer,
|
|
|
|
// index: index);
|
|
|
|
// },
|
|
|
|
// child: Container(
|
|
|
|
// color: MyColours.color_ffffff,
|
|
|
|
// // height: ScreenUtil().setWidth(230),
|
|
|
|
// width: (ScreenUtil().screenWidth - ScreenUtil().setWidth(20)) / 3,
|
|
|
|
// height: (ScreenUtil().screenWidth - ScreenUtil().setWidth(20)) / 3,
|
|
|
|
// child: Column(
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
// children: [
|
|
|
|
// Row(
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
// children: [
|
|
|
|
// Text(pnum,
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_199095,
|
|
|
|
// fontSize: ScreenUtil().setSp(40),
|
|
|
|
// fontWeight: FontWeight.bold)),
|
|
|
|
// Text('位',
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_199095,
|
|
|
|
// fontSize: ScreenUtil().setSp(24),
|
|
|
|
// ))
|
|
|
|
// ],
|
|
|
|
// ),
|
|
|
|
// VEmptyView(20),
|
|
|
|
// RoundButton(
|
|
|
|
// onPressed: () async {
|
|
|
|
// String index = '0';
|
|
|
|
// if (btnTitle == '活跃客户') {
|
|
|
|
// index = '1';
|
|
|
|
// } else if (btnTitle == '沉睡客户') {
|
|
|
|
// index = '2';
|
|
|
|
// } else if (btnTitle == '流失客户') {
|
|
|
|
// index = '3';
|
|
|
|
// }
|
|
|
|
// NavigatorUtil.goMyCustomerListPage(
|
|
|
|
// context, FromPage.FromPageMyCustomer,
|
|
|
|
// index: index);
|
|
|
|
// },
|
|
|
|
// text: btnTitle,
|
|
|
|
// fontSize: 24,
|
|
|
|
// isBold: false,
|
|
|
|
// textColor: MyColours.color_333333,
|
|
|
|
// gradientStart: MyColours.color_ffffff,
|
|
|
|
// gradientEnd: MyColours.color_ffffff,
|
|
|
|
// borderColor: Color.fromRGBO(118, 118, 118, 1),
|
|
|
|
// height: ScreenUtil().setWidth(45),
|
|
|
|
// width: ScreenUtil().setWidth(160),
|
|
|
|
// radius: ScreenUtil().setWidth(30),
|
|
|
|
// ),
|
|
|
|
// VEmptyView(16),
|
|
|
|
// percent == null
|
|
|
|
// ? SizedBox()
|
|
|
|
// : Text('${percent}%',
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_199095,
|
|
|
|
// fontSize: ScreenUtil().setSp(24),
|
|
|
|
// )),
|
|
|
|
// ],
|
|
|
|
// ),
|
|
|
|
// ));
|
|
|
|
// }
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
customerProvider = Provider.of<CustomerProvider>(context, listen: false);
|
|
|
|
return Scaffold(
|
|
|
|
backgroundColor: Color.fromRGBO(246, 248, 250, 1),
|
|
|
|
appBar: SystemAppBar('我的客情', onTap: () {
|
|
|
|
EventBus().emit('changeStatusColor');
|
|
|
|
Navigator.pop(context);
|
|
|
|
}),
|
|
|
|
body: WillPopScope(onWillPop: () async {
|
|
|
|
EventBus().emit('changeStatusColor');
|
|
|
|
return true;
|
|
|
|
}, child: Consumer<CustomerProvider>(builder: (context, model, _) {
|
|
|
|
if (model.pageStateMyHome != PageState.Success) {
|
|
|
|
return ExceptionPage(
|
|
|
|
pageState: model.pageStateMyHome,
|
|
|
|
callback: () {
|
|
|
|
_getGuestManageData();
|
|
|
|
},
|
|
|
|
emptyMsg: "暂时没有我的客情哦",
|
|
|
|
emptyImg: "empty_search",
|
|
|
|
showMsg: "加载中,请稍后...",
|
|
|
|
);
|
|
|
|
} else {
|
|
|
|
return Column(children: [
|
|
|
|
Expanded(
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
controller: _controller,
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
Container(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
vertical: ScreenUtil().setWidth(30)),
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
'${customerProvider.guestSunmodel.myCustomer}',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_199095,
|
|
|
|
fontSize: ScreenUtil().setSp(60),
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'位',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_199095,
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontSize: ScreenUtil().setSp(30)),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(10),
|
|
|
|
RoundButton(
|
|
|
|
onPressed: () async {
|
|
|
|
NavigatorUtil.goMyCustomerListPage(
|
|
|
|
context, FromPage.FromPageMyCustomer);
|
|
|
|
},
|
|
|
|
text: '我的客户',
|
|
|
|
fontSize: 24,
|
|
|
|
isBold: false,
|
|
|
|
textColor: MyColours.color_333333,
|
|
|
|
gradientStart: MyColours.color_ffffff,
|
|
|
|
gradientEnd: MyColours.color_ffffff,
|
|
|
|
borderColor: Color.fromRGBO(118, 118, 118, 1),
|
|
|
|
height: ScreenUtil().setWidth(45),
|
|
|
|
width: ScreenUtil().setWidth(160),
|
|
|
|
radius: ScreenUtil().setWidth(30),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
VEmptyView(10),
|
|
|
|
// GridView.builder(
|
|
|
|
// controller: _controller,
|
|
|
|
// shrinkWrap: true,
|
|
|
|
// cacheExtent: ScreenUtil().setWidth(0),
|
|
|
|
// itemCount: 3,
|
|
|
|
// gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
|
|
|
|
// crossAxisCount: 3,
|
|
|
|
// childAspectRatio: 1,
|
|
|
|
// mainAxisSpacing: ScreenUtil().setWidth(10),
|
|
|
|
// crossAxisSpacing: ScreenUtil().setWidth(10)),
|
|
|
|
// itemBuilder: (BuildContext context, int index) {
|
|
|
|
// // locationState = state;
|
|
|
|
// return _percentWidget(
|
|
|
|
// '${customerProvider.guestSunmodel.active.count}',
|
|
|
|
// '活跃客户',
|
|
|
|
// '${customerProvider.guestSunmodel.active.scale}');
|
|
|
|
// }),
|
|
|
|
Row(
|
|
|
|
children: [
|
|
|
|
_percentWidget(
|
|
|
|
'${customerProvider.guestSunmodel.active.count}',
|
|
|
|
'活跃客户',
|
|
|
|
'${customerProvider.guestSunmodel.active.scale}'),
|
|
|
|
HEmptyView(10),
|
|
|
|
_percentWidget(
|
|
|
|
'${customerProvider.guestSunmodel.sleep.count}',
|
|
|
|
'沉睡客户',
|
|
|
|
'${customerProvider.guestSunmodel.sleep.scale}'),
|
|
|
|
HEmptyView(10),
|
|
|
|
_percentWidget(
|
|
|
|
'${customerProvider.guestSunmodel.drain.count}',
|
|
|
|
'流失客户',
|
|
|
|
'${customerProvider.guestSunmodel.drain.scale}'),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
ListView.builder(
|
|
|
|
controller: _controller,
|
|
|
|
shrinkWrap: true,
|
|
|
|
cacheExtent: ScreenUtil().setWidth(0),
|
|
|
|
itemCount: customerProvider.guestSunmodel.tips.task ==
|
|
|
|
null ||
|
|
|
|
customerProvider
|
|
|
|
.guestSunmodel.tips.task.length ==
|
|
|
|
0
|
|
|
|
? 0
|
|
|
|
: customerProvider.guestSunmodel.tips.task.length,
|
|
|
|
itemBuilder: (BuildContext context, int index) {
|
|
|
|
// locationState = state;
|
|
|
|
Task data =
|
|
|
|
customerProvider.guestSunmodel.tips.task[index];
|
|
|
|
return Column(
|
|
|
|
children: [
|
|
|
|
VEmptyView(10),
|
|
|
|
Container(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(20),
|
|
|
|
vertical: ScreenUtil().setWidth(30)),
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
Image.asset(
|
|
|
|
Utils.getImgPath('warning'),
|
|
|
|
width: ScreenUtil().setWidth(42),
|
|
|
|
),
|
|
|
|
HEmptyView(15),
|
|
|
|
Expanded(
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment:
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
'店内任务:${data.content}',
|
|
|
|
maxLines: 1,
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_333333,
|
|
|
|
fontSize: ScreenUtil().setSp(32)),
|
|
|
|
),
|
|
|
|
data.aid != null && data.aidStr != null
|
|
|
|
? Padding(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
top: ScreenUtil()
|
|
|
|
.setWidth(8)),
|
|
|
|
child: Text(
|
|
|
|
'优惠内容:${data.aidStr}',
|
|
|
|
maxLines: 1,
|
|
|
|
overflow:
|
|
|
|
TextOverflow.ellipsis,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours
|
|
|
|
.color_333333,
|
|
|
|
fontSize: ScreenUtil()
|
|
|
|
.setSp(24)),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
: SizedBox(),
|
|
|
|
VEmptyView(8),
|
|
|
|
Text(
|
|
|
|
'创建人:${data.createUser}',
|
|
|
|
maxLines: 1,
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_333333,
|
|
|
|
fontSize: ScreenUtil().setSp(26)),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
HEmptyView(20),
|
|
|
|
Column(children: [
|
|
|
|
RoundButton(
|
|
|
|
text: '立即完成',
|
|
|
|
// @override
|
|
|
|
// Widget build(BuildContext context) {
|
|
|
|
// customerProvider = Provider.of<CustomerProvider>(context, listen: false);
|
|
|
|
// return Scaffold(
|
|
|
|
// backgroundColor: Color.fromRGBO(246, 248, 250, 1),
|
|
|
|
// appBar: SystemAppBar('我的客情', onTap: () {
|
|
|
|
// EventBus().emit('changeStatusColor');
|
|
|
|
// Navigator.pop(context);
|
|
|
|
// }),
|
|
|
|
// body: WillPopScope(onWillPop: () async {
|
|
|
|
// EventBus().emit('changeStatusColor');
|
|
|
|
// return true;
|
|
|
|
// }, child: Consumer<CustomerProvider>(builder: (context, model, _) {
|
|
|
|
// if (model.pageStateMyHome != PageState.Success) {
|
|
|
|
// return ExceptionPage(
|
|
|
|
// pageState: model.pageStateMyHome,
|
|
|
|
// callback: () {
|
|
|
|
// _getGuestManageData();
|
|
|
|
// },
|
|
|
|
// emptyMsg: "暂时没有我的客情哦",
|
|
|
|
// emptyImg: "empty_search",
|
|
|
|
// showMsg: "加载中,请稍后...",
|
|
|
|
// );
|
|
|
|
// } else {
|
|
|
|
// return Column(children: [
|
|
|
|
// Expanded(
|
|
|
|
// child: SingleChildScrollView(
|
|
|
|
// controller: _controller,
|
|
|
|
// child: Column(
|
|
|
|
// children: [
|
|
|
|
// Container(
|
|
|
|
// color: MyColours.color_ffffff,
|
|
|
|
// padding: EdgeInsets.symmetric(
|
|
|
|
// vertical: ScreenUtil().setWidth(30)),
|
|
|
|
// child: Column(
|
|
|
|
// children: [
|
|
|
|
// Row(
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
// children: [
|
|
|
|
// Text(
|
|
|
|
// '${customerProvider.guestSunmodel.myCustomer}',
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_199095,
|
|
|
|
// fontSize: ScreenUtil().setSp(60),
|
|
|
|
// fontWeight: FontWeight.bold),
|
|
|
|
// ),
|
|
|
|
// Text(
|
|
|
|
// '位',
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_199095,
|
|
|
|
// fontWeight: FontWeight.bold,
|
|
|
|
// fontSize: ScreenUtil().setSp(30)),
|
|
|
|
// )
|
|
|
|
// ],
|
|
|
|
// ),
|
|
|
|
// VEmptyView(10),
|
|
|
|
// RoundButton(
|
|
|
|
// onPressed: () async {
|
|
|
|
// NavigatorUtil.goMyCustomerListPage(
|
|
|
|
// context, FromPage.FromPageMyCustomer);
|
|
|
|
// },
|
|
|
|
// text: '我的客户',
|
|
|
|
// fontSize: 24,
|
|
|
|
// isBold: false,
|
|
|
|
// textColor: MyColours.color_333333,
|
|
|
|
// gradientStart: MyColours.color_ffffff,
|
|
|
|
// gradientEnd: MyColours.color_ffffff,
|
|
|
|
// borderColor: Color.fromRGBO(118, 118, 118, 1),
|
|
|
|
// height: ScreenUtil().setWidth(45),
|
|
|
|
// width: ScreenUtil().setWidth(160),
|
|
|
|
// radius: ScreenUtil().setWidth(30),
|
|
|
|
// )
|
|
|
|
// ],
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// VEmptyView(10),
|
|
|
|
// // GridView.builder(
|
|
|
|
// // controller: _controller,
|
|
|
|
// // shrinkWrap: true,
|
|
|
|
// // cacheExtent: ScreenUtil().setWidth(0),
|
|
|
|
// // itemCount: 3,
|
|
|
|
// // gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
|
|
|
|
// // crossAxisCount: 3,
|
|
|
|
// // childAspectRatio: 1,
|
|
|
|
// // mainAxisSpacing: ScreenUtil().setWidth(10),
|
|
|
|
// // crossAxisSpacing: ScreenUtil().setWidth(10)),
|
|
|
|
// // itemBuilder: (BuildContext context, int index) {
|
|
|
|
// // // locationState = state;
|
|
|
|
// // return _percentWidget(
|
|
|
|
// // '${customerProvider.guestSunmodel.active.count}',
|
|
|
|
// // '活跃客户',
|
|
|
|
// // '${customerProvider.guestSunmodel.active.scale}');
|
|
|
|
// // }),
|
|
|
|
// Row(
|
|
|
|
// children: [
|
|
|
|
// _percentWidget(
|
|
|
|
// '${customerProvider.guestSunmodel.active.count}',
|
|
|
|
// '活跃客户',
|
|
|
|
// '${customerProvider.guestSunmodel.active.scale}'),
|
|
|
|
// HEmptyView(10),
|
|
|
|
// _percentWidget(
|
|
|
|
// '${customerProvider.guestSunmodel.sleep.count}',
|
|
|
|
// '沉睡客户',
|
|
|
|
// '${customerProvider.guestSunmodel.sleep.scale}'),
|
|
|
|
// HEmptyView(10),
|
|
|
|
// _percentWidget(
|
|
|
|
// '${customerProvider.guestSunmodel.drain.count}',
|
|
|
|
// '流失客户',
|
|
|
|
// '${customerProvider.guestSunmodel.drain.scale}'),
|
|
|
|
// ],
|
|
|
|
// ),
|
|
|
|
// ListView.builder(
|
|
|
|
// controller: _controller,
|
|
|
|
// shrinkWrap: true,
|
|
|
|
// cacheExtent: ScreenUtil().setWidth(0),
|
|
|
|
// itemCount: customerProvider.guestSunmodel.tips.task ==
|
|
|
|
// null ||
|
|
|
|
// customerProvider
|
|
|
|
// .guestSunmodel.tips.task.length ==
|
|
|
|
// 0
|
|
|
|
// ? 0
|
|
|
|
// : customerProvider.guestSunmodel.tips.task.length,
|
|
|
|
// itemBuilder: (BuildContext context, int index) {
|
|
|
|
// // locationState = state;
|
|
|
|
// Task data =
|
|
|
|
// customerProvider.guestSunmodel.tips.task[index];
|
|
|
|
// return Column(
|
|
|
|
// children: [
|
|
|
|
// VEmptyView(10),
|
|
|
|
// Container(
|
|
|
|
// color: MyColours.color_ffffff,
|
|
|
|
// padding: EdgeInsets.symmetric(
|
|
|
|
// horizontal: ScreenUtil().setWidth(20),
|
|
|
|
// vertical: ScreenUtil().setWidth(30)),
|
|
|
|
// child: Row(
|
|
|
|
// children: [
|
|
|
|
// Image.asset(
|
|
|
|
// Utils.getImgPath('warning'),
|
|
|
|
// width: ScreenUtil().setWidth(42),
|
|
|
|
// ),
|
|
|
|
// HEmptyView(15),
|
|
|
|
// Expanded(
|
|
|
|
// child: Column(
|
|
|
|
// crossAxisAlignment:
|
|
|
|
// CrossAxisAlignment.start,
|
|
|
|
// children: [
|
|
|
|
// Text(
|
|
|
|
// '店内任务:${data.content}',
|
|
|
|
// maxLines: 1,
|
|
|
|
// overflow: TextOverflow.ellipsis,
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_333333,
|
|
|
|
// fontSize: ScreenUtil().setSp(32)),
|
|
|
|
// ),
|
|
|
|
// data.aid != null && data.aidStr != null
|
|
|
|
// ? Padding(
|
|
|
|
// padding: EdgeInsets.only(
|
|
|
|
// top: ScreenUtil()
|
|
|
|
// .setWidth(8)),
|
|
|
|
// child: Text(
|
|
|
|
// '优惠内容:${data.aidStr}',
|
|
|
|
// maxLines: 1,
|
|
|
|
// overflow:
|
|
|
|
// TextOverflow.ellipsis,
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours
|
|
|
|
// .color_333333,
|
|
|
|
// fontSize: ScreenUtil()
|
|
|
|
// .setSp(24)),
|
|
|
|
// ),
|
|
|
|
// )
|
|
|
|
// : SizedBox(),
|
|
|
|
// VEmptyView(8),
|
|
|
|
// Text(
|
|
|
|
// '创建人:${data.createUser}',
|
|
|
|
// maxLines: 1,
|
|
|
|
// overflow: TextOverflow.ellipsis,
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_333333,
|
|
|
|
// fontSize: ScreenUtil().setSp(26)),
|
|
|
|
// )
|
|
|
|
// ],
|
|
|
|
// )),
|
|
|
|
// HEmptyView(20),
|
|
|
|
// Column(children: [
|
|
|
|
// RoundButton(
|
|
|
|
// text: '立即完成',
|
|
|
|
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal:
|
|
|
|
ScreenUtil().setWidth(26)),
|
|
|
|
gradientStart: MyColours.color_199095,
|
|
|
|
gradientEnd: MyColours.color_199095,
|
|
|
|
// borderColor: MyColours.color_999999,
|
|
|
|
radius: ScreenUtil().setWidth(40),
|
|
|
|
height: ScreenUtil().setWidth(64),
|
|
|
|
width: ScreenUtil().setWidth(180),
|
|
|
|
fontSize: 26,
|
|
|
|
isBold: false,
|
|
|
|
onPressed: () {
|
|
|
|
SellerList sellerList =
|
|
|
|
SellerList.fromJson(json
|
|
|
|
.decode(json.encode(data)));
|
|
|
|
NavigatorUtil
|
|
|
|
.goMyMakeMarkingPageOnlyShow(
|
|
|
|
context, sellerList);
|
|
|
|
},
|
|
|
|
),
|
|
|
|
data.remainingTime != null
|
|
|
|
? Padding(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
top:
|
|
|
|
ScreenUtil().setWidth(6)),
|
|
|
|
child: Text(
|
|
|
|
'${data.remainingTime}天内',
|
|
|
|
maxLines: 1,
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
style: TextStyle(
|
|
|
|
color: Color.fromRGBO(
|
|
|
|
215, 30, 40, 1),
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(26)),
|
|
|
|
))
|
|
|
|
: SizedBox()
|
|
|
|
])
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
);
|
|
|
|
}),
|
|
|
|
ListView.builder(
|
|
|
|
controller: _controller,
|
|
|
|
shrinkWrap: true,
|
|
|
|
cacheExtent: ScreenUtil().setWidth(0),
|
|
|
|
itemCount:
|
|
|
|
customerProvider.guestSunmodel.tips.recover ==
|
|
|
|
null ||
|
|
|
|
customerProvider.guestSunmodel.tips.recover
|
|
|
|
.length ==
|
|
|
|
0
|
|
|
|
? 0
|
|
|
|
: 1,
|
|
|
|
itemBuilder: (BuildContext context, int index) {
|
|
|
|
// locationState = state;
|
|
|
|
// padding: EdgeInsets.symmetric(
|
|
|
|
// horizontal:
|
|
|
|
// ScreenUtil().setWidth(26)),
|
|
|
|
// gradientStart: MyColours.color_199095,
|
|
|
|
// gradientEnd: MyColours.color_199095,
|
|
|
|
// // borderColor: MyColours.color_999999,
|
|
|
|
// radius: ScreenUtil().setWidth(40),
|
|
|
|
// height: ScreenUtil().setWidth(64),
|
|
|
|
// width: ScreenUtil().setWidth(180),
|
|
|
|
// fontSize: 26,
|
|
|
|
// isBold: false,
|
|
|
|
// onPressed: () {
|
|
|
|
// SellerList sellerList =
|
|
|
|
// SellerList.fromJson(json
|
|
|
|
// .decode(json.encode(data)));
|
|
|
|
// NavigatorUtil
|
|
|
|
// .goMyMakeMarkingPageOnlyShow(
|
|
|
|
// context, sellerList);
|
|
|
|
// },
|
|
|
|
// ),
|
|
|
|
// data.remainingTime != null
|
|
|
|
// ? Padding(
|
|
|
|
// padding: EdgeInsets.only(
|
|
|
|
// top:
|
|
|
|
// ScreenUtil().setWidth(6)),
|
|
|
|
// child: Text(
|
|
|
|
// '${data.remainingTime}天内',
|
|
|
|
// maxLines: 1,
|
|
|
|
// overflow: TextOverflow.ellipsis,
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: Color.fromRGBO(
|
|
|
|
// 215, 30, 40, 1),
|
|
|
|
// fontSize:
|
|
|
|
// ScreenUtil().setSp(26)),
|
|
|
|
// ))
|
|
|
|
// : SizedBox()
|
|
|
|
// ])
|
|
|
|
// ],
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// ],
|
|
|
|
// );
|
|
|
|
// }),
|
|
|
|
// ListView.builder(
|
|
|
|
// controller: _controller,
|
|
|
|
// shrinkWrap: true,
|
|
|
|
// cacheExtent: ScreenUtil().setWidth(0),
|
|
|
|
// itemCount:
|
|
|
|
// customerProvider.guestSunmodel.tips.recover ==
|
|
|
|
// null ||
|
|
|
|
// customerProvider.guestSunmodel.tips.recover
|
|
|
|
// .length ==
|
|
|
|
// 0
|
|
|
|
// ? 0
|
|
|
|
// : 1,
|
|
|
|
// itemBuilder: (BuildContext context, int index) {
|
|
|
|
// // locationState = state;
|
|
|
|
|
|
|
|
return Column(
|
|
|
|
children: [
|
|
|
|
VEmptyView(10),
|
|
|
|
Container(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(20),
|
|
|
|
vertical: ScreenUtil().setWidth(30)),
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
Image.asset(
|
|
|
|
Utils.getImgPath('warning'),
|
|
|
|
width: ScreenUtil().setWidth(42),
|
|
|
|
),
|
|
|
|
HEmptyView(15),
|
|
|
|
Expanded(
|
|
|
|
child: Text(
|
|
|
|
'${customerProvider.guestSunmodel.tips.recover[0]}',
|
|
|
|
maxLines: 10,
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_333333,
|
|
|
|
fontSize: ScreenUtil().setSp(32)),
|
|
|
|
)),
|
|
|
|
HEmptyView(20),
|
|
|
|
RoundButton(
|
|
|
|
text: '一键追回',
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal:
|
|
|
|
ScreenUtil().setWidth(26)),
|
|
|
|
gradientStart: MyColours.color_199095,
|
|
|
|
gradientEnd: MyColours.color_199095,
|
|
|
|
// borderColor: MyColours.color_999999,
|
|
|
|
radius: ScreenUtil().setWidth(40),
|
|
|
|
height: ScreenUtil().setWidth(64),
|
|
|
|
width: ScreenUtil().setWidth(180),
|
|
|
|
fontSize: 26,
|
|
|
|
isBold: false,
|
|
|
|
onPressed: () {
|
|
|
|
NavigatorUtil.goMyMakeMarkingPage(
|
|
|
|
context,
|
|
|
|
fromPage:
|
|
|
|
FromPage.FromPageMyCustomer,
|
|
|
|
homeGid: Utils.listToStringEnglish1(
|
|
|
|
customerProvider.guestSunmodel
|
|
|
|
.tips.recover[1]));
|
|
|
|
},
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
);
|
|
|
|
}),
|
|
|
|
ListView.builder(
|
|
|
|
controller: _controller,
|
|
|
|
shrinkWrap: true,
|
|
|
|
cacheExtent: ScreenUtil().setWidth(0),
|
|
|
|
itemCount: customerProvider.guestSunmodel.tips.awaken ==
|
|
|
|
null ||
|
|
|
|
customerProvider
|
|
|
|
.guestSunmodel.tips.awaken.length ==
|
|
|
|
0
|
|
|
|
? 0
|
|
|
|
: 1,
|
|
|
|
itemBuilder: (BuildContext context, int index) {
|
|
|
|
// locationState = state;
|
|
|
|
// return Column(
|
|
|
|
// children: [
|
|
|
|
// VEmptyView(10),
|
|
|
|
// Container(
|
|
|
|
// color: MyColours.color_ffffff,
|
|
|
|
// padding: EdgeInsets.symmetric(
|
|
|
|
// horizontal: ScreenUtil().setWidth(20),
|
|
|
|
// vertical: ScreenUtil().setWidth(30)),
|
|
|
|
// child: Row(
|
|
|
|
// children: [
|
|
|
|
// Image.asset(
|
|
|
|
// Utils.getImgPath('warning'),
|
|
|
|
// width: ScreenUtil().setWidth(42),
|
|
|
|
// ),
|
|
|
|
// HEmptyView(15),
|
|
|
|
// Expanded(
|
|
|
|
// child: Text(
|
|
|
|
// '${customerProvider.guestSunmodel.tips.recover[0]}',
|
|
|
|
// maxLines: 10,
|
|
|
|
// overflow: TextOverflow.ellipsis,
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_333333,
|
|
|
|
// fontSize: ScreenUtil().setSp(32)),
|
|
|
|
// )),
|
|
|
|
// HEmptyView(20),
|
|
|
|
// RoundButton(
|
|
|
|
// text: '一键追回',
|
|
|
|
// padding: EdgeInsets.symmetric(
|
|
|
|
// horizontal:
|
|
|
|
// ScreenUtil().setWidth(26)),
|
|
|
|
// gradientStart: MyColours.color_199095,
|
|
|
|
// gradientEnd: MyColours.color_199095,
|
|
|
|
// // borderColor: MyColours.color_999999,
|
|
|
|
// radius: ScreenUtil().setWidth(40),
|
|
|
|
// height: ScreenUtil().setWidth(64),
|
|
|
|
// width: ScreenUtil().setWidth(180),
|
|
|
|
// fontSize: 26,
|
|
|
|
// isBold: false,
|
|
|
|
// onPressed: () {
|
|
|
|
// NavigatorUtil.goMyMakeMarkingPage(
|
|
|
|
// context,
|
|
|
|
// fromPage:
|
|
|
|
// FromPage.FromPageMyCustomer,
|
|
|
|
// homeGid: Utils.listToStringEnglish1(
|
|
|
|
// customerProvider.guestSunmodel
|
|
|
|
// .tips.recover[1]));
|
|
|
|
// },
|
|
|
|
// ),
|
|
|
|
// ],
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// ],
|
|
|
|
// );
|
|
|
|
// }),
|
|
|
|
// ListView.builder(
|
|
|
|
// controller: _controller,
|
|
|
|
// shrinkWrap: true,
|
|
|
|
// cacheExtent: ScreenUtil().setWidth(0),
|
|
|
|
// itemCount: customerProvider.guestSunmodel.tips.awaken ==
|
|
|
|
// null ||
|
|
|
|
// customerProvider
|
|
|
|
// .guestSunmodel.tips.awaken.length ==
|
|
|
|
// 0
|
|
|
|
// ? 0
|
|
|
|
// : 1,
|
|
|
|
// itemBuilder: (BuildContext context, int index) {
|
|
|
|
// // locationState = state;
|
|
|
|
|
|
|
|
return Column(
|
|
|
|
children: [
|
|
|
|
VEmptyView(10),
|
|
|
|
Container(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(20),
|
|
|
|
vertical: ScreenUtil().setWidth(30)),
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
Image.asset(
|
|
|
|
Utils.getImgPath('warning'),
|
|
|
|
width: ScreenUtil().setWidth(42),
|
|
|
|
),
|
|
|
|
HEmptyView(15),
|
|
|
|
Expanded(
|
|
|
|
child: Text(
|
|
|
|
'${customerProvider.guestSunmodel.tips.awaken[0]}',
|
|
|
|
maxLines: 10,
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_333333,
|
|
|
|
fontSize: ScreenUtil().setSp(32)),
|
|
|
|
)),
|
|
|
|
HEmptyView(20),
|
|
|
|
RoundButton(
|
|
|
|
text: '一键唤醒',
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal:
|
|
|
|
ScreenUtil().setWidth(26)),
|
|
|
|
gradientStart: MyColours.color_199095,
|
|
|
|
gradientEnd: MyColours.color_199095,
|
|
|
|
// borderColor: MyColours.color_999999,
|
|
|
|
radius: ScreenUtil().setWidth(40),
|
|
|
|
height: ScreenUtil().setWidth(64),
|
|
|
|
width: ScreenUtil().setWidth(180),
|
|
|
|
fontSize: 26,
|
|
|
|
isBold: false,
|
|
|
|
onPressed: () {
|
|
|
|
NavigatorUtil.goMyMakeMarkingPage(
|
|
|
|
context,
|
|
|
|
fromPage:
|
|
|
|
FromPage.FromPageMyCustomer,
|
|
|
|
homeGid: Utils.listToStringEnglish1(
|
|
|
|
customerProvider.guestSunmodel
|
|
|
|
.tips.awaken[1]));
|
|
|
|
},
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
);
|
|
|
|
})
|
|
|
|
],
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.only(bottom: ScreenUtil().setWidth(30)),
|
|
|
|
child: Stack(
|
|
|
|
children: [
|
|
|
|
RoundButton(
|
|
|
|
onPressed: () {
|
|
|
|
NavigatorUtil.goMyMarketingRecordsPage(
|
|
|
|
context, FromPage.FromPageMyCustomer);
|
|
|
|
},
|
|
|
|
text: '营销记录',
|
|
|
|
fontSize: 24,
|
|
|
|
isBold: false,
|
|
|
|
textColor: MyColours.color_199095,
|
|
|
|
gradientStart: MyColours.color_ffffff,
|
|
|
|
gradientEnd: MyColours.color_ffffff,
|
|
|
|
borderColor: MyColours.color_199095,
|
|
|
|
height: ScreenUtil().setWidth(75),
|
|
|
|
width: ScreenUtil().setWidth(260),
|
|
|
|
radius: ScreenUtil().setWidth(10),
|
|
|
|
),
|
|
|
|
showWarning
|
|
|
|
? Positioned(
|
|
|
|
right: ScreenUtil().setWidth(30),
|
|
|
|
top: ScreenUtil().setWidth(40 / 2),
|
|
|
|
child: Image.asset(
|
|
|
|
Utils.getImgPath('warning'),
|
|
|
|
width: ScreenUtil().setWidth(35),
|
|
|
|
))
|
|
|
|
: SizedBox()
|
|
|
|
],
|
|
|
|
))
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
})));
|
|
|
|
}
|
|
|
|
} |
|
|
|
// return Column(
|
|
|
|
// children: [
|
|
|
|
// VEmptyView(10),
|
|
|
|
// Container(
|
|
|
|
// color: MyColours.color_ffffff,
|
|
|
|
// padding: EdgeInsets.symmetric(
|
|
|
|
// horizontal: ScreenUtil().setWidth(20),
|
|
|
|
// vertical: ScreenUtil().setWidth(30)),
|
|
|
|
// child: Row(
|
|
|
|
// children: [
|
|
|
|
// Image.asset(
|
|
|
|
// Utils.getImgPath('warning'),
|
|
|
|
// width: ScreenUtil().setWidth(42),
|
|
|
|
// ),
|
|
|
|
// HEmptyView(15),
|
|
|
|
// Expanded(
|
|
|
|
// child: Text(
|
|
|
|
// '${customerProvider.guestSunmodel.tips.awaken[0]}',
|
|
|
|
// maxLines: 10,
|
|
|
|
// overflow: TextOverflow.ellipsis,
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_333333,
|
|
|
|
// fontSize: ScreenUtil().setSp(32)),
|
|
|
|
// )),
|
|
|
|
// HEmptyView(20),
|
|
|
|
// RoundButton(
|
|
|
|
// text: '一键唤醒',
|
|
|
|
// padding: EdgeInsets.symmetric(
|
|
|
|
// horizontal:
|
|
|
|
// ScreenUtil().setWidth(26)),
|
|
|
|
// gradientStart: MyColours.color_199095,
|
|
|
|
// gradientEnd: MyColours.color_199095,
|
|
|
|
// // borderColor: MyColours.color_999999,
|
|
|
|
// radius: ScreenUtil().setWidth(40),
|
|
|
|
// height: ScreenUtil().setWidth(64),
|
|
|
|
// width: ScreenUtil().setWidth(180),
|
|
|
|
// fontSize: 26,
|
|
|
|
// isBold: false,
|
|
|
|
// onPressed: () {
|
|
|
|
// NavigatorUtil.goMyMakeMarkingPage(
|
|
|
|
// context,
|
|
|
|
// fromPage:
|
|
|
|
// FromPage.FromPageMyCustomer,
|
|
|
|
// homeGid: Utils.listToStringEnglish1(
|
|
|
|
// customerProvider.guestSunmodel
|
|
|
|
// .tips.awaken[1]));
|
|
|
|
// },
|
|
|
|
// ),
|
|
|
|
// ],
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// ],
|
|
|
|
// );
|
|
|
|
// })
|
|
|
|
// ],
|
|
|
|
// ),
|
|
|
|
// )),
|
|
|
|
// Padding(
|
|
|
|
// padding: EdgeInsets.only(bottom: ScreenUtil().setWidth(30)),
|
|
|
|
// child: Stack(
|
|
|
|
// children: [
|
|
|
|
// RoundButton(
|
|
|
|
// onPressed: () {
|
|
|
|
// NavigatorUtil.goMyMarketingRecordsPage(
|
|
|
|
// context, FromPage.FromPageMyCustomer);
|
|
|
|
// },
|
|
|
|
// text: '营销记录',
|
|
|
|
// fontSize: 24,
|
|
|
|
// isBold: false,
|
|
|
|
// textColor: MyColours.color_199095,
|
|
|
|
// gradientStart: MyColours.color_ffffff,
|
|
|
|
// gradientEnd: MyColours.color_ffffff,
|
|
|
|
// borderColor: MyColours.color_199095,
|
|
|
|
// height: ScreenUtil().setWidth(75),
|
|
|
|
// width: ScreenUtil().setWidth(260),
|
|
|
|
// radius: ScreenUtil().setWidth(10),
|
|
|
|
// ),
|
|
|
|
// showWarning
|
|
|
|
// ? Positioned(
|
|
|
|
// right: ScreenUtil().setWidth(30),
|
|
|
|
// top: ScreenUtil().setWidth(40 / 2),
|
|
|
|
// child: Image.asset(
|
|
|
|
// Utils.getImgPath('warning'),
|
|
|
|
// width: ScreenUtil().setWidth(35),
|
|
|
|
// ))
|
|
|
|
// : SizedBox()
|
|
|
|
// ],
|
|
|
|
// ))
|
|
|
|
// ]);
|
|
|
|
// }
|
|
|
|
// })));
|
|
|
|
// }
|
|
|
|
// } |
...
|
...
|
|