|
...
|
...
|
@@ -19,6 +19,7 @@ import 'package:one_key/route/navigator_util.dart'; |
|
|
|
import 'package:one_key/utils/utils.dart';
|
|
|
|
import 'package:one_key/widgets/h_empty_view.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:permission_handler/permission_handler.dart';
|
|
|
|
import 'package:provider/provider.dart';
|
|
...
|
...
|
@@ -46,7 +47,7 @@ class InvicationPageState extends State<InvicationPage> { |
|
|
|
DateTime dateTime;
|
|
|
|
String dateTimeStr = "";
|
|
|
|
ScrollController controller = ScrollController();
|
|
|
|
double couponHeight = 180.0;
|
|
|
|
double couponHeight = 140.0;
|
|
|
|
CouponProvider couponProvider;
|
|
|
|
BaseIndoProvider _baseIndoProvider;
|
|
|
|
String name = '填写姓名';
|
|
...
|
...
|
@@ -135,7 +136,7 @@ class InvicationPageState extends State<InvicationPage> { |
|
|
|
});
|
|
|
|
} else {
|
|
|
|
setState(() {
|
|
|
|
couponHeight = 180.0;
|
|
|
|
couponHeight = 140.0;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
} else {
|
|
...
|
...
|
@@ -278,640 +279,572 @@ class InvicationPageState extends State<InvicationPage> { |
|
|
|
// TODO: implement build
|
|
|
|
_baseIndoProvider = Provider.of<BaseIndoProvider>(context, listen: true);
|
|
|
|
couponProvider = Provider.of<CouponProvider>(context, listen: true);
|
|
|
|
return Container(
|
|
|
|
width: double.infinity,
|
|
|
|
// height: double.infinity,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
image: DecorationImage(
|
|
|
|
image: AssetImage("assets/yd_bg_new.png"), fit: BoxFit.fill),
|
|
|
|
),
|
|
|
|
return SafeArea(
|
|
|
|
child: Scaffold(
|
|
|
|
backgroundColor: Colors.transparent,
|
|
|
|
backgroundColor: Colors.white,
|
|
|
|
appBar: SystemAppBar('', onTap: () {
|
|
|
|
Navigator.pop(context);
|
|
|
|
}),
|
|
|
|
body: Stack(
|
|
|
|
children: [
|
|
|
|
Container(
|
|
|
|
margin: EdgeInsets.only(top: ScreenUtil().setWidth(13 * 2)),
|
|
|
|
padding:
|
|
|
|
EdgeInsets.only(top: ScreenUtil().setWidth(35 * 2)),
|
|
|
|
child: Column(children: [
|
|
|
|
Expanded(
|
|
|
|
child: ListView(
|
|
|
|
controller: controller,
|
|
|
|
physics: BouncingScrollPhysics(),
|
|
|
|
children: <Widget>[
|
|
|
|
Center(
|
|
|
|
child: Column(
|
|
|
|
children: <Widget>[
|
|
|
|
Image.asset(
|
|
|
|
"assets/yd_logo.png",
|
|
|
|
width: ScreenUtil().setWidth(233 * 2),
|
|
|
|
height: ScreenUtil().setHeight(51 * 2),
|
|
|
|
),
|
|
|
|
VEmptyView(26),
|
|
|
|
Container(
|
|
|
|
margin: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(40)),
|
|
|
|
// padding: EdgeInsets.all(
|
|
|
|
// ScreenUtil().setWidth(60)),
|
|
|
|
// decoration: BoxDecoration(
|
|
|
|
// gradient: LinearGradient(
|
|
|
|
// begin: Alignment.topCenter,
|
|
|
|
// end: Alignment.bottomCenter,
|
|
|
|
// colors: [
|
|
|
|
// MyColours.color_F7F1E8,
|
|
|
|
// MyColours.color_E3D6C7,
|
|
|
|
// ],
|
|
|
|
// ),
|
|
|
|
// borderRadius: BorderRadius.circular(
|
|
|
|
// ScreenUtil().setWidth(10))),
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment:
|
|
|
|
CrossAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
Container(
|
|
|
|
// color: Colors.red,
|
|
|
|
width:
|
|
|
|
ScreenUtil().setWidth(335 * 2),
|
|
|
|
height:
|
|
|
|
ScreenUtil().setWidth(200 * 2),
|
|
|
|
// decoration: BoxDecoration(
|
|
|
|
// image: DecorationImage(
|
|
|
|
// alignment:
|
|
|
|
// Alignment.topCenter,
|
|
|
|
// image: AssetImage(
|
|
|
|
// "assets/yd_baiinfo_bg.png"),
|
|
|
|
// fit: BoxFit.cover),
|
|
|
|
// ),
|
|
|
|
child: Row(
|
|
|
|
crossAxisAlignment:
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
left: ScreenUtil()
|
|
|
|
.setWidth(70)),
|
|
|
|
child: qiniuUrl == ''
|
|
|
|
? Image.asset(
|
|
|
|
Utils.getImgPath(
|
|
|
|
'yd_person'),
|
|
|
|
width: ScreenUtil().setWidth(
|
|
|
|
143 * 2),
|
|
|
|
height: ScreenUtil()
|
|
|
|
.setWidth(
|
|
|
|
190 * 2))
|
|
|
|
: Image.network(qiniuUrl,
|
|
|
|
Column(children: [
|
|
|
|
Expanded(
|
|
|
|
child: ListView(
|
|
|
|
controller: controller,
|
|
|
|
physics: BouncingScrollPhysics(),
|
|
|
|
children: <Widget>[
|
|
|
|
Center(
|
|
|
|
child: Column(
|
|
|
|
children: <Widget>[
|
|
|
|
VEmptyView(20),
|
|
|
|
Image.asset(
|
|
|
|
"assets/yd_logo.png",
|
|
|
|
width: ScreenUtil().setWidth(233 * 2),
|
|
|
|
height: ScreenUtil().setHeight(51 * 2),
|
|
|
|
),
|
|
|
|
VEmptyView(26),
|
|
|
|
Container(
|
|
|
|
margin: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(40)),
|
|
|
|
// padding: EdgeInsets.all(
|
|
|
|
// ScreenUtil().setWidth(60)),
|
|
|
|
// decoration: BoxDecoration(
|
|
|
|
// gradient: LinearGradient(
|
|
|
|
// begin: Alignment.topCenter,
|
|
|
|
// end: Alignment.bottomCenter,
|
|
|
|
// colors: [
|
|
|
|
// MyColours.color_F7F1E8,
|
|
|
|
// MyColours.color_E3D6C7,
|
|
|
|
// ],
|
|
|
|
// ),
|
|
|
|
// borderRadius: BorderRadius.circular(
|
|
|
|
// ScreenUtil().setWidth(10))),
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
Container(
|
|
|
|
// color: Colors.red,
|
|
|
|
width: ScreenUtil().setWidth(335 * 2),
|
|
|
|
height: ScreenUtil().setWidth(200 * 2),
|
|
|
|
// decoration: BoxDecoration(
|
|
|
|
// image: DecorationImage(
|
|
|
|
// alignment:
|
|
|
|
// Alignment.topCenter,
|
|
|
|
// image: AssetImage(
|
|
|
|
// "assets/yd_baiinfo_bg.png"),
|
|
|
|
// fit: BoxFit.cover),
|
|
|
|
// ),
|
|
|
|
child: Row(
|
|
|
|
crossAxisAlignment:
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
left: ScreenUtil()
|
|
|
|
.setWidth(70)),
|
|
|
|
child: qiniuUrl == ''
|
|
|
|
? Image.asset(
|
|
|
|
Utils.getImgPath(
|
|
|
|
'yd_person'),
|
|
|
|
width: ScreenUtil()
|
|
|
|
.setWidth(143 * 2),
|
|
|
|
height: ScreenUtil()
|
|
|
|
.setWidth(190 * 2))
|
|
|
|
: Image.network(qiniuUrl,
|
|
|
|
width: ScreenUtil()
|
|
|
|
.setWidth(143 * 2),
|
|
|
|
height: ScreenUtil()
|
|
|
|
.setWidth(190 * 2)),
|
|
|
|
),
|
|
|
|
HEmptyView(10),
|
|
|
|
Spacer(),
|
|
|
|
Container(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
top: ScreenUtil()
|
|
|
|
.setWidth(37 * 2)),
|
|
|
|
// height: ScreenUtil()
|
|
|
|
// .setWidth(200 * 2),
|
|
|
|
child: Column(
|
|
|
|
mainAxisAlignment:
|
|
|
|
MainAxisAlignment.start,
|
|
|
|
crossAxisAlignment:
|
|
|
|
CrossAxisAlignment.end,
|
|
|
|
children: [
|
|
|
|
// VEmptyView(60),
|
|
|
|
GestureDetector(
|
|
|
|
behavior: HitTestBehavior
|
|
|
|
.opaque,
|
|
|
|
onTap: () {
|
|
|
|
_goBaseInfoPage();
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
width: ScreenUtil()
|
|
|
|
.setWidth(120 * 2),
|
|
|
|
height: ScreenUtil()
|
|
|
|
.setWidth(42 * 2),
|
|
|
|
child: Text(
|
|
|
|
name,
|
|
|
|
overflow: TextOverflow
|
|
|
|
.ellipsis,
|
|
|
|
textAlign:
|
|
|
|
TextAlign.right,
|
|
|
|
style: TextStyle(
|
|
|
|
color: name ==
|
|
|
|
'填写姓名'
|
|
|
|
? MyColours
|
|
|
|
.color_999999
|
|
|
|
: MyColours
|
|
|
|
.color_333333,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil()
|
|
|
|
.setSp(
|
|
|
|
60)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
// VEmptyView(6),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
_goBaseInfoPage();
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
width: ScreenUtil()
|
|
|
|
.setWidth(
|
|
|
|
143 * 2),
|
|
|
|
120 * 2),
|
|
|
|
height: ScreenUtil()
|
|
|
|
.setWidth(190 * 2)),
|
|
|
|
),
|
|
|
|
HEmptyView(10),
|
|
|
|
Spacer(),
|
|
|
|
Container(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
top: ScreenUtil()
|
|
|
|
.setWidth(37 * 2)),
|
|
|
|
// height: ScreenUtil()
|
|
|
|
// .setWidth(200 * 2),
|
|
|
|
child: Column(
|
|
|
|
mainAxisAlignment:
|
|
|
|
MainAxisAlignment
|
|
|
|
.start,
|
|
|
|
crossAxisAlignment:
|
|
|
|
CrossAxisAlignment
|
|
|
|
.end,
|
|
|
|
children: [
|
|
|
|
// VEmptyView(60),
|
|
|
|
GestureDetector(
|
|
|
|
behavior:
|
|
|
|
HitTestBehavior
|
|
|
|
.opaque,
|
|
|
|
onTap: () {
|
|
|
|
_goBaseInfoPage();
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
width: ScreenUtil()
|
|
|
|
.setWidth(
|
|
|
|
120 * 2),
|
|
|
|
height: ScreenUtil()
|
|
|
|
.setWidth(
|
|
|
|
42 * 2),
|
|
|
|
child: Text(
|
|
|
|
name,
|
|
|
|
overflow:
|
|
|
|
TextOverflow
|
|
|
|
.ellipsis,
|
|
|
|
textAlign:
|
|
|
|
TextAlign
|
|
|
|
.right,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours
|
|
|
|
.color_ffffff,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil()
|
|
|
|
.setSp(
|
|
|
|
60)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
// VEmptyView(6),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
_goBaseInfoPage();
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
width: ScreenUtil()
|
|
|
|
.setWidth(
|
|
|
|
120 * 2),
|
|
|
|
height:
|
|
|
|
ScreenUtil()
|
|
|
|
.setWidth(
|
|
|
|
22 *
|
|
|
|
2),
|
|
|
|
child: Text(
|
|
|
|
phone,
|
|
|
|
overflow:
|
|
|
|
TextOverflow
|
|
|
|
.ellipsis,
|
|
|
|
textAlign:
|
|
|
|
TextAlign
|
|
|
|
.right,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours
|
|
|
|
.color_ffffff,
|
|
|
|
fontSize: ScreenUtil()
|
|
|
|
.setWidth(22 * 2),
|
|
|
|
child: Text(
|
|
|
|
phone,
|
|
|
|
overflow:
|
|
|
|
TextOverflow
|
|
|
|
.ellipsis,
|
|
|
|
textAlign:
|
|
|
|
TextAlign.right,
|
|
|
|
style: TextStyle(
|
|
|
|
color: phone ==
|
|
|
|
'填写电话'
|
|
|
|
? MyColours
|
|
|
|
.color_999999
|
|
|
|
: MyColours
|
|
|
|
.color_333333,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil()
|
|
|
|
.setSp(
|
|
|
|
32)),
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
// VEmptyView(6),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
_goBaseInfoPage();
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
width: ScreenUtil()
|
|
|
|
.setWidth(
|
|
|
|
120 * 2),
|
|
|
|
height:
|
|
|
|
ScreenUtil()
|
|
|
|
.setWidth(
|
|
|
|
24 *
|
|
|
|
2),
|
|
|
|
child: Text(
|
|
|
|
position,
|
|
|
|
overflow:
|
|
|
|
TextOverflow
|
|
|
|
.ellipsis,
|
|
|
|
textAlign:
|
|
|
|
TextAlign
|
|
|
|
.right,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours
|
|
|
|
.color_ffffff,
|
|
|
|
fontSize: ScreenUtil()
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
// VEmptyView(6),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
_goBaseInfoPage();
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
width: ScreenUtil()
|
|
|
|
.setWidth(
|
|
|
|
120 * 2),
|
|
|
|
height: ScreenUtil()
|
|
|
|
.setWidth(24 * 2),
|
|
|
|
child: Text(
|
|
|
|
position,
|
|
|
|
overflow:
|
|
|
|
TextOverflow
|
|
|
|
.ellipsis,
|
|
|
|
textAlign:
|
|
|
|
TextAlign.right,
|
|
|
|
style: TextStyle(
|
|
|
|
color: position == '填写职位'
|
|
|
|
? MyColours
|
|
|
|
.color_999999
|
|
|
|
: MyColours
|
|
|
|
.color_333333,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil()
|
|
|
|
.setSp(
|
|
|
|
34)),
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
|
|
|
|
RoundButton(
|
|
|
|
// width: ScreenUtil().setWidth(95),
|
|
|
|
height: ScreenUtil()
|
|
|
|
.setWidth(60 * 2),
|
|
|
|
image:
|
|
|
|
Utils.getImgPath(
|
|
|
|
'yd_edit_new'),
|
|
|
|
imgWidth: 24,
|
|
|
|
radius: 0,
|
|
|
|
space: ScreenUtil()
|
|
|
|
.setWidth(20),
|
|
|
|
text: '编辑',
|
|
|
|
textColor: MyColours
|
|
|
|
.color_BA9953,
|
|
|
|
isBold: false,
|
|
|
|
fontSize: 28,
|
|
|
|
gradientStart: Colors
|
|
|
|
.transparent,
|
|
|
|
gradientEnd: Colors
|
|
|
|
.transparent,
|
|
|
|
onPressed: () {
|
|
|
|
_goBaseInfoPage();
|
|
|
|
},
|
|
|
|
)
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
HEmptyView(60),
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
// Positioned(
|
|
|
|
// bottom: 0,
|
|
|
|
// child: Container(
|
|
|
|
// color: MyColours.color_EEDBC4,
|
|
|
|
// width: double.infinity,
|
|
|
|
// height:
|
|
|
|
// ScreenUtil().setWidth(40),
|
|
|
|
// ))
|
|
|
|
// ],
|
|
|
|
// ),
|
|
|
|
// Container(
|
|
|
|
// color: MyColours.color_EEDBC4,
|
|
|
|
// width: double.infinity,
|
|
|
|
// height: ScreenUtil().setWidth(40),
|
|
|
|
// ),
|
|
|
|
VEmptyView(76),
|
|
|
|
// Image.asset(
|
|
|
|
// "assets/yd_up.png",
|
|
|
|
// width: ScreenUtil().setWidth(195 * 2),
|
|
|
|
// height:
|
|
|
|
// ScreenUtil().setHeight(33 * 2),
|
|
|
|
// ),
|
|
|
|
// VEmptyView(50),
|
|
|
|
RoundButton(
|
|
|
|
// width: ScreenUtil().setWidth(95),
|
|
|
|
height: ScreenUtil()
|
|
|
|
.setWidth(60 * 2),
|
|
|
|
image: Utils.getImgPath(
|
|
|
|
'yd_bianji'),
|
|
|
|
imgWidth: 24,
|
|
|
|
radius: 0,
|
|
|
|
space: ScreenUtil()
|
|
|
|
.setWidth(20),
|
|
|
|
text: '编辑',
|
|
|
|
textColor: MyColours
|
|
|
|
.color_199095,
|
|
|
|
isBold: false,
|
|
|
|
fontSize: 28,
|
|
|
|
gradientStart:
|
|
|
|
Colors.transparent,
|
|
|
|
gradientEnd:
|
|
|
|
Colors.transparent,
|
|
|
|
onPressed: () {
|
|
|
|
_goBaseInfoPage();
|
|
|
|
},
|
|
|
|
)
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
HEmptyView(60),
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
// Positioned(
|
|
|
|
// bottom: 0,
|
|
|
|
// child: Container(
|
|
|
|
// color: MyColours.color_EEDBC4,
|
|
|
|
// width: double.infinity,
|
|
|
|
// height:
|
|
|
|
// ScreenUtil().setWidth(40),
|
|
|
|
// ))
|
|
|
|
// ],
|
|
|
|
// ),
|
|
|
|
// Container(
|
|
|
|
// color: MyColours.color_EEDBC4,
|
|
|
|
// width: double.infinity,
|
|
|
|
// height: ScreenUtil().setWidth(40),
|
|
|
|
// ),
|
|
|
|
VEmptyView(76),
|
|
|
|
// Image.asset(
|
|
|
|
// "assets/yd_up.png",
|
|
|
|
// width: ScreenUtil().setWidth(195 * 2),
|
|
|
|
// height:
|
|
|
|
// ScreenUtil().setHeight(33 * 2),
|
|
|
|
// ),
|
|
|
|
// VEmptyView(50),
|
|
|
|
|
|
|
|
RepaintBoundary(
|
|
|
|
key: globalKey,
|
|
|
|
child: Container(
|
|
|
|
padding: EdgeInsets.fromLTRB(
|
|
|
|
ScreenUtil().setWidth(10),
|
|
|
|
ScreenUtil().setWidth(10),
|
|
|
|
ScreenUtil().setWidth(10),
|
|
|
|
ScreenUtil().setWidth(40)),
|
|
|
|
// color: Colors.red,
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
Container(
|
|
|
|
height:
|
|
|
|
ScreenUtil().setWidth(58),
|
|
|
|
child: Text(
|
|
|
|
user.sellername,
|
|
|
|
style: TextStyle(
|
|
|
|
// letterSpacing: ScreenUtil()
|
|
|
|
// .setWidth(2.13 * 2),
|
|
|
|
color: MyColours
|
|
|
|
.color_BA9953,
|
|
|
|
// fontWeight: FontWeight.bold,
|
|
|
|
fontSize: ScreenUtil()
|
|
|
|
.setSp(42)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
VEmptyView(14),
|
|
|
|
Container(
|
|
|
|
height:
|
|
|
|
ScreenUtil().setWidth(58),
|
|
|
|
child: Text(
|
|
|
|
'${dateTimeStr}',
|
|
|
|
style: TextStyle(
|
|
|
|
letterSpacing:
|
|
|
|
ScreenUtil()
|
|
|
|
.setWidth(
|
|
|
|
1.8 * 2),
|
|
|
|
color: MyColours
|
|
|
|
.color_BA9953,
|
|
|
|
fontSize: ScreenUtil()
|
|
|
|
.setSp(42)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
VEmptyView(26),
|
|
|
|
Container(
|
|
|
|
height:
|
|
|
|
ScreenUtil().setWidth(44),
|
|
|
|
child: Text(
|
|
|
|
'已为您安排在包间',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours
|
|
|
|
.color_ffffff,
|
|
|
|
fontSize: ScreenUtil()
|
|
|
|
.setSp(32)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
VEmptyView(28),
|
|
|
|
GestureDetector(
|
|
|
|
onTapDown: (TapDownDetails
|
|
|
|
details) =>
|
|
|
|
onTapDown(
|
|
|
|
context, details),
|
|
|
|
child: Container(
|
|
|
|
child: Stack(
|
|
|
|
alignment: Alignment
|
|
|
|
.bottomCenter,
|
|
|
|
overflow:
|
|
|
|
Overflow.visible,
|
|
|
|
children: [
|
|
|
|
Container(
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
bottom:
|
|
|
|
ScreenUtil()
|
|
|
|
.setWidth(
|
|
|
|
24)),
|
|
|
|
constraints: BoxConstraints(
|
|
|
|
maxWidth:
|
|
|
|
ScreenUtil()
|
|
|
|
.setWidth(
|
|
|
|
195 *
|
|
|
|
2)),
|
|
|
|
padding: EdgeInsets
|
|
|
|
.fromLTRB(
|
|
|
|
ScreenUtil()
|
|
|
|
.setWidth(
|
|
|
|
60),
|
|
|
|
ScreenUtil()
|
|
|
|
.setWidth(
|
|
|
|
30),
|
|
|
|
ScreenUtil()
|
|
|
|
.setWidth(
|
|
|
|
60),
|
|
|
|
RepaintBoundary(
|
|
|
|
key: globalKey,
|
|
|
|
child: Container(
|
|
|
|
padding: EdgeInsets.fromLTRB(
|
|
|
|
ScreenUtil().setWidth(10),
|
|
|
|
ScreenUtil().setWidth(10),
|
|
|
|
ScreenUtil().setWidth(10),
|
|
|
|
ScreenUtil().setWidth(40)),
|
|
|
|
// color: Colors.red,
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
Container(
|
|
|
|
height: ScreenUtil().setWidth(58),
|
|
|
|
child: Text(
|
|
|
|
user.sellername,
|
|
|
|
style: TextStyle(
|
|
|
|
// letterSpacing: ScreenUtil()
|
|
|
|
// .setWidth(2.13 * 2),
|
|
|
|
color:
|
|
|
|
MyColours.color_333333,
|
|
|
|
// fontWeight: FontWeight.bold,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(42)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
VEmptyView(14),
|
|
|
|
Container(
|
|
|
|
height: ScreenUtil().setWidth(58),
|
|
|
|
child: Text(
|
|
|
|
'${dateTimeStr}',
|
|
|
|
style: TextStyle(
|
|
|
|
letterSpacing: ScreenUtil()
|
|
|
|
.setWidth(1.8 * 2),
|
|
|
|
color:
|
|
|
|
MyColours.color_333333,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(42)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
VEmptyView(26),
|
|
|
|
Container(
|
|
|
|
height: ScreenUtil().setWidth(44),
|
|
|
|
child: Text(
|
|
|
|
'已为您安排在包间',
|
|
|
|
style: TextStyle(
|
|
|
|
color:
|
|
|
|
MyColours.color_666666,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(32)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
VEmptyView(28),
|
|
|
|
GestureDetector(
|
|
|
|
onTapDown: (TapDownDetails
|
|
|
|
details) =>
|
|
|
|
onTapDown(context, details),
|
|
|
|
child: Container(
|
|
|
|
child: Stack(
|
|
|
|
alignment:
|
|
|
|
Alignment.bottomCenter,
|
|
|
|
overflow: Overflow.visible,
|
|
|
|
children: [
|
|
|
|
Container(
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
bottom: ScreenUtil()
|
|
|
|
.setWidth(24)),
|
|
|
|
constraints: BoxConstraints(
|
|
|
|
maxWidth: ScreenUtil()
|
|
|
|
.setWidth(
|
|
|
|
195 * 2)),
|
|
|
|
padding:
|
|
|
|
EdgeInsets.fromLTRB(
|
|
|
|
ScreenUtil()
|
|
|
|
.setWidth(60),
|
|
|
|
ScreenUtil()
|
|
|
|
.setWidth(30),
|
|
|
|
ScreenUtil()
|
|
|
|
.setWidth(60),
|
|
|
|
ScreenUtil()
|
|
|
|
.setWidth(
|
|
|
|
24 * 2)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
borderRadius: BorderRadius.all(
|
|
|
|
Radius.circular(
|
|
|
|
ScreenUtil()
|
|
|
|
.setWidth(
|
|
|
|
24 *
|
|
|
|
2)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
borderRadius: BorderRadius.all(
|
|
|
|
Radius.circular(
|
|
|
|
ScreenUtil()
|
|
|
|
.setWidth(13 *
|
|
|
|
13 *
|
|
|
|
2))),
|
|
|
|
border: Border.all(
|
|
|
|
color: MyColours
|
|
|
|
.color_BA9953,
|
|
|
|
width: ScreenUtil()
|
|
|
|
border: Border.all(
|
|
|
|
color: MyColours
|
|
|
|
.color_199095,
|
|
|
|
width:
|
|
|
|
ScreenUtil()
|
|
|
|
.setWidth(
|
|
|
|
4))),
|
|
|
|
child: Text(
|
|
|
|
widget.tableInfo
|
|
|
|
.replaceAll(
|
|
|
|
"\n", ""),
|
|
|
|
style: TextStyle(
|
|
|
|
// letterSpacing: ScreenUtil()
|
|
|
|
// .setWidth(2.13 * 2),
|
|
|
|
color: MyColours
|
|
|
|
.color_BA9953,
|
|
|
|
fontWeight:
|
|
|
|
FontWeight
|
|
|
|
.bold,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil()
|
|
|
|
.setSp(
|
|
|
|
52)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Positioned(
|
|
|
|
key: key,
|
|
|
|
bottom: 0,
|
|
|
|
child: _baseIndoProvider
|
|
|
|
.photoList
|
|
|
|
.length >
|
|
|
|
0
|
|
|
|
? RoundButton(
|
|
|
|
onPressed:
|
|
|
|
() {
|
|
|
|
_seePhoto();
|
|
|
|
},
|
|
|
|
text: '浏览照片',
|
|
|
|
width: ScreenUtil()
|
|
|
|
.setWidth(
|
|
|
|
68 *
|
|
|
|
2),
|
|
|
|
height: ScreenUtil()
|
|
|
|
child: Text(
|
|
|
|
widget.tableInfo
|
|
|
|
.replaceAll(
|
|
|
|
"\n", ""),
|
|
|
|
style: TextStyle(
|
|
|
|
// letterSpacing: ScreenUtil()
|
|
|
|
// .setWidth(2.13 * 2),
|
|
|
|
color: MyColours
|
|
|
|
.color_333333,
|
|
|
|
fontWeight:
|
|
|
|
FontWeight.bold,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil()
|
|
|
|
.setSp(52)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Positioned(
|
|
|
|
key: key,
|
|
|
|
bottom: 0,
|
|
|
|
child: _baseIndoProvider
|
|
|
|
.photoList
|
|
|
|
.length >
|
|
|
|
0
|
|
|
|
? RoundButton(
|
|
|
|
onPressed: () {
|
|
|
|
_seePhoto();
|
|
|
|
},
|
|
|
|
text: '浏览照片',
|
|
|
|
width: ScreenUtil()
|
|
|
|
.setWidth(
|
|
|
|
68 * 2),
|
|
|
|
height:
|
|
|
|
ScreenUtil()
|
|
|
|
.setWidth(
|
|
|
|
24 *
|
|
|
|
2),
|
|
|
|
fontSize: 26,
|
|
|
|
textColor:
|
|
|
|
MyColours
|
|
|
|
.color_333333,
|
|
|
|
isBold: false,
|
|
|
|
gradientStart:
|
|
|
|
MyColours
|
|
|
|
.color_BA9953,
|
|
|
|
gradientEnd:
|
|
|
|
MyColours
|
|
|
|
.color_BA9953,
|
|
|
|
)
|
|
|
|
: Container(),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
))),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
fontSize: 26,
|
|
|
|
textColor: MyColours
|
|
|
|
.color_ffffff,
|
|
|
|
isBold: false,
|
|
|
|
gradientStart:
|
|
|
|
MyColours
|
|
|
|
.color_199095,
|
|
|
|
gradientEnd: MyColours
|
|
|
|
.color_199095,
|
|
|
|
)
|
|
|
|
: Container(),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
))),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
|
|
|
|
VEmptyView(30),
|
|
|
|
Container(
|
|
|
|
// height: ScreenUtil().setWidth(40),
|
|
|
|
child: Text(
|
|
|
|
'${user.sellerAddr}',
|
|
|
|
maxLines: 3,
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_BA9953,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(28)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
// VEmptyView(20),
|
|
|
|
// RoundButton(
|
|
|
|
// text: '一键导航',
|
|
|
|
// width: ScreenUtil().setWidth(68 * 2),
|
|
|
|
// height: ScreenUtil().setWidth(24 * 2),
|
|
|
|
// fontSize: 24,
|
|
|
|
// textColor: MyColours.color_794F28,
|
|
|
|
// isBold: false,
|
|
|
|
// gradientStart:
|
|
|
|
// Color.fromRGBO(121, 79, 40, 0.1),
|
|
|
|
// gradientEnd:
|
|
|
|
// Color.fromRGBO(121, 79, 40, 0.1),
|
|
|
|
// ),
|
|
|
|
// VEmptyView(50),
|
|
|
|
// Image.asset(
|
|
|
|
// "assets/yd_down.png",
|
|
|
|
// width: ScreenUtil().setWidth(195 * 2),
|
|
|
|
// height:
|
|
|
|
// ScreenUtil().setHeight(33 * 2),
|
|
|
|
// ),
|
|
|
|
// VEmptyView(60),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
VEmptyView(couponHeight),
|
|
|
|
])),
|
|
|
|
Container(
|
|
|
|
width: double.infinity,
|
|
|
|
height: ScreenUtil().setHeight(99),
|
|
|
|
child: Row(
|
|
|
|
children: <Widget>[
|
|
|
|
GestureDetector(
|
|
|
|
onTap: () async {
|
|
|
|
if (widget.phone.isEmpty) {
|
|
|
|
Utils.showToast("没有预订人电话信息");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (!couponProvider.sendSMS) {
|
|
|
|
Map<String, String> params = {
|
|
|
|
"id": widget.rid,
|
|
|
|
"uid": Provider.of<UserModel>(context,
|
|
|
|
listen: false)
|
|
|
|
.user
|
|
|
|
.openid,
|
|
|
|
"phone": widget.phone,
|
|
|
|
"Strtext": user.sellername +
|
|
|
|
_baseIndoProvider.baseInfoSunModel.name
|
|
|
|
};
|
|
|
|
bool success = await couponProvider
|
|
|
|
.sendSMSWxSendSms(context, params);
|
|
|
|
print(success);
|
|
|
|
if (success) {
|
|
|
|
Utils.showToast('短信已经发送成功!');
|
|
|
|
} else {
|
|
|
|
Utils.showToast('发送次数太频繁!');
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
Utils.showToast('短信已经发送成功!');
|
|
|
|
}
|
|
|
|
|
|
|
|
// NavigatorUtil.goSmsPage(context, widget.rid);
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
width: ScreenUtil().setWidth(135 * 2),
|
|
|
|
height: double.infinity,
|
|
|
|
alignment: Alignment.center,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: MyColours.color_262628,
|
|
|
|
border: Border(
|
|
|
|
top: BorderSide(
|
|
|
|
width: ScreenUtil().setWidth(1),
|
|
|
|
color: MyColours.color_ECD9B7))),
|
|
|
|
child: Text(
|
|
|
|
"发短信",
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_ECD9B7,
|
|
|
|
fontSize: ScreenUtil().setSp(28)),
|
|
|
|
VEmptyView(30),
|
|
|
|
Container(
|
|
|
|
// height: ScreenUtil().setWidth(40),
|
|
|
|
child: Text(
|
|
|
|
'${user.sellerAddr}',
|
|
|
|
maxLines: 3,
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_333333,
|
|
|
|
fontSize: ScreenUtil().setSp(28)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
// VEmptyView(20),
|
|
|
|
// RoundButton(
|
|
|
|
// text: '一键导航',
|
|
|
|
// width: ScreenUtil().setWidth(68 * 2),
|
|
|
|
// height: ScreenUtil().setWidth(24 * 2),
|
|
|
|
// fontSize: 24,
|
|
|
|
// textColor: MyColours.color_794F28,
|
|
|
|
// isBold: false,
|
|
|
|
// gradientStart:
|
|
|
|
// Color.fromRGBO(121, 79, 40, 0.1),
|
|
|
|
// gradientEnd:
|
|
|
|
// Color.fromRGBO(121, 79, 40, 0.1),
|
|
|
|
// ),
|
|
|
|
// VEmptyView(50),
|
|
|
|
// Image.asset(
|
|
|
|
// "assets/yd_down.png",
|
|
|
|
// width: ScreenUtil().setWidth(195 * 2),
|
|
|
|
// height:
|
|
|
|
// ScreenUtil().setHeight(33 * 2),
|
|
|
|
// ),
|
|
|
|
// VEmptyView(60),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Expanded(
|
|
|
|
child: GestureDetector(
|
|
|
|
onTap: () async {
|
|
|
|
// Uint8List image = await _getImage();
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
VEmptyView(couponHeight),
|
|
|
|
])),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.fromLTRB(
|
|
|
|
ScreenUtil().setWidth(70),
|
|
|
|
ScreenUtil().setWidth(20),
|
|
|
|
ScreenUtil().setWidth(70),
|
|
|
|
ScreenUtil().setWidth(40)),
|
|
|
|
child: Column(children: [
|
|
|
|
RoundButton(
|
|
|
|
text: '通知客户',
|
|
|
|
width: double.infinity,
|
|
|
|
height: ScreenUtil().setWidth(84),
|
|
|
|
gradientStart: MyColours.color_199095,
|
|
|
|
gradientEnd: MyColours.color_199095,
|
|
|
|
textColor: MyColours.color_ffffff,
|
|
|
|
fontSize: 34,
|
|
|
|
radius: ScreenUtil().setWidth(10),
|
|
|
|
isBold: false,
|
|
|
|
onPressed: () async {
|
|
|
|
// Uint8List image = await _getImage();
|
|
|
|
|
|
|
|
if (ObjectUtil.isEmpty(
|
|
|
|
_baseIndoProvider.baseInfoSunModel)) {
|
|
|
|
Utils.showToast('请输入个人资料');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (ObjectUtil.isEmpty(_baseIndoProvider
|
|
|
|
.baseInfoSunModel.name)) {
|
|
|
|
Utils.showToast('请填写您的姓名');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (ObjectUtil.isEmpty(_baseIndoProvider
|
|
|
|
.baseInfoSunModel.phone)) {
|
|
|
|
Utils.showToast('请填写您的联系电话');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (ObjectUtil.isEmpty(_baseIndoProvider
|
|
|
|
.baseInfoSunModel.position)) {
|
|
|
|
Utils.showToast('请填写您在餐厅中的职位');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (ObjectUtil.isEmpty(_baseIndoProvider
|
|
|
|
.baseInfoSunModel.phone)) {
|
|
|
|
Utils.showToast('请上传您的头像');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (ObjectUtil.isEmpty(_baseIndoProvider
|
|
|
|
.baseInfoSunModel.qrcode)) {
|
|
|
|
Utils.showToast('请上传您的微信二维码');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (!couponProvider.hasModify &&
|
|
|
|
couponProvider.coupons.length > 0) {
|
|
|
|
Map<String, String> params = {
|
|
|
|
"rid": widget.rid,
|
|
|
|
"aid": Utils.listToStringEnglish(
|
|
|
|
couponProvider.coupons)
|
|
|
|
};
|
|
|
|
bool isSuc = await couponProvider
|
|
|
|
.setActivityAsReserve(context, params);
|
|
|
|
if (isSuc) {
|
|
|
|
couponProvider.hasModify = true;
|
|
|
|
if (ObjectUtil.isEmpty(
|
|
|
|
_baseIndoProvider.baseInfoSunModel)) {
|
|
|
|
Utils.showToast('请输入个人资料');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (ObjectUtil.isEmpty(
|
|
|
|
_baseIndoProvider.baseInfoSunModel.name)) {
|
|
|
|
Utils.showToast('请填写您的姓名');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (ObjectUtil.isEmpty(
|
|
|
|
_baseIndoProvider.baseInfoSunModel.phone)) {
|
|
|
|
Utils.showToast('请填写您的联系电话');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (ObjectUtil.isEmpty(
|
|
|
|
_baseIndoProvider.baseInfoSunModel.position)) {
|
|
|
|
Utils.showToast('请填写您在餐厅中的职位');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (ObjectUtil.isEmpty(
|
|
|
|
_baseIndoProvider.baseInfoSunModel.phone)) {
|
|
|
|
Utils.showToast('请上传您的头像');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (ObjectUtil.isEmpty(
|
|
|
|
_baseIndoProvider.baseInfoSunModel.qrcode)) {
|
|
|
|
Utils.showToast('请上传您的微信二维码');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (!couponProvider.hasModify &&
|
|
|
|
couponProvider.coupons.length > 0) {
|
|
|
|
Map<String, String> params = {
|
|
|
|
"rid": widget.rid,
|
|
|
|
"aid": Utils.listToStringEnglish(
|
|
|
|
couponProvider.coupons)
|
|
|
|
};
|
|
|
|
bool isSuc = await couponProvider
|
|
|
|
.setActivityAsReserve(context, params);
|
|
|
|
if (isSuc) {
|
|
|
|
couponProvider.hasModify = true;
|
|
|
|
|
|
|
|
bool isSuccess =
|
|
|
|
await Utils.goShareInvicationToWeChat(
|
|
|
|
widget.rid,
|
|
|
|
Provider.of<UserModel>(context,
|
|
|
|
listen: false)
|
|
|
|
.user
|
|
|
|
.openid);
|
|
|
|
print(isSuccess);
|
|
|
|
// couponProvider.couponsShow = [];
|
|
|
|
// couponProvider.couponsShow
|
|
|
|
// .addAll(couponProvider.coupons);
|
|
|
|
// couponProvider.coupons = [];
|
|
|
|
// couponProvider.notifyListeners();
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
bool isSuccess =
|
|
|
|
await Utils.goShareInvicationToWeChat(
|
|
|
|
widget.rid,
|
|
|
|
Provider.of<UserModel>(context,
|
|
|
|
listen: false)
|
|
|
|
.user
|
|
|
|
.openid);
|
|
|
|
print(isSuccess);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
width: double.infinity,
|
|
|
|
height: double.infinity,
|
|
|
|
color: MyColours.color_ECD9B7,
|
|
|
|
alignment: Alignment.center,
|
|
|
|
child: Text(
|
|
|
|
"通知客户",
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_7B512A,
|
|
|
|
fontSize: ScreenUtil().setSp(30)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
bool isSuccess =
|
|
|
|
await Utils.goShareInvicationToWeChat(
|
|
|
|
widget.rid,
|
|
|
|
Provider.of<UserModel>(context,
|
|
|
|
listen: false)
|
|
|
|
.user
|
|
|
|
.openid);
|
|
|
|
print(isSuccess);
|
|
|
|
// couponProvider.couponsShow = [];
|
|
|
|
// couponProvider.couponsShow
|
|
|
|
// .addAll(couponProvider.coupons);
|
|
|
|
// couponProvider.coupons = [];
|
|
|
|
// couponProvider.notifyListeners();
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
bool isSuccess =
|
|
|
|
await Utils.goShareInvicationToWeChat(
|
|
|
|
widget.rid,
|
|
|
|
Provider.of<UserModel>(context,
|
|
|
|
listen: false)
|
|
|
|
.user
|
|
|
|
.openid);
|
|
|
|
print(isSuccess);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
),
|
|
|
|
)
|
|
|
|
])),
|
|
|
|
Positioned(
|
|
|
|
left: ScreenUtil().setWidth(0),
|
|
|
|
top: ScreenUtil().setWidth(0),
|
|
|
|
child: SafeArea(
|
|
|
|
child: GestureDetector(
|
|
|
|
onTap: () {
|
|
|
|
Navigator.of(context).pop();
|
|
|
|
},
|
|
|
|
behavior: HitTestBehavior.opaque,
|
|
|
|
child: Container(
|
|
|
|
padding: EdgeInsets.fromLTRB(
|
|
|
|
ScreenUtil().setWidth(40),
|
|
|
|
ScreenUtil().setWidth(28),
|
|
|
|
ScreenUtil().setWidth(200),
|
|
|
|
ScreenUtil().setWidth(100),
|
|
|
|
VEmptyView(20),
|
|
|
|
RoundButton(
|
|
|
|
text: '发短信',
|
|
|
|
width: double.infinity,
|
|
|
|
height: ScreenUtil().setWidth(84),
|
|
|
|
gradientStart: MyColours.color_ffffff,
|
|
|
|
gradientEnd: MyColours.color_ffffff,
|
|
|
|
textColor: MyColours.color_199095,
|
|
|
|
borderColor: MyColours.color_199095,
|
|
|
|
fontSize: 34,
|
|
|
|
radius: ScreenUtil().setWidth(10),
|
|
|
|
isBold: false,
|
|
|
|
onPressed: () async {
|
|
|
|
if (widget.phone.isEmpty) {
|
|
|
|
Utils.showToast("没有预订人电话信息");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (!couponProvider.sendSMS) {
|
|
|
|
Map<String, String> params = {
|
|
|
|
"id": widget.rid,
|
|
|
|
"uid": Provider.of<UserModel>(context,
|
|
|
|
listen: false)
|
|
|
|
.user
|
|
|
|
.openid,
|
|
|
|
"phone": widget.phone,
|
|
|
|
"Strtext": user.sellername +
|
|
|
|
_baseIndoProvider.baseInfoSunModel.name
|
|
|
|
};
|
|
|
|
bool success = await couponProvider
|
|
|
|
.sendSMSWxSendSms(context, params);
|
|
|
|
print(success);
|
|
|
|
if (success) {
|
|
|
|
Utils.showToast('短信已经发送成功!');
|
|
|
|
} else {
|
|
|
|
Utils.showToast('发送次数太频繁!');
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
Utils.showToast('短信已经发送成功!');
|
|
|
|
}
|
|
|
|
|
|
|
|
// NavigatorUtil.goSmsPage(context, widget.rid);
|
|
|
|
},
|
|
|
|
),
|
|
|
|
alignment: Alignment.centerLeft,
|
|
|
|
child: Image.asset(
|
|
|
|
"assets/back_white.png",
|
|
|
|
width: ScreenUtil().setWidth(20),
|
|
|
|
height: ScreenUtil().setHeight(31),
|
|
|
|
)),
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
])),
|
|
|
|
]),
|
|
|
|
Positioned(
|
|
|
|
// left: ScreenUtil().setWidth(180),
|
|
|
|
bottom: ScreenUtil().setWidth(110),
|
|
|
|
right: ScreenUtil().setWidth(40),
|
|
|
|
bottom: ScreenUtil().setWidth(124 * 2),
|
|
|
|
right: ScreenUtil().setWidth(52 * 2),
|
|
|
|
child: couponProvider.hasModify ||
|
|
|
|
couponProvider.coupons.length > 0 ||
|
|
|
|
couponProvider.couponListSelect.length > 0
|
|
...
|
...
|
@@ -931,7 +864,7 @@ class InvicationPageState extends State<InvicationPage> { |
|
|
|
vertical: ScreenUtil().setWidth(16)),
|
|
|
|
height: ScreenUtil().setWidth(35 * 2),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: MyColours.color_000000,
|
|
|
|
color: Color.fromRGBO(0, 0, 0, 0.5),
|
|
|
|
borderRadius: BorderRadius.circular(
|
|
|
|
ScreenUtil().setWidth(20))),
|
|
|
|
child: Row(
|
...
|
...
|
|