|
...
|
...
|
@@ -313,6 +313,16 @@ class InvicationPageState extends State<InvicationPage> { |
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//发送短信
|
|
|
|
_sendSms() async {
|
|
|
|
UserModel userModel = Provider.of<UserModel>(context, listen: false);
|
|
|
|
Map<String, String> params = {
|
|
|
|
"rid": widget.rid,
|
|
|
|
"sid": userModel.user.sellerid
|
|
|
|
};
|
|
|
|
await couponProvider.sendSms(context, params);
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
// Utils.changeStatusColor(color: Colors.transparent);
|
|
...
|
...
|
@@ -900,6 +910,7 @@ class InvicationPageState extends State<InvicationPage> { |
|
|
|
Utils.showToast("没有预订人电话信息");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
/* 旧的发短信
|
|
|
|
if (!couponProvider.sendSMS) {
|
|
|
|
String dateSoltStr = '';
|
|
|
|
if (widget.dateSolt == '1') {
|
|
...
|
...
|
@@ -952,6 +963,9 @@ class InvicationPageState extends State<InvicationPage> { |
|
|
|
} else {
|
|
|
|
Utils.showToast('短信已经发送成功!');
|
|
|
|
}
|
|
|
|
*/
|
|
|
|
|
|
|
|
_sendSms();
|
|
|
|
|
|
|
|
// NavigatorUtil.goSmsPage(context, widget.rid);
|
|
|
|
},
|
...
|
...
|
|