|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
|
|
import 'package:one_key/provider/user_model.dart';
|
|
|
|
import 'package:one_key/res/colors.dart';
|
|
|
|
import 'package:one_key/utils/dialog_util.dart';
|
|
|
|
import 'package:one_key/utils/utils.dart';
|
|
|
|
import 'package:one_key/widgets/h_empty_view.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 '../../../constant/state.dart';
|
|
|
|
import '../../../models/sai_you_yun_birthday_temp.dart';
|
|
|
|
import '../../../models/sai_you_yun_change_model.dart';
|
|
|
|
import '../../../models/sai_you_yun_model.dart';
|
|
|
|
import '../../../provider/customer_provider.dart';
|
|
|
|
import '../../../provider/marketing_center_provider.dart';
|
|
|
|
import '../../../route/navigator_util.dart';
|
|
|
|
import '../../../utils/event_bus.dart';
|
|
|
|
import '../../../utils/screen_util.dart';
|
|
|
|
import '../../../widgets/page_exception.dart';
|
|
|
|
import '../../../widgets/round_button.dart';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 生日短信模版配置页面
|
|
|
|
*/
|
|
|
|
|
|
|
|
class BirthdaySmsModuleSettingPage extends StatefulWidget {
|
|
|
|
final String type;
|
|
|
|
BirthdaySmsModuleSettingPage({Key key, this.type}) : super(key: key);
|
|
|
|
|
|
|
|
@override
|
|
|
|
_BirthdaySmsModuleSettingPageState createState() =>
|
|
|
|
_BirthdaySmsModuleSettingPageState();
|
|
|
|
}
|
|
|
|
|
|
|
|
class _BirthdaySmsModuleSettingPageState
|
|
|
|
extends State<BirthdaySmsModuleSettingPage> {
|
|
|
|
String contentChangeStart = '';
|
|
|
|
|
|
|
|
TextEditingController controller = TextEditingController();
|
|
|
|
|
|
|
|
CustomerProvider customerProvider;
|
|
|
|
|
|
|
|
int _cursorPosition = 0;
|
|
|
|
List<String> couponList = [];
|
|
|
|
bool isUse = false;
|
|
|
|
String youhui = '选择优惠券';
|
|
|
|
int couponSelectIndex;
|
|
|
|
String selectCode = '';
|
|
|
|
|
|
|
|
@override
|
|
|
|
void initState() {
|
|
|
|
// TODO: implement initState
|
|
|
|
super.initState();
|
|
|
|
|
|
|
|
WidgetsBinding.instance.addPostFrameCallback((_) {
|
|
|
|
getSaiYouYunBirthdayTemp();
|
|
|
|
_couponNetworkData(isShowLoading: false);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
getSaiYouYunBirthdayTemp() async {
|
|
|
|
await customerProvider.getSaiYouYunBirthdayTemp(
|
|
|
|
context,
|
|
|
|
{
|
|
|
|
'sid': Provider.of<UserModel>(context, listen: false).user.sellerid,
|
|
|
|
'type': widget.type
|
|
|
|
},
|
|
|
|
isShowLoading: false);
|
|
|
|
if (customerProvider.saiYouYunBirData != null &&
|
|
|
|
customerProvider.saiYouYunBirData.length > 0) {
|
|
|
|
customerProvider.saiYouYunBirData.forEach((element) {
|
|
|
|
if (element.bestwish != null) {
|
|
|
|
selectCode = element.templateCode;
|
|
|
|
contentChangeStart = element.templateParam;
|
|
|
|
controller.text = element.bestwish;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
if (selectCode == '') {
|
|
|
|
selectCode = customerProvider.saiYouYunBirData[0].templateCode;
|
|
|
|
contentChangeStart = customerProvider.saiYouYunBirData[0].templateParam;
|
|
|
|
}
|
|
|
|
setState(() {});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
setSaiYouYunBirthday() async {
|
|
|
|
Map<String, String> pramas = {
|
|
|
|
'sid': Provider.of<UserModel>(context, listen: false).user.sellerid,
|
|
|
|
'sms_code': selectCode,
|
|
|
|
'type': widget.type,
|
|
|
|
'content': controller.text
|
|
|
|
};
|
|
|
|
bool success = await customerProvider.setSaiYouYunBirthday(context, pramas);
|
|
|
|
if (success) {
|
|
|
|
Utils.showToast('保存成功');
|
|
|
|
Navigator.pop(context);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
///消费券
|
|
|
|
_couponNetworkData({bool isShowLoading = true}) async {
|
|
|
|
//couponSelectIndex = 0;
|
|
|
|
Map<String, String> params = {
|
|
|
|
"uid": Provider.of<UserModel>(context, listen: false).user.openid,
|
|
|
|
'status': '1'
|
|
|
|
};
|
|
|
|
await customerProvider.getCustomerSelectActivityNew(context, params,
|
|
|
|
isShowLoading: isShowLoading);
|
|
|
|
//此人已经新建好券
|
|
|
|
if (customerProvider.couponListSelect.length > 0) {
|
|
|
|
// couponProvider.initCouponSelect(context);
|
|
|
|
couponList = [];
|
|
|
|
for (int i = 0; i < customerProvider.couponListSelect.length; i++) {
|
|
|
|
couponList.add(customerProvider.couponListSelect[i].aname);
|
|
|
|
}
|
|
|
|
customerProvider.notifyListeners();
|
|
|
|
} else {
|
|
|
|
//没有新建的优惠券
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
_insertUrllink(String link) {
|
|
|
|
// *************开始直接插入会报错***********还没有改
|
|
|
|
|
|
|
|
var cursorPos = controller.selection.base.offset; //获取到光标的在字符串的位置
|
|
|
|
|
|
|
|
if (cursorPos < 0) {
|
|
|
|
controller.text += link;
|
|
|
|
} else {
|
|
|
|
String textAfterCursor =
|
|
|
|
controller.text.substring(cursorPos); //把字符串从光标的位置截取,光标后面的
|
|
|
|
|
|
|
|
String textBeforeCursor =
|
|
|
|
controller.text.substring(0, cursorPos); //光标前面的字符串
|
|
|
|
controller.text =
|
|
|
|
textBeforeCursor + link + textAfterCursor; //把想要的插入的内容拼接在光标位置处
|
|
|
|
|
|
|
|
controller.selection =
|
|
|
|
TextSelection.collapsed(offset: controller.text.length);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
List<Widget> templateChangesWidgets(
|
|
|
|
String title, List<SaiYouYunBirthdaySunModel> temData) {
|
|
|
|
List<Widget> data = [];
|
|
|
|
for (var i = 0; i < temData.length; i++) {
|
|
|
|
data.add(btnItem(temData[i].templateCode, onTap: () {
|
|
|
|
selectCode = temData[i].templateCode;
|
|
|
|
controller.text = temData[i].bestwish ?? '';
|
|
|
|
contentChangeStart = temData[i].templateParam;
|
|
|
|
setState(() {});
|
|
|
|
}));
|
|
|
|
}
|
|
|
|
return data;
|
|
|
|
}
|
|
|
|
|
|
|
|
Widget btnItem(String title, {GestureTapCallback onTap}) {
|
|
|
|
return InkWell(
|
|
|
|
onTap: onTap,
|
|
|
|
child: Container(
|
|
|
|
padding: EdgeInsets.all(w(3)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: selectCode == title
|
|
|
|
? MyColours.color_438E93
|
|
|
|
: MyColours.color_ffffff,
|
|
|
|
borderRadius: BorderRadius.circular(r(5)),
|
|
|
|
border: Border.all(width: w(1), color: MyColours.color_438E93)),
|
|
|
|
child: Text(title,
|
|
|
|
style: TextStyle(
|
|
|
|
color: selectCode == title
|
|
|
|
? MyColours.color_ffffff
|
|
|
|
: MyColours.color_438E93,
|
|
|
|
fontSize: font(12),
|
|
|
|
fontWeight: FontWeight.bold)),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
Widget _templeteWidget(
|
|
|
|
String title,
|
|
|
|
) {
|
|
|
|
return Container(
|
|
|
|
margin: EdgeInsets.symmetric(horizontal: w(16), vertical: w(5)),
|
|
|
|
child: Row(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
title,
|
|
|
|
style: TextStyle(fontSize: font(16), color: MyColours.color_515151),
|
|
|
|
),
|
|
|
|
HEmptyView(34),
|
|
|
|
Expanded(
|
|
|
|
child: Wrap(
|
|
|
|
spacing: w(5),
|
|
|
|
runSpacing: w(5),
|
|
|
|
children: templateChangesWidgets(
|
|
|
|
title, customerProvider.saiYouYunBirData),
|
|
|
|
))
|
|
|
|
],
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
_buttonChoose(String title, ClickCallback callback) {
|
|
|
|
return InkWell(
|
|
|
|
onTap: () {
|
|
|
|
callback(title);
|
|
|
|
},
|
|
|
|
child: Padding(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(20),
|
|
|
|
vertical: ScreenUtil().setWidth(10)),
|
|
|
|
// height: ScreenUtil().setWidth(50),
|
|
|
|
// decoration: BoxDecoration(
|
|
|
|
// // border: Border.all(
|
|
|
|
// // width: ScreenUtil().setWidth(2),
|
|
|
|
// // color: MyColours.color_199095),
|
|
|
|
// borderRadius: BorderRadius.circular(ScreenUtil().setWidth(10))),
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
Expanded(
|
|
|
|
child: Text(
|
|
|
|
title,
|
|
|
|
textAlign: TextAlign.right,
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
style: TextStyle(
|
|
|
|
color: title == '选择优惠券'
|
|
|
|
? MyColours.color_999999
|
|
|
|
: MyColours.color_438E93,
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontSize: ScreenUtil().setWidth(30)),
|
|
|
|
)),
|
|
|
|
HEmptyView(20),
|
|
|
|
Image.asset(
|
|
|
|
// Utils.getImgPath(!customerMakingProvider.isUse
|
|
|
|
// ? 'c_arrow_down_unsel'
|
|
|
|
// : 'c_arrow_down'),
|
|
|
|
Utils.getImgPath('down_c'),
|
|
|
|
width: ScreenUtil().setWidth(44),
|
|
|
|
// height: ScreenUtil().setWidth(10),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
)));
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
customerProvider = Provider.of<CustomerProvider>(context, listen: true);
|
|
|
|
return Scaffold(
|
|
|
|
backgroundColor: MyColours.color_ffffff,
|
|
|
|
appBar:
|
|
|
|
SystemAppBar(widget.type == '1' ? '客户生日提前通知短信设置' : '客户生日当天通知短信设置'),
|
|
|
|
body: Consumer<CustomerProvider>(builder: (context1, model, _) {
|
|
|
|
if (model.pageStateBirthday != PageState.Success) {
|
|
|
|
return ExceptionPage(
|
|
|
|
pageState: model.pageStateBirthday,
|
|
|
|
callback: () async {
|
|
|
|
getSaiYouYunBirthdayTemp();
|
|
|
|
_couponNetworkData(isShowLoading: false);
|
|
|
|
},
|
|
|
|
emptyMsg: "暂时没有客户生日提前通知短信设置哦",
|
|
|
|
emptyImg: "empty_search",
|
|
|
|
showMsg: "加载中,请稍后...",
|
|
|
|
);
|
|
|
|
} else {
|
|
|
|
return Column(
|
|
|
|
children: [
|
|
|
|
Expanded(
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
_templeteWidget('模版'),
|
|
|
|
VEmptyView(10),
|
|
|
|
Container(
|
|
|
|
width: double.infinity,
|
|
|
|
padding: EdgeInsets.all(w(10)),
|
|
|
|
margin: EdgeInsets.symmetric(horizontal: w(16)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
border: Border.all(
|
|
|
|
color: MyColours.color_DBDBDB, width: w(1)),
|
|
|
|
borderRadius: BorderRadius.circular(r(8))),
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
contentChangeStart,
|
|
|
|
style: TextStyle(
|
|
|
|
height: 1.5,
|
|
|
|
color: MyColours.color_66000000,
|
|
|
|
fontSize: font(14)),
|
|
|
|
),
|
|
|
|
TextField(
|
|
|
|
enabled: true,
|
|
|
|
controller: controller,
|
|
|
|
// textAlign: TextAlign.right,
|
|
|
|
// textAlignVertical: TextAlignVertical.bottom,
|
|
|
|
maxLines: 10,
|
|
|
|
|
|
|
|
// inputFormatters: title == '金额'
|
|
|
|
// ? [
|
|
|
|
// FilteringTextInputFormatter(RegExp("[0-9.]"),
|
|
|
|
// allow: true),
|
|
|
|
// MyNumberTextInputFormatter(digit: 2),
|
|
|
|
// ]
|
|
|
|
// : [],
|
|
|
|
|
|
|
|
// //光标颜色
|
|
|
|
// cursorColor:
|
|
|
|
// widget.isSelect ? Colors.white : MyColours.color_199095,
|
|
|
|
//输入文本的样式
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(28),
|
|
|
|
color: MyColours.color_515151),
|
|
|
|
// focusNode: focusNode,
|
|
|
|
decoration: InputDecoration(
|
|
|
|
border: OutlineInputBorder(
|
|
|
|
borderSide: BorderSide.none),
|
|
|
|
hintText: true
|
|
|
|
? '点击这里编辑您的短信内容。上面的文字时固定不可编辑的。'
|
|
|
|
: '请选择模版',
|
|
|
|
hintStyle: TextStyle(
|
|
|
|
color: MyColours.color_999999,
|
|
|
|
fontSize: ScreenUtil().setSp(28),
|
|
|
|
),
|
|
|
|
contentPadding: EdgeInsets.zero,
|
|
|
|
),
|
|
|
|
onChanged: (value) {
|
|
|
|
//添加的代码:光标一直在文本框后面
|
|
|
|
// controller.value = TextEditingValue(
|
|
|
|
// text: controller.text,
|
|
|
|
// selection:
|
|
|
|
// TextSelection.fromPosition(TextPosition(
|
|
|
|
// affinity: TextAffinity.downstream,
|
|
|
|
// offset: controller.text.length,
|
|
|
|
// )));
|
|
|
|
// setState(() {
|
|
|
|
// _cursorPosition = controller.selection.baseOffset;
|
|
|
|
// });
|
|
|
|
},
|
|
|
|
onEditingComplete: () {
|
|
|
|
FocusScope.of(context)
|
|
|
|
.requestFocus(FocusNode()); //点击空白处隐藏键盘
|
|
|
|
},
|
|
|
|
// keyboardType: inputType,
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
VEmptyView(36),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
isUse = !isUse;
|
|
|
|
setState(() {});
|
|
|
|
},
|
|
|
|
child: Padding(
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: w(16)),
|
|
|
|
child: Row(children: [
|
|
|
|
// Image.asset(
|
|
|
|
// Utils.getImgPath(
|
|
|
|
// isUse ? 'f_select' : 'f_select_not'),
|
|
|
|
// width: ScreenUtil().setWidth(44)),
|
|
|
|
// HEmptyView(15),
|
|
|
|
Text(
|
|
|
|
'在当前位置插入优惠',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(32),
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
color: MyColours.color_515151),
|
|
|
|
),
|
|
|
|
]))),
|
|
|
|
VEmptyView(26),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: w(16)),
|
|
|
|
child: Row(children: [
|
|
|
|
Expanded(
|
|
|
|
child: Container(
|
|
|
|
height: ScreenUtil().setWidth(70),
|
|
|
|
// width: ScreenUtil().setWidth(130),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
borderRadius: BorderRadius.circular(
|
|
|
|
ScreenUtil().setWidth(10)),
|
|
|
|
color: MyColours.color_DBDBDB),
|
|
|
|
child: _buttonChoose(youhui, (value) {
|
|
|
|
FocusScope.of(context)
|
|
|
|
.requestFocus(FocusNode()); //隐藏键盘
|
|
|
|
if (couponList == null ||
|
|
|
|
couponList.length == 0) {
|
|
|
|
Utils.showToast('暂无优惠券,请创建新优惠');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
DialogUtil.showSelectCusmanDialog(
|
|
|
|
context, couponList,
|
|
|
|
(value) async {
|
|
|
|
if (value != null) {
|
|
|
|
if (customerProvider
|
|
|
|
.couponListSelect[value.first]
|
|
|
|
.urllink ==
|
|
|
|
null) {
|
|
|
|
//创建链接
|
|
|
|
//创建券的二维码
|
|
|
|
Map<String, String> param = {
|
|
|
|
"sid": Provider.of<UserModel>(
|
|
|
|
context,
|
|
|
|
listen: false)
|
|
|
|
.user
|
|
|
|
.sellerid,
|
|
|
|
"id": customerProvider
|
|
|
|
.couponListSelect[value.first]
|
|
|
|
.id,
|
|
|
|
};
|
|
|
|
dynamic object =
|
|
|
|
await customerProvider
|
|
|
|
.createActivityUrlLink(
|
|
|
|
context, param);
|
|
|
|
if (object is bool) {
|
|
|
|
//
|
|
|
|
|
|
|
|
} else {
|
|
|
|
//成功
|
|
|
|
_insertUrllink(object);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
// 直接使用
|
|
|
|
setState(() {
|
|
|
|
couponSelectIndex = value.first;
|
|
|
|
youhui =
|
|
|
|
couponList[couponSelectIndex];
|
|
|
|
});
|
|
|
|
|
|
|
|
_insertUrllink(customerProvider
|
|
|
|
.couponListSelect[value.first]
|
|
|
|
.urllink);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
selecteds:
|
|
|
|
couponSelectIndex == null
|
|
|
|
? []
|
|
|
|
: [couponSelectIndex])
|
|
|
|
.then((value) {});
|
|
|
|
}))),
|
|
|
|
HEmptyView(30),
|
|
|
|
InkWell(
|
|
|
|
onTap: () async {
|
|
|
|
// NavigatorUtil.goMarketingRecordsDetailPage(context);
|
|
|
|
bool needRefresh =
|
|
|
|
await NavigatorUtil.goCouponEditPage(
|
|
|
|
context);
|
|
|
|
print(needRefresh);
|
|
|
|
if (needRefresh != null && needRefresh) {
|
|
|
|
//刷新页面数据
|
|
|
|
// _controller.callRefresh();
|
|
|
|
_couponNetworkData();
|
|
|
|
}
|
|
|
|
},
|
|
|
|
child: Text('创建新优惠',
|
|
|
|
style: TextStyle(
|
|
|
|
decoration: TextDecoration.underline,
|
|
|
|
color: MyColours.color_438E93,
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontSize: ScreenUtil().setSp(28)))),
|
|
|
|
])),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
Container(
|
|
|
|
height: ScreenUtil().setWidth(91 * 2),
|
|
|
|
width: double.infinity,
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
top: ScreenUtil().setWidth(16 * 2),
|
|
|
|
bottom: ScreenUtil().setWidth(35 * 2),
|
|
|
|
left: ScreenUtil().setWidth(23 * 2),
|
|
|
|
right: ScreenUtil().setWidth(23 * 2),
|
|
|
|
),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
boxShadow: [
|
|
|
|
BoxShadow(
|
|
|
|
spreadRadius: ScreenUtil().setWidth(2),
|
|
|
|
color: Color.fromRGBO(0, 0, 0, 0.1),
|
|
|
|
offset: Offset(0, ScreenUtil().setWidth(-2)),
|
|
|
|
blurRadius: ScreenUtil().setWidth(8))
|
|
|
|
],
|
|
|
|
borderRadius: BorderRadius.all(
|
|
|
|
Radius.circular(ScreenUtil().setWidth(16)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
child: Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
children: [
|
|
|
|
// RoundButton(
|
|
|
|
// text: '预览效果',
|
|
|
|
// width: w(100),
|
|
|
|
// height: ScreenUtil().setWidth(80),
|
|
|
|
// radius: ScreenUtil().setWidth(14),
|
|
|
|
// gradientStart: MyColours.color_ffffff,
|
|
|
|
// gradientEnd: MyColours.color_ffffff,
|
|
|
|
// borderColor: MyColours.color_438E93,
|
|
|
|
// textColor: MyColours.color_438E93,
|
|
|
|
// isBold: true,
|
|
|
|
// fontSize: 32,
|
|
|
|
// onPressed: () {
|
|
|
|
// DialogUtil.cupertinoAlertDialog(context,
|
|
|
|
// textAlign: TextAlign.left,
|
|
|
|
// showlTitle: false,
|
|
|
|
// content: canChange
|
|
|
|
// ? contentChangeStart + controller.text
|
|
|
|
// : controller.text);
|
|
|
|
// },
|
|
|
|
// ),
|
|
|
|
// HEmptyView(30),
|
|
|
|
Expanded(
|
|
|
|
child: RoundButton(
|
|
|
|
text: '保存',
|
|
|
|
height: ScreenUtil().setWidth(80),
|
|
|
|
radius: ScreenUtil().setWidth(14),
|
|
|
|
isBold: true,
|
|
|
|
fontSize: 32,
|
|
|
|
onPressed: () async {
|
|
|
|
if (selectCode == '') {
|
|
|
|
Utils.showToast('请选择模版类型');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (controller.text.trim().length == 0) {
|
|
|
|
Utils.showToast('请输入内容后保存');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
setSaiYouYunBirthday();
|
|
|
|
|
|
|
|
// }
|
|
|
|
// print('fffff');
|
|
|
|
},
|
|
|
|
),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}));
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|